/* ============================================================
   ELGON CONNECT — Main Stylesheet
   Matches Astra + Elementor design exactly
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --navy:       #0E202E;
    --dark-blue:  #242A56;
    --purple:     #1D076D;
    --light-bg:   #EFF2FF;
    --card-bg:    #F5F7FF;
    --border:     #A7A6D5;
    --white:      #FFFFFF;
    --text:       #333333;
    --muted:      #666666;
    --accent:     #4A90D9;
    --shadow-card: 8px 33px 10px 0 rgba(0,0,0,0.5);
    --shadow-hover: 0 10px 30px rgba(208,216,234,0.3);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); line-height: 1.7; overflow-x: hidden; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all .3s ease; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-light { background: var(--light-bg); }
.mt-2 { margin-top: 1.5rem; display: inline-block; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .3s ease;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: transparent; border-color: var(--purple); color: var(--purple); transform: translateY(-3px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--purple); transform: translateY(-3px); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-white:hover { background: transparent; border-color: var(--white); color: var(--white); transform: translateY(-3px); }

/* ── Section Typography ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.section-title { font-size: 2.4rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: all .3s ease;
    padding: .9rem 0;
}
.site-header.scrolled { padding: .6rem 0; }

.main-nav { display: flex; align-items: center; justify-content: space-between; }

.logo img { height: 48px; width: auto; }
.logo .logo-white { display: none; }
.logo .logo-dark { display: block; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-weight: 500;
    color: var(--text);
    padding: .4rem .8rem;
    border-radius: 5px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: .8rem; right: .8rem;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--purple); font-weight: 600; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 25px; height: 3px;
    background: var(--purple);
    border-radius: 3px;
    transition: all .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background-color: var(--navy);
    opacity: .74;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 120px 24px 160px;
    max-width: 700px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: #EFF2FF;
}
.hero-desc { font-size: 1.1rem; color: #CBD2FF; margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Wave shape divider */
.hero-shape {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    z-index: 3;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ── Animations ─────────────────────────────────────────────── */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp .8s ease forwards; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   QUICK INFO CARDS
   ================================================================ */
.quick-info {
    padding: 0 0 80px;
    margin-top: -60px;
    position: relative;
    z-index: 4;
}
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-card {
    background: var(--purple);
    padding: 2rem;
    border-radius: 34px;
    border: 3px groove var(--border);
    box-shadow: var(--shadow-card);
    color: var(--white);
    transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-8px); box-shadow: 10px 40px 20px rgba(0,0,0,.6); }
.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}
.info-card h3 { font-size: 1.2rem; margin-bottom: .6rem; color: #FFF9F9; }
.info-card p { font-size: .95rem; color: rgba(255,255,255,.85); line-height: 1.6; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    border-radius: 0 200px 4px 100px;
    width: 100%;
    height: 480px;
    object-fit: cover;
    box-shadow: 15px 15px 40px rgba(0,0,0,.2);
}
.about-text .section-label { text-align: left; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.07);
    border: 1px solid var(--border);
    transition: all .3s ease;
    text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--purple); }
.service-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark-blue) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(29,7,109,.3);
}
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: .6rem; font-weight: 600; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ================================================================
   GALLERY SECTION
   ================================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 260px;
    box-shadow: 15px 11px 10px rgba(0,0,0,.5);
    border: 1px solid var(--border);
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: flex-end;
    padding: 1.2rem;
    transition: background .3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.5); }
.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
}
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    position: relative;
    padding: 80px 0;
    background: var(--dark-blue);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.cta-content { position: relative; z-index: 2; }
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; color: #CBD2FF; margin-bottom: 2rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    position: relative;
    padding: 80px 0 0;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.footer-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .12;
}
.footer-overlay {
    position: absolute; inset: 0;
    background: var(--navy);
    opacity: .88;
}
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-logo { height: 50px; margin-bottom: 1.2rem; }
.footer-col p { color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.8; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--white); }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col ul a:hover { color: var(--white); padding-left: 6px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--accent); margin-top: 3px; min-width: 16px; }

