/* FingerCoder site extras
   Brand colors (match main.css):
   --fc-primary: #33cc99
   --fc-primary-dark: #02c39a
   --fc-text: #212121
   --fc-dark: #1a1a1a
   --fc-soft: #f4fcf9
*/

:root {
  --fc-primary: #33cc99;
  --fc-primary-dark: #02c39a;
  --fc-primary-soft: #e8f5f0;
  --fc-primary-soft-2: #f4fcf9;
  --fc-text: #212121;
  --fc-dark: #1a1a1a;
  --fc-muted: #666;
  --fc-border: #dcefe9;
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   Back-to-top button
   ========================================================= */
a.back-to-top {
  display: none;
  position: fixed;
  z-index: 999;
  bottom: 1.35rem;
  left: 1.25rem;
  right: auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  text-decoration: none !important;
  background: linear-gradient(145deg, #33cc99 0%, #02c39a 100%);
  color: #fff !important;
  box-shadow:
    0 4px 14px rgba(51, 204, 153, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease,
    background 0.22s ease;
  opacity: 0.96;
}

a.back-to-top i {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
  font-size: 20px !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.22s ease;
}

a.back-to-top:hover,
a.back-to-top:focus {
  text-decoration: none !important;
  transform: translateY(-3px);
  opacity: 1;
  background: linear-gradient(145deg, #3ad6a4 0%, #33cc99 100%);
  box-shadow:
    0 10px 24px rgba(51, 204, 153, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  outline: none;
}

a.back-to-top:hover i,
a.back-to-top:focus i {
  transform: translateY(-2px);
  background: transparent !important;
}

a.back-to-top:focus-visible {
  outline: 2px solid #0f2e26;
  outline-offset: 3px;
}

a.back-to-top:active {
  transform: translateY(-1px) scale(0.97);
}

/* soft ring pulse (subtle, brand) */
a.back-to-top::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1.5px solid rgba(51, 204, 153, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

a.back-to-top:hover::after {
  opacity: 1;
  transform: scale(1.04);
}

@media (max-width: 575px) {
  a.back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    left: 0.9rem;
    border-radius: 12px;
  }

  a.back-to-top i {
    font-size: 18px !important;
  }
}

/* Faster preloader exit */
#preloader.preloader-hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ========== Equal-height event cards ========== */
/* Parent keeps Bootstrap .row; columns stretch to same height */
#home-events.row,
#all-events.row,
.events-row.row,
.events-row {
  align-items: stretch;
}

.event-col {
  display: flex;
  margin-bottom: 1.5rem;
  scroll-margin-top: 90px;
}

.event-card.about-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--fc-border, #dcefe9);
  box-shadow: 0 2px 12px rgba(2, 195, 154, 0.08);
}

.event-card.about-item:hover {
  border-color: var(--fc-primary, #33cc99);
  box-shadow: 0 8px 22px rgba(51, 204, 153, 0.16);
}

.event-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5f0, #f4fcf9);
  flex-shrink: 0;
}

.event-poster-wrap img.event-poster,
.event-poster {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.event-kind-badge,
.event-city-badge {
  position: absolute;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.event-kind-badge {
  top: 10px;
  right: 10px;
  background: rgba(15, 46, 38, 0.88);
  color: #33cc99;
  border: 1px solid rgba(51, 204, 153, 0.45);
}

.event-city-badge {
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f2e26;
  border: 1px solid rgba(51, 204, 153, 0.35);
}

.events-city-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}

.events-city-filters .filter-btn.active {
  background: #33cc99 !important;
  border-color: #33cc99 !important;
  color: #0f2e26 !important;
}

/* =========================================================
   Videos (Aparat talks)
   ========================================================= */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-card {
  background: #fff;
  border: 1px solid var(--fc-border, #dcefe9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 195, 154, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  border-color: #33cc99;
  box-shadow: 0 12px 28px rgba(51, 204, 153, 0.16);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #0f2e26;
  overflow: hidden;
}

.video-thumb img,
.video-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-fallback {
  background: linear-gradient(135deg, #0f2e26, #33cc99);
}

.video-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(51, 204, 153, 0.92);
  color: #0f2e26;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-thumb:hover .video-play-icon {
  transform: scale(1.08);
  background: #33cc99;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.video-body {
  padding: 0.9rem 1rem 1.1rem;
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-kind {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f2e26;
  background: #e8f5f0;
  border: 1px solid rgba(51, 204, 153, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.video-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.45rem !important;
  line-height: 1.45;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.75rem !important;
}

.video-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.video-event-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a9e76;
}

.video-embed-host {
  padding: 0 0.75rem 0.85rem;
}

.video-embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-close-btn {
  margin-top: 0.5rem;
}

.video-card.is-playing {
  grid-column: 1 / -1;
}

.video-card.is-playing .video-title {
  -webkit-line-clamp: 3;
}

/* Home videos preview strip */
.home-videos-preview .videos-grid,
.home-videos-preview .home-videos-grid {
  margin-top: 0.5rem;
}

.video-card--home .video-thumb {
  text-decoration: none;
  color: inherit;
}

.home-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.event-body.about-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.15rem;
  text-align: right;
}

.event-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.35rem !important;
  line-height: 1.45;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-title a {
  color: #212121;
}

.event-title a:hover {
  color: #33cc99;
}

.event-time {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.event-topic {
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  margin: 0 0 0.5rem !important;
  flex: 0 0 auto;
  min-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-speaker {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.75rem !important;
  min-height: 2.6em;
  line-height: 1.4;
  color: #333;
}

.event-label {
  color: #888;
  font-weight: 500;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.event-actions .event-btn {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.8rem !important;
  padding: 0.4rem 0.55rem !important;
  line-height: 1.3;
}

.event-actions .event-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline-event {
  background: transparent !important;
  border: 1px solid #33cc99 !important;
  color: #33cc99 !important;
}

.btn-outline-event:hover {
  background: #33cc99 !important;
  color: #fff !important;
}

.event-highlight {
  outline: 2px solid #33cc99;
  outline-offset: 4px;
  border-radius: 8px;
}

.meeting-highlight {
  outline: 2px solid #33cc99;
  outline-offset: 6px;
  border-radius: 12px;
}

/* ========== Page hero ========== */
.page-hero {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f2e26 45%, #33cc99 160%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-hero p {
  opacity: 0.9;
  margin-bottom: 0;
}

.page-hero .breadcrumb-nav {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.page-hero .breadcrumb-nav a {
  color: #b8f0dd;
}

.page-hero .breadcrumb-nav span {
  color: #ccc;
  margin: 0 0.35rem;
}

/* ========== Gallery filters ========== */
#gallery-filters {
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.filter-label {
  font-weight: 700;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.filter-btn {
  padding: 0.25rem 0.65rem !important;
  font-size: 0.8rem !important;
  opacity: 0.75;
  background: #f5f5f5 !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
}

.filter-btn.active,
.filter-btn:hover {
  opacity: 1;
  background: #33cc99 !important;
  color: #fff !important;
  border-color: #33cc99 !important;
}

.filter-events {
  max-height: 120px;
  overflow-y: auto;
}

/* ========== Meeting photo groups (gallery page) ========== */
#gallery-grid.gallery-groups,
.gallery-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
}

.meeting-box-wrap {
  width: 100%;
  margin-bottom: 1.75rem;
  scroll-margin-top: 90px;
}

.meeting-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(2, 195, 154, 0.08);
  overflow: hidden;
  border: 1px solid var(--fc-border, #dcefe9);
}

.meeting-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
}

.meeting-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.45rem 0 0.25rem;
  color: #212121;
  line-height: 1.4;
}

.meeting-box-topic {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
  max-width: 42rem;
}

.meeting-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.meeting-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  padding: 0.85rem;
  background: #f7f7f9;
}

@media (min-width: 576px) {
  .meeting-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  .meeting-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.meeting-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meeting-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.meeting-thumb.is-poster {
  outline: 2px solid #33cc99;
  outline-offset: -2px;
}

.meeting-thumb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #33cc99;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  line-height: 1.3;
}

.gallery-badge {
  display: inline-block;
  background: #33cc99;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.gallery-city,
.gallery-type {
  display: inline-block;
  font-size: 0.75rem;
  color: #666;
  background: #f0f0f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}

/* legacy single-card gallery (home preview) */
.gallery-card {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #fff;
  height: 100%;
}

.gallery-card .img-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.gallery-card .img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#gallery-count {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Footer / contact social — linear green icons (#33cc99) */
.footer-social,
.footer-area .footer-social,
#contact .footer-social {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li,
.footer-area .footer-social li {
  display: inline-block;
  margin: 0 !important;
}

.footer-social a,
.footer-social .coshal,
.footer-area .footer-social li a,
.footer-area .footer-social li .coshal {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0;
  border-radius: 12px !important;
  border: 1.5px solid rgba(51, 204, 153, 0.55) !important;
  background: rgba(51, 204, 153, 0.08) !important;
  color: #33cc99 !important;
  font-size: inherit !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.footer-social a:hover,
.footer-social .coshal:hover,
.footer-area .footer-social li a:hover,
.footer-area .footer-social li .coshal:hover,
.footer-area .footer-social li .linkedin:hover {
  background: #33cc99 !important;
  border-color: #33cc99 !important;
  color: #0f2e26 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(51, 204, 153, 0.3);
  text-decoration: none;
}

.footer-social a img,
.footer-social .coshal img,
.footer-area .footer-social li a img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  display: block;
  margin: 0 auto;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* On hover: green stroke icon → dark on solid green button */
.footer-social a:hover img,
.footer-social .coshal:hover img,
.footer-area .footer-social li a:hover img {
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}

/* Contact section social row */
#contact .footer-social {
  justify-content: center;
  margin-top: 0.75rem;
}

/* =========================================================
   Navbar — full layout fix (desktop overflow + mobile slicknav)
   ========================================================= */

/* Base bar */
#header-wrap .navbar.scrolling-navbar {
  padding: 0;
  min-height: 64px;
  z-index: 1030;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

#header-wrap .navbar .container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center; /* منو در وسط */
  width: 100%;
  max-width: 1140px;
}

#header-wrap .navbar-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: absolute; /* لوگو ثابت سمت راست */
  top: 50%;
  right: 15px;
  left: auto;
  transform: translateY(-50%);
  z-index: 3;
  min-height: 56px;
  padding: 6px 0;
  margin: 0;
}

#header-wrap .navbar-brand {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.navbar-brand img,
#header-wrap .navbar-brand img {
  width: auto !important;
  max-width: 130px;
  height: 40px !important;
  object-fit: contain;
  display: block;
}

/* Desktop menu: centered in the bar */
#header-wrap .navbar-collapse {
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 160px); /* جا برای لوگو سمت راست */
  justify-content: center;
  margin: 0 auto;
}

#header-wrap .navbar-expand-lg .navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0;
}

#header-wrap .navbar-expand-lg .navbar-nav .nav-item {
  margin: 0;
  flex: 0 0 auto;
}

#header-wrap .navbar-expand-lg .navbar-nav .nav-link {
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  padding: 0.65rem 0.45rem !important;
  margin: 0 !important;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0;
  color: #fff;
  background: transparent;
}

/* Active underline indicator — smaller to match compact links */
#header-wrap .navbar-expand-lg .navbar-nav li > a:before {
  top: 6px;
  width: 12px;
  margin-left: -6px;
  left: 50%;
}

