/* ============================================================
   PKK Soft — style.css
   Brand: #1e3872 (primary) | #509851 (secondary) | #eaebec (neutral)
   Offline: Inter (webfonts/) | Font Awesome (css/all.css) | AOS (dist/)
   ============================================================ */

/* ── FONTS ── */
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── VARIABLES ── */
:root {
    --primary:       #1e3872;
    --primary-dark:  #162a58;
    --primary-light: #2a4d9e;

    --secondary:     #509851;
    --sec-dark:      #3d7a3e;
    --sec-light:     #65b566;

    --neutral:       #eaebec;

    --gradient:      linear-gradient(135deg, #1e3872 0%, #509851 100%);
    --gradient-soft: linear-gradient(135deg, rgba(30,56,114,0.07) 0%, rgba(80,152,81,0.07) 100%);

    --bg:        #ffffff;
    --bg-soft:   #f8f9fc;
    --border:    #e4e7f0;
    --border-h:  rgba(30,56,114,0.30);

    --text:      #1a1d2e;
    --text-sec:  #5a607a;
    --text-muted:#9398b0;

    --shadow-sm:   0 2px 8px  rgba(30,56,114,0.07);
    --shadow-md:   0 6px 24px rgba(30,56,114,0.12);
    --shadow-lg:   0 12px 48px rgba(30,56,114,0.18);
    --shadow-glow: 0 8px 32px rgba(30,56,114,0.32);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
}

/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;   /* no horizontal bar */
    overflow-y: auto;     /* single vertical scrollbar only */
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }

/* ── UTILITIES ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-white { background: #ffffff; }
.bg-soft  { background: var(--bg-soft); }

/* ── GRADIENT ICON BLOCK ── */
.gicon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(30,56,114,0.28);
    flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text);
    transition:
        transform 0.22s,
        box-shadow 0.22s,
        background 0.22s,
        color 0.22s,
        border-color 0.22s;
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-lg {
    padding: 13px 30px;
    font-size: 15px;
    border-radius: var(--r-lg);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    box-shadow: 0 14px 40px rgba(30,56,114,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(80,152,81,0.06);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.38);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

/* ══════════════════════════════════════════
   SPLASH
══════════════════════════════════════════ */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hide {
    opacity: 0;
    visibility: hidden;
}
.splash-wrap {
    text-align: center;
    animation: splashIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.splash-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    margin: 0 auto 14px;
}
.splash-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.splash-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.dot-loader {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.dot-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: dotBounce 1.3s ease infinite;
}
.dot-loader span:nth-child(1) { background: var(--primary);      animation-delay: 0s; }
.dot-loader span:nth-child(2) { background: var(--secondary);    animation-delay: 0.17s; }
.dot-loader span:nth-child(3) { background: var(--primary-light);animation-delay: 0.34s; }
.dot-loader span:nth-child(4) { background: var(--secondary);    animation-delay: 0.51s; }
.dot-loader span:nth-child(5) { background: var(--primary);      animation-delay: 0.68s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.75); opacity: 0.3; }
    40%          { transform: scale(1.5);  opacity: 1;   }
}
@keyframes splashIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* main wrapper – NOT scrollable itself */
#main-page {
    opacity: 0;
    transition: opacity 0.7s ease;
}
#main-page.show {
    opacity: 1;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 66px;
    z-index: 900;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.nav-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-link {
    padding: 7px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec);
    position: relative;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}
.nav-link:hover {
    color: var(--primary);
    background: var(--gradient-soft);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
    white-space: nowrap;
}
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
    animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.4; }
}

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   HERO  (white background)
══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    padding-top: 66px;
    background: #ffffff;
    display: flex;
    align-items: center;
}
.hero-bg,
.hero-blob { display: none; }

.hero-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    padding: 60px 0;
}

.hero-content { color: var(--text); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--gradient-soft);
    border: 1px solid rgba(80,152,81,0.28);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
}
.hero-badge i { font-size: 11px; }