.social-links { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--white);
    transition: all .3s ease;
}
.social-links a:hover { background: var(--purple); transform: translateY(-4px); }

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: .9rem;
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: var(--dark-blue); opacity: .8; }
.page-hero-content { position: relative; z-index: 2; padding: 60px 24px; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: .8rem; }
.page-hero p { font-size: 1.1rem; color: #CBD2FF; max-width: 560px; margin: 0 auto; }
.page-hero-shape {
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    opacity: 0; pointer-events: none;
    transition: all .3s ease;
    z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--dark-blue); transform: translateY(-4px); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ELGON CONNECT — Responsive Styles
   ============================================================ */

/* ── Tablet (max 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
    .section-title { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img-wrap img { height: 320px; border-radius: 0 120px 4px 60px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .info-cards-row { grid-template-columns: 1fr; gap: 1rem; }
    .quick-info { padding-bottom: 60px; margin-top: -30px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-content .footer-col:first-child { grid-column: span 2; }
}

/* ── Mobile (max 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
    .section-pad { padding: 64px 0; }
    .section-title { font-size: 1.7rem; }

    /* Header */
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }
    .nav-links.open { max-height: 400px; padding: .5rem 0 1rem; }
    .main-nav { position: relative; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: .8rem 1.5rem; border-radius: 0; border-bottom: 1px solid rgba(0,0,0,.05); }
    .nav-links a::after { display: none; }
    .nav-links a.active { background: var(--light-bg); }

    /* Hero */
    .hero-content { padding: 100px 24px 120px; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; text-align: center; }

    /* Info cards */
    .quick-info { margin-top: -20px; padding-bottom: 50px; }
    .info-cards-row { grid-template-columns: 1fr; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .about-img-wrap img { height: 260px; }
    .about-text .section-label,
    .about-text .section-title { text-align: center; }
    .about-text p { text-align: center; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 200px; }

    /* CTA */
    .cta-banner h2 { font-size: 1.6rem; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-content .footer-col:first-child { grid-column: span 1; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ── Small Mobile (max 480px) ─────────────────────────────── */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1.1rem; }
    .section-title { font-size: 1.5rem; }
    .info-card { padding: 1.5rem; }
    .service-card { padding: 1.5rem; }
    .gallery-item { height: 180px; }
}

/* ── from about.html ── */

    .mission-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .mission-card { background:var(--purple); color:var(--white); padding:2rem; border-radius:34px; border:3px groove var(--border); box-shadow:var(--shadow-card); text-align:left; }
    .mission-icon { font-size:2.2rem; margin-bottom:1rem; color:var(--white); }
    .mission-card h3 { font-size:1.2rem; color:#FFF9F9; margin-bottom:.8rem; }
    .mission-card p { color:rgba(255,255,255,.85); line-height:1.7; font-size:.95rem; }
    .objectives-list { display:flex; flex-direction:column; gap:2rem; max-width:800px; margin:0 auto; }
    .objective-item { display:flex; gap:2rem; align-items:flex-start; }
    .obj-num { font-size:3rem; font-weight:700; color:var(--border); line-height:1; min-width:60px; }
    .obj-text h3 { font-size:1.2rem; color:var(--navy); margin-bottom:.5rem; }
    .obj-text p { color:var(--muted); }
    .team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .team-card { background:var(--white); border-radius:20px; overflow:hidden; box-shadow:0 5px 20px rgba(0,0,0,.08); border:1px solid var(--border); text-align:center; }
    .team-img { height:280px; overflow:hidden; }
    .team-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s ease; }
    .team-card:hover .team-img img { transform:scale(1.05); }
    .team-info { padding:1.5rem; }
    .team-info h3 { color:var(--navy); margin-bottom:.3rem; }
    .team-role { color:var(--muted); font-size:.9rem; margin-bottom:1rem; }
    @media(max-width:768px){ .mission-grid{grid-template-columns:1fr;} .team-grid{grid-template-columns:1fr;} .objective-item{flex-direction:column;gap:.5rem;} .obj-num{font-size:2rem;} }
    
/* ── from programs.html ── */

    .programs-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
    .program-card { background:var(--white); border-radius:20px; overflow:hidden; box-shadow:15px 11px 10px rgba(0,0,0,.5); border:1px solid var(--border); transition:transform .3s ease; }
    .program-card:hover { transform:translateY(-8px); }
    .program-img { height:220px; overflow:hidden; }
    .program-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s ease; }
    .program-card:hover .program-img img { transform:scale(1.08); }
    .program-body { padding:1.5rem; }
    .program-tag { display:inline-block; padding:.2rem .8rem; background:var(--light-bg); color:var(--purple); font-size:.78rem; font-weight:700; border-radius:50px; margin-bottom:.8rem; }
    .program-body h3 { color:var(--navy); margin-bottom:.6rem; font-size:1.1rem; }
    .program-body p { color:var(--muted); font-size:.9rem; margin-bottom:1.2rem; }
    .btn-sm { padding:.5rem 1.3rem; font-size:.85rem; }
    /* Carousel */
    .carousel-wrap { overflow:hidden; border-radius:20px; }
    .carousel { position:relative; }
    .carousel-track { display:flex; gap:16px; transition:transform .4s ease; }
    .carousel-slide { min-width:calc(33.333% - 11px); border-radius:12px; overflow:hidden; height:240px; flex-shrink:0; }
    .carousel-slide img { width:100%;height:100%;object-fit:cover; }
    .carousel-btn { position:absolute; top:50%; transform:translateY(-50%); background:var(--purple); color:#fff; border:none; width:44px;height:44px; border-radius:50%; font-size:1.2rem; cursor:pointer; z-index:2; transition:background .3s ease; }
    .carousel-btn:hover { background:var(--dark-blue); }
    .carousel-btn.prev { left:8px; }
    .carousel-btn.next { right:8px; }
    @media(max-width:768px){ .programs-grid{grid-template-columns:1fr;} .carousel-slide{min-width:100%;} }
    @media(max-width:1024px){ .programs-grid{grid-template-columns:repeat(2,1fr);} .carousel-slide{min-width:calc(50% - 8px);} }
    
/* ── from services.html ── */

    .services-detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:2rem; }
    .service-detail-card { display:flex; gap:1.5rem; align-items:flex-start; background:var(--white); padding:2rem; border-radius:20px; box-shadow:0 5px 20px rgba(0,0,0,.07); border:1px solid var(--border); transition:transform .3s ease; }
    .service-detail-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); }
    .sdc-icon { width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--purple) 0%,var(--dark-blue) 100%);display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--white);flex-shrink:0;box-shadow:0 4px 14px rgba(29,7,109,.3); }
    .sdc-body h3 { color:var(--navy); margin-bottom:.6rem; font-size:1.1rem; }
    .sdc-body p { color:var(--muted); font-size:.9rem; margin-bottom:.8rem; }
    .sdc-body ul { list-style:none; padding:0; }
    .sdc-body ul li { font-size:.88rem; color:var(--muted); margin-bottom:.4rem; display:flex; align-items:center; gap:.5rem; }
    .sdc-body ul li i { color:var(--purple); font-size:.8rem; }
    @media(max-width:768px){ .services-detail-grid{grid-template-columns:1fr;} .service-detail-card{flex-direction:column;} }
    
