/* Expert Testimonials Carousel Styles */
.expert-testimonials {
  background-color: #f8f9fa;
  padding: 60px 0;
  position: relative;
}

/* Title styling that aligns with other sections */
.expert-testimonials .container > h2.section-title {
  color: #FF6F61;
  text-align: left;
  margin-bottom: 45px;
  font-weight: 800;
  position: relative;
}

.expert-testimonials .container > h2.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 70px;
  height: 4px;
  background-color: #0F4C81;
}

.expert-testimonials .subtitle {
  text-align: left;
  color: #333;
  margin-bottom: 40px;
}

/* Carousel Container */
.testimonial-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Testimonial Slide */
.testimonial-slide {
  display: none;
  padding: 0 50px;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Testimonial Content */
.testimonial-content {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

/* Expert Info */
.expert-info {
  display: flex;
  align-items: center;
}

.expert-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  border: 2px solid #FF6F61;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 2rem;
}

.expert-photo i {
  opacity: 0.5;
}

.expert-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #0F4C81;
}

.expert-details p {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* Carousel Navigation */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #999;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #0F4C81;
  color: white;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  border: none;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.carousel-indicators button.active {
  background-color: #FF6F61;
}

/* Donor section responsive styles */
@media (max-width: 767px) {
  /* Make donor logos stack vertically on mobile */
  .donor-section .row.justify-content-center {
    flex-direction: column;
    align-items: center;
  }
  
  /* Center each donor logo and add spacing */
  .donor-section .col-lg-3.col-md-4.col-6 {
    width: 100%;
    max-width: 200px;
    margin-bottom: 30px;
    text-align: center;
  }
  
  /* Make logos consistent size */
  .donor-section .donor-logo {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
    padding-right: 0 !important; /* Remove any padding that might affect alignment */
    margin: 0 auto 15px;
    display: block;
  }
  
  /* Center donor names */
  .donor-section h6 {
    text-align: center;
    margin-bottom: 5px;
  }
}

/* ======================= */
/* НОВЫЕ СТИЛИ ДЛЯ КАЛЕНДАРЯ СОБЫТИЙ */
/* ======================= */

/* Календарь событий - основные стили */
.calendar-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

/* Основной стиль карточки события */
.event-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Специальные стили для выделенного события (когда только одно) */
.event-card-featured {
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  background: linear-gradient(to right, #ffffff, #f8f9fa);
  border-left: 5px solid var(--primary-color);
}

.event-card-featured .event-img {
  height: auto;
  max-height: 400px;
  border-radius: 12px;
  margin: 15px;
}

.event-card-featured .event-body {
  padding: 25px 35px;
}

.event-img-featured {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.event-title-featured {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-color);
}

/* Общие стили для изображения события */
.event-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-img img {
  transform: scale(1.05);
}

/* Стили для метки даты */
.event-date-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.event-date-tag .day {
  font-size: 1.5rem;
  display: block;
}

.event-date-tag .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Стили для статуса события */
.event-status {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
}

.event-status.upcoming {
  background-color: var(--highlight-color);
  color: white;
}

.event-status.ongoing {
  background-color: var(--primary-color);
  color: white;
}

.event-status.past {
  background-color: #6c757d;
  color: white;
}

.event-status.conference {
  background-color: var(--accent-color);
  color: white;
}

.event-status.training {
  background-color: var(--secondary-color);
  color: white;
}

/* Стили для тела события */
.event-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.event-info {
  margin-bottom: 15px;
}

.event-info-item {
  display: flex;
  margin-bottom: 10px;
}

.event-info-icon {
  color: var(--accent-color);
  margin-right: 10px;
  flex-shrink: 0;
  width: 20px;
}

.event-info-text {
  font-size: 0.95rem;
}

.event-description {
  margin-bottom: 20px;
  color: #6c757d;
  font-size: 0.95rem;
}

.event-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-registration {
  display: flex;
  align-items: center;
}

.event-registration-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(136, 176, 75, 0.1);
  color: var(--highlight-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.event-registration-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--highlight-color);
}

/* Кнопка "Перейти к полному календарю" */
.calendar-section .text-center.mt-5 {
  margin-top: 40px;
}

.calendar-section .btn-primary {
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.calendar-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.2);
}

