/* --- Global Styles & Variables --- */
:root {
    /* --- UPDATED GLOSSY PURPLE/WHITE/TRANSPARENT THEME --- */
    --primary-color: #8A2BE2;       /* Vibrant Purple (Blue Violet) - Keep */
    --primary-color-light: #C39BD3;   /* Lighter Purple/Lavender - Keep */
    --primary-color-dark: #5D3FD3;     /* Darker Purple (Iris) - Keep */
    /* Make secondary background almost white, very light purple tint */
    --secondary-color: #faf5ff;
    --text-dark: #1f2937;             /* Keep dark text for readability */
    --text-medium: #4b5563;           /* Keep medium text */
    --text-light: #f9fafb;            /* Keep light text for dark backgrounds */
    --white: #ffffff;
    /* Use a very subtle border, light grey or light lavender */
    --border-color: #e9d8f5;         /* Lighter Lavender border */

    /* --- Shadows & Radius (Keep) --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif; /* Keep font */

    /* Keep faint purple background pattern */
    --background-pattern: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-1 1h2v2H-1zM9 1h2v2H9zM-1 9h2v2H-1zM9 9h2v2H9z' fill='%23C39BD3' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Keep Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Keep Reset and Basic Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; /* Adjust if header height changes */ }
body {
    font-family: var(--font-family);
    color: var(--text-medium);
    line-height: 1.6;
    background-color: var(--white); /* Base white */
    background-image: var(--background-pattern); /* Subtle pattern */
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color-dark); }
h1, h2, h3, h4 { color: var(--text-dark); margin-bottom: 0.75em; line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1em; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Buttons - Ensure they use the primary purple */
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--border-radius); font-weight: 500; text-align: center; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent; font-size: 0.95rem; }
.btn i { margin-left: 8px; font-size: 0.9em; }
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-color-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Secondary button uses white background, purple text, light border */
.btn-secondary { background-color: var(--white); color: var(--primary-color); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--secondary-color); /* Very light purple tint */ border-color: var(--primary-color-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
/* Outline button uses transparent background */
.btn-secondary-outline { background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 8px 16px; }
.btn-secondary-outline:hover { background-color: rgba(from var(--primary-color) r g b / 0.1); border-color: var(--primary-color-dark); } /* Use primary color with alpha */


/* --- Header --- (Keep glassy transparent effect) */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    /* Glossy Transparent Effect */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent; /* Start fully transparent */
}
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly less transparent on scroll */
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color); /* Subtle border on scroll */
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- UPDATED Header Logo Styles --- */
.logo-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.header-logo-img {
    height: 40px;
    width: auto;
    display: block;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    padding: 2px;
}

.main-nav ul { display: flex; align-items: center; }
.main-nav ul li { margin-left: 25px; position: relative; }
.main-nav ul li a { color: var(--text-dark); font-weight: 500; padding: 5px 0; position: relative; }
.main-nav ul li a i { font-size: 0.7em; margin-left: 4px; }
.main-nav ul li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }

/* Dropdown Menu Styles (Keep as is, colors inherit) */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--border-radius); padding: 10px 0; min-width: 180px; margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; }
.dropdown:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { margin: 0; }
.dropdown-menu li a { display: block; padding: 8px 20px; color: var(--text-medium); font-weight: 400; white-space: nowrap; }
.dropdown-menu li a:hover { background-color: var(--secondary-color); color: var(--primary-color); }
.dropdown-menu li a::after { display: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* --- Hero Section --- */
.hero-section { padding: 80px 0; min-height: 80vh; display: flex; align-items: center; /* Maybe use --secondary-color for gradient */ background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--secondary-color) 100%); }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-subtitle {
    /* Use new primary color */
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    /* UPDATED: Use CSS variable for background */
    background-color: rgba(from var(--primary-color) r g b / 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* --- REMOVED Gradient Text Style --- */
/* .gradient-text { ... } */

.hero-description { font-size: 1.1rem; max-width: 500px; margin-bottom: 30px; }
.hero-buttons .btn { margin-right: 15px; margin-bottom: 10px; }
.hero-buttons .btn:last-child { margin-right: 0; }
.hero-charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chart-card { background-color: var(--white); padding: 15px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color); } /* Added border */
.chart-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.chart-card canvas { max-height: 100px; width: 100% !important; margin-bottom: 10px; }
.chart-card p { font-size: 0.85rem; color: var(--text-medium); font-weight: 500; margin-bottom: 0; }


/* --- Section Base Styles --- */
.reports-section, .story-graphs-section, .data-sources-section { padding: 60px 0; }
.section-tag {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    padding: 5px 12px;
    background-color: rgba(from var(--primary-color) r g b / 0.1);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.9rem;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1em;
}
.section-description {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-medium);
}

