body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #000000;
}


header {
  background: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.banner img {
  max-width: 100px; /* Set a maximum width for the logo */
  height: auto;      /* Maintain the image's aspect ratio */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: rgb(255, 77, 0);
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
nav a:hover {
  color: crimson;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.featured img {
  width: 100%;
  border-radius: 10px;
}

.category-filter {
  text-align: center;
  margin: rem 0;
}
.category-filter button {
  margin: 0.4rem;
   margin-top: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid crimson;
  background: white;
  border-radius: 5px;
  cursor: pointer;
}
.category-filter button:hover {
  background: crimson;
  color: white;
}

.news-item {
  background: white;
  border-radius: 10px;
  margin: 1rem 0;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.news-item .category {
  font-size: 0.8rem;
  color: crimson;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #ffffff;
  color: rgb(6, 6, 6);
  margin-top: 2rem;

}


/* Header Styles */
        .site-header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            position: fixed; 
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
        }

        /* Logo Styles */
        .logo a {
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            color: #333;
        }

        
        .site-nav {
            display: none; /* Hide the full menu by default on mobile */
            flex-direction: column;
            width: 100%;
            position: absolute;
            top: 100%; /* Position the menu below the header */
            left: 0;
            background-color: #fafafa;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 3rem 0;
        }

        .site-nav.active {
            display: flex; /* Show the menu when the 'active' class is added */
        }

        .site-nav ul {
            list-style: none;
        }

        .site-nav li a {
            display: block;
            padding: 0.8rem 1.5rem;
            text-decoration: none;
            color: #555;
            transition: background-color 0.3s;
        }

        .site-nav li a:hover {
            background-color: #ffffff;
        }

      
        .hamburger-menu {
            display: block; /* Show the hamburger button on mobile */
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #333;
        }

        /* Media Query for Desktop */
        @media (min-width: 700px) {
            .header-container {
                padding: 1rem 3rem;
            }
            
            .site-nav {
                display: flex; /* Always show the navigation on desktop */
                position: static; /* Reset position */
                flex-direction: row;
                width: auto;
                box-shadow: none;
                background-color: transparent;
                padding: 0;
            }

            .site-nav ul {
                display: flex;
            }

            .site-nav li a {
                padding: 0.5rem 1rem;
            }

            .hamburger-menu {
                display: none; /* Hide the hamburger button on desktop */
            }
        }

/* ==================================== */
/* 🆕 Two-Column Grid for Latest News (news-list) */
/* ==================================== */
.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 20px; /* Space between news cards */
  padding-top: 10px;
}

/* Ensure all news cards in a row have the same height */
.news-card {
  height: 100%; 
  /* The existing flexbox rules already ensure image and text are side-by-side */
  background: white; /* Give cards a background for visual separation */
  border-radius: 10px; /* Slightly rounded corners */
  padding: 7px; /* Inner padding */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 0; /* Remove default margin from previous .news-item style */
  /* Existing flexbox properties: */
  display: flex; /* Use flexbox to align image and text side-by-side */
  align-items: flex-start; /* Align items to the top */
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit text color */
}

/* Responsive adjustment for the grid */
@media (max-width: 700px) {
  .news-list {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}
/* ==================================== */



.contact-section {
    background: linear-gradient(to right, #e0e7ff, #f9f9f9);
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.contact-section h2 {
    text-align: center;
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-section p.subtitle {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 50px;
}

/* Container for form and info */
.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.contact-form button {
    background: linear-gradient(135deg, #4CAF50, #0f9b0f);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #45a049, #07d107);
    transform: scale(1.05);
}

/* Contact Info */
.contact-info {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #4CAF50;
    margin-bottom: 20px; 
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
}

.contact-info i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 700px) {
    .contact-container {
        flex-direction: column;
    }
}





.social-footer {
  background-color: #ffffff; 
  text-align: center;
  padding: 10px 0;
}

.social-footer a {
  color: rgb(6, 6, 6);
  margin: 0 3px;
  font-size: 24px;
  transition: color 0.3s ease;
}
.social-footer a:hover {
    color: #f31212;}




/* Styles for images within news articles to make them like thumbnails */
.news-card img { /* Target images inside news cards */
  width: 100px; /* Fixed width */
  height: 80px;  /* Fixed height, adjust as needed */
  object-fit: cover; /* Ensures the image covers the area without distortion, cropping if necessary */
  border-radius: 5px; /* Slightly rounded corners for a softer look */
  margin-right: 15px; /* Space between image and text */
  flex-shrink: 0; /* Prevents the image from shrinking if content is too long */
}


.card-content {
  flex-grow: 1;
   /* Allows the content to take up remaining space */
}

.news-card h3 {
  font-size: 1.1em; /* Adjust font size for title */
  margin-top: 0;
  margin-bottom: 5px;
}

.news-card p {
  font-size: 0.9em; /* Adjust font size for content preview */
  color: #555;
  margin-bottom: 0;
}



/* Styling for the bottom footer */
.footer-bottom {
    background-color: #ffffff;
    color: #fffbfb;
    padding: 15px;
    text-align: center;
    text-decoration: none;
}

      #google_translate_element {
        display: none;
      }
      #language-selector {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 1.5rem 0;
        flex-wrap: wrap;
      }
      #language-selector a {
        text-decoration: none;
        color: #fff;
        background-color: #ff0000;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-shadow: 0 2px 8px rgba(255, 225, 0, 0.3);
      }
      #language-selector a:hover {
        background-color: #0f0f0f;
        transform: translateY(-2px);
      }



      
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      
    }

    /* Navbar */
    nav {
      background: #ffffff;
    }    



nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #000000;
  padding: 14px 20px;
  display: block;
  text-decoration: none;
}

nav ul li a:hover {
  background: #f0f0f0;
}

/* First dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 1000;
}

nav ul li:hover > ul {
  display: block;
}

/* Second-level dropdown */
nav ul li ul li ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav ul li ul li:hover > ul {
  display: block;
}

/* Fix spacing inside dropdown */
nav ul li ul li a {
  padding: 10px 15px;
  white-space: nowrap;
}





/* ==================================== */
/* 🆕 Side Navigation Layout & Styling */
/* ==================================== */

/* Main layout for the content area */
.main-content-layout {
  display: flex; /* Enable flexbox for side-by-side columns */
  gap: 30px; /* Space between the side nav and main content */
  align-items: flex-start; /* Align items to the top */
  padding-top: 20px;
}

/* Side Navigation Styles */
.side-nav {
  flex: 0 0 220px; /* Fixed width of 220px, no growing/shrinking */
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  /* Make the side nav sticky to keep it visible while scrolling news */
  position: sticky; 
  top: 100px; /* Position it below the sticky header */
}

.side-nav h3 {
  margin-top: 0;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.side-nav li {
  margin-bottom: 5px;
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #000000;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.side-nav a:hover {
  background-color: rgb(0, 0, 0);
  color: white;
}

/* Main News Content */
.main-news-content {
  flex-grow: 1; /* Allows the news section to take up the remaining space */
  min-width: 0; /* Important for flex container to handle long content */
}

/* Responsive adjustment for mobile: Stack the side-nav and news */
@media (max-width: 900px) {
  .main-content-layout {
    flex-direction: column; /* Stack vertically on smaller screens */
    gap: 20px;
  }

  .side-nav {
    position: static; /* Remove sticky behavior on mobile */
    flex: 1 1 auto; /* Allow it to take full width */
  }
}



/* --- City Page Specific Styles (local_news_city.css) --- */

/* Sub Navigation Bar (for Cities list) */
.sub-nav-bar {
    background-color: #fff; /* Ensures white background behind the nav bar */
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

/* Breadcrumb Styling (News / Cities) */
.breadcrumb {
    font-size: 0.9em;
    padding-bottom: 10px;
}

.news-link {
    color: #d9534f; /* Red color for 'News' */
    text-decoration: none;
    font-weight: bold;
}

.active-category {
    color: #333;
    font-weight: bold;
}

/* City List Styling */
.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 15px; /* Spacing between items */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 5px;
}

.city-item {
    font-size: 0.95em;
    padding: 5px 0;
}

/* Style for the main 'Cities' heading */
.city-item.active {
    font-weight: bold;
    color: #000;
}

/* Style for the currently selected city (e.g., Delhi) */
.city-item.selected-city a {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #d9534f; /* Red underline for the selected city */
    padding-bottom: 8px; /* Offset for the underline */
}

.city-item a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.city-item a:hover {
    color: #d9534f;
}

/* --- Content Grid and Article Styles --- */

.content-area {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-grid {
    /* Creates a responsive 4-column-like layout (or fewer on small screens) */
    display: grid;
    /* Use 'auto-fit' to fill the space, adjusting columns automatically */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Styling for a single Article/News Card */
.article-box {
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-decoration: none; /* Remove underline from the anchor tag */
    color: inherit;
    display: block; /* Make the whole box a clickable block */
}

.article-box img {
    width: 100%;
    height: 180px; /* Consistent image height */
    object-fit: cover; /* Ensures image covers the box without distortion */
    display: block;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #222;
}

.card-content p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

/* Advertisement Styling (Mimics the black box) */
.advertisement {
    background-color: #2b2b2b; /* Dark background */
    color: #fff;
    text-align: center;
    padding: 40px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    /* Ensure the ad box is treated as a grid item */
    align-self: stretch; 
}

.advertisement p {
    font-size: 0.7em;
    color: #aaa;
    margin: 0 0 10px 0;
}

.advertisement h2 {
    font-size: 1.6em;
    margin: 0 0 20px 0;
    line-height: 1.2;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .city-list {
        gap: 10px 8px;
        justify-content: space-between;
    }
}




/* Basic Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light background for the page */
}

/* Header and Top Bar Styling */
.header {
    background-color: #fff; /* White background for the header */
    border-bottom: 1px solid #eee;
}

.top-bar {
    display: flex;
    justify-content: flex-end; /* Pushes the branding to the right */
    padding: 5px 20px;
    font-size: 0.8em;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.branding {
    /* Mimics the small text on the right side of the original screenshot */
    color: #333;
}

/* Main Navigation Area */
.main-nav {
    padding: 10px 20px;
}

/* Breadcrumb Styling (News / States) */
.breadcrumb {
    font-size: 0.9em;
    padding-bottom: 10px;
}

.news-link {
    color: #d9534f; /* Red color for 'News' */
    text-decoration: none;
    font-weight: bold;
}

.active-category {
    color: #333;
    font-weight: bold;
}

/* State List Styling (The main city/state links) */
.state-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allows the list items to wrap on smaller screens */
    gap: 15px; /* Spacing between the list items */
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.state-item {
    font-size: 0.95em;
    font-weight: normal;
    padding: 5px 0;
}

.state-item a {
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    white-space: nowrap; /* Prevents city/state names from breaking */
}

.state-item a:hover {
    color: #d9534f; /* Hover effect */
}

/* Styling for the active 'Cities'/'States' heading */
.state-item.active {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #d9534f; /* Red underline for the active category */
}

/* Content Area (Below the navigation) */
.content-area {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Styling for Article Boxes (Simulating the image blocks) */
.article-box, .advertisement {
    background-color: #fff;
    border: 1px solid #eee;
    min-height: 200px; /* Placeholder height */
    overflow: hidden;
}

.article-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Advertisement Styling (Mimics the black box) */
.advertisement {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px 10px;
    box-sizing: border-box;
}

.advertisement p {
    font-size: 0.7em;
    color: #aaa;
    margin: 0 0 10px 0;
}

.advertisement h2 {
    font-size: 1.5em;
    margin: 0;
    line-height: 1.2;
}

/* Media Query for smaller screens (Optional, but good practice) */
@media (max-width: 600px) {
    .state-list {
        justify-content: space-between;
        padding-bottom: 5px;
        gap: 10px 5px; /* Tighter gap on small screens */
    }
}








/* --- CRIME NEWS Sub-Navigation Styles (Reusing City Layout) --- */

.crime-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 5px;
}

.category-item {
    font-size: 0.95em;
    padding: 5px 0;
}

/* Style for the main 'Crime News' heading */
.category-item.active {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #0d0d0d; /* Red underline for the active category */
}

.category-item a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.category-item a:hover {
    color: #171717;
}

/* Ensure the main site navigation 'Crime' link is also highlighted */
nav ul li.nav-active a {
    color: #1e1d1d;
    font-weight: bold;
}





/* --- WEATHER NEWS Sub-Navigation Styles (Using similar classes) --- */

.weather-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 5px;
}

/* Reusing .category-item and .active styles from the Crime page for consistency */
/* Ensure these styles are defined once in your main CSS file: */

/* .category-item {
    font-size: 0.95em;
    padding: 5px 0;
} */

/* .category-item.active {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #d9534f;
} */

/* Ensure the main site navigation 'Weather' link is also highlighted */
nav ul li.nav-active a {
    color: #000000;
    font-weight: bold;
}








/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer sticks to the bottom */
}

.footer {
    background-color: #ffffff; /* Lighter grey from your image */
    color: #555;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 200px; /* Minimum width for columns before wrapping */
    margin: 0 15px 30px 15px; /* Spacing between columns and bottom margin */
}

.footer-column h3 {
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #000;
}

.get-in-touch p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: #000000;
}

.get-in-touch a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.get-in-touch a:hover {
    color: #000;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px; /* Space between social icons */
}

.social-links a {
    color: #000000;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff2c2c;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85em;
    color: #000000;
    border-top: 1px solid #797979; /* Separator for copyright */
    padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        text-align: center;
        margin: 0 0 30px 0;
        width: 100%; /* Full width on smaller screens */
    }

    .social-links {
        justify-content: center; /* Center social icons */
    }
}