/* ── from contact.html ── */

    .contact-wrapper { display:grid; grid-template-columns:1fr 1.4fr; gap:4rem; align-items:start; }
    .contact-detail { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.5rem; }
    .cd-icon { width:44px;height:44px;border-radius:50%;background:var(--light-bg);display:flex;align-items:center;justify-content:center;color:var(--purple);font-size:1.1rem;flex-shrink:0; }
    .contact-detail h4 { font-size:.9rem; color:var(--muted); font-weight:600; margin-bottom:.2rem; }
    .contact-detail p { color:var(--navy); font-weight:500; }
    .contact-form-wrap { background:var(--white); padding:2.5rem; border-radius:20px; box-shadow:0 5px 30px rgba(0,0,0,.1); border:1px solid var(--border); }
    .contact-form-wrap h3 { color:var(--navy); margin-bottom:1.5rem; font-size:1.4rem; }
    .form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
    .form-group { margin-bottom:1.2rem; }
    .form-group label { display:block; font-size:.9rem; font-weight:600; color:var(--text); margin-bottom:.4rem; }
    .form-group label span { color:#e74c3c; }
    .form-group input, .form-group textarea { width:100%; padding:.75rem 1rem; border:1.5px solid var(--border); border-radius:10px; font-size:.95rem; font-family:inherit; transition:border-color .3s ease; background:var(--white); }
    .form-group input:focus, .form-group textarea:focus { outline:none; border-color:var(--purple); }
    .form-group textarea { resize:vertical; }
    .form-msg { padding:1rem; border-radius:8px; margin-top:1rem; font-size:.95rem; }
    .form-msg.success { background:#d4edda; color:#155724; }
    .form-msg.error { background:#f8d7da; color:#721c24; }
    @media(max-width:768px){ .contact-wrapper{grid-template-columns:1fr;} .form-row{grid-template-columns:1fr;} }
    
/* ── from blog.html ── */

    /* Featured Post */
    .featured-post { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; background:var(--white); border-radius:20px; overflow:hidden; box-shadow:0 8px 30px rgba(0,0,0,.1); border:1px solid var(--border); margin-bottom:3rem; }
    .fp-img { height:400px; overflow:hidden; }
    .fp-img img { width:100%;height:100%;object-fit:cover;object-position:top center; }
    .fp-body { padding:2.5rem; }
    .fp-body h2 { font-size:1.6rem; color:var(--navy); margin:.6rem 0 .8rem; line-height:1.3; }
    .fp-body h2 a { color:inherit; }
    .fp-body h2 a:hover { color:var(--purple); }
    .fp-body p { color:var(--muted); line-height:1.8; margin-bottom:1.5rem; }
    /* Posts Grid */
    .posts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
    .post-card { background:var(--white); border-radius:20px; overflow:hidden; box-shadow:15px 11px 10px rgba(0,0,0,.3); border:1px solid var(--border); transition:transform .3s ease; }
    .post-card:hover { transform:translateY(-8px); }
    .post-thumb { height:220px; overflow:hidden; }
    .post-thumb img { width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .4s ease; }
    .post-card:hover .post-thumb img { transform:scale(1.07); }
    .post-body { padding:1.5rem; }
    .post-tag { display:inline-block; padding:.2rem .8rem; background:var(--light-bg); color:var(--purple); font-size:.78rem; font-weight:700; border-radius:50px; margin-bottom:.6rem; }
    .post-body h3 { font-size:1.05rem; color:var(--navy); margin-bottom:.4rem; line-height:1.4; }
    .post-body h3 a { color:inherit; }
    .post-body h3 a:hover { color:var(--purple); }
    .post-meta { font-size:.82rem; color:var(--muted); margin-bottom:.8rem; }
    .post-meta i { margin-right:4px; }
    .post-body p { font-size:.88rem; color:var(--muted); line-height:1.6; margin-bottom:1rem; }
    .read-more { font-size:.9rem; font-weight:600; color:var(--purple); display:inline-flex; align-items:center; gap:.4rem; }
    .read-more:hover { gap:.7rem; }
    @media(max-width:1024px){ .posts-grid{grid-template-columns:repeat(2,1fr);} }
    @media(max-width:768px){ .featured-post{grid-template-columns:1fr;} .fp-img{height:250px;} .posts-grid{grid-template-columns:1fr;} }
    
/* ── from post-ambassador-programme.html ── */

    .post-hero-tag { display:inline-block; background:var(--purple); color:#fff; padding:.2rem .9rem; border-radius:50px; font-size:.82rem; font-weight:700; margin-bottom:.8rem; }
    .post-hero-meta { color:rgba(255,255,255,.7); font-size:.9rem; margin-top:.5rem; }
    .post-layout { display:grid; grid-template-columns:1fr 320px; gap:3rem; align-items:start; }
    .post-content { min-width:0; }
    .post-lead { font-size:1.15rem; color:var(--text); line-height:1.8; margin-bottom:2rem; border-left:4px solid var(--purple); padding-left:1.2rem; }
    .post-content h2 { font-size:1.5rem; color:var(--navy); margin:2rem 0 1rem; }
    .post-content p { color:var(--muted); line-height:1.8; margin-bottom:1.2rem; }
    .post-full-img { width:100%; height:380px; object-fit:cover; border-radius:16px; margin:1.5rem 0 .5rem; box-shadow:0 8px 24px rgba(0,0,0,.15); }
    .img-caption { font-size:.82rem; color:var(--muted); text-align:center; margin-bottom:1.5rem; font-style:italic; }
    .post-list { list-style:none; margin:1rem 0 1.5rem; }
    .post-list li { display:flex; align-items:flex-start; gap:.7rem; color:var(--muted); margin-bottom:.6rem; line-height:1.6; }
    .post-list li i { color:var(--purple); margin-top:3px; flex-shrink:0; }
    /* Ambassador profile */
    .ambassador-profile { display:grid; grid-template-columns:auto 1fr; gap:2rem; align-items:start; background:var(--light-bg); padding:2rem; border-radius:16px; margin:2rem 0; }
    .amb-photos { display:flex; flex-direction:column; gap:1rem; }
    .amb-photo { width:160px; height:200px; object-fit:cover; object-position:top center; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.2); }
    .amb-text h3 { color:var(--navy); margin-bottom:.8rem; }
    .pull-quote { border-left:4px solid var(--purple); padding:1rem 1.5rem; margin:1.5rem 0; background:var(--white); border-radius:0 8px 8px 0; font-style:italic; color:var(--text); }
    .pull-quote cite { display:block; font-size:.85rem; color:var(--muted); font-style:normal; margin-top:.5rem; font-weight:600; }
    /* Launch gallery */
    .launch-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:1.5rem 0; }
    .launch-gallery img { width:100%; height:180px; object-fit:cover; border-radius:10px; }
    /* Post CTA box */
    .post-cta-box { background:linear-gradient(135deg,var(--purple),var(--dark-blue)); color:#fff; padding:2rem; border-radius:16px; margin-top:2.5rem; text-align:center; }
    .post-cta-box h3 { margin-bottom:.8rem; }
    .post-cta-box p { color:rgba(255,255,255,.8); margin-bottom:1.5rem; }
    /* Sidebar */
    .post-sidebar { position:sticky; top:100px; }
    .sidebar-widget { background:var(--white); border:1px solid var(--border); border-radius:16px; padding:1.5rem; margin-bottom:1.5rem; }
    .sidebar-widget h4 { color:var(--navy); font-size:1rem; margin-bottom:1rem; padding-bottom:.6rem; border-bottom:2px solid var(--light-bg); }
    .sidebar-posts { list-style:none; }
    .sidebar-posts li { margin-bottom:1rem; }
    .sidebar-posts a { display:flex; gap:.8rem; align-items:flex-start; color:var(--text); }
    .sidebar-posts a:hover { color:var(--purple); }
    .sidebar-posts img { width:60px; height:50px; object-fit:cover; border-radius:8px; flex-shrink:0; }
    .sidebar-posts span { font-size:.85rem; line-height:1.4; }
    .sidebar-cats { list-style:none; }
    .sidebar-cats li { margin-bottom:.5rem; }
    .sidebar-cats a { display:flex; justify-content:space-between; color:var(--muted); font-size:.9rem; padding:.3rem 0; border-bottom:1px solid var(--light-bg); }
    .sidebar-cats a:hover { color:var(--purple); }
    .sidebar-cats span { background:var(--light-bg); color:var(--purple); font-size:.78rem; padding:.1rem .5rem; border-radius:50px; font-weight:700; }
    .sidebar-contact p { color:var(--muted); margin-bottom:.5rem; font-size:.9rem; }
    .sidebar-contact i { color:var(--purple); margin-right:.4rem; }
    @media(max-width:1024px){ .post-layout{grid-template-columns:1fr;} .post-sidebar{position:static;} }
    @media(max-width:768px){ .ambassador-profile{grid-template-columns:1fr;} .amb-photos{flex-direction:row;} .amb-photo{width:120px;height:150px;} .launch-gallery{grid-template-columns:repeat(2,1fr);} }
    
/* ================================================================
   SINGLE-PAGE VIEWS
   Every former .html page is now a <section class="view"> inside index.html.
   Only the active one is shown (hash routing: #/about, #/news ...).
   ================================================================ */
.view { display: none; }
.view.active { display: block; animation: viewIn .45s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#app:focus { outline: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 5000; }
.skip-link:focus { left: 8px; }
noscript .ns { padding: 120px 24px; text-align: center; }

/* Header: account links */
.nav-links .nav-auth { display: flex; align-items: center; gap: .6rem; }
.nav-links a.btn { color: var(--white); padding: .5rem 1.3rem; }
.nav-links a.btn:hover { color: var(--purple); }
.nav-links a.btn::after { display: none; }
.nav-links a.user-link i { margin-right: .35rem; }
.linklike { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; padding: .4rem .6rem; border-radius: 5px; }
.linklike:hover { color: var(--purple); text-decoration: underline; }
.btn-sm { padding: .5rem 1.3rem; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none !important; }
.btn-danger { background: #b02a37; color: #fff; }
.btn-danger:hover { background: transparent; border-color: #b02a37; color: #b02a37; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--purple); }
.btn-ghost:hover { border-color: var(--purple); }

/* Leadership */
.leader-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.leader-grid h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: .2rem; }
.leader-role { color: var(--purple); font-weight: 600; margin-bottom: 1rem; }
.leader-grid p { color: var(--muted); margin-bottom: 1rem; }
.leader-meta { list-style: none; margin-top: 1.2rem; }
.leader-meta li { display: flex; gap: .8rem; margin-bottom: .6rem; color: var(--text); font-size: .95rem; }
.leader-meta i { color: var(--purple); width: 18px; margin-top: 5px; }
.card-pair { display: grid; gap: 1.2rem; }
.card-pair img { border-radius: 16px; box-shadow: 8px 14px 30px rgba(0,0,0,.28); width: 100%; }

/* News */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.chip { padding: .4rem 1.1rem; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; color: var(--purple); font-weight: 600; font-size: .85rem; cursor: pointer; font-family: inherit; transition: all .25s ease; }
.chip:hover { border-color: var(--purple); }
.chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.fp-img img, .post-thumb img { background: var(--light-bg); }
.no-img { object-fit: contain !important; padding: 2rem; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; grid-column: 1 / -1; }
.notice { max-width: 760px; margin: 0 auto 2rem; }

/* Post page */
.article-body h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 1rem; }
.article-body p { color: var(--muted); line-height: 1.85; margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.article-body a { color: var(--purple); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--purple); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--light-bg); border-radius: 0 8px 8px 0; font-style: italic; }
.article-body ul.post-list li { display: block; padding-left: 1.4rem; position: relative; }
.article-body ul.post-list li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--purple); position: absolute; left: 0; top: 0; font-size: .85rem; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { border-radius: 14px; width: 100%; }
.article-body figcaption { font-size: .82rem; color: var(--muted); text-align: center; font-style: italic; margin-top: .4rem; }
.post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; margin: 0 0 1.8rem; box-shadow: 0 8px 24px rgba(0,0,0,.15); background: var(--light-bg); }
.post-cover.card { object-fit: contain; background: #2b2b2e; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; margin: 1.5rem 0; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-actions { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.post-hero-meta i { margin-right: 4px; }

/* Account / auth */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; box-shadow: 0 5px 30px rgba(0,0,0,.1); }
.auth-card h2 { color: var(--navy); margin-bottom: .4rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--purple); font-weight: 600; }
.form-group .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; font-size: .95rem; font-family: inherit; background: #fff; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(29,7,109,.12); }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }
.alert-info { background: var(--light-bg); color: var(--dark-blue); border: 1px solid var(--border); }
.dash { max-width: 920px; margin: 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding: 1.5rem 1.8rem; background: var(--light-bg); border-radius: 18px; }
.dash-head h2 { color: var(--navy); font-size: 1.5rem; }
.dash-head p { color: var(--muted); font-size: .92rem; }
.dash h3 { color: var(--navy); margin: 2rem 0 1rem; font-size: 1.15rem; }
.badge { display: inline-block; padding: .15rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge-pending { background: #fff3cd; color: #664d03; }
.badge-published { background: #d1e7dd; color: #0f5132; }
.badge-admin { background: var(--purple); color: #fff; }
.post-row { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .8rem; }
.post-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--light-bg); }
.post-row .pr-main { flex: 1; min-width: 0; }
.post-row .pr-title { font-weight: 600; color: var(--navy); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .pr-meta { font-size: .8rem; color: var(--muted); }
.pr-actions { display: flex; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.editor-wrap { max-width: 760px; margin: 0 auto; }
.editor-wrap .contact-form-wrap { padding: 2.2rem; }
.img-preview { max-height: 200px; border-radius: 12px; margin-top: .7rem; display: none; }
.fmt-help { background: var(--light-bg); border-radius: 10px; padding: .8rem 1rem; font-size: .82rem; color: var(--muted); line-height: 1.7; margin-top: .4rem; }
.fmt-help code { background: #fff; padding: 0 .35rem; border-radius: 4px; color: var(--purple); }

/* Toast + lightbox */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: .8rem 1.5rem; border-radius: 50px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 3000; max-width: 90vw; text-align: center; font-size: .92rem; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gallery-item { cursor: zoom-in; }
.carousel-slide { cursor: zoom-in; }

.footer-contact li { align-items: flex-start; }
.footer-contact i { margin-top: 6px; }

@media (max-width: 900px) {
    .leader-grid { grid-template-columns: 1fr; }
    .post-row { flex-wrap: wrap; }
    .pr-actions { width: 100%; justify-content: flex-start; }
    .nav-links .nav-auth { flex-direction: column; align-items: flex-start; width: 100%; padding: .4rem 1.5rem; }
    .nav-links a.btn { width: auto; display: inline-block; border-bottom: 2px solid transparent; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .animate-up, .reveal { opacity: 1 !important; transform: none !important; }
}
