/* Parliament.gov.uz Style Footer */
/* Easy to customize color palette using CSS variables */


/* ============================================
   COLOR PALETTE - Unified Government Style
   Matches Nav and Hero colors
   ============================================ */
:root {
    /* Primary Blues - Same as Nav/Hero */
    --footer-primary: #2d4a6f;
    --footer-primary-dark: #1e3654;
    --footer-primary-darker: #152638;
    --footer-primary-darkest: #0d1a26;

    /* Footer Background - Dark Government Blue */
    --footer-bg-start: #152638;
    --footer-bg-end: #1e3654;

    /* Gold Accents - Same as Nav/Hero */
    --footer-accent: #c9a962;
    --footer-accent-bright: #f5c842;
    --footer-accent-light: #d4b872;
    --footer-accent-glow: rgba(201, 169, 98, 0.15);

    /* Text Colors */
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.75);
    --footer-text-subtle: rgba(255, 255, 255, 0.5);

    /* Border Colors */
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-border-accent: rgba(201, 169, 98, 0.25);
}

.parliament-footer {
    font-family: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: var(--footer-text);
    margin-top: auto;
}

/* #allrecords a {
    color: #fff !important;
    text-decoration: none;
} */
/* Container */
.parliament-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Footer Content */
.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Footer Sections */
.footer-section {
    padding: 0;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.footer-subtitle {
    font-size: 14px;
    color: var(--footer-text-muted);
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--footer-text-muted);
    font-weight: 400;
}

/* Footer Section Titles */
.footer-section-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--footer-text);
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-bottom: 12px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}

/* Footer Menu */
.parliament-footer .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 4px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 6px 0;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Contact Section */
.footer-contact-info {
    margin-bottom: 30px;
}

.footer-contact-info {
    font-style: normal;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 6px 0;
}

.parliament-footer a.contact-text {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
}

.parliament-footer a.contact-text:hover,
.parliament-footer a.contact-text:focus-visible {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-icon {
    font-size: 16px;
    margin-right: 12px;
    margin-top: 2px;
    opacity: 0.7;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    font-size: 15px;
    color: var(--footer-text-muted);
    font-weight: 400;
}

/* Footer Special Button */
.footer-special-btn {
    margin-top: 20px;
}

.footer-map-btn {
    background: #fff;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.map-btn-icon {
    font-size: 16px;
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    font-size: 14px;
    color: var(--footer-text-subtle);
    margin: 0;
    font-weight: 400;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-label {
    font-size: 14px;
    color: var(--footer-text-muted);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--footer-border);
}

.social-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   VISITOR STATISTICS SECTION
   Clean, minimal professional design
   ============================================ */
.footer-stats {
    background: rgba(0, 0, 0, 0.15);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-content {
    text-align: center;
}

.stats-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stats-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.stats-title h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--footer-text-muted);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 800px;
    margin: 0 auto 20px;
}

.stat-item {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    transition: color 0.2s ease;
}

.stat-label {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Countries Section */
.countries-section {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0 0;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countries-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--footer-text-subtle);
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.countries-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
}

.country-flag {
    font-size: 18px;
}

.country-name {
    font-size: 13px;
    color: var(--footer-text-muted);
    font-weight: 400;
}

.country-count {
    font-size: 13px;
    color: var(--footer-accent);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        max-width: none;
    }
}

@media (max-width: 768px) {
    /* Phones: one column, left-aligned like the rest of the page */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-social {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .footer-main {
        padding: 30px 0 20px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-map-btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px 10px;
    }

    /* Two columns here: no divider after the right-hand item */
    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 10px;
    }

    .countries-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-title h4 {
        font-size: 14px;
    }

    .footer-stats {
        padding: 20px 0;
    }
}



/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* High Quality Rendering */
.parliament-footer {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States for Accessibility */
.footer-link:focus,
.footer-map-btn:focus,
.social-link:focus {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
    border-radius: 4px;
}