#header-wrap .navbar-expand-lg .navbar-nav .nav-link:hover,
#header-wrap .navbar-expand-lg .navbar-nav .nav-link:focus,
#header-wrap .navbar-nav .nav-item.active > .nav-link,
#header-wrap .navbar-nav .nav-item .nav-link[aria-current='page'] {
  color: #33cc99 !important;
}

/* Scrolled (sticky) — white bar + dark text */
#header-wrap .top-nav-collapse {
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  min-height: 58px;
}

#header-wrap .top-nav-collapse .navbar-nav .nav-link {
  color: #212121 !important;
}

#header-wrap .top-nav-collapse .navbar-nav .nav-link:hover,
#header-wrap .top-nav-collapse .navbar-nav .nav-item.active > .nav-link,
#header-wrap .top-nav-collapse .navbar-nav .nav-link[aria-current='page'] {
  color: #33cc99 !important;
}

/* Inner pages: solid bar from the start (no dark slider behind) */
#header-wrap .navbar.nav-solid,
body:not([data-page='home']) #header-wrap .scrolling-navbar {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(15, 46, 38, 0.08);
}

#header-wrap .navbar.nav-solid .navbar-nav .nav-link,
body:not([data-page='home']) #header-wrap .navbar-nav .nav-link {
  color: #212121 !important;
}

