* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #2a2a2a;
  line-height: 1.6;
  background-color: #f8f7f5;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 2px 20px rgba(90, 141, 122, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(90, 141, 122, 0.3);
  transition: all 2.3s ease;
}

.header-inner {
  transition: all 2.3s ease;
}

.logo {
  font-family: "Montserrat", serif;
  font-weight: 700;
  color: #3a3a3a;
  transition: all 2.3s ease;
}

.header-logo {
  transition: all 2.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: #3a3a3a;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4a7d6a;
}

.header-btn {
  display: none;
  background-color: #4a7d6a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(74, 125, 106, 0.3);
  white-space: nowrap;
}

.header-btn:hover {
  background-color: #3a6d5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 125, 106, 0.4);
}

.header-logo img {
  cursor: pointer;
  transition: transform 0.3s;
}

.header-logo img:hover {
  transform: scale(1.05);
}

.mobile-header {
  display: none;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(90, 141, 122, 0.3);
}

.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.mobile-logo.scrolled {
  left: 10px;
  transform: translateX(0);
}

.mobile-logo img {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-header-btn {
  background-color: #4a7d6a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(74, 125, 106, 0.3);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  z-index: 2;
}

.mobile-header-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #4a7d6a;
  z-index: 3;
  margin-left: auto;
}

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("back.jpg") no-repeat center 0% / cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding-top: 90px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  background-color: #4a7d6a;
  color: #fff;
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(74, 125, 106, 0.3);
}

.btn:hover {
  background-color: #3a6d5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 125, 106, 0.4);
}

.btn.schedule-btn {
  background-color: #c0392b;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.btn.schedule-btn:hover {
  background-color: #a53125;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.about {
  padding: 70px 0 40px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 0;
}

.carousel-container {
  position: relative;
  flex: 1;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  aspect-ratio: 4/3;
}

.carousel {
  display: flex;
  width: 1700%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  width: 5.88%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.carousel-item img:hover {
  transform: scale(1.05);
}

.carousel-controls {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #fff;
}

.about-text {
  flex: 1;
}

.about-text p {
  text-align: justify;
  margin-bottom: 20px;
  color: #2a2a2a;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #4a7d6a;
  text-align: center;
}

.news {
  padding: 20px 0;
  background-color: #2c3e50;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news .container {
  position: relative;
  z-index: 1;
}

.news .section-title {
  color: #ffffff;
}

.news > p {
  color: #e0e0e0;
  margin-bottom: 40px;
}

.news-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 50px;
  overflow: hidden;
}

.news-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 25px;
}

.news-card {
  flex: 0 0 calc(33.333% - 17px);
  background: linear-gradient(135deg, #3a5c4e 0%, #2d4a3f 90%);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: all 0.3s;
  border: 1px solid #3a5c4e;
  color: #ffffff;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #426b5a 0%, #325545 100%);
}

.news-card a {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0px;
  transition: all 0.3s ease;
  position: relative;
}

.news-card a:hover {
  color: #aed581;
  transform: translateX(5px);
}

.news-card a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #aed581;
  transition: width 0.3s ease;
}

.news-card a:hover:after {
  width: 100%;
}

.news-card p {
  text-align: left;
  margin-bottom: 5px;
  color: #e0e0e0;
}

.news-images-container {
  margin-top: 15px;
  display: grid;
  gap: 8px;
  width: 100%;
}

.news-images-container.one-image {
  grid-template-columns: 1fr;
}

.news-images-container.two-images {
  grid-template-columns: 1fr 1fr;
}