/* News Card */
.news-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  background-color: white;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-card-img img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.news-card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-text {
  margin-bottom: 20px;
  color: #6c757d;
  flex-grow: 1;
  line-height: 1.6;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-card-category {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: rgba(15, 76, 129, 0.08);
  color: var(--accent-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-card-category:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Mobile enhancements for home.css */

/* Custom button styling for report button */
.report-button {
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
}

.report-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15, 76, 129, 0.3);
}

/* Responsive adjustments for testimonials */
@media (max-width: 767px) {
  .testimonial-slide {
    padding: 0 20px;
  }
  
  /* Expert testimonials mobile fixes */
  .testimonial-slide {
    padding: 0 10px;
  }
  
  .testimonial-content {
    padding: 20px;
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .expert-photo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
  }
  
  .expert-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .expert-details h4 {
    font-size: 1rem;
  }
  
  .expert-details p {
    font-size: 0.75rem;
  }
  
  /* Improved carousel navigation for mobile */
  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
    top: calc(50% - 50px);
  }
  
  .carousel-indicators {
    margin-top: 15px;
  }
  
  .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* Calendar Section Mobile Improvements */
@media (max-width: 767px) {
  .calendar-section {
    padding: 40px 0;
  }
  
  .event-card {
    margin-bottom: 25px;
  }
  
  .event-card-featured .event-img {
    height: 200px;
    border-radius: 12px 12px 0 0;
  }
  
  .event-card-featured .event-body {
    padding: 20px;
  }
  
  .event-title-featured {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .event-img {
    height: 160px;
  }
  
  .event-date-tag {
    padding: 6px 10px;
    top: 10px;
    right: 10px;
  }
  
  .event-date-tag .day {
    font-size: 1.2rem;
  }
  
  .event-date-tag .month {
    font-size: 0.8rem;
  }
  
  .event-status {
    padding: 4px 10px;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
  }
  
  .event-body {
    padding: 15px;
  }
  
  .event-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .event-info-item {
    margin-bottom: 8px;
  }
  
  .event-description {
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  
  .event-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .event-registration-text {
    font-size: 0.8rem;
  }
  
  /* Make the button full width on mobile */
  .event-footer .btn {
    width: 100%;
    text-align: center;
  }
}

/* News Section Mobile Improvements */
@media (max-width: 767px) {
  .news-section {
    padding: 40px 0;
  }
  
  .news-card {
    margin-bottom: 25px;
  }
  
  .news-card-img {
    height: 180px;
  }
  
  .news-card-body {
    padding: 15px;
  }
  
  .news-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .news-card-text {
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  
  .news-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* Fix for main page hero section */
  .hero-section {
    padding: 100px 0 80px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .hero-section .btn {
    margin-bottom: 10px;
  }
  
  /* What is Housing Right Section */
  #what-is-housing-right img {
    margin-bottom: 20px;
  }
  
  /* Central Asia Situation Section */
  #central-asia-situation {
    text-align: center;
  }
  
  #central-asia-situation .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #central-asia-situation .mt-4 {
    margin-bottom: 25px;
  }
}

/* Fix for very small screens */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.7rem;
  }
  
  .hero-section .d-flex {
    flex-direction: column;
  }
  
  .hero-section .btn {
    width: 100%;
    margin-right: 0 !important;
  }
  
  .event-card-featured .event-img {
    height: 180px;
  }
  
  .report-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Stats Section Mobile Fixes */
@media (max-width: 767px) {
  .stats-container {
    padding: 50px 0;
  }
  
  .counter-item {
    margin-bottom: 30px;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
}