#header-wrap .navbar.nav-solid .navbar-nav .nav-link:hover,
#header-wrap .navbar.nav-solid .navbar-nav .nav-item.active > .nav-link,
#header-wrap .navbar.nav-solid .navbar-nav .nav-link[aria-current='page'],
body:not([data-page='home']) #header-wrap .navbar-nav .nav-link:hover,
body:not([data-page='home']) #header-wrap .navbar-nav .nav-item.active > .nav-link,
body:not([data-page='home']) #header-wrap .navbar-nav .nav-link[aria-current='page'] {
  color: #33cc99 !important;
}

/* Hide native Bootstrap toggler — SlickNav owns mobile UI */
#header-wrap .navbar-toggler {
  display: none !important;
}

/* Source list for SlickNav only */
#header-wrap .mobile-menu {
  display: none !important;
}

/* Desktop: never show SlickNav chrome */
@media (min-width: 992px) {
  #header-wrap .slicknav_menu,
  .slicknav_menu {
    display: none !important;
  }

  #header-wrap .navbar-collapse {
    display: flex !important;
    justify-content: center;
  }

  #header-wrap .navbar-header {
    position: absolute;
    top: 50%;
    right: 15px;
    left: auto;
    transform: translateY(-50%);
  }
}

/* ---------- Medium desktop: slightly tighter ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  #header-wrap .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 12.5px !important;
    padding: 0.6rem 0.32rem !important;
  }

  #header-wrap .navbar-brand img {
    max-width: 110px;
    height: 36px !important;
  }
}

/* ---------- Tablet / mobile: SlickNav ---------- */
@media (max-width: 991.98px) {
  #header-wrap .navbar.scrolling-navbar {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(15, 46, 38, 0.1);
    min-height: 58px;
  }

  #header-wrap .navbar .container {
    display: block;
    position: relative;
    padding-top: 4px;
    padding-bottom: 4px;
    justify-content: unset;
  }

  #header-wrap .navbar-header {
    width: 100%;
    min-height: 50px;
    display: block;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
  }

  /* Hide desktop collapse menu on small screens */
  #header-wrap .navbar-collapse {
    display: none !important;
  }

  #header-wrap .navbar-brand {
    position: absolute !important;
    top: 50%;
    right: 0;
    left: auto;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
    padding: 0;
  }

  #header-wrap .navbar-brand img {
    max-width: 112px;
    height: 36px !important;
  }

  /* SlickNav chrome */
  #header-wrap .slicknav_menu,
  .slicknav_menu {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative;
    z-index: 5;
  }

  #header-wrap .slicknav_btn,
  .slicknav_btn {
    float: left !important;
    margin: 8px 0 8px 4px !important;
    padding: 8px 10px !important;
    border: 1.5px solid #33cc99 !important;
    border-radius: 10px !important;
    background: #f4fcf9 !important;
    height: auto !important;
    line-height: 1 !important;
    width: auto !important;
  }

  #header-wrap .slicknav_menu .slicknav_icon-bar,
  .slicknav_menu .slicknav_icon-bar {
    background: #33cc99 !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 2px;
  }

  #header-wrap .slicknav_nav,
  .slicknav_nav {
    margin: 8px 0 0 !important;
    padding: 0.35rem 0 0.5rem !important;
    width: 100% !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 46, 38, 0.12);
    border: 1px solid #dcefe9;
    clear: both;
  }

  #header-wrap .slicknav_nav a,
  .slicknav_nav a {
    color: #212121 !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    padding: 0.7rem 1rem !important;
    margin: 0 !important;
    border-radius: 0;
    border-bottom: 1px solid #eef6f2;
    text-align: right;
  }

  #header-wrap .slicknav_nav li:last-child a,
  .slicknav_nav li:last-child a {
    border-bottom: 0;
  }

  #header-wrap .slicknav_nav a:hover,
  #header-wrap .slicknav_nav .active a,
  .slicknav_nav a:hover,
  .slicknav_nav .active a {
    color: #0f2e26 !important;
    background: #e8f5f0 !important;
  }
}