/* --- Reports & Insights Section --- */
.filter-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn { padding: 8px 18px; background-color: var(--white); /* Use white */ border: 1px solid var(--border-color); color: var(--text-medium); border-radius: 20px; cursor: pointer; transition: all 0.3s ease; font-size: 0.9rem; }
.filter-btn:hover { background-color: var(--secondary-color); /* Light background hover */ color: var(--primary-color-dark); border-color: var(--primary-color-light); }
.filter-btn.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); } /* Active keeps primary */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.report-card { background-color: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow-md); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid var(--border-color); } /* Added border */
.report-card.hide { display: none; }
.report-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.report-card:hover .card-image img { transform: scale(1.05); }
.category-tag { position: absolute; top: 10px; left: 10px; background-color: rgba(from var(--primary-color) r g b / 0.8); color: var(--white); padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; margin-right: 5px; } /* Adjusted alpha background */
.category-tag:nth-of-type(2) { left: auto; left: 70px; /* Adjust based on typical tag width */ }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content .date { font-size: 0.8rem; color: var(--text-medium); margin-bottom: 8px; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 2.6em; }
.card-content p { font-size: 0.9rem; margin-bottom: 15px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 4.8em; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px; }
.read-more { font-weight: 600; color: var(--primary-color); }
.read-more i { transition: transform 0.3s ease; }
.read-more:hover i { transform: translateX(4px); }
.share-icons a { color: var(--text-medium); margin-left: 10px; font-size: 0.9rem; }
.share-icons a:hover { color: var(--primary-color); }
.view-all-btn-container { text-align: center; margin-top: 40px; }


/* --- Story by Graphs Section --- */
.story-graphs-section { background-color: var(--secondary-color); } /* Use light bg */
.carousel-container {
    position: relative;
    /* Add some bottom padding if controls/pagination overlap actions */
    padding-bottom: 50px;
}
.carousel-slider { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide {
    /* UPDATED: Change display to block or flex column */
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 30px; /* Add padding around the whole slide */
    border: 1px solid var(--border-color);
    /* Remove fixed height if previously set */
    /* height: 450px; */
    opacity: 0; /* Keep for fade transition */
    transition: opacity 0.5s ease-in-out; /* Keep transition */
    position: absolute; /* Keep for carousel functionality */
    top: 0;
    left: 0;
    width: 100%;
}
.carousel-slide.active {
    opacity: 1;
    position: relative; /* Active slide is positioned normally */
}

/* Style for the content (title/description) at the top */
.story-content {
    margin-bottom: 20px; /* Space below text, above chart */
    text-align: center; /* Center title and description */
}
.story-content h3 {
    color: var(--primary-color-dark); /* Darker purple title */
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.story-content h3 i {
    margin-right: 8px;
    color: var(--primary-color); /* Primary purple icon */
}
.story-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    max-width: 80%; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

/* Container for the chart canvas */
.chart-container {
    width: 100%; /* Make chart container take full width */
    margin-bottom: 20px; /* Space below chart, above actions */
    /* Optional: Set a max-height or aspect-ratio */
    /* max-height: 400px; */
    aspect-ratio: 2 / 1; /* Example: Make width twice the height */
}
.chart-container canvas {
    max-width: 100%;
    max-height: 100%; /* Ensure canvas respects container height */
}


/* ADDED: Styles for the bottom actions bar */
.slide-actions {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    gap: 15px; /* Add gap for spacing when wrapping */
}

/* UPDATED: Style the container for the buttons */
.action-links {
    display: flex;
    gap: 15px; /* Space between the buttons */
    align-items: center; /* Align buttons vertically */
}

/* Ensure icons inside buttons have correct spacing */
.action-links .btn i {
    margin-right: 8px;
}

/* Styles for the share icons (similar to report card) */
.slide-actions .share-icons {
    /* Ensure share icons align nicely */
    display: flex;
    align-items: center;
    gap: 8px; /* Space between "Share:" text and icons */
}
.slide-actions .share-icons span {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-right: 10px;
    vertical-align: middle;
}
.slide-actions .share-icons a {
    color: var(--text-medium); /* Icon color */
    margin-left: 8px; /* Space between icons */
    font-size: 1rem;
    transition: color 0.3s ease;
    vertical-align: middle;
}
.slide-actions .share-icons a:hover {
    color: var(--primary-color); /* Purple hover */
}


/* Adjust Carousel Controls position if needed */
.carousel-control {
    top: 50%; /* Adjust vertical position if needed */
    transform: translateY(-50%);
    /* Ensure controls are above pagination/actions */
    z-index: 10;
    /* Keep other styles */
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: var(--shadow-sm);
}
.carousel-control.prev { left: -20px; } /* Adjust horizontal position */
.carousel-control.next { right: -20px; } /* Adjust horizontal position */
.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color-dark);
}

