/* Premium Government Advisory Portal CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-navy: #0B1120;
    --primary-navy-light: #1E293B;
    --authority-blue: #2563EB;
    --authority-blue-hover: #1D4ED8;
    --trust-green: #10B981;
    --trust-green-dark: #059669;
    --bg-color: #F8FAFC;
    --border-color: #E2E8F0;
    --text-main: #334155;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --surface-white: #FFFFFF;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    background: var(--surface-white);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--authority-blue);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

a.text-link {
    color: var(--authority-blue);
    text-decoration: none;
    font-weight: 500;
}

a.text-link:hover {
    text-decoration: underline;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    overflow: hidden;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 200px;
    transition: width 0.3s ease;
}

.header-search input:focus {
    width: 250px;
}

.header-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
}

.header-search button:hover {
    color: var(--authority-blue);
}

/* Main Content Area */
main {
    flex: 1;
    padding: 0;
}

.content-box {
    background: var(--surface-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: var(--surface-white);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--trust-green);
    margin: 0;
    position: relative;
}

.hero-section h1 {
    color: var(--surface-white);
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    color: #94A3B8;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-white);
    padding: 0.25rem;
}

.search-container input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    color: var(--text-dark);
    outline: none;
    background: transparent;
}

.search-container button {
    background: var(--trust-green);
    color: var(--surface-white);
    border: none;
    padding: 0 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.search-container button:hover {
    background: var(--trust-green-dark);
}

.search-container button:active {
    transform: scale(0.98);
}

/* Homepage Sections */
.home-section {
    padding: 5rem 0;
}

.bg-white {
    background-color: var(--surface-white);
}

.bg-light {
    background-color: #F1F5F9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3.5rem;
    text-align: center;
    border: none;
    padding: 0;
}

/* Grid Links */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.grid-links a {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.grid-links a:hover {
    border-color: var(--authority-blue);
    background: var(--surface-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--authority-blue);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--surface-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--authority-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--authority-blue);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(to bottom right, var(--surface-white), #F8FAFC);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.trust-section h2 {
    margin-top: 0;
    border: none;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    text-align: left;
}

.trust-grid>div {
    background: var(--surface-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.trust-grid strong {
    display: block;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.trust-grid p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Service Content Highlights */
.highlight-box {
    background: #ECFDF5;
    border-left: 4px solid var(--trust-green);
    padding: 1.75rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--trust-green-dark);
    font-size: 1.2rem;
}

.data-highlights-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.data-highlight-box {
    background: #F8FAFC;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.data-highlight-box strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.data-highlight-box.blue strong {
    color: var(--authority-blue);
}

.data-highlight-box.green strong {
    color: var(--trust-green-dark);
}

.data-highlight-box span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--authority-blue);
    color: var(--surface-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--authority-blue-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    transform: translateY(-2px);
    color: var(--surface-white);
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--authority-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Content Text */
.content-text {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-text ul,
.content-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-text li {
    margin-bottom: 0.75rem;
}

/* FAQ List */
.faq-list {
    margin-top: 2.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-dark);
}

.faq-item div {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: var(--surface-white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-grid h4 {
    color: var(--surface-white);
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border: none;
    padding: 0;
}

.footer-grid p {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 400px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--surface-white);
}

.footer-bottom {
    border-top: 1px solid var(--primary-navy-light);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
}

/* Mobile Navigation Elements */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--surface-white);
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.nav-open .mobile-nav-wrapper {
    right: 0;
}

body.nav-open {
    overflow: hidden;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav-links {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.mobile-lang {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F8FAFC;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.lang-switcher select {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
}

/* Responsive */
@media(max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.35rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .content-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .content-box {
        padding: 1.25rem;
    }

    .home-section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-section {
        padding: 3rem 1.25rem;
        margin: 0;
    }

    .hero-section h1 {
        font-size: 1.85rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        background: transparent;
        box-shadow: none;
        gap: 0.5rem;
    }

    .search-container input {
        border-radius: var(--radius-md);
        background: var(--surface-white);
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .search-container button {
        border-radius: var(--radius-md);
        padding: 0.85rem;
        width: 100%;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-grid p {
        max-width: 100%;
        margin: 0;
    }

    .data-highlights-row {
        grid-template-columns: 1fr;
    }

    .trust-section {
        padding: 3rem 0;
    }
}

/* Related Services Block */
.related-services-block {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.related-services-block h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: left;
    border: none;
    font-size: 1.5rem;
}

/* Sitemap List */
.sitemap-list {
    list-style: none;
    line-height: 2.5;
    padding-left: 0;
}

.sitemap-list li {
    margin-bottom: 0.5rem;
}

.sitemap-list a {
    color: var(--authority-blue);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}

.sitemap-list a:hover {
    text-decoration: underline;
}