/* ── Navbar: transparent on home page (hero), solid green on all other pages ── */
/* :has() is supported in all modern browsers (Chrome 105+, Safari 15.4+, Firefox 121+) */
body:has(.hero-banner-one) .theme-main-menu:not(.fixed) {
    background: transparent !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
}

body:not(:has(.hero-banner-one)) .theme-main-menu {
    background: #0c3a30 !important;
    position: fixed !important;
    left: 0; right: 0; top: 0;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    box-shadow: 0 13px 35px -12px rgba(35,35,35,.1);
}

/* ── Partner Logo Section ── */
.partner-logo-one { background: #ffffff; position: relative; overflow: hidden; border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); }
.partner-logo-one::before { display: none; }
.partner-logo-one .title-one { text-align: center; margin-bottom: 18px; }
.partner-logo-one .title-one h2 { font-size: clamp(22px, 2.6vw, 36px); color: #1A4137; font-weight: 600; margin: 0; letter-spacing: -0.4px; }
.partner-logo-one .partner-slider-one { align-items: center; }
.partner-logo-one .partner-slider-one .logo { padding: 0 22px; display: flex; align-items: center; justify-content: center; transition: transform .35s ease; }
.partner-logo-one .partner-slider-one .logo img {
    max-height: 72px;
    width: auto;
    max-width: 180px;
    filter: none;
    opacity: 1;
    transform: translateZ(0) scale(1);
    transition: opacity .45s cubic-bezier(.2,.9,.2,1), filter .45s cubic-bezier(.2,.9,.2,1), transform .45s cubic-bezier(.2,.9,.2,1);
}
.partner-logo-one .partner-slider-one .logo:hover img {
    opacity: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
    transform: scale(1.06);
}
.partner-logo-one .partner-slider-one .slick-list { padding: 8px 0; }
.partner-logo-one .partner-slider-one .slick-slide { display: flex; align-items: center; justify-content: center; }

/* ── Team card ── */
.card-style-four .team-desc { font-size: 13px; color: #555; margin-top: 8px; line-height: 1.5; }
.card-style-four .team-qual { font-size: 12px; color: #1A4137; font-weight: 500; margin-top: 4px; }

/* ── Team photo social overlay ── */
.team-photo-overlay { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .3s; z-index: 2; }
.card-style-four:hover .team-photo-overlay { opacity: 1; }
.team-link-btn { width: 38px; height: 38px; border-radius: 50%; background: #CFFF45; display: flex; align-items: center; justify-content: center; color: #000; font-size: 14px; text-decoration: none; transform: translateX(14px); transition: transform .3s, background .2s, color .2s; }
.team-link-btn:nth-child(2) { transition-delay: .07s; }
.card-style-four:hover .team-link-btn { transform: translateX(0); }
.team-link-btn:hover { background: #1A4137; color: #CFFF45; }

/* ── Team section ── */
.team-section-one { background: #fff; }
.team-section-one .title-one h2 { font-size: clamp(28px, 3.5vw, 44px); }
.team-section-one .title-one .upper-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #1A4137; background: rgba(26,65,55,.08); padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; }
.card-style-four { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e8f0eb; transition: box-shadow .3s, transform .3s; }
.card-style-four:hover { box-shadow: 0 12px 40px rgba(26,65,55,.12); transform: translateY(-4px); }
.card-style-four .media { border-radius: 0; aspect-ratio: 4/4.5; overflow: hidden; }
.card-style-four .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.card-style-four:hover .media img { transform: scale(1.06); }
.card-style-four h4 { font-size: 16px; color: #1A4137; margin-bottom: 2px; }
.card-style-four .fs-6 { font-size: 13px !important; color: rgba(0,0,0,.45); }
.card-style-four-body { padding: 16px 18px 18px; }

/* ── Team auto-slider ── */
.team-slider-wrapper .slick-slide { padding: 0 12px; }
.team-slider-wrapper .slick-list { margin: 0 -12px; }
.team-slide-item { outline: none; }

/* ── YouTube Video Section ── */
.video-section { position: relative; padding: 120px 0 100px; }
.video-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #f5f8f6 0%, #eaf2ee 100%); z-index: 0; }
.video-section .container { position: relative; z-index: 1; }
.video-section .section-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #1A4137; background: rgba(26,65,55,0.1); padding: 6px 16px; border-radius: 30px; margin-bottom: 18px; }
.video-section .title-one h2 { margin-bottom: 16px; }
.video-section .section-lead { font-size: 17px; color: #555; max-width: 520px; line-height: 1.7; margin-bottom: 0; }
.yt-featured { position: relative; border-radius: 20px; overflow: hidden; background: #0a0a0a; box-shadow: 0 30px 80px rgba(26,65,55,0.18); }
.yt-featured iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.yt-featured-label { position: absolute; top: 18px; left: 18px; background: #1A4137; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; pointer-events: none; }
.yt-playlist { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.yt-thumb-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer; border: 2px solid transparent; transition: border-color .25s, box-shadow .25s, transform .2s; text-decoration: none; color: inherit; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.yt-thumb-card:hover, .yt-thumb-card.active { border-color: #1A4137; box-shadow: 0 8px 28px rgba(26,65,55,.14); transform: translateY(-2px); color: inherit; text-decoration: none; }
.yt-thumb-card.active { background: #f0f7f4; }
.yt-thumb-img { position: relative; flex-shrink: 0; width: 100px; border-radius: 10px; overflow: hidden; }
.yt-thumb-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.yt-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); transition: background .2s; }
.yt-thumb-card:hover .yt-thumb-play, .yt-thumb-card.active .yt-thumb-play { background: rgba(26,65,55,.55); }
.yt-thumb-play svg { width: 22px; height: 22px; fill: #fff; }
.yt-thumb-meta { flex: 1; min-width: 0; }
.yt-thumb-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #1a1a1a; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-thumb-date { font-size: 12px; color: #888; }
.yt-thumb-duration { font-size: 11px; font-weight: 600; color: #1A4137; background: rgba(26,65,55,.08); padding: 2px 8px; border-radius: 10px; margin-top: 5px; display: inline-block; }
.yt-subscribe-bar { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.yt-subscribe-btn { display: inline-flex; align-items: center; gap: 10px; background: #f00; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: background .2s, transform .2s; border: none; cursor: pointer; }
.yt-subscribe-btn:hover { background: #c00; color: #fff; text-decoration: none; transform: translateY(-1px); }
.yt-subscribe-btn svg { width: 20px; height: 20px; fill: #fff; }
.yt-stat { display: flex; align-items: center; gap: 8px; color: #555; font-size: 14px; }
.yt-stat strong { color: #1A4137; font-size: 18px; font-weight: 700; }

@media (max-width: 991px) {
    .yt-playlist { flex-direction: row; flex-wrap: wrap; margin-top: 24px; }
    .yt-thumb-card { width: calc(50% - 8px); }
}
@media (max-width: 576px) {
    .yt-thumb-card { width: 100%; }
    .video-section { padding: 70px 0 60px; }
}

/* ── Blog Section ── */
.blog-section-one { background: inherit; }

/* Alternating section backgrounds */
.section-bg-green { background: #f0f8f4; }
.section-bg-white { background: #ffffff; }
.py-section { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 991px) { .py-section { padding-top: 60px; padding-bottom: 60px; } }
@media (max-width: 575px) { .py-section { padding-top: 48px; padding-bottom: 48px; } }

.blog-section-one .blog-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.blog-section-one .blog-header-left .upper-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #1A4137; background: rgba(26,65,55,.08); padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.blog-section-one .blog-header-left .title-one h2 { margin-bottom: 6px; }
.blog-section-one .blog-header-left p.text-lg { color: #777; margin: 0; font-size: 15px; }

.blog-section-one .blog-slider-arrows { display: flex; gap: 10px; flex-shrink: 0; margin-bottom: 4px; }
.blog-section-one .blog-slider-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #1A4137; background: transparent; color: #1A4137; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .2s; }
.blog-section-one .blog-slider-arrows button:hover { background: #1A4137; color: #fff; transform: scale(1.08); }

.blog-section-one .blog-slider-wrapper .slick-list { margin: 0 -14px; overflow: hidden; }
.blog-section-one .blog-slider-wrapper .slick-track { transition-timing-function: cubic-bezier(.645,.045,.355,1) !important; }
.blog-section-one .blog-slider-wrapper .slick-slide { padding: 0 14px; opacity: .55; transform: scale(.97); transition: opacity .7s ease, transform .7s ease; }
.blog-section-one .blog-slider-wrapper .slick-slide.slick-active { opacity: 1; transform: scale(1); }

.blog-progress-wrap { width: 100%; height: 2px; background: rgba(26,65,55,.1); border-radius: 2px; margin-top: 32px; overflow: hidden; }
.blog-progress-bar { height: 100%; width: 0%; background: #1A4137; border-radius: 2px; }

.blog-card-text { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.07); display: flex !important; flex-direction: column; outline: none; transition: box-shadow .3s, transform .3s; }
.blog-card-text:hover { box-shadow: 0 16px 48px rgba(26,65,55,.16); transform: translateY(-6px); }
.blog-card-text .bct-accent { height: 4px; background: linear-gradient(90deg, #1A4137 0%, #5ad28f 100%); flex-shrink: 0; }
.blog-card-text .bct-body { padding: 26px 26px 22px; display: flex; flex-direction: column; flex: 1; position: relative; }
.blog-card-text .bct-number { position: absolute; top: 8px; right: 18px; font-size: 80px; font-weight: 800; color: rgba(26,65,55,.05); line-height: 1; pointer-events: none; user-select: none; letter-spacing: -3px; }
.blog-card-text .bct-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.blog-card-text .bct-tag { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #1A4137; background: rgba(26,65,55,.08); padding: 4px 12px; border-radius: 20px; }
.blog-card-text .bct-date { font-size: 12px; color: #bbb; font-weight: 500; }
.blog-card-text .bct-title { font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin: 0 0 12px; transition: color .2s; }
.blog-card-text .bct-title:hover { color: #1A4137; }
.blog-card-text .bct-excerpt { font-size: 13.5px; color: #777; line-height: 1.7; flex: 1; margin: 0; }
.blog-card-text .bct-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.07); }
.blog-card-text .bct-author { font-size: 13px; font-weight: 600; color: #555; }
.blog-card-text .bct-author span { color: #1A4137; }
.blog-card-text .bct-btn { width: 38px; height: 38px; border-radius: 50%; background: #1A4137; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; flex-shrink: 0; transition: background .2s, transform .25s; }
.blog-card-text .bct-btn:hover { background: #0C3A30; color: #fff; transform: rotate(45deg) scale(1.1); }

.blog-section-one .blog-slider-wrapper .slick-dots { display: flex !important; justify-content: center; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.blog-section-one .blog-slider-wrapper .slick-dots li button { width: 8px; height: 8px; border-radius: 50%; background: rgba(26,65,55,.2); border: none; padding: 0; cursor: pointer; font-size: 0; transition: background .4s ease, width .4s cubic-bezier(.645,.045,.355,1), border-radius .4s ease; }
.blog-section-one .blog-slider-wrapper .slick-dots li.slick-active button { background: #1A4137; width: 28px; border-radius: 4px; }

/* ── Hero heading ── */
.hero-heading,
.hero-banner-one .hero-heading {
    font-size: clamp(34px, 5vw, 64px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px;
    word-break: keep-all;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-size: auto !important;
    padding: 0 !important;
    text-align: center !important;
}
@media (max-width: 991px) {
    .hero-heading { font-size: clamp(30px, 5.5vw, 50px) !important; }
}
@media (max-width: 767px) {
    .hero-heading { font-size: clamp(26px, 7.5vw, 40px) !important; line-height: 1.15 !important; letter-spacing: 0; }
}
@media (max-width: 400px) {
    .hero-heading { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.2 !important; }
}

/* ── Hero paragraph ── */
.hero-subpara {
    font-size: clamp(14px, 1.5vw, 16px) !important;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.85;
    padding-top: 20px !important;
    padding-bottom: 28px !important;
    text-align: center !important;
}
@media (max-width: 767px) {
    .hero-subpara { font-size: 14px !important; padding-top: 16px !important; padding-bottom: 22px !important; max-width: 100%; }
}

/* ── Hero CTA buttons — centered on mobile ── */
.hero-text-slide .btn-two,
.hero-text-slide .btn-hero-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575px) {
    .hero-text-slide .col-12 { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .hero-text-slide .btn-two,
    .hero-text-slide .btn-hero-consult { width: 80%; justify-content: center; }
}

/* ── Hero banner ── */
.hero-banner-one {
    min-height: 100vh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-banner-one.pt-225,
.hero-banner-one.xl-pt-200 { padding-top: 0 !important; }
.hero-banner-one.pb-80     { padding-bottom: 0 !important; }

@media (max-width: 1199px) { .hero-banner-one { padding: 0 !important; } }

/* ── Hero stats bar ── */
.hero-stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}
.hero-stat-bar .stat-col {
    text-align: center;
    padding: 22px 20px;
    position: relative;
}
.hero-stat-bar .stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 5%; height: 90%;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 30%, #5ad28f 50%, rgba(255,255,255,0.7) 70%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(90,210,143,0.5);
}
.hero-stat-bar .stat-number {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-stat-bar .stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
@media (max-width: 767px) {
    .hero-stat-bar .stat-number { font-size: 22px; }
    .hero-stat-bar .stat-label  { font-size: 8px; letter-spacing: 1px; }
    .hero-stat-bar .stat-col    { padding: 14px 6px; }
}
@media (max-width: 480px) {
    .hero-stat-bar .stat-number { font-size: 18px; }
    .hero-stat-bar .stat-label  { font-size: 7px; letter-spacing: 0.5px; }
    .hero-stat-bar .stat-col    { padding: 12px 4px; }
}
@media (max-width: 360px) {
    .hero-stat-bar .stat-number { font-size: 15px; }
    .hero-stat-bar .stat-label  { font-size: 6.5px; letter-spacing: 0; }
    .hero-stat-bar .stat-col    { padding: 10px 2px; }
}

/* ── Hero Free Consultation button ── */
.btn-hero-consult {
    background: #1A4137 !important;
    color: #fff !important;
    border-color: #1A4137 !important;
    line-height: 52px !important;
    font-size: 20px !important;
    padding: 0 35px !important;
}
.btn-hero-consult:hover {
    background: #122e26 !important;
    border-color: #122e26 !important;
    color: #fff !important;
}

/* ── Footer overrides ── */
.footer-contact-list .fc-icon { background: rgba(255,255,255,0.12); color: #fff; }
.footer-contact-list li { color: #fff; }
.footer-contact-list a { color: rgba(255,255,255,0.85); }
.footer-contact-list a:hover { color: #fff; }

/* ── Hero particle canvas ── */
#heroParticleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ── Hero text slider ── */
.hero-slide-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #5ad28f;
    background: rgba(90,210,143,0.15);
    border: 1px solid rgba(90,210,143,0.4);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}
.hero-text-slider {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    /* flex column so each slide reliably stretches to the full slider height */
    display: flex;
    flex-direction: column;
}
.hero-text-slider .slick-list  { height: 100% !important; margin: 0 !important; overflow: hidden !important; }
.hero-text-slider .slick-track { height: 100% !important; }
.hero-text-slider .slick-slide { height: 100% !important; }
.hero-text-slider .slick-slide > div { height: 100%; display: flex !important; }
.hero-text-slide {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    /* flex: 0 0 100% ensures each slide = full slider height (100vh) before Slick inits */
    flex: 0 0 100%;
    min-height: 100vh;        /* fallback so centering works even without definite parent height */
    box-sizing: border-box;
    /* navbar offset top, stats bar offset bottom — content is centred between them */
    padding-top: 100px;
    padding-bottom: 110px;
}
@media (max-width: 991px) { .hero-text-slide { padding-top: 90px;  padding-bottom: 100px; } }
@media (max-width: 767px) { .hero-text-slide { padding-top: 80px;  padding-bottom: 90px; } }
@media (max-width: 480px) { .hero-text-slide { padding-top: 75px;  padding-bottom: 80px; } }
@media (max-width: 360px) { .hero-text-slide { padding-top: 70px;  padding-bottom: 75px; } }