.d-none {
  display: none !important;
}

.home-gallery-preview .gallery-box {
  margin-bottom: 1rem;
}

/* Speak CTA emphasis */
#speak-cta,
[data-speak-cta] {
  white-space: nowrap;
}

/* =========================================================
   FAQ — fixed accordion (overrides broken .accordion styles)
   ========================================================= */
#faq {
  background: var(--fc-primary-soft-2, #f4fcf9);
}

#faq .faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#faq .faq-item {
  background: #fff;
  border: 1px solid var(--fc-border, #dcefe9);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(2, 195, 154, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#faq .faq-item.is-open {
  border-color: var(--fc-primary, #33cc99);
  box-shadow: 0 8px 24px rgba(51, 204, 153, 0.18);
}

#faq .faq-question-wrap {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

#faq .faq-question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #212121;
  line-height: 1.55;
  transition: background 0.15s ease;
}

#faq .faq-question:hover {
  background: #f4fcf9;
}

#faq .faq-question:focus {
  outline: none;
  background: #f4fcf9;
}

#faq .faq-question:focus-visible {
  outline: 2px solid #33cc99;
  outline-offset: -2px;
}

#faq .faq-q-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #33cc99, #02c39a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#faq .faq-q-text {
  flex: 1;
  min-width: 0;
}

