/* =========================================================
   BNNRC Theme - Page Specific Styles
   ========================================================= */

/* --- Topbar --- */
.topbar {
  /* background-color: var(--color-topbar); */
  color: #1e293b;
  padding: 12px 0;
  font-size: 0.85rem;
  background-color: #168944;
}

.topbar .follow-text {
  font-weight: 700;
  /* color: #0f172a; */
  color: white;
  margin-right: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.topbar-socials a {
  /* color: #1e293b; */
  color: white;
  margin-right: 10px;
  background: rgba(0, 0, 0, 0.08);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-standard);
}

.topbar-socials a:hover {
  color: var(--color-white);
  background: var(--color-primary);
  transform: translateY(-2px);
}

.topbar-search {
  position: relative;
  display: flex;
  margin-left: 25px;
}

.topbar-search input[type="search"],
.topbar-search input[type="text"] {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 18px;
  border-radius: 20px;
  color: #0f172a;
  font-size: 0.75rem;
  width: 180px;
  transition: var(--transition-standard);
}

.topbar-search input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.topbar-search input:focus {
  border-color: #0f172a;
  outline: none;
  background: #ffffff;
  width: 200px;
}

.topbar-search button,
.topbar-search input[type="submit"] {
  background: transparent;
  border: none;
  color: #1e293b;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: var(--transition-standard);
}

.topbar-search button:hover,
.topbar-search input[type="submit"]:hover {
  color: var(--color-primary);
}

.topbar-info {
  color: #1e293b;
  gap: 30px;
  align-items: center;
}

.topbar-info i {
  font-size: 1.1rem;
  color: #0f172a;
}

.topbar-info a {
  color: #1e293b;
  font-weight: 600;
  transition: var(--transition-standard);
}

.topbar-info a:hover {
  color: var(--color-primary);
}

.topbar-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #009384 100%);
  color: var(--color-white) !important;
  padding: 8px 26px;
  border-radius: 50px;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 1);
}

