/* Custom CSS for Bangladesh Climate Data Homepage */

/* Global Styles */
:root {
    --primary-color: #5b7bb8;
    --secondary-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --card-bg: #ffffff;
    --hero-bg: #f4f6f8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Top Bar Styles */
.top-bar {
    background-color: #e9ecef;
    padding: 0.6rem 0;
    border-bottom: 1px solid #dee2e6;
}

.top-bar .navbar {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Force transparent navbar with maximum specificity */
.navbar.navbar-expand-lg {
    background-color: transparent !important;
    background: transparent !important;
}

.top-bar .navbar.navbar-expand-lg {
    background-color: transparent !important;
    background: transparent !important;
}

.top-bar .nav-link {
    font-weight: 500;
    color: #495057 !important;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0 !important;
}

.top-bar .nav-link:hover {
    color: #212529 !important;
}

.top-bar .nav-link.active {
    color: #212529 !important;
    font-weight: 600;
}

.top-bar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #495057;
}

.top-brand {
    text-decoration: none;
    color: inherit;
}

.top-brand:hover {
    text-decoration: none;
    color: inherit;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: 1px solid #ced4da;
}

.brand-text {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.language-toggle {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    color: #6c757d;
}

.lang-btn {
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.lang-btn.active {
    font-weight: 600;
    background-color: white;
    color: #495057;
}

.lang-separator {
    margin: 0 0.2rem;
    color: #adb5bd;
}

/* Navigation Styles */
.navbar {
    background-color: transparent !important;
    padding: 0.4rem 0;
    box-shadow: none;
    border-bottom: none;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    margin: 0 1.2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link:hover {
    color: #212529 !important;
}

.nav-link.active {
    color: #212529 !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #495057;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #6c757d;
    padding: 0.4rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.navbar .dropdown-item {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

.navbar .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #212529;
}

.navbar .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: #e9ecef;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.1em;
}

/* Ensure dropdown appears on hover for better UX */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar .dropdown .dropdown-menu {
    display: none;
}

.navbar .dropdown.show .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/><circle cx="40" cy="60" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.explore-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a6ba0 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(91, 123, 184, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 123, 184, 0.4);
    background: linear-gradient(135deg, #4a6ba0 0%, var(--primary-color) 100%);
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background-color: white;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 70px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.humidity,
.national-avg {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-top: 0.3rem;
}

/* Main Content Section */
.main-content {
    padding: 3rem 0;
    background-color: #fafbfc;
}

/* Map Container */
.map-container {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.map-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bangladesh-map {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.view-map-btn {
    align-self: center;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-map-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* News Section */
.news-section {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    background-color: #fafbfc;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}

.news-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-headline a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.news-item:hover .news-headline {
    color: var(--primary-color);
}

.news-preview {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #4a6ba0;
    text-decoration: none;
}

/* View All News Button */
.view-all-news {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a6ba0 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(91, 123, 184, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 123, 184, 0.4);
    background: linear-gradient(135deg, #4a6ba0 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
}

.view-all-btn i {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: white;
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.footer-links {
    display: flex;
    align-items: center;
}

.footer-logo {
    background-color: #f6f8fa;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.separator {
    margin: 0 1rem;
    color: var(--text-light);
    font-weight: 300;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.social-links {
    margin-bottom: 1rem;
}

.social-link {
    display: inline-block;
    width: 42px;
    height: 42px;
    background-color: #f6f8fa;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    color: var(--text-light);
    text-decoration: none;
    margin-left: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .top-bar {
        padding: 0.4rem 0;
    }
    
    .top-bar .nav-link {
        margin: 0 0.5rem;
        font-size: 0.75rem;
    }
    
    .brand-text {
        font-size: 0.85rem;
    }
    
    .language-toggle {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    /* Mobile dropdown styles */
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-top: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .navbar .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar .dropdown-divider {
        margin: 0;
        border-color: #dee2e6;
    }
    
    /* Mobile navigation improvements */
    .top-bar {
        position: relative;
        overflow: visible;
    }
    
    .top-bar .navbar-collapse {
        background-color: white !important;
        border-radius: 12px;
        margin-top: 15px;
        padding: 0;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        width: 280px;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1050 !important;
        max-width: none;
        display: none;
        border: 1px solid #e9ecef;
    }
    
    .top-bar .navbar-collapse.show {
        display: block !important;
    }
    
    .top-bar .navbar {
        position: relative;
    }
    
    .top-bar .container {
        position: relative;
    }
    
    .top-bar .navbar-nav {
        width: 100%;
        padding: 20px 0;
    }
    
    .top-bar .nav-item {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .top-bar .nav-item:last-child {
        border-bottom: none;
    }
    
    .top-bar .nav-link {
        width: 100%;
        padding: 16px 20px !important;
        margin: 0 !important;
        background-color: transparent;
        border: none;
        text-align: left;
        transition: all 0.3s ease;
        display: block;
        color: #2c3e50 !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
        white-space: nowrap;
    }
    
    
    .top-bar .nav-link:hover {
        background-color: #f8f9fa;
        color: #495057 !important;
        text-decoration: none;
        padding-left: 30px;
    }
    
    .top-bar .nav-link.active {
        background-color: #e9ecef;
        color: #495057 !important;
        font-weight: 600;
    }
    
    /* Hamburger menu button styling */
    .top-bar .navbar-toggler {
        border: none;
        padding: 8px;
        background-color: transparent;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .top-bar .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .top-bar .navbar-toggler:hover {
        background-color: #f8f9fa;
    }
    
    .top-bar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .map-container,
    .news-section {
        margin-bottom: 2rem;
        padding: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .footer-link {
        margin-top: 0.8rem;
    }
    
    .social-links {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stats-section,
    .main-content {
        padding: 2rem 0;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Loading and Animation States */
.stat-card,
.map-container,
.news-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.explore-btn:focus,
.view-map-btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Historical Climate Data Page Styles */
.historical-climate-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    min-height: 100vh !important;
    padding: 60px 0 !important;
}

.historical-climate-page .page-header {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.historical-climate-page .page-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    letter-spacing: -1px !important;
}

.historical-climate-page .page-subtitle {
    font-size: 1.25rem !important;
    color: #5a6c7d !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* SINGLE UNIFIED CARD - FORCE OVERRIDE ALL CONFLICTING STYLES */
.historical-climate-page .data-analysis-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid #e1e8ed !important;
    position: relative !important;
    overflow: hidden !important;
}

/* NUCLEAR OPTION - FORCE REMOVE ALL CARD STYLING (EXCEPT FORM ELEMENTS & CHART PLACEHOLDERS) */
.historical-climate-page .data-analysis-card *:not(.filter-select):not(.apply-filters-btn):not(.btn):not(button):not(select):not(.chart-placeholder):not(.chart-content):not(#climate-chart-placeholder):not(#climate-chart-container):not(.chart-main):not(.download-section):not(.download-btn),
.historical-climate-page .data-analysis-card > *:not(.filters-section):not(.visualization-section):not(.download-section),
.historical-climate-page .data-analysis-card .filters-section:not(.filter-select):not(.chart-placeholder):not(.chart-content),
.historical-climate-page .data-analysis-card .visualization-section:not(.filter-select):not(.chart-placeholder):not(.chart-content):not(.download-section):not(.download-btn),
.historical-climate-page .data-analysis-card .viz-item:not(.chart-placeholder):not(.chart-content),
.historical-climate-page .data-analysis-card .viz-row:not(.chart-placeholder):not(.chart-content),
.historical-climate-page .data-analysis-card .viz-container:not(.chart-placeholder):not(.chart-content),
.historical-climate-page .data-analysis-card .chart-item:not(.chart-placeholder):not(.chart-content),
.historical-climate-page .data-analysis-card .map-item:not(.chart-placeholder):not(.chart-content) {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* PRESERVE DROPDOWN STYLING WITHIN DATA ANALYSIS CARD */
.historical-climate-page .data-analysis-card .filter-select {
    width: 100% !important;
    padding: 12px 18px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background: white !important;
    background-color: white !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* PRESERVE DOWNLOAD SECTION STYLING WITHIN DATA ANALYSIS CARD */
.historical-climate-page .data-analysis-card .download-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 20px !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.historical-climate-page .data-analysis-card .download-btn {
    background: #11998e !important;
    background-color: #11998e !important;
    background-image: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3) !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.historical-climate-page .data-analysis-card .download-btn:hover {
    background: #0d7a6f !important;
    background-color: #0d7a6f !important;
    background-image: linear-gradient(135deg, #0d7a6f 0%, #2dd473 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.historical-climate-page .data-analysis-card .download-btn i {
    margin-right: 8px !important;
    font-size: 1rem !important;
}

.historical-climate-page .data-analysis-card .filter-select:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

/* PRESERVE CHART PLACEHOLDER STYLING WITHIN DATA ANALYSIS CARD */
.historical-climate-page .data-analysis-card .chart-placeholder,
.historical-climate-page .data-analysis-card #climate-chart-placeholder {
    width: 100% !important;
    height: 450px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    background-color: #f093fb !important;
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.historical-climate-page .data-analysis-card .chart-content {
    position: relative !important;
    z-index: 2 !important;
    color: white !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.historical-climate-page .data-analysis-card .chart-content i,
.historical-climate-page .data-analysis-card .chart-content div,
.historical-climate-page .data-analysis-card .chart-content small {
    color: white !important;
    background: none !important;
    border: none !important;
    margin: 5px 0 !important;
}

.historical-climate-page .data-analysis-card .chart-main,
.historical-climate-page .data-analysis-card #climate-chart-container {
    position: relative !important;
    min-height: 350px !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
}

/* FORCE SINGLE CARD APPEARANCE */
.historical-climate-page .data-analysis-card {
    display: block !important;
    position: relative !important;
}

.historical-climate-page .data-analysis-card > .filters-section,
.historical-climate-page .data-analysis-card > .visualization-section {
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
}

/* FILTERS SECTION STYLING WITHIN SINGLE CARD */
.historical-climate-page .data-analysis-card > .filters-section {
    margin: 0 0 30px 0 !important;
    padding: 0 0 30px 0 !important;
    border-bottom: 2px solid #e1e8ed !important;
    position: relative !important;
    background: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

/* VISUALIZATION SECTION STYLING WITHIN SINGLE CARD */
.historical-climate-page .data-analysis-card > .visualization-section {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* DISABLE ALL INDIVIDUAL SECTION STYLING - ONLY COMBINED CARD APPLIES */
.historical-climate-page .filters-section:not(.data-analysis-card .filters-section) {
    display: none !important;
}

.historical-climate-page .visualization-section:not(.data-analysis-card .visualization-section) {
    display: none !important;
}

/* FORCE OVERRIDE ANY REMAINING CONFLICTING STYLES */

.historical-climate-page .filters-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* PRESERVE BUTTON STYLING WITHIN DATA ANALYSIS CARD */
.historical-climate-page .data-analysis-card .apply-filters-btn,
.historical-climate-page .apply-filters-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

.historical-climate-page .data-analysis-card .btn-outline-secondary,
.historical-climate-page .btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Individual visualization section styling disabled - only combined card styling applies */

.historical-climate-page .viz-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.viz-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Full-width sections for new layout */
.historical-climate-page .full-width {
    width: 100% !important;
    margin-bottom: 40px !important;
}

/* Climate Finance Template Style Layout */
.historical-climate-page .viz-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

.historical-climate-page .viz-row {
    width: 100% !important;
}

/* VIZ-ITEM COMPLETELY INTEGRATED INTO SINGLE CARD */
.historical-climate-page .data-analysis-card .viz-item,
.historical-climate-page .data-analysis-card .viz-item.chart-item,
.historical-climate-page .data-analysis-card .viz-item.map-item {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    min-height: auto !important;
}

/* DISABLE ANY HOVER EFFECTS THAT MIGHT CREATE CARD APPEARANCE */
.historical-climate-page .data-analysis-card .viz-item:hover,
.historical-climate-page .data-analysis-card .viz-item.chart-item:hover,
.historical-climate-page .data-analysis-card .viz-item.map-item:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* OLD VIZ-ITEM STYLES DISABLED - ONLY DATA-ANALYSIS-CARD STYLES APPLY */

.historical-climate-page .viz-item-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.historical-climate-page .viz-item-description {
    color: #5a6c7d !important;
    text-align: center !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
}

/* Chart placeholder styling */
.historical-climate-page .chart-placeholder {
    width: 100% !important;
    height: 500px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.historical-climate-page .chart-placeholder::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 150px;
    background: linear-gradient(to top, 
        rgba(255,255,255,0.3) 0%, 
        rgba(255,255,255,0.3) 20%, 
        transparent 20%, 
        transparent 40%, 
        rgba(255,255,255,0.3) 40%, 
        rgba(255,255,255,0.3) 70%, 
        transparent 70%, 
        transparent 85%, 
        rgba(255,255,255,0.3) 85%, 
        rgba(255,255,255,0.3) 100%
    );
    border-radius: 4px;
}

.historical-climate-page .chart-content {
    position: relative !important;
    z-index: 1 !important;
    color: white !important;
    text-align: center !important;
}

/* Map placeholder styling */
.historical-climate-page .map-placeholder {
    width: 100% !important;
    height: 250px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.historical-climate-page .map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.historical-climate-page .map-content {
    position: relative !important;
    z-index: 1 !important;
    text-align: center !important;
}

/* Chart Type Buttons */
.historical-climate-page .btn-group .btn-sm {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.historical-climate-page .btn-check:checked + .btn-outline-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: white !important;
}

.historical-climate-page .chart-main {
    position: relative !important;
    min-height: 500px !important;
    height: 500px !important;
    width: 100% !important;
}

/* Ensure proper chart container positioning */
.historical-climate-page #climate-chart-container {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
}

.historical-climate-page #climate-chart-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

.historical-climate-page #actual-chart-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
}

.historical-climate-page #climateChart {
    width: 100% !important;
    height: 100% !important;
}

/* Clear All Button Styling */
.historical-climate-page .btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.historical-climate-page .btn-outline-secondary:hover {
    background: #6c757d !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4) !important;
}

.historical-climate-page .btn-outline-secondary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.25) !important;
}

.historical-climate-page .map-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.historical-climate-page .chart-section {
    display: flex !important;
    flex-direction: column !important;
}

/* Bangladesh Map Container for full-width layout */
.historical-climate-page .bangladesh-map-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.historical-climate-page .chart-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.historical-climate-page .chart-subtitle {
    font-size: 0.9rem !important;
    color: #5a6c7d !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* Bangladesh Map */
.bangladesh-map {
    width: 300px;
    height: 400px;
    position: relative;
    margin-bottom: 20px;
}

.map-svg {
    width: 100%;
    height: 100%;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: #f8fafc;
    padding: 20px;
    box-sizing: border-box;
}

.map-outline {
    fill: #cbd5e0;
    stroke: #2c3e50;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.map-outline:hover {
    fill: #3498db;
    cursor: pointer;
}

.district-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #3498db;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.temperature-value {
    font-size: 1.5rem;
    color: #e74c3c;
}

/* Line Chart */
.chart-container {
    width: 100%;
    height: 500px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: white;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-grid {
    stroke: #e1e8ed;
    stroke-width: 1;
    stroke-dasharray: 5,5;
}

.chart-axis {
    stroke: #2c3e50;
    stroke-width: 2;
}

.chart-line {
    fill: none;
    stroke: #2c3e50;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-area {
    fill: url(#temperatureGradient);
    opacity: 0.3;
}

.axis-label {
    font-size: 12px;
    fill: #5a6c7d;
    text-anchor: middle;
}

.y-axis-label {
    font-size: 12px;
    fill: #5a6c7d;
    text-anchor: end;
}

/* Download Section */
.download-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
    margin-top: 20px !important;
    padding: 20px !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.download-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3) !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.download-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.download-btn i {
    margin-right: 8px !important;
    font-size: 1rem !important;
}

/* Footer Info */
.data-info {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    margin-bottom: 20px;
}

.data-source {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.metadata-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.metadata-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Historical Climate Page Responsive Design */
@media (max-width: 768px) {
    .historical-climate-page .page-title {
        font-size: 2.5rem !important;
    }
    
    .viz-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Responsive styling for combined data analysis card */
    .historical-climate-page .data-analysis-card {
        padding: 30px 20px !important;
        margin-bottom: 30px !important;
    }
    
    .historical-climate-page .data-analysis-card .filters-section {
        padding: 0 0 25px 0 !important;
        margin: 0 0 25px 0 !important;
    }
    
    .historical-climate-page .data-analysis-card .visualization-section {
        padding: 0 !important;
    }

    .historical-climate-page .bangladesh-map {
        width: 250px !important;
        height: 320px !important;
    }
    
    .historical-climate-page .download-section {
        flex-direction: column !important;
        align-items: center !important;
    }

    .historical-climate-page .full-width {
        margin-bottom: 30px !important;
    }

    .historical-climate-page .viz-container {
        gap: 20px !important;
    }

    .historical-climate-page .viz-item {
        padding: 25px !important;
    }

    .historical-climate-page .viz-item.chart-item {
        min-height: 500px !important;
    }

    .historical-climate-page .viz-item.map-item {
        min-height: 350px !important;
    }

    .historical-climate-page .chart-placeholder {
        height: 500px !important;
    }

    .historical-climate-page .map-placeholder {
        height: 250px !important;
    }

    .historical-climate-page .btn-group {
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
    }

    .historical-climate-page .btn-group .btn-sm {
        flex: 1 !important;
        min-width: 120px !important;
        max-width: 140px !important;
    }

    .historical-climate-page .viz-item-title {
        font-size: 1.1rem !important;
    }

    .historical-climate-page .viz-item-description {
        font-size: 0.9rem !important;
    }

    .historical-climate-page .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .historical-climate-page .btn-outline-secondary {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }

    .historical-climate-page .apply-filters-btn {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Mobile responsive styling for combined data analysis card */
    .historical-climate-page .data-analysis-card {
        padding: 25px 15px !important;
        border-radius: 10px !important;
    }
    
    .historical-climate-page .data-analysis-card .filters-section {
        padding: 0 0 20px 0 !important;
        margin: 0 0 20px 0 !important;
    }
    
    .historical-climate-page .filters-title,
    .historical-climate-page .viz-title {
        font-size: 1.25rem !important;
    }
    
    .historical-climate-page .btn-group .btn-sm {
        min-width: 100px !important;
        max-width: 110px !important;
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    .historical-climate-page .chart-placeholder {
        height: 350px !important;
    }

    .historical-climate-page .map-placeholder {
        height: 200px !important;
    }

    .historical-climate-page .data-analysis-card .viz-item.chart-item {
        min-height: 500px !important;
    }

    .historical-climate-page .data-analysis-card .viz-item.map-item {
        min-height: 300px !important;
    }
}

/* Contact Page Styles */
.contact-page {
    background: #f8f9fa !important;
    min-height: 100vh !important;
    padding: 60px 0 !important;
}

.contact-page .page-header {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.contact-page .page-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    letter-spacing: -1px !important;
}

.contact-page .page-subtitle {
    font-size: 1.25rem !important;
    color: #5a6c7d !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Contact Cards Layout - Image 02 Design */
.contact-cards-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    background: transparent !important;
}

.contact-page .contact-cards-container {
    background: transparent !important;
}

.contact-page .contact-card {
    background: white !important;
    background-color: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: 1px solid #e5e5e5 !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 100px !important;
}

/* Force card visibility with maximum specificity */
.contact-page .contact-cards-container .contact-row .contact-card {
    background: white !important;
    background-color: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: 1px solid #e5e5e5 !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 100px !important;
}

.contact-row {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.contact-row:last-child {
    margin-bottom: 0 !important;
}

/* Top Row: Two equal cards */
.top-row .contact-card {
    flex: 1 !important;
    min-height: 100px !important;
}

/* Middle and Bottom Rows: Full width cards */
.middle-row .contact-card,
.bottom-row .contact-card {
    flex: 1 !important;
    min-height: 120px !important;
}

.contact-card {
    background: white !important;
    background-color: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: 1px solid #e5e5e5 !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
}

.contact-card-icon {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.contact-card-icon i {
    font-size: 1rem !important;
    color: #666666 !important;
}

.contact-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.contact-card-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
}

.contact-card-value {
    color: #666666 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.contact-card-value p {
    margin-bottom: 2px !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    color: #666666 !important;
}

.contact-card-value p:last-child {
    margin-bottom: 0 !important;
}

/* Info Section */
.info-section {
    background: white !important;
    border-radius: 15px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid #e1e8ed !important;
    text-align: center !important;
}

.info-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
}

.info-description {
    font-size: 1.1rem !important;
    color: #5a6c7d !important;
    line-height: 1.7 !important;
    margin-bottom: 30px !important;
}

.info-features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

.feature-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    border: 1px solid #e1e8ed !important;
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(91, 123, 184, 0.3) !important;
}

.feature-item i {
    font-size: 1.2rem !important;
    margin-right: 10px !important;
    color: var(--primary-color) !important;
    transition: color 0.3s ease !important;
}

.feature-item:hover i {
    color: white !important;
}

.feature-item span {
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

/* Contact Page Responsive Design */
@media (max-width: 768px) {
    .contact-page .page-title {
        font-size: 2.5rem !important;
    }
    
    .contact-page .page-subtitle {
        font-size: 1.1rem !important;
        padding: 0 1rem !important;
    }
    
    .contact-cards-container {
        padding: 0 15px !important;
    }
    
    .contact-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .top-row .contact-card {
        min-height: 90px !important;
    }
    
    .middle-row .contact-card,
    .bottom-row .contact-card {
        min-height: 110px !important;
    }
    
    .contact-card {
        padding: 18px !important;
    }
    
    .contact-card-icon {
        width: 18px !important;
        height: 18px !important;
        margin-right: 12px !important;
    }
    
    .contact-card-icon i {
        font-size: 0.9rem !important;
    }
    
    .contact-card-label {
        font-size: 0.95rem !important;
    }
    
    .contact-card-value {
        font-size: 0.85rem !important;
    }
    
    .contact-card-value p {
        font-size: 0.85rem !important;
    }
    
    .info-section {
        padding: 30px 25px !important;
    }
    
    .info-title {
        font-size: 1.75rem !important;
    }
    
    .info-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .contact-page .page-title {
        font-size: 2rem !important;
    }
    
    .contact-cards-container {
        padding: 0 10px !important;
    }
    
    .contact-row {
        gap: 12px !important;
    }
    
    .contact-card {
        padding: 15px !important;
    }
    
    .top-row .contact-card {
        min-height: 80px !important;
    }
    
    .middle-row .contact-card,
    .bottom-row .contact-card {
        min-height: 100px !important;
    }
    
    .contact-card-icon {
        width: 16px !important;
        height: 16px !important;
        margin-right: 10px !important;
    }
    
    .contact-card-icon i {
        font-size: 0.8rem !important;
    }
    
    .contact-card-label {
        font-size: 0.9rem !important;
    }
    
    .contact-card-value {
        font-size: 0.8rem !important;
    }
    
    .contact-card-value p {
        font-size: 0.8rem !important;
    }
    
    .info-section {
        padding: 25px 20px !important;
    }
    
    .info-title {
        font-size: 1.5rem !important;
    }
    
    .info-description {
        font-size: 1rem !important;
    }
}