#faq .faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 50%;
  background: #e8f5f0;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* plus icon via pseudo elements — no broken icon font */
#faq .faq-chevron::before,
#faq .faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #666;
  border-radius: 1px;
  transition: transform 0.2s ease, background 0.2s ease;
}

#faq .faq-chevron::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

#faq .faq-chevron::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

#faq .faq-item.is-open .faq-chevron {
  background: #33cc99;
}

#faq .faq-item.is-open .faq-chevron::before,
#faq .faq-item.is-open .faq-chevron::after {
  background: #fff;
}

#faq .faq-item.is-open .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Answer panel */
#faq .faq-answer {
  border-top: 1px solid var(--fc-primary-soft, #e8f5f0);
  background: linear-gradient(180deg, #f4fcf9 0%, #fff 100%);
}

#faq .faq-answer[hidden] {
  display: none !important;
}

#faq .faq-answer-inner {
  padding: 1rem 1.15rem 1.15rem 1.15rem;
  padding-right: calc(1.15rem + 32px + 0.75rem); /* align under question text */
  margin: 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.85;
  text-align: right;
  font-family: Vazirmatn, Tahoma, sans-serif;
  border-right: 3px solid var(--fc-primary, #33cc99);
}

/* Kill old broken accordion rules when nested leftovers exist */
#faq .accordion .header-title:after,
#faq .accordion .collapsed:after {
  content: none !important;
  display: none !important;
}

@media (max-width: 575px) {
  #faq .faq-question {
    font-size: 0.9rem;
    padding: 0.85rem 0.9rem;
    gap: 0.55rem;
  }

  #faq .faq-q-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  #faq .faq-answer-inner {
    padding: 0.85rem 0.9rem 1rem;
    font-size: 0.88rem;
  }
}

/* =========================================================
   Team section — city tabs + cards + alumni
   ========================================================= */
.team-app {
  text-align: right;
}

/* City tabs */
.team-city-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.75rem;
  padding: 0.35rem;
  max-width: 720px;
}

.team-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 110px;
  padding: 0.75rem 1.1rem;
  border: 1px solid #e8e8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  font-family: inherit;
}

.team-tab:hover {
  border-color: #33cc99;
  transform: translateY(-2px);
}