.topbar-btn:hover {
  /* background: var(--color-bg-dark); */
  /* color: var(--color-white) !important; */
  transform: translateY(-2px);
  border-color: var(--color-white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

/* --- Banner / Hero Wrapper --- */
.banner-wrapper {
  position: relative;
  background-color: #084f5a;
  background-image: url('../images/hero_bg.svg');
  background-size: cover;
  background-position: 0 15px;
  background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 79, 90, 0.9);
  /* Semi-transparent color overlay to dim the SVG */
  z-index: 0;
  pointer-events: none;
}

/* --- Header / Navigation --- */
.site-header {
  position: absolute;
  width: 100%;
  z-index: 99;
  padding: 30px 0;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Internal Pages Header Styling */
body:not(.home) .site-header {
  background-color: var(--color-white);
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body:not(.home) .site-header .main-logo {
  display: none;
}

body:not(.home) .site-header .sticky-logo {
  display: block;
}

body:not(.home) .site-header .logo span {
  color: var(--color-primary);
}

body:not(.home) .site-header .main-nav>ul>li>a {
  color: var(--color-text-heading);
}

body:not(.home) .site-header .main-nav>ul>li>a::after {
  background-color: var(--color-primary);
}

body:not(.home) .site-header .main-nav>ul>li:hover>a,
body:not(.home) .site-header .main-nav>ul>li>a.active {
  color: var(--color-primary);
}


/* Sticky Header State */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(8, 79, 90, 0.08);
  animation: slideDownHeader 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDownHeader {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.is-sticky .logo-icon {
  max-width: 116px;
  min-width: 116px;
}

.sticky-logo {
  display: none;
}

.is-sticky .main-logo {
  display: none;
}

.is-sticky .sticky-logo {
  display: block;
}

.is-sticky .logo span {
  color: var(--color-primary);
}

.is-sticky .main-nav>ul>li>a {
  color: var(--color-text-heading);
}

.is-sticky .main-nav>ul>li>a::after {
  background-color: var(--color-primary);
}

.is-sticky .main-nav>ul>li:hover>a,
.is-sticky .main-nav>ul>li>a.active {
  color: var(--color-primary);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  min-width: 185px;
  max-width: 185px;
}

.logo span {
  font-family: var(--font-family-base);
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: -1px;
}

.main-nav>ul {
  display: flex;
  gap: 40px;
  align-items: center;
}

.main-nav>ul>li {
  position: relative;
  padding: 15px 0;
}

.main-nav>ul>li>a {
  font-family: var(--font-family-base);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.main-nav>ul>li>a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.main-nav>ul>li:hover>a::after,
.main-nav>ul>li>a.active::after {
  width: 100%;
}

.main-nav>ul>li:hover>a,
.main-nav>ul>li>a.active {
  color: var(--color-white);
}

/* Dropdown Submenu */
.submenu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 270px;
  background: var(--color-white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.submenu::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -20px;
  width: calc(100% + 40px);
  height: 40px;
  background: transparent;
}

.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu li {
  width: 100%;
  padding: 0;
}

.submenu li+li {
  border-top: 1px solid rgba(0, 0, 0, .85);
}

.submenu a {
  color: #3b4256;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 16px;
  display: block;
  transition: 0.3s all ease;
}

.submenu a:hover {
  /* color: var(--color-primary); */
  background-color: #168944;
  color: white;
}

.main-nav .has-dropdown>a .dropdown-caret {
  font-size: 0.75em;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.25s ease;
  display: inline-block;
}

.main-nav .has-dropdown:hover>a .dropdown-caret {
  transform: rotate(180deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  padding: 180px 0 64px 0;
  min-height: 90vh;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-layout-center {
  justify-content: center;
  text-align: center;
}

.hero-layout-center .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-layout-split {
  justify-content: space-between;
  text-align: left;
}

.hero-layout-split .hero-content {
  flex: 1;
  max-width: 60%;
  padding-right: 30px;
}

.hero-layout-split .hero-image-right {
  flex: 1;
  max-width: 40%;
}

@media (max-width: 991px) {
  .hero-inner.hero-layout-split {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }

  .hero-layout-split .hero-content,
  .hero-layout-split .hero-image-right {
    max-width: 100%;
    padding-right: 0;
  }
}

.hero-title {
  font-family: var(--font-family-serif);
  font-size: clamp(2.25rem, 2.2vw, 3rem);
  margin-bottom: 30px;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  animation: fadeUp 1s ease forwards;
}

.hero-desc {
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: clamp(1rem, 1vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: normal;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-btn {
  padding: 6px 16px;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(232, 173, 34, 0.3);
}

.hero-btn:hover {
  box-shadow: 0 15px 40px rgba(232, 173, 34, 0.5);
}

.hero-image-right {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 1s ease 0.3s forwards;
  text-align: right;
}

.hero-right-img {
  /* border-radius: var(--border-radius-lg); */
  /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
  max-height: 600px;
  object-fit: cover;
  width: 100%;
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About Section --- */
.about-desc ul {
  list-style: disc;
  margin-left: 15px;
}

.about-section {
  padding: 100px 0;
}

.about-tabs {
  padding-bottom: 30px;
}

/* About Tabs */
.about-tabs__nav {
  display: flex;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  gap: 0;
}

.about-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 20px 12px;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-tab-btn:hover:not(.active) {
  color: #168944;
}

.about-tab-btn.active {
  color: #168944;
  border-bottom-color: #168944;
}

.about-tab-panel {
  display: none;
}

.about-tab-panel.active {
  display: block;
}

.about-image-wrapper {
  position: relative;
  align-self: start;
  padding-right: 30px;
  padding-bottom: 30px;
}

.about-image-wrapper img {
  width: 100%;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}



.experience-box {
  position: absolute;
  bottom: 0;
  right: 0;
  /* background-color: var(--color-primary); */
  background-color: #168944;
  padding: 25px 45px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 172, 155, 0.4);
}

@media screen and (min-width: 1280px) {

  .experience-box {
    bottom: -70px;
  }

}

.exp-number {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 5.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-white);
  line-height: 1;
  margin-bottom: 2px;
}

.exp-text {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
}

.about-content {
  padding-left: 20px;
}

.about-subtitle {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.about-content h2 {
  font-family: var(--font-family-serif);
  font-size: 2.8rem;
  color: #333;
  line-height: 1.25;
  margin-bottom: 20px;
}

.zigzag-line {
  width: 40px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 10"><path d="M0 5 L5 0 L15 10 L25 0 L35 10 L40 5" fill="none" stroke="%2300ac9b" stroke-width="2"/></svg>') no-repeat center left;
  margin-bottom: 25px;
}

.about-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

.about-stats {
  margin-bottom: 35px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.stat-icon img,
.stat-icon svg {
  width: 100%;
  height: auto;
}

.stat-info h4 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 2px;
  font-family: var(--font-family-base);
  font-weight: 800;
}

.stat-info p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0;
  font-weight: 500;
}

/* --- Causes Section --- */
.causes-section {
  background-color: #f6f7fa;
}

.causes-title-wrapper {
  margin-bottom: 60px;
}

.section-heading {
  font-family: var(--font-family-serif);
  font-size: clamp(1.35rem, 1rem + 2vw, 2.2rem);
  color: #333;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }
}

@media (max-width: 575px) {
  .section-heading {
    font-size: clamp(1.15rem, 6vw, 1.4rem);
  }
}

.section-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.title-dash {
  width: 40px;
  height: 2px;
  background-color: var(--color-secondary);
}

/* Cause Card */
.cause-card {
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-standard);
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.cause-card__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #ddd;
}

.cause-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cause-card__category {
  position: absolute;
  bottom: 0;
  right: 15px;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 6px 6px 0 0;
  letter-spacing: 1px;
}

.cause-card__category.bg-blue {
  background-color: #4bc0eb;
}

.cause-card__category.bg-green {
  background-color: #2ecd71;
}

.cause-card__category.bg-pink {
  background-color: #ff5b84;
}

.cause-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-card__content .post-card__excerpt {
  padding-bottom: 18px;
}

.cause-card__title {
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.cause-card__title a {
  color: #333;
}

.cause-card__title a:hover {
  color: var(--color-magenta);
}

.progress-container {
  margin-bottom: 25px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
}

.cause-card__stats {
  font-size: 0.8rem;
  color: #777;
  font-weight: 500;
}

.stat-goal,
.stat-target {
  color: #555;
}

.cause-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

.cause-card__footer {
  border-top: 1px dashed #ddd;
  padding-top: 16px;
  margin-top: auto;
}

/* --- Video CTA Section --- */
.video-cta-section {
  background: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 1;
}

.z-10 {
  z-index: 10;
  position: relative;
}

.video-grid {
  display: flex;
  align-items: center;
  gap: 50px;
}

.video-text-block {
  flex-basis: 38%;
  flex-shrink: 0;
}

.video-text-block h2 {
  font-family: var(--font-family-serif);
  font-size: 4rem;
  line-height: 1.1;
  color: var(--color-white);
  margin-top: 5px;
}

.play-button-wrapper {
  display: flex;
  justify-content: center;
  z-index: 20;
  flex-shrink: 0;
  flex-basis: 20%;
}

.lightbox-trigger {
  display: flex;
  align-items: center;
  color: var(--color-white);
  gap: 15px;
}

.play-text {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.play-arrow {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-standard);
}

.play-arrow::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition-standard);
}

.lightbox-trigger:hover .play-arrow {
  border-color: var(--color-white);
  transform: translateX(10px);
}

.lightbox-trigger:hover .play-arrow::before {
  background: var(--color-white);
  width: 60px;
  left: -60px;
}

.lightbox-trigger:hover {
  color: var(--color-white);
}

.laptop-mockup-wrapper {
  display: flex;
  justify-content: flex-end;
}

.laptop-img {
  max-width: inherit;
  margin-left: -18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  height: auto;
  max-height: 590px;
}

/* --- Lightbox Modal --- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-standard);
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
}

.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  background: #000;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

/* --- Gallery Section --- */
.gallery-section {
  padding-bottom: 0;
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gallery-row {
  display: flex;
  width: 100%;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  height: 350px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.gallery-overlay-bg {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 172, 155, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-in-out;
  z-index: -1;
}

.gallery-item:hover .gallery-overlay-bg {
  transform: scaleX(1);
}

.gallery-overlay-content {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease-in-out;
  transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: #fff;
  font-family: var(--font-family-serif);
  font-size: 1.8rem;
  margin-bottom: 5px;
  line-height: 1.2;
}

.gallery-overlay span {
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 700;
}

.item-33 {
  width: 33.3333%;
}

.item-50 {
  width: 50%;
}

.item-25 {
  width: 25%;
}

/* --- Help Form Section --- */
.help-form-section {
  background: url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
  position: relative;
  padding: 100px 0;
  text-align: left;
}

.help-form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.9);
  z-index: 1;
}

.help-form-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.help-form-text {
  flex-basis: 35%;
}

.help-form-text h2 {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.help-form-text .text-light {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.help-form-wrapper {
  flex-basis: 60%;
}

.help-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background-color: #333333;
  color: #fff;
  border: none;
  font-family: var(--font-family-base);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  transition: var(--transition-standard);
  appearance: none;
}

.form-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--color-magenta);
}

.form-input::placeholder {
  color: #fff;
}

select.form-input {
  background: #333333 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 15px center;
  background-size: 10px;
  cursor: pointer;
}

select.form-input option {
  background-color: #333333;
  color: #fff;
}

.form-submit-btn {
  width: 100%;
  border-radius: 2px;
  font-size: 0.95rem;
  padding: 16px 20px;
}

/* --- Annual Numbers Section --- */
.annual-numbers-section {
  background-color: #fff;
  background-image: radial-gradient(#ebebeb 2px, transparent 2px);
  background-size: 30px 30px;
}

.annual-img-wrapper {
  overflow: hidden;
}

.annual-stats-wrapper {
  padding-left: 20px;
}

.annual-stat-card {
  display: flex;
  flex-direction: column;
  background: #fbfbfb;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.annual-stat-card:last-child {
  margin-bottom: 0;
}

.stat-top-area {
  display: flex;
  align-items: stretch;
}

.stat-icon-box {
  width: 140px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 3rem;
}

.stat-top-info {
  flex-grow: 1;
  padding: 25px 30px;
  border-bottom: 1px solid #eaeaea;
}

.stat-bottom-area {
  padding: 25px 30px;
}

.stat-title-row h4 {
  font-family: var(--font-family-serif);
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.stars {
  color: var(--color-secondary);
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.stat-rating-row {
  margin-top: 5px;
}

.rating-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.rating-based {
  font-size: 0.65rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
}

.stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
}

.striped-progress .progress-bar-bg {
  height: 8px;
  background-color: #eaeaea;
  border-radius: 4px;
  overflow: hidden;
}

.striped-progress .progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  background-image: repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2) 5px,
      transparent 5px,
      transparent 10px);
  border-radius: 4px;
}

.stat-finances {
  font-size: 0.75rem;
  color: #777;
  font-weight: 600;
}

/* --- Testimonial Section --- */

.testimonial-card {
  background-color: #ffffff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: 2px;
}

.testimonial-quote-icon {
  color: #222;
  font-size: 3.5rem;
  line-height: 1;
}

.testimonial-top .stars {
  font-size: 1rem;
}

.testimonial-body p {
  font-family: var(--font-family-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: #777;
  line-height: normal;
  margin: 25px 0 35px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h5 {
  font-family: var(--font-family-base);
  font-size: 1.1rem;
  color: var(--color-text-heading);
  margin: 0 0 3px 0;
  font-weight: 700;
}

.author-info span {
  font-family: var(--font-family-base);
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* --- Partners Slider Section --- */
.partners-section {
  padding-bottom: 80px;
  padding-top: 80px;
}

.partner-logo {
  background-color: #f7f8f9;
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-standard);
  border-radius: 2px;
}

.partner-logo img {
  max-width: 80%;
  max-height: 80px;
  object-fit: contain;
}

.partner-logo:hover {
  background-color: #ededed;
  transform: translateY(-5px);
}

.partner-logo i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.partner-logo span {
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #333;
}

/* --- Scroll Top Button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 46px;
  height: 46px;
  background-color: #084f5a;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-standard);
  box-shadow: 0 6px 20px rgba(8, 79, 90, 0.4);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 173, 34, 0.45);
}

/* --- Site Footer --- */
.site-footer {
  background-color: #006eb5 !important;
  /* Brand Blue */
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  /* content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.svg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0; */
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-widget {
  min-width: 0;
}

/* Brand Column */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 230px;
}

.footer-logo-icon {
  width: 38px;
  height: 50px;
  flex-shrink: 0;
}

.footer-logo-name {
  font-size: 1.85rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  line-height: 1;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: normal;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.footer-follow-label {
  margin-right: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Titles */
.footer-title {
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* Dashed Link Lists */
.dashed-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashed-links li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.dashed-links li:last-child {
  border-bottom: none;
}

.dashed-links a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-standard);
  line-height: 1.4;
}

.dashed-links a:hover {
  color: #e8ad22;
  /* Yellow brand accent */
  padding-left: 8px;
}

/* Social Links */
.footer-social-box .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 1.15rem;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-standard);
}

.footer-social-box .social-links a:hover {
  color: #fff;
  background: #e8ad22;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(232, 173, 34, 0.4);
}

/* Newsletter column */
.footer-newsletter {
  margin-top: -5px;
}

.newsletter-label {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-input {
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 16px 22px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--color-text-heading);
  transition: var(--transition-standard);
}

.newsletter-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-secondary);
}

.newsletter-input::placeholder {
  color: #64748b;
}

.newsletter-btn {
  background-color: #ffffff;
  color: #006eb5;
  border: none;
  border-radius: 50px;
  padding: 16px 30px;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-standard);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-btn:hover {
  background-color: #f0f6fb;
  color: #00558c;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copyright p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-bottom-menu li {
  display: flex;
  align-items: center;
}

.footer-bottom-menu li:not(:last-child):after {
  content: "|";
  color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
  font-size: 0.75rem;
}

.footer-bottom-menu li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-standard);
}

.footer-bottom-menu li a:hover {
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-bottom-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-bottom-menu li:after {
    display: none;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Latest Posts Section --- */
.btn-browse-all {
  background-color: var(--color-secondary);
  color: var(--color-text-heading);
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-standard);
}

.btn-browse-all i {
  transition: transform 0.2s ease;
}

.btn-browse-all:hover {
  box-shadow: 0 6px 20px rgba(232, 173, 34, 0.45);
  color: var(--color-text-heading);
}

.btn-browse-all:hover i {
  transform: translateX(4px);
}

.post-card {
  /* background: var(--color-white); */
  /* border: 1px solid var(--color-border); */
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.post-card__img {
  overflow: hidden;
  height: 210px;
  border-radius: var(--border-radius-sm);
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__img img {
  transform: scale(1.04);
}

.post-card__body {
  padding: 22px 0 26px;
}

.post-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.post-card__category:hover {
  color: var(--color-primary);
}

.post-card__title {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 10px;
}

.post-card__title a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.post-card__title a:hover {
  color: var(--color-secondary);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: normal;
  margin: 0;
}

/* =========================================================
   Single & Page Templates
   ========================================================= */

.site-main.page-content,
.site-main.post-content,
.site-main.full-width-content {
  padding: 164px 0 100px;
  background-color: var(--color-bg-light);
  min-height: 70vh;
}

.home .site-main.full-width-content {
  padding: 0;
}



.entry-header {
  margin-bottom: 40px;
}

.entry-title {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  color: var(--color-text-heading);
  margin-bottom: 15px;
  line-height: 1.2;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-text-body);
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.entry-meta i {
  color: var(--color-primary);
  margin-right: 5px;
}

.post-featured-image {
  margin-bottom: 50px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 1.1rem;
  line-height: normal;
  color: var(--color-text-body);
}

.entry-content p {
  margin-bottom: 25px;
}

.entry-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-body);
}

.entry-footer span {
  margin-right: 20px;
}

@media (max-width: 768px) {

  .site-main.page-content,
  .site-main.post-content,
  .site-main.full-width-content {
    padding: 140px 0 60px;
  }


  .entry-title {
    font-size: 2rem;
  }
}

/* --- Featured Publications Block --- */
.publications-section {
  background-color: #084f5a;
  padding: 80px 0;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1199px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .publications-grid {
    grid-template-columns: 1fr;
  }
}

.publication-card {
  transition: transform 0.3s ease;
  height: 100%;
}

.publication-card:hover {
  transform: translateY(-10px);
}

.publication-card__link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publication-card__cover-wrapper {
  background: white;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #eef2f6;
  border-bottom: none;
  flex-grow: 1;
}

.publication-card__cover {
  position: relative;
  width: 100%;
  height: 200px;
  /* aspect-ratio: 1 / 1.4;
  transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.15),
    5px 5px 10px rgba(0, 0, 0, 0.1); */
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* border-radius: 2px; */
  overflow: hidden;
}

.publication-card:hover .publication-card__cover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.publication-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-cover {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px dashed #e2e8f0;
}

.publication-card__body {
  background-color: var(--color-bg-dark);
  padding: 30px 25px;
  min-height: 160px;
  display: flex;
  align-items: flex-start;
  border-bottom: 4px solid var(--color-secondary);
  transition: var(--transition-standard);
}

.publication-card:hover .publication-card__body {
  background-color: var(--color-primary);
}

.publication-card__title {
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* ── Posts Slider — Splide arrow overrides ──────────────────────────────── */
.latest-posts-section .splide__track {
  margin: 0 56px;
}

.latest-posts-section .splide__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 1;
  top: 35%;
  box-shadow: 0 4px 14px rgba(22, 137, 68, 0.3);
  transition: var(--transition-standard);
}

.latest-posts-section .splide__arrow svg {
  fill: var(--color-white);
  width: 15px;
  height: 15px;
}

.latest-posts-section .splide__arrow:hover:not(:disabled) {
  background: var(--color-green-hover);
  box-shadow: 0 6px 20px rgba(22, 137, 68, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.latest-posts-section .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.latest-posts-section .splide__arrow--prev {
  left: 0;
}

.latest-posts-section .splide__arrow--next {
  right: 0;
}

@media (max-width: 640px) {
  .latest-posts-section .splide__track {
    margin: 0 48px;
  }

  .latest-posts-section .splide__arrow {
    width: 38px;
    height: 38px;
  }
}

/* ── Partners Slider — Splide arrow overrides ────────────────────────────── */
.partners-section .splide__track {
  margin: 0 56px;
}

.partners-section .splide__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 1;
  top: 50%;
  box-shadow: 0 4px 14px rgba(22, 137, 68, 0.3);
  transition: var(--transition-standard);
}

.partners-section .splide__arrow svg {
  fill: var(--color-white);
  width: 15px;
  height: 15px;
}

.partners-section .splide__arrow:hover:not(:disabled) {
  background: var(--color-green-hover);
  box-shadow: 0 6px 20px rgba(22, 137, 68, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.partners-section .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.partners-section .splide__arrow--prev {
  left: 0;
}

.partners-section .splide__arrow--next {
  right: 0;
}

@media (max-width: 640px) {
  .partners-section .splide__track {
    margin: 0 48px;
  }

  .partners-section .splide__arrow {
    width: 38px;
    height: 38px;
  }
}

/* ── Cover Slider ─────────────────────────────────────────────────────────── */
.cover-slider-section {
  padding-bottom: 0;
}

/* Slider is constrained to the .container; arrows sit inside the edges. */
.cover-slider-splide {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.cover-slide {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1140 / 480;
  overflow: hidden;
}

.cover-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption overlay */
.cover-slide__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 40px 56px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.cover-slide__title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.cover-slide__text {
  margin: 0 0 16px;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.cover-slide__btn {
  display: inline-block;
}

/* Arrows — kept within the container width so they never overflow */
.cover-slider-splide .splide__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-standard);
}

.cover-slider-splide .splide__arrow svg {
  fill: var(--color-white);
  width: 16px;
  height: 16px;
}

.cover-slider-splide .splide__arrow:hover:not(:disabled) {
  background: var(--color-green-hover);
  box-shadow: 0 6px 20px rgba(22, 137, 68, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.cover-slider-splide .splide__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cover-slider-splide .splide__arrow--prev {
  left: 18px;
}

.cover-slider-splide .splide__arrow--next {
  right: 18px;
}

.cover-slider-splide .splide__pagination {
  bottom: 14px;
}

.cover-slider-splide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.cover-slider-splide .splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.4);
}

@media (max-width: 640px) {
  .cover-slide__caption {
    padding: 20px 24px;
  }

  .cover-slide__title {
    font-size: 1.3rem;
  }

  .cover-slide__text {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .cover-slider-splide .splide__arrow {
    width: 38px;
    height: 38px;
  }

  .cover-slider-splide .splide__arrow--prev {
    left: 10px;
  }

  .cover-slider-splide .splide__arrow--next {
    right: 10px;
  }
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-standard);
  flex-shrink: 0;
}

body:not(.home) .mobile-menu-toggle,
.is-sticky .mobile-menu-toggle {
  color: var(--color-text-heading);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-nav-logo .logo-icon {
  min-width: auto;
  max-width: 130px;
  height: auto;
}

.mobile-nav-logo span {
  font-family: var(--font-family-base);
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.mobile-menu-close {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-heading);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-standard);
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.mobile-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.mobile-nav-menu>ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu>ul>li {
  border-bottom: 1px solid #f0f4f8;
}

.mobile-nav-menu>ul>li>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-family: var(--font-family-base);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-heading);
  transition: color 0.2s ease;
}

.mobile-nav-menu>ul>li>a:hover,
.mobile-nav-menu>ul>li>a.active {
  color: var(--color-primary);
}

/* Submenu accordion */
.mobile-nav-menu .submenu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: #f8fafc;
  padding: 0;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: auto;
  transition: max-height 0.3s ease;
}

.mobile-nav-menu .submenu::after {
  display: none;
}

.mobile-nav-menu .submenu li+li {
  border-top: 1px solid #eef2f6;
}

.mobile-nav-menu .submenu a {
  padding: 11px 24px 11px 36px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-body);
}

.mobile-nav-menu .submenu a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.mobile-nav-menu .has-dropdown>a .dropdown-caret {
  transition: transform 0.25s ease;
}

.mobile-nav-menu .has-dropdown.is-open>a .dropdown-caret {
  transform: rotate(180deg);
}

/* Topbar search toggle (mobile icon-only) */
.topbar-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 12px;
  font-size: 1rem;
  transition: var(--transition-standard);
  flex-shrink: 0;
}

.topbar-search-toggle:hover,
.topbar-search-toggle.is-active {
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-secondary);
}

/* Topbar search drawer (expands below topbar on mobile) */
.topbar-search-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.topbar-search-drawer.is-open {
  max-height: 70px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-search-drawer-form {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.topbar-search-drawer-form input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  outline: none;
}

.topbar-search-drawer-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.topbar-search-drawer-form button {
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-standard);
  flex-shrink: 0;
}

.topbar-search-drawer-form button:hover {
  color: var(--color-secondary);
}

/* Mobile nav donate footer */
.mobile-nav-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  flex-shrink: 0;
}

.mobile-donate-btn {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide topbar donate button — moved into mobile nav footer */
  .topbar-info {
    display: none !important;
  }

  /* Hide "Follow Us" label */
  .follow-text {
    display: none;
  }

  /* Hide desktop search form, show icon toggle */
  .topbar-search {
    display: none;
  }

  .topbar-search-toggle {
    display: inline-flex;
  }

  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }
}