/* Adjust Pagination position */
.carousel-pagination {
    position: absolute;
    bottom: 10px; /* Position pagination below container */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-pagination span { width: 10px; height: 10px; background-color: var(--border-color); border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; }
.carousel-pagination span.active { background-color: var(--primary-color); }


/* --- Data Sources Section --- */
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 25px; margin-bottom: 40px; }
.source-card { background-color: var(--white); border-radius: var(--border-radius); padding: 25px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; border: 1px solid var(--border-color); }
.source-card:hover { transform: scale(1.05) translateY(-5px); box-shadow: var(--shadow-lg); z-index: 2; border-color: var(--primary-color-light); } /* Highlight border */
.source-card i { color: var(--primary-color); margin-bottom: 15px; transition: color 0.3s ease; }
.source-card:hover i { color: var(--primary-color-dark); }
.source-card h4 { font-size: 1rem; margin-bottom: 5px; color: var(--text-dark); }
.source-card > p { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0; }
.hover-card { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background-color: var(--text-dark); color: var(--white); padding: 10px 15px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); width: max-content; max-width: 200px; text-align: center; font-size: 0.85rem; z-index: 3; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease; visibility: hidden; }
.hover-card::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: var(--text-dark) transparent transparent transparent; }
.source-card:hover .hover-card { display: block; opacity: 1; visibility: visible; }
.hover-card p { margin-bottom: 8px; line-height: 1.4; color: var(--text-light); }
.hover-card a { color: var(--primary-color-light); /* Use light purple for link */ font-weight: 500; font-size: 0.8rem; }
.hover-card a:hover { text-decoration: underline; }
.hover-card a i { font-size: 0.8em; margin-left: 4px; color: inherit; margin-bottom: 0; }