.news-images-container.three-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.news-images-container.four-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.news-images-container.five-images {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.news-images-container.six-images {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.news-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  aspect-ratio: 1/1;
}

.news-image-link.video {
  position: relative;
}

.news-image-link.video::after {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.news-image-link.video:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
  display: block;
}

.news-image-link:hover .news-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.news-image-link.video:hover .news-image {
  filter: brightness(0.8);
}

.news-date {
  font-size: 0.9rem;
  color: #8bc34a;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.news-card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.4rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 195, 74, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(139, 195, 74, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 0;
  transform-origin: left center;
}

.carousel-control.next {
  right: 0;
  transform-origin: right center;
}

.carousel-control:disabled {
  background: rgba(139, 195, 74, 0.3);
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-indicator.active {
  background: #8bc34a;
  transform: scale(1.2);
}

.news-divider-card {
  flex: 0 0 calc(33.333% - 17px);
  background: linear-gradient(135deg, #3a5c4e 0%, #2d4a3f 90%);
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed #8bc34a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.news-divider-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><path d="M50 20 L60 40 L80 45 L65 60 L70 80 L50 70 L30 80 L35 60 L20 45 L40 40 Z" fill="%238bc34a"/></svg>');
  pointer-events: none;
}

.divider-icon {
  font-size: 3rem;
  color: #8bc34a;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.divider-text {
  color: #8bc34a;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.divider-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 8px;
}

.services {
  padding: 20px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  text-align: center;
}

.news-extra-wrapper {
  display: none;
  margin-top: 12px;
}
.news-extra-wrapper.show {
  display: block;
}
.news-toggle-link {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  margin: 8px 0 0 0;
  transition: all 0.3s ease;
}
.news-toggle-link:hover {
  color: #aed581;
  transform: translateX(3px);
}
.news-toggle-link i {
  margin-left: 5px;
  font-size: 0.8rem;
}
.news-collapse-link {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
  transition: all 0.3s ease;
}
.news-collapse-link:hover {
  color: #aed581;
  transform: translateX(3px);
}
.news-collapse-link i {
  margin-left: 5px;
  font-size: 0.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(271px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: #4a7d6a;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
  color: #2a2a2a;
  font-size: 1.4rem;
}

.service-card p {
  color: #2a2a2a;
}

.reviews {
  padding: 20px 0;
  background: linear-gradient(135deg, #f8f7f5 0%, #f0ece4 100%);
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.review-card {
  background-color: #f8f6f2;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(138, 154, 135, 0.15);
  text-align: left;
  border: 1px solid #e8e4dc;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(138, 154, 135, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #e8e4dc;
  padding-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a9a87 0%, #768574 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(138, 154, 135, 0.3);
}

.review-name {
  font-weight: 600;
  color: #5a6d5a;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.review-date {
  font-size: 0.9rem;
  color: #8a9a87;
  font-style: italic;
}

.review-text {
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
}

.reviews .section-title {
  color: #5a6d5a;
  margin-bottom: 15px;
}

.reviews > p {
  color: #6a7c6a;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.donation {
  padding: 20px 0;
  background: linear-gradient(135deg, #1e3329 0%, #2d4a3f 100%);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.donation .section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.donation-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.donation-text {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
}

.donation-text a {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0px;
  transition: all 0.3s ease;
  position: relative;
}

.donation-text a:hover {
  color: #aed581;
  transform: translateX(5px);
}

.donation-text a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #aed581;
  transition: width 0.3s ease;
}

.donation-text a:hover:after {
  width: 100%;
}

.donation-progress {
  background: rgba(255, 255, 255, 0.1);
  height: 20px;
  border-radius: 10px;
  margin: 30px 0;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8bc34a 0%, #a5d6a7 100%);
  border-radius: 10px;
  width: 100%;
  position: relative;
  transition: width 1.5s ease-in-out;
}

.progress-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition:
    right 0.3s ease,
    left 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
}

.progress-text.outside {
  right: auto;
  left: calc(100% + 10px);
  color: #8bc34a;
}

.progress-text.inside {
  right: 10px;
  left: auto;
  color: #ffffff;
}

.progress-percentage {
  position: absolute;
  top: -25px;
  right: 0;
  color: #8bc34a;
  font-weight: 700;
  font-size: 1rem;
}

.donation-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8bc34a;
  margin-bottom: 5px;
  font-family: "Playfair Display", serif;
  font-feature-settings: "tnum";
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.donation-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.donation-method {
  background: rgba(139, 195, 74, 0.1);
  padding: 15px;
  border-radius: 25px;
  width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(139, 195, 74, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.donation-method::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(139, 195, 74, 0.2),
    transparent
  );
  transition: all 0.5s ease;
  transform: rotate(45deg);
}

.donation-method:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(139, 195, 74, 0.6);
}

.donation-method:hover::before {
  left: 50%;
  top: 50%;
}

.method-icon {
  font-size: 2.5rem;
  color: #8bc34a;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.donation-method:hover .method-icon {
  transform: scale(1.2) rotate(5deg);
}

.donation-method h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 1.3rem;
}

.donation-method p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.donation-method strong {
  color: #8bc34a;
  font-size: 1rem;
  display: block;
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.3);
  padding: 38px 2px;
  border-radius: 10px;
  border: 2px solid rgba(139, 195, 74, 0.3);
  text-align: center;
  word-break: break-word;
}

.donation-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.donation-link:hover {
  background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  color: white !important;
  text-decoration: none;
}

.donation-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
}

.qr-code {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 3px solid rgba(139, 195, 74, 0.3);
  padding: 10px;
  background: white;
  margin: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-code:hover {
  transform: scale(1.05);
  border-color: #8bc34a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.qr-modal-content {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #8bc34a;
}

.bank-logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: #8bc34a;
  margin-bottom: 5px;
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-out;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.image-modal-content img:active {
  cursor: grabbing;
}

.modal-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.modal-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-btn.zoom-btn.active {
  background: rgba(74, 125, 106, 0.8);
}

.modal-navigation {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 10;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.image-counter {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.zoom-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
}

.image-modal-content img.zoomed {
  cursor: grab;
}

.image-modal-caption {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 1px 1px;
  border-radius: 20px;
  font-size: 11px;
  text-align: center;
  max-width: 99%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.image-modal-caption:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .modal-controls {
    top: 10px;
    right: 10px;
  }

  .modal-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .modal-navigation {
    bottom: 20px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .image-counter {
    bottom: 20px;
    left: 20px;
    font-size: 14px;
  }

  .zoom-indicator {
    top: 10px;
    left: 10px;
    font-size: 12px;
  }

  .image-modal-caption {
    bottom: 80px;
    font-size: 11px;
    padding: 8px 16px;
  }
}

.requisites-toggle {
  background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.requisites-toggle:hover {
  background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

.requisites-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.requisites-content.show {
  max-height: 70vh;
  overflow-y: auto;
}

.requisites-content::-webkit-scrollbar {
  width: 6px;
}
.requisites-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.requisites-content::-webkit-scrollbar-thumb {
  background: #8bc34a;
  border-radius: 3px;
}

.requisites-content::-webkit-scrollbar-thumb:hover {
  background: #7cb342;
}

.contact {
  padding: 70px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info p {
  margin-bottom: 20px;
  color: #2a2a2a;
}

.contact-info i {
  color: #4a7d6a;
  width: 20px;
  margin-right: 10px;
}

.contact-info a {
  color: #4a7d6a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.contact-info a:hover {
  color: #3a6d5a;
  transform: translateX(5px);
}

.contact-info a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #3a6d5a;
  transition: width 0.3s ease;
}

.contact-info a:hover:after {
  width: 100%;
}

.contact-info a i {
  width: 20px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.contact-info a:hover i {
  transform: scale(1.2);
  color: #3a6d5a;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form p {
  margin: 0px 0 0px;
  color: #2a2a2a;
}

.contact-form .btn {
  margin-top: 10px;
  width: 300px;
  text-align: center;
}

footer {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #4a7d6a;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1001;
  transition: left 0.3s ease;
  padding: 80px 30px 30px;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #4a7d6a;
}

.mobile-nav-links {
  list-style: none;
  margin-top: 40px;
}

.mobile-nav-links li {
  margin-bottom: 20px;
  text-align: center;
}

.mobile-nav-links a {
  text-decoration: none;
  color: #2a2a2a;
  font-size: 18px;
  font-weight: 600;
  display: block;
  padding: 12px 0;
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: #4a7d6a;
}

.mobile-name {
  font-family: "Montserrat", serif;
  font-size: 22px;
  color: #4a7d6a;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

@media (max-width: 1200px) {
  .nav-links li {
    margin-left: 15px;
  }

  .nav-links a {
    font-size: 14px;
  }
}
@media (max-width: 992px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1px 0;
    text-align: center;
  }

  .logo,
  .header-logo,
  .nav-container {
    margin-bottom: 1px;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }

  .donation-methods {
    flex-direction: column;
    align-items: center;
  }

  .carousel-container {
    height: auto;
    aspect-ratio: 3/2;
    max-height: 350px;
  }

  .news-card {
    flex: 0 0 calc(50% - 13px);
    min-height: 450px;
  }

  .news-carousel-container {
    padding: 0 45px;
  }

  .news-divider-card {
    flex: 0 0 calc(50% - 13px);
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 20px;
  }

  .news-card {
    flex: 0 0 100%;
    min-height: auto;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .news-carousel-container {
    padding: 0 40px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .news-divider-card {
    flex: 0 0 100%;
    min-height: 350px;
  }

  .divider-icon {
    font-size: 2.5rem;
  }

  .divider-text {
    font-size: 1rem;
  }

  .news-images-container.two-images,
  .news-images-container.three-images,
  .news-images-container.four-images,
  .news-images-container.five-images,
  .news-images-container.six-images {
    grid-template-columns: 1fr;
  }

  .image-modal-content,
  .qr-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    padding: 10px;
  }

  .image-modal-content img,
  .qr-modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 15px;
  }

  .mobile-header {
    padding: 12px 15px;
  }

  .mobile-menu {
    padding: 70px 20px 20px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .carousel-container {
    height: 200px;
  }

  .mobile-header-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .mobile-logo img {
    height: 35px;
  }

  .news-carousel-container {
    padding: 0 35px;
  }
}

:root {
  --header-side-width: clamp(380px, 34vw, 500px);
  --header-menu-gap: clamp(20px, 1.65vw, 30px);
  --header-name-tracking: clamp(0.01em, 0.18vw, 0.06em);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 10px 0;
}

.logo {
  flex: 0 1 var(--header-side-width);
  max-width: var(--header-side-width);
  min-width: 0;
  padding-left: 0;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: var(--header-name-tracking);
  font-size: clamp(20px, 1.5vw, 24px);
  position: static;
}

.header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 50px;
  margin-left: -30px;
  margin-top: -25px;
  text-align: center;
}

.header-logo img {
  height: 50px;
  width: auto;
  display: inline-block;
}

.nav-container {
  flex: 0 1 var(--header-side-width);
  max-width: var(--header-side-width);
  min-width: 0;
  display: flex;
  justify-content: center;
  padding-right: 0;
  margin-left: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--header-menu-gap);
  flex-wrap: nowrap;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 15px;
  white-space: nowrap;
}

.header-btn {
  margin: 0 0 0 18px;
}

@media (min-width: 1120px) and (max-width: 1252px) {
  :root {
    --header-side-width: clamp(390px, 36vw, 470px);
    --header-menu-gap: clamp(18px, 1.5vw, 24px);
    --header-name-tracking: 0.035em;
  }

  .logo {
    font-size: 21px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

@media (min-width: 836px) and (max-width: 1170px) {
  :root {
    --header-side-width: clamp(320px, 39vw, 380px);
    --header-menu-gap: clamp(11px, 1.35vw, 16px);
    --header-name-tracking: 0.005em;
  }

  .header-inner {
    gap: 10px;
    padding: 10px 0;
    min-height: 70px;
  }

  .logo {
    font-size: clamp(18px, 2vw, 20px);
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 13px;
  }
}

@media (max-width: 950px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}

.logo {
  font-size: 24px;
}

@media (min-width: 993px) and (max-width: 1200px) {
  .logo {
    font-size: 24px;
  }
}

@media (min-width: 836px) and (max-width: 992px) {
  .logo {
    font-size: 21px;
  }
}

.desktop-header.scrolled .header-inner {
  justify-content: flex-end;
  gap: 20px;
}

.desktop-header.scrolled .logo {
  flex: 1 1 auto;
  max-width: none;
  min-width: 120px;
}

.desktop-header.scrolled .nav-container {
  flex: 0 1 min(46vw, 520px);
  max-width: min(46vw, 520px);
  min-width: 0;
  justify-content: flex-end;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.desktop-header.scrolled .nav-links {
  gap: clamp(12px, 1.1vw, 20px);
}

.desktop-header.scrolled .header-btn {
  flex: 0 0 auto;
  margin-left: 0;
  position: static;
  z-index: 2;
}

@media (min-width: 836px) and (max-width: 992px) {
  .desktop-header.scrolled .nav-container {
    flex-basis: 340px;
    max-width: 340px;
  }

  .desktop-header.scrolled .nav-links {
    gap: 10px;
  }

  .desktop-header.scrolled .nav-links a {
    font-size: 13px;
  }
}

.desktop-header.scrolled .header-logo {
  left: var(--scroll-logo-left, 40%);
  top: 50%;
  margin-top: -25px;
  margin-left: 0;
  right: auto;
}

.horse-bg-icon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  font-size: clamp(260px, 34vw, 520px);
  opacity: 1;
}

.news-horse-bg {
  right: clamp(-120px, -8vw, -40px);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  color: rgba(255, 255, 255, 0.035);
}

.donation-horse-bg {
  left: clamp(-110px, -7vw, -35px);
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  color: rgba(255, 255, 255, 0.045);
}

.news .container,
.donation .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .horse-bg-icon {
    font-size: 250px;
  }

  .news-horse-bg {
    right: -95px;
    top: 56%;
  }

  .donation-horse-bg {
    left: -95px;
    top: 58%;
  }
}

.news-horse-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-content: space-around;
  justify-items: center;
  gap: 34px 54px;
  padding: 38px 46px;
  opacity: 0.9;
}

.news-horse-wallpaper i {
  font-size: clamp(42px, 4.6vw, 82px);
  color: rgba(255, 255, 255, 0.038);
  transform: rotate(-8deg);
}

.news-horse-wallpaper i:nth-child(2n) {
  transform: rotate(7deg) scale(0.86);
  color: rgba(255, 255, 255, 0.028);
}

.news-horse-wallpaper i:nth-child(3n) {
  transform: rotate(-14deg) scale(1.08);
  color: rgba(255, 255, 255, 0.046);
}

.news .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 993px) {
  .desktop-header:not(.scrolled) .header-logo img {
    transform: translateX(-10px);
  }

  .desktop-header:not(.scrolled) .header-logo img:hover {
    transform: translateX(-10px) scale(1.05);
  }
}

@media (max-width: 768px) {
  .news-horse-wallpaper {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 32px;
    padding: 34px 20px;
  }

  .news-horse-wallpaper i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.034);
  }
}

.news-card,
.service-card,
.review-card,
.donation-method,
.about-image img,
.contact-form .btn {
  box-shadow:
    0 26px 64px rgba(68, 54, 38, 0.24),
    0 10px 24px rgba(68, 54, 38, 0.16),
    0 2px 7px rgba(68, 54, 38, 0.1) !important;
}

.news-card:hover,
.service-card:hover,
.review-card:hover,
.donation-method:hover {
  box-shadow:
    0 34px 78px rgba(68, 54, 38, 0.3),
    0 14px 30px rgba(68, 54, 38, 0.18),
    0 3px 9px rgba(68, 54, 38, 0.12) !important;
}

.news-card,
.service-card,
.review-card,
.donation-method {
  position: relative;
  z-index: 1;
}

.reviews {
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(255, 255, 255, 0.7) 0,
      rgba(255, 255, 255, 0) 32%
    ),
    radial-gradient(
      circle at 84% 78%,
      rgba(216, 191, 156, 0.32) 0,
      rgba(216, 191, 156, 0) 36%
    ),
    linear-gradient(135deg, #f1e4d2 0%, #e6d5bd 52%, #f7efe3 100%) !important;
}

.review-card {
  background: rgba(255, 252, 247, 0.92) !important;
  border-color: rgba(183, 158, 124, 0.56) !important;
}

.review-header {
  border-bottom-color: rgba(183, 158, 124, 0.5) !important;
}

section {
  position: relative !important;
  overflow: visible !important;
}
section + section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  pointer-events: none;
  z-index: 5;

  background: linear-gradient(
    to bottom,
    rgba(65, 50, 34, 0.22) 0%,
    rgba(65, 50, 34, 0.13) 28%,
    rgba(65, 50, 34, 0.06) 58%,
    rgba(65, 50, 34, 0) 100%
  );
}
section + section::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: -20px;
  height: 46px;
  pointer-events: none;
  z-index: 4;

  background: radial-gradient(
    ellipse at center,
    rgba(65, 50, 34, 0.24) 0%,
    rgba(65, 50, 34, 0.12) 38%,
    rgba(65, 50, 34, 0) 72%
  );
  filter: blur(8px);
}
section > .container,
section > .section-title,
section > * {
  position: relative;
  z-index: 10;
}
@media (max-width: 835px) {
  section + section::before {
    height: 34px;
    background: linear-gradient(
      to bottom,
      rgba(65, 50, 34, 0.18) 0%,
      rgba(65, 50, 34, 0.09) 44%,
      rgba(65, 50, 34, 0) 100%
    );
  }

  section + section::after {
    left: 4%;
    right: 4%;
    top: -16px;
    height: 36px;
    filter: blur(7px);
  }
}

.desktop-header .nav-container {
  justify-content: flex-end;
}

.desktop-header .nav-links {
  width: 100%;
  justify-content: flex-end;
}

.desktop-header.scrolled .nav-container {
  justify-content: flex-end;
}

.desktop-header.scrolled .nav-links {
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .about-content,
  .contact-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 30px !important;
  }

  .about-content > *,
  .contact-content > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .about-content .carousel-container {
    order: 1 !important;
  }

  .about-content .about-text {
    order: 2 !important;
  }

  .contact-content .contact-info {
    order: 1 !important;
  }

  .contact-content .contact-form {
    order: 3 !important;
  }

  .contact-content img,
  .contact-content picture,
  .contact-content .contact-photo,
  .contact-content .contact-image {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