/* --- Trending/More News Section Styles --- */
.trending-news-section {
    max-width: 1500px; /* Use the full container width */
    margin: 4rem auto 3rem auto;
    padding: 2.5rem 3rem;
    background: #fcfcfc; /* Very light background */
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.trending-news-section .section-title {
    font-size: 2rem;
    color: #000000; /* Use your strong red accent color */
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.trending-news-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px; /* A longer accent line */
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
}


/* Trending Grid Layout */
.trending-list {
    display: grid;
    /* 3 columns on desktop, allowing enough space for short titles */
    grid-template-columns: repeat(auto-fit, minmax(200px, 3fr)); 
    gap: 30px; 
    padding: 0;
}

.trending-placeholder {
    grid-column: 1 / -1; /* Make the placeholder span all columns */
    text-align: center;
    color: #999;
    padding: 20px;
}


/* Style for individual trending items (assuming a link/card structure) */
.trending-article-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.trending-article-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); 
}

.trending-article-item a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    display: block;
    font-size: 1.1em;
    line-height: 1.4;
}

.trending-article-item a:hover {
    color: #ff2c2c; 
}

/* Responsive adjustment for mobile */
@media (max-width: 700px) {
    .trending-news-section {
        padding: 1.5rem;
    }
    .trending-list {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}


/* --- Trending Grid Layout (Modified) --- */
.trending-list {
    display: grid;
    /* 3 columns on desktop, allowing enough space for short titles */
    grid-template-columns: repeat(auto-fit, minmax(300px, fr)); 
    gap: 11px; 
    padding: 0;
    /* CRITICAL ADDITION: Align all items to stretch to the height of the row */
    align-items: stretch; 
}

/* Style for individual trending items */
.trending-article-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    
    /* BEST PRACTICE: Set a minimum height so cards don't look tiny */
    min-height: 15px; 

    /* Ensures the link inside the card takes up the full space */
    display: flex; 
    flex-direction: column; /* Stacks title/content vertically if you add more elements */
    justify-content: space-between; /* If you add a footer/date, it pushes it to the bottom */
}

.trending-article-item a {
    /* Ensures the title itself can break lines and doesn't affect the height alignment */
    flex-grow: 2; 
    /* ... rest of your link styles ... */
}











/* Add this to your style.css file */
.news-sections .news-grid {
    display: grid;
    /* This creates two columns of equal width */
    grid-template-columns: 1fr 1fr; 
    gap: 40px; /* Space between the grid items */
}

/* Ensure the news cards inside the grid take up their column space */
.news-sections .news-grid .news-card {
    /* news-card should not use 100% width if it's already a grid item, 
       but you might need to adjust its existing styles */
    width: 100%;
    margin-bottom: 0; /* Remove existing margin-bottom if present */
    /* Adjust other card styles as necessary */
}

/* Optional: Make the grid responsive for smaller screens */
@media (max-width: 768px) {
    .news-sections .news-grid {
        /* Switch back to a single column on mobile */
        grid-template-columns: 1fr;
    }
}