/* --- Footer --- */
.site-footer {
    /* UPDATED: Glossy effect with subtle gradient */
    background: linear-gradient(180deg, var(--primary-color-light) 0%, #d8b4fe 100%); /* Light purple to slightly darker */
    color: var(--text-medium);
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative; /* Needed for potential future pseudo-elements if more gloss is desired */
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* --- Footer Brand Name Style --- */
.footer-brand-name {
    /* UPDATED: Use darker purple for contrast */
    color: var(--primary-color-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-column p {
    /* UPDATED: Use medium text color */
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.social-icons a {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    line-height: 35px; /* Ensure icon is centered */
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    box-shadow: var(--shadow-sm); /* Add subtle shadow */
}
.social-icons a:hover {
    background-color: var(--primary-color-dark);
    color: var(--white);
    transform: translateY(-2px) scale(1.1); /* Lift and scale on hover */
}
/* ADDED: Animation for the icon itself on hover */
.social-icons a:hover i {
    transform: rotate(15deg); /* Slight rotation effect */
    transition: transform 0.3s ease-in-out;
}
.social-icons a i {
     transition: transform 0.3s ease-in-out; /* Smooth transition back */
     display: inline-block; /* Needed for transform */
}
.links-column h4 {
    /* UPDATED: Use darker purple for contrast */
    color: var(--primary-color-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.links-column ul li { margin-bottom: 10px; }
.links-column ul li a {
    /* UPDATED: Use darker text for links */
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
    opacity: 0.9;
}
.links-column ul li a:hover {
    color: var(--primary-color-dark); /* Darker purple hover */
    padding-left: 5px;
    opacity: 1;
}
.newsletter-column h4 {
    /* UPDATED: Use darker purple for contrast */
    color: var(--primary-color-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.newsletter-column p {
    /* UPDATED: Match link color */
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9; /* Match link opacity */
}
.newsletter-form {
    display: flex;
    align-items: center;
    background-color: var(--white); /* White background */
    border-radius: var(--border-radius);
    padding: 5px;
    border: 1px solid var(--border-color); /* Use subtle border */
    box-shadow: var(--shadow-sm); /* Add subtle shadow */
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    /* UPDATED: Increased padding and font size */
    padding: 12px 15px;
    color: var(--text-dark); /* Dark text input */
    outline: none;
    font-size: 1rem; /* Slightly larger font */
}
.newsletter-form input[type="email"]::placeholder {
    color: var(--text-medium);
    opacity: 0.7;
}
.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    /* Adjust size slightly if needed due to input padding change */
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem; /* Slightly larger icon */
    transition: background-color 0.3s;
    flex-shrink: 0;
    margin-left: 5px; /* Add slight gap */
}
.newsletter-form button:hover {
    background-color: var(--primary-color-dark);
}
.footer-bottom {
    /* UPDATED: Use a slightly darker shade of the light purple for separation */
    background-color: #d8b4fe; /* Match gradient end or use rgba(0,0,0,0.05) */
    padding: 20px 0;
    /* UPDATED: Center text */
    text-align: center;
    margin-top: 30px;
}
.footer-bottom p {
    /* UPDATED: Use darker text */
    color: var(--text-dark);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* --- Responsiveness (Keep as is, theme colors will apply) --- */

/* Tablet */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; } h2 { font-size: 1.8rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { order: 2; } .hero-charts-grid { order: 1; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-charts-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
    .reports-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .carousel-slide { grid-template-columns: 1fr; gap: 30px; padding: 20px; }
    .graph-display { min-height: 300px; } .graph-display canvas { max-height: 300px; }
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.2rem; }
    .container { padding: 0 15px; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); box-shadow: var(--shadow-md); padding: 10px 0; flex-direction: column; border-top: 1px solid var(--border-color); }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav ul li { margin: 0; width: 100%; text-align: center; border-bottom: 1px solid var(--border-color); }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav ul li a { display: block; padding: 15px 20px; }
    .main-nav ul li a::after { display: none; }
    .dropdown-menu { display: none !important; } .dropdown > a i { display: none; }
    .menu-toggle { display: block; }
    /* Adjust header logo size for mobile */
    .header-logo-img { height: 35px; }
    .hero-section { padding: 50px 0; }
    .hero-charts-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .reports-section, .story-graphs-section, .data-sources-section { padding: 40px 0; }
    .filter-buttons { gap: 8px; } .filter-btn { padding: 6px 14px; font-size: 0.85rem; }
    .reports-grid { grid-template-columns: 1fr; gap: 20px; }
    .carousel-container { padding: 15px; } .carousel-slide { padding: 15px; gap: 20px; }
    .graph-display { padding: 15px; min-height: 250px; } .graph-display canvas { max-height: 250px; }
    .carousel-control { width: 35px; height: 35px; font-size: 0.9rem; }
    .carousel-control.prev { left: 10px; } .carousel-control.next { right: 10px; }
    .carousel-pagination { bottom: 10px; }
    .sources-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; }
    .source-card { padding: 20px 15px; } .source-card i { margin-bottom: 10px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
     /* Center footer brand name on mobile */
    .footer-brand-name { display: block; margin-left: auto; margin-right: auto; }
    .about-column p, .newsletter-column p { max-width: 300px; margin-left: auto; margin-right: auto; }
    .social-icons { text-align: center; /* Ensure centered */ } /* Explicitly center social icons */
    .social-icons a { margin: 0 5px; /* Adjust spacing */ }
    .newsletter-form { max-width: 300px; margin: 0 auto; }
}

/* ADDED: Style for the header text */
.header-logo-text {
    font-size: 1.7rem; /* Increased font size */
    font-weight: 700; /* Increased font weight (700 is bold) */
    color: var(--primary-color); /* Use the primary purple color */
    line-height: 1; /* Adjust line height for better alignment */
}