:root {
    --navy: #0a1628;
    --navy-light: #0d2347;
    --card-bg: rgba(30, 58, 95, 0.35);
    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --muted: #94a3b8;
    --muted-dark: #64748b;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background: var(--navy);
    color: #fff;
}

a { text-decoration: none; color: inherit; }

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Badge Pill ── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
}

.badge-pill.light {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-dark);
}

/* ── Icon Box ── */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .4s ease, box-shadow .4s ease;
    flex-shrink: 0;
}

.icon-box svg { width: 26px; height: 26px; }
.icon-box.sm { width: 40px; height: 40px; }
.icon-box.sm svg { width: 20px; height: 20px; }
.icon-box.lg { width: 64px; height: 64px; }
.icon-box.lg svg { width: 28px; height: 28px; }
.icon-box.xs { width: 36px; height: 36px; border-radius: 10px; }
.icon-box.xs svg { width: 16px; height: 16px; }

.icon-box.blue   { background: rgba(56, 189, 248, 0.1);  color: #38bdf8; }
.icon-box.green  { background: rgba(34, 197, 94, 0.1);   color: #22c55e; }
.icon-box.purple { background: rgba(168, 85, 247, 0.1);  color: #a855f7; }
.icon-box.orange { background: rgba(251, 146, 60, 0.1);  color: #fb923c; }

/* ── Glassmorphism ── */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.08);
    border-radius: 18px;
}

/* ── Dot Grid Overlay ── */
.dot-grid { position: relative; overflow: hidden; }
.dot-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* ── Ambient Glow ── */
.glow-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Buttons ── */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    transition: transform .2s, box-shadow .2s;
    animation: btnPulse 3s ease-in-out infinite;
}

.btn-accent:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
    animation: none;
}

.btn-accent.btn-sm { padding: 10px 24px; border-radius: 10px; font-size: .875rem; }

.btn-outline-light-custom {
    color: var(--muted);
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 14px 32px;
    transition: all .3s;
}

.btn-outline-light-custom:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ── Navbar CTA Buttons ── */
.nav-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
}

.nav-cta-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all .3s;
    white-space: nowrap;
}

.nav-cta-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta-apply {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
    transition: all .3s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    overflow: hidden;
}

.nav-cta-apply::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: navShimmer 3s ease-in-out infinite;
}

.nav-cta-apply:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.nav-cta-apply:hover::after { animation: none; opacity: 0; }

.nav-cta-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
    animation: navPulseRing 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes navShimmer {
    0%   { left: -100%; }
    50%  { left: 140%; }
    100% { left: 140%; }
}

@keyframes navPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.btn-outline-light-nav {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 22px;
    font-size: .875rem;
    transition: all .3s;
    background: transparent;
}

.btn-outline-light-nav:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Card Hover Lift ── */
.card-lift { transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }

/* ── Section Backgrounds ── */
.bg-navy { background: var(--navy); }
.bg-navy-gradient { background: linear-gradient(160deg, #0a1628 0%, #0d2347 50%, #0a1628 100%); }
.bg-stats { background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, #0f2744 100%); }
.bg-trust { background: #0c1a2e; border-top: 1px solid rgba(56, 189, 248, 0.06); border-bottom: 1px solid rgba(56, 189, 248, 0.06); }
.text-muted-custom { color: var(--muted) !important; }
.text-muted-dark { color: var(--muted-dark) !important; }

/* ── Navbar ── */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 22, 40, 0.6);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: .9rem;
    position: relative;
    padding-bottom: 4px;
    transition: color .3s;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width .3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; }

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 100%; }

/* ── Mobile Menu Toggle Button ── */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ── Mobile Offcanvas ── */
.mobile-offcanvas {
    background: #0a1628 !important;
    border-right: 1px solid rgba(56, 189, 248, 0.1) !important;
    max-width: 300px;
    width: 85%;
}

.mobile-offcanvas .offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-offcanvas-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
    cursor: pointer;
    transition: color .3s;
}

.mobile-offcanvas-close:hover { color: #fff; }

.mobile-offcanvas .offcanvas-body {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all .25s;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.06);
    border-left-color: var(--accent);
}

.mobile-nav-link.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
    border-left-color: var(--accent);
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Offcanvas backdrop */
.offcanvas-backdrop.show { backdrop-filter: blur(4px); }

@media (min-width: 992px) {
    .navbar-collapse { background: transparent; backdrop-filter: none; }
}

/* ── Hero ── */
.hero { min-height: 100vh; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.stat-card { padding: 28px 24px; cursor: default; }
.stat-card .card-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-card .card-label { font-size: .85rem; color: var(--muted-dark); font-weight: 500; }
.stat-card .trend { font-size: .75rem; font-weight: 600; color: #22c55e; margin-left: 8px; vertical-align: middle; }
.stat-card:hover .icon-box { transform: scale(1.1); }

/* ── Trust ── */
.trust-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.08); }