.hero-title {
    font-size: clamp(26px, 4.2vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
}
.hero-sub {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-sec);
    max-width: 460px;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Fix ghost button — dark outline on white hero */
.hero-actions .btn-ghost {
    color: var(--primary);
    border-color: var(--border-h);
    background: transparent;
}
.hero-actions .btn-ghost:hover {
    background: var(--gradient-soft);
    border-color: var(--secondary);
    color: var(--secondary);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.stat-val {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero tiles */
.hero-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.htile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: var(--r-md);
    padding: 14px 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.htile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.htile-name { font-size: 12px; font-weight: 600; color: var(--text); }
.htile-desc { font-size: 11px; color: var(--text-sec); margin-top: 2px; }
.htile:hover {
    background: var(--gradient);
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.htile:hover .htile-name,
.htile:hover .htile-desc { color: #fff; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section {
    padding: 86px 0;
}
.sec-head {
    text-align: center;
    margin-bottom: 52px;
}
.sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(80,152,81,0.08);
    border: 1px solid rgba(80,152,81,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.sec-tag i {
    font-size: 11px;
}
.sec-title {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.sec-sub {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.acard {
    background: var(--bg-soft);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.acard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-h);
}
.acard h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.acard p {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.7;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.cards-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* BASE CARD + HOVER */
.card {
    background: #ffffff;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card-hover {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}
/* on hover, gradient bg + all text white */
.card-hover:hover {
    transform: translateY(-6px);
    background: var(--gradient);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.card-hover:hover .card-title,
.card-hover:hover .card-desc,
.card-hover:hover .card-link,
.card-hover:hover p,
.card-hover:hover h3,
.card-hover:hover .news-date {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}
.card-hover:hover .gicon {
    background: rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: none;
}
.card-hover:hover .card-link i {
    color: #fff;
}

.card-icon {
    margin-bottom: 14px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.card-desc {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.7;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
    color: var(--primary);
    transition: gap 0.2s;
}
.card-link:hover {
    gap: 10px;
}

/* NEWS */
.news-card .news-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ACHIEVEMENTS */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    text-align: center;
}
.achieve-card {
    background: #ffffff;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.achieve-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-h);
}
.achieve-icon {
    margin: 0 auto 14px;
}
.achieve-card .counter,
.achieve-card .counter-suffix {
    font-size: 30px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.achieve-card p {
    font-size: 13px;
    color: var(--text-sec);
    margin-top: 6px;
}

/* ══════════════════════════════════════════
   FOOTER (4 parts)
══════════════════════════════════════════ */
.site-footer {
    background: var(--primary);
    color: #ffffff;
    padding: 52px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;  /* was 2fr — too wide, caused dead space */
    gap: 32px;
    padding-bottom: 32px;
    align-items: start;                         /* align all columns from top */
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.footer-brand-name {
    font-size: 15px;
    font-weight: 700;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 280px;
}

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s, gap 0.2s;
}
.footer-links a i {
    font-size: 9px;
    opacity: 0.7;
}
.footer-links a:hover {
    color: var(--sec-light);
    gap: 10px;
}

/* Social column — all 5 icons in ONE row */
.footer-social {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;      /* NO wrap — keep all icons on one line */
    gap: 8px;              /* tighter gap so 5 icons fit */
    align-items: center;
}
.soc-btn {
    width: 32px;            /* slightly smaller — 5×32 + 4×8 = 192px fits in 1fr */
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    flex-shrink: 0;          /* prevent any icon from shrinking */
    transition: all 0.2s;
}
.soc-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,56,114,0.4);
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.footer-bottom {
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
}


/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
#scrollTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
#scrollTop.show {
    opacity: 1;
    visibility: visible;
}
#scrollTop:hover {
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-sub        { margin: 0 auto 28px; }
    .hero-actions    { justify-content: center; }
    .hero-badge      { margin-left: auto; margin-right: auto; }
    .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2×2 grid on mobile */
    gap: 16px;
    justify-items: center;
    text-align: center;
}

    .hero-tiles      { max-width: 380px; margin: 0 auto; }   /* centered on tablet */
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .footer-social   { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed; top: 66px; left: 0; right: 0;
        height: calc(100vh - 66px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
        flex-direction: column; align-items: stretch;
        padding: 12px 20px 40px; gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none; z-index: 899;
        margin-left: 0;
    }
    .nav-menu.open { display: flex; }

    .nav-link { display: flex; width: 100%; padding: 11px 14px; border-radius: var(--r-sm); }
    .nav-link::after { display: none; }
    .nav-link:hover,
    .nav-link.active { background: var(--gradient-soft); }

    .nav-item { width: 100%; }
    .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none;
        border-left: 2px solid var(--border);
        border-radius: 0; margin: 4px 0 4px 12px;
        padding: 0; display: none; transition: none;
    }
    .nav-item.open .nav-dropdown { display: block; }
    .nav-item.open .nav-arrow   { transform: rotate(180deg); }
    .nav-dropdown a { padding: 9px 14px; font-size: 13px; }

    /* Hero mobile */
    .hero-inner   { padding: 40px 0; }
    .hero-tiles   {
        grid-template-columns: 1fr 1fr;   /* keep 2 columns, just narrower */
        max-width: 100%;
        margin: 0 auto;
    }
.hero-actions {
    flex-direction: column;
    align-items: center;     /* center the buttons horizontally */
    width: 100%;
}
.hero-actions .btn {
    width: auto;             /* button only as wide as its content */
    min-width: 200px;        /* consistent minimum width */
    justify-content: center;
}


    .section      { padding: 60px 0; }
    .cards-grid   { grid-template-columns: 1fr; }
    .achieve-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-tiles {
        grid-template-columns: 1fr;      /* single column on small phones */
        max-width: 320px;
        margin: 0 auto;
    }
    .footer-grid  { grid-template-columns: 1fr; }
    .hero-stats   { gap: 16px; }
    .achieve-grid { grid-template-columns: 1fr 1fr; }
}

/* ── NAVBAR DROPDOWN ── */
.nav-item {
    position: relative;
}
.nav-has-drop {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-arrow {
    font-size: 9px;
    transition: transform 0.22s ease;
}
.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    padding: 6px 0;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-sec);
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--secondary);
    flex-shrink: 0;
}
.nav-dropdown a:hover {
    background: var(--gradient-soft);
    color: var(--primary);
}
.nav-dropdown a:hover i {
    color: var(--primary);
}

/* Mobile: dropdowns become accordion-style */
@media (max-width: 768px) {
    .nav-item { width: 100%; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        margin: 4px 0 4px 12px;
        padding: 0;
        display: none;
    }
    .nav-item.open .nav-dropdown {
        display: block;
    }
    .nav-item.open .nav-arrow {
        transform: rotate(180deg);
    }
    .nav-dropdown a {
        padding: 8px 14px;
        font-size: 12px;
    }
}


/* Footer bottom legal links */
.footer-bottom {
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-legal a {
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-dot { font-size: 11px; color: rgba(255,255,255,0.2); }

@media (max-width: 540px) {
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-legal  { justify-content: center; }
}


/* ══════════════════════════════════════════
   LEGAL / POLICY CONTENT
══════════════════════════════════════════ */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-sec);
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 10px 0 18px;
    padding-left: 20px;
}

.legal-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-sec);
    margin-bottom: 6px;
}

.policy-date {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-sec);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}