.team-tab.active {
  background: linear-gradient(145deg, #33cc99 0%, #02c39a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(51, 204, 153, 0.28);
}

.team-tab-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.team-tab-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.team-tab-count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.team-tab.active .team-tab-count {
  opacity: 0.9;
}

.team-tab.is-inactive-tab:not(.active) {
  opacity: 0.72;
  border-style: dashed;
}

.team-status-pill {
  display: inline-block;
  background: #e6f8f1;
  color: #1a9e76;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.team-inactive {
  border-style: dashed;
  border-color: #c5d9d0;
  background: linear-gradient(145deg, #f4fcf9 0%, #eefaf5 100%);
}

.team-empty-sub {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-bottom: 0.75rem !important;
}

.team-card-note {
  font-size: 0.75rem !important;
  color: #33cc99 !important;
  margin: 0.35rem 0 0 !important;
  opacity: 0.85;
}

.team-card.is-placeholder .team-card-photo img,
.alumni-card.is-placeholder .alumni-photo img {
  object-fit: cover;
}

/* Alumni city filters */
.alumni-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.alumni-filter-btn {
  border: 1px solid #d0e8df;
  background: #fff;
  color: #444;
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alumni-filter-btn:hover {
  border-color: #33cc99;
  color: #33cc99;
}

.alumni-filter-btn.active {
  background: #212121;
  border-color: #212121;
  color: #fff;
}

.alumni-item {
  min-width: 0;
}

.alumni-item .alumni-card {
  height: 100%;
}

.team-city-tagline {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* Active team cards grid */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .team-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 195, 154, 0.08);
  border: 1px solid var(--fc-border, #dcefe9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--fc-primary, #33cc99);
  box-shadow: 0 14px 32px rgba(51, 204, 153, 0.18);
}

.team-card-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.team-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0;
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a66c2;
  color: #fff !important;
  font-size: 1.15rem;
  transition: transform 0.15s ease;
}

.team-social-btn:hover {
  transform: scale(1.08);
  color: #fff !important;
}

.team-card-body {
  padding: 0.9rem 1rem 1.05rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card-name {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.3rem !important;
  line-height: 1.4;
  color: #212121;
}

.team-card-name a {
  color: inherit;
}

.team-card-name a:hover {
  color: #33cc99;
}

.team-card-role {
  font-size: 0.85rem !important;
  color: #666 !important;
  margin: 0 !important;
  line-height: 1.45;
  min-height: 2.5em;
}

/* Empty city state */
.team-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #f4fcf9 0%, #eefaf5 50%, #f7fbf9 100%);
  border: 1px dashed #c5ebe0;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.team-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.team-empty h3 {
  font-size: 1.15rem !important;
  margin-bottom: 0.5rem !important;
  color: #212121;
}

.team-empty p {
  color: #666;
  margin-bottom: 1.25rem !important;
  font-size: 0.95rem !important;
}

/* Join banner */
.team-join-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f2e26 70%, #1a9e76 160%);
  color: #fff;
  text-align: center;
}

.team-join-banner p {
  margin: 0 !important;
  color: #f5f5f5 !important;
  font-size: 0.95rem !important;
}

/* ---------- Alumni (former team) ---------- */
.alumni-section {
  margin-top: 3rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, rgba(51, 204, 153, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(2, 195, 154, 0.08), transparent 45%),
    #f5faf8;
  border: 1px solid #e0efe9;
}

.alumni-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

.alumni-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #33cc99;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.alumni-title {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.4rem !important;
  color: #212121;
}

.alumni-desc {
  margin: 0 !important;
  max-width: 36rem;
  color: #666 !important;
  font-size: 0.92rem !important;
  line-height: 1.6;
}

.alumni-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.alumni-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #33cc99;
  line-height: 1;
}

.alumni-stat-label {
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.25rem;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.alumni-card {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  padding: 0.85rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dcefe9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-align: right;
}

.alumni-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.alumni-photo {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}

.alumni-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
  transition: filter 0.25s ease;
}

.alumni-card:hover .alumni-photo img {
  filter: grayscale(0) contrast(1);
}

.alumni-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.78);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
  padding: 0.1rem 0;
  letter-spacing: 0.02em;
}

.alumni-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alumni-period {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  color: #5a8a7a;
  background: #e8f5f0;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.alumni-name {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.2rem !important;
  color: #212121;
  line-height: 1.35;
}

.alumni-name a {
  color: inherit;
}

.alumni-name a:hover {
  color: #33cc99;
}

.alumni-role {
  font-size: 0.82rem !important;
  color: #666 !important;
  margin: 0 0 0.45rem !important;
  line-height: 1.4;
}

.alumni-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.alumni-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #555;
  background: #f5f5f7;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.alumni-duration i {
  font-size: 0.85rem;
  color: #33cc99;
}

.alumni-meta .team-social-btn {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
  border-radius: 8px;
}

@media (max-width: 575px) {
  .team-tab {
    min-width: 96px;
    padding: 0.6rem 0.75rem;
  }

  .alumni-section {
    padding: 1.25rem 0.85rem;
  }

  .alumni-card {
    flex-direction: row;
  }
}

/* =========================================================
   Hero slider redesign (brand-aligned)
   ========================================================= */
#main-slide {
  position: relative;
  background: #0f2e26;
  overflow: hidden;
}

#main-slide .carousel-inner {
  min-height: 72vh;
  max-height: 820px;
}

#main-slide .carousel-item {
  min-height: 72vh;
  max-height: 820px;
  background: #0f2e26;
}

#main-slide .slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#main-slide .slide-media img,
#main-slide .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Brand-tinted overlay */
#main-slide .carousel-inner .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(15, 46, 38, 0.88) 0%, rgba(15, 46, 38, 0.55) 48%, rgba(51, 204, 153, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 20, 18, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

