@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #f0f4f8;
    --secondary-color: #0D2B5B;
    --action-color: #22c55e;
    --action-hover: #16a34a;
    --text-main: #0D2B5B;
    --text-muted: #5a6a7a;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(26, 35, 50, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* 3D Hover */
.hover-3d { transition: var(--transition); }
.hover-3d:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.logo a { text-decoration: none; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--action-color);
    transition: var(--transition);
}

.nav-links a:not(.cta-button):hover::after { width: 100%; }
.nav-links a:hover { color: var(--action-color); }

.cta-button {
    background: var(--action-color);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--action-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-main);
}

/* Hero */
.hero {
    padding: 160px 5% 100px;
    background: linear-gradient(135deg, #e8edf2 0%, #d1dce6 100%);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content { flex: 1; }

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.08;
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image { flex: 1; position: relative; }

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

/* Sticky Call */
.sticky-call {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: linear-gradient(135deg, var(--action-color), var(--action-hover));
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 10px 40px rgba(34, 197, 94, 0.7); }
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 50px 0;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e8ecf0;
}

/* Sidebar */
.sidebar { position: sticky; top: 100px; }

.sidebar-module {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e8ecf0;
}

/* FAQ Accordion */
details {
    background: white;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e8ecf0;
    transition: var(--transition);
}

details:hover { border-color: var(--action-color); }

details[open] {
    border-color: var(--action-color);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    color: var(--action-color);
}

details[open] summary::after { transform: rotate(45deg); }

details p { margin-top: 1rem; color: var(--text-muted); }

/* Trust Badges */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 2rem;
    border-radius: var(--border-radius);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--action-color);
    margin-bottom: 1rem;
    display: block;
}

/* Article Styling */
.article-header { text-align: center; margin-bottom: 4rem; }

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    margin: 1rem 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e8ecf0;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--action-color);
    color: white;
    border-color: var(--action-color);
    transform: translateY(-3px);
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 4rem 0;
    border: 1px solid #e8ecf0;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--action-color);
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--secondary-color), #243447);
    color: white;
    padding: 4rem;
    text-align: center;
    border-radius: 24px;
    margin: 4rem 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin: 5rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--action-color);
    font-family: 'Outfit';
}

.stat-label { font-weight: 600; color: var(--text-muted); }

/* About */
.about-section { padding: 100px 5%; }

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.leader-card { text-align: center; }

.leader-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Content layout for sub-pages */
.page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-content div { justify-content: center; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .sticky-call { display: flex; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    /* Force inline-styled grids to single column on tablet/mobile */
    section > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    section > div > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    section div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    section div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce oversized headings on mobile */
    section h2[style*="font-size:3"] {
        font-size: 2.2rem !important;
    }
    section h2[style*="font-size:2.5"] {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .hero { padding: 140px 5% 80px; }
    .author-bio { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .article-meta { flex-direction: column; gap: 0.5rem; }

    /* Ensure all inline grids collapse */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
    div[style*="gap:6rem"] {
        gap: 3rem !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }

    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