/* ── Features ── */
.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    opacity: 0;
    transform: translateY(32px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform .6s ease, box-shadow .4s ease, opacity .6s ease;
}

.feature-card:hover { border-color: #cbd5e1; }
.feature-card:hover .icon-box { transform: scale(1.1) rotate(-3deg); }

.feature-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all .3s;
}

.feature-card:hover .feature-link { opacity: 1; transform: translateX(0); }

/* ── How It Works ── */
.hiw-step {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.hiw-step.visible { opacity: 1; transform: translateY(0); }
.hiw-step:hover .icon-box { transform: scale(1.1); }

.hiw-connector {
    width: 64px;
    height: 2px;
    border-top: 2px dashed #cbd5e1;
    flex-shrink: 0;
    margin-top: 52px;
}

@media (max-width: 991px) {
    .hiw-connector {
        width: 2px;
        height: 40px;
        border-top: none;
        border-left: 2px dashed #cbd5e1;
        margin-top: 0;
    }
}

/* ── Stats Banner ── */
.stats-banner-item::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.stats-banner-item:last-child::after { display: none; }
.stats-banner-value { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stats-banner-plus { font-size: 2.2rem; font-weight: 700; color: var(--accent); }

/* ── FAQ ── */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s;
}

.faq-item:hover { border-color: #cbd5e1; }

.faq-item.open {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter Tight', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    transition: color .3s;
}

.faq-question:hover { color: var(--accent-dark); }

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .35s, color .3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent-dark); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer { max-height: 200px; padding: 0 24px 20px; }

/* ── Blog Cards ── */
.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .4s ease, box-shadow .4s ease, border-color .3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--muted-dark);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--muted-dark);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap .3s;
}

.blog-card:hover .blog-card-link {
    gap: 8px;
}

/* ── Blog Detail ── */
.blog-detail-image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 440px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(56,189,248,0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ── Application Form ── */
.apply-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
}

.apply-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.apply-form-card .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 6px;
}

.apply-form-card .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.apply-form-card .form-control,
.apply-form-card .form-select {
    border-color: #e2e8f0;
    font-size: 0.9rem;
}

.apply-form-card .form-control:focus,
.apply-form-card .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.apply-form-card .form-control.is-valid,
.apply-form-card .form-select.is-valid {
    border-color: #22c55e;
    box-shadow: none;
}

.apply-form-card .form-control.is-invalid,
.apply-form-card .form-select.is-invalid {
    border-color: #ef4444;
    box-shadow: none;
}

.apply-form-card .invalid-feedback {
    font-size: 0.78rem;
    margin-top: 4px;
}

.apply-info-card {
    background: linear-gradient(160deg, #0a1628 0%, #0d2347 60%, #0f2e5e 100%);
    border-radius: 20px;
    padding: 36px 32px;
    position: sticky;
    top: 100px;
}

.apply-advantage-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apply-help-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 575px) {
    .apply-form-card { padding: 24px 20px; }
    .apply-info-card { padding: 28px 24px; }
}

/* ── About Content (CKEditor output) ── */
.about-content p { margin-bottom: 1rem; }
.about-content h2, .about-content h3, .about-content h4 { color: #0f172a; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.about-content ul, .about-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--muted-dark); }
.about-content li { margin-bottom: 0.35rem; }
.about-content a { color: var(--accent-dark); text-decoration: underline; }
.about-content blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.25rem; margin: 1.5rem 0; background: rgba(56,189,248,0.04); border-radius: 0 8px 8px 0; font-style: italic; }

/* ── About Page ── */
.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
}

.about-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 20px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

.about-badge-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.9;
}

@media (max-width: 575px) {
    .about-image-badge {
        bottom: -14px;
        right: 10px;
        padding: 14px 20px;
    }
    .about-badge-value { font-size: 1.5rem; }
}

/* ── Footer ── */
.footer { background: #080f1e; }
.footer a { transition: color .2s, padding-left .2s; }
.footer a:hover { color: var(--accent) !important; padding-left: 4px; }

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-dark);
    transition: all .3s;
}

.footer-social:hover {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
    50% { box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25); }
}

.anim-up { animation: fadeInUp .6s ease both; }
.anim-up-1 { animation-delay: .1s; }
.anim-up-2 { animation-delay: .2s; }
.anim-up-3 { animation-delay: .3s; }
.anim-up-4 { animation-delay: .4s; }
.anim-right { animation: fadeInRight .8s ease .3s both; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-title { font-size: 2.4rem; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.8rem; }
    .stats-banner-value { font-size: 2.2rem; }
    .stats-banner-plus { font-size: 1.5rem; }
    .stats-banner-item::after { display: none; }
    .feature-link { opacity: 1; transform: translateX(0); }
}