#main-slide .carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 4rem;
  color: #fff;
  text-align: right;
  opacity: 1 !important;
}

#main-slide .carousel-item .carousel-caption {
  opacity: 1 !important;
  z-index: 2;
}

.slide-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem 1.65rem;
  border-radius: 18px;
  background: rgba(10, 24, 20, 0.45);
  border: 1px solid rgba(51, 204, 153, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: right;
}

.slide-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f2e26;
  background: #33cc99;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.slide-eyebrow {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 0 0.35rem !important;
  font-weight: 500;
}

#main-slide .carousel-item .carousel-caption .heading {
  font-size: clamp(1.45rem, 3.6vw, 2.55rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0.25rem 0 0.65rem !important;
  line-height: 1.35 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.slide-lead {
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 0 1rem !important;
  max-width: 36rem;
}

.slide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.slide-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: rgba(51, 204, 153, 0.15);
  border: 1px solid rgba(51, 204, 153, 0.35);
  color: #e8fff6;
  font-size: 0.85rem;
}

.slide-stat strong {
  color: #33cc99;
  font-size: 1.05rem;
  font-weight: 800;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

#main-slide .carousel-caption .btn {
  margin: 0 !important;
}

#main-slide .carousel-caption .btn-border {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}

#main-slide .carousel-caption .btn-border:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #33cc99;
}

#main-slide .carousel-caption .btn-common:hover {
  filter: brightness(1.05);
}

/* Indicators */
#main-slide .carousel-indicators {
  bottom: 1.25rem !important;
  margin: 0;
  z-index: 3;
}

#main-slide .carousel-indicators li {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease;
}

#main-slide .carousel-indicators li.active {
  width: 28px;
  background: #33cc99;
}

/* Controls — always visible, brand style */
#main-slide .carousel-control {
  display: block !important;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
}

#main-slide .carousel-control i {
  line-height: 42px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(51, 204, 153, 0.55) !important;
  background: rgba(15, 46, 38, 0.55) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}

#main-slide .carousel-control i:hover {
  background: #33cc99 !important;
  border-color: #33cc99 !important;
  color: #0f2e26 !important;
}

/* Timer polish */
.timer-sub {
  max-width: 32rem;
  margin: 0.5rem auto 0 !important;
  color: #666 !important;
  font-size: 0.9rem !important;
  line-height: 1.6;
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.btn-outline-cal {
  background: transparent !important;
  border: 1px solid #33cc99 !important;
  color: #1a9e76 !important;
}

.btn-outline-cal:hover {
  background: #33cc99 !important;
  color: #fff !important;
}

/* Stats cards */
.stat-card {
  border-radius: 14px;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

/* Alumni polish v2 */
.alumni-card {
  border-right: 3px solid transparent;
}

.alumni-card:hover {
  border-right-color: #33cc99;
  box-shadow: 0 10px 24px rgba(51, 204, 153, 0.14) !important;
}

.alumni-ribbon {
  background: linear-gradient(90deg, #1a9e76, #33cc99) !important;
  font-weight: 700;
}

.alumni-stat {
  border-color: #dcefe9 !important;
  box-shadow: 0 4px 14px rgba(2, 195, 154, 0.1) !important;
}

.alumni-section {
  position: relative;
  overflow: hidden;
}

.alumni-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #33cc99);
  border-radius: 0 0 0 4px;
}

/* Services content readability */
.services-item .services-content p {
  line-height: 1.7;
}

@media (max-width: 767px) {
  #main-slide .carousel-inner,
  #main-slide .carousel-item {
    min-height: 78vh;
    max-height: none;
  }

  .slide-panel {
    padding: 1.15rem 1.1rem 1.25rem;
    border-radius: 14px;
  }

  #main-slide .carousel-caption {
    padding: 5rem 0.85rem 3.5rem;
    align-items: flex-end;
  }

  #main-slide .carousel-item .carousel-caption .heading {
    font-size: 1.35rem !important;
  }

  .slide-lead {
    font-size: 0.88rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  #main-slide .carousel-control i {
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    font-size: 14px !important;
  }
}

@media (min-width: 992px) {
  .slide-panel {
    margin-right: 4%;
    margin-left: auto;
  }

  #main-slide .carousel-caption {
    justify-content: flex-end;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
