* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header Styles */
.header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0084ff;
    color: white;
    font-weight: bold;
    position: relative;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    margin-left: 50px;
}

.nav-links {
    display: flex;
    gap: 10px;
    margin-right: 40px;
}
.nav-links :hover {
   color: rgb(3, 3, 143);
}

.nav-links a {
    padding: 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
   
    border-radius: 2px;
    padding: 5px 10px;
    border: 1px solid white;
    margin-left: auto;
    width: 150px; /* Adjust this value as needed */
}


.hamburger {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

/* Body Styles */
.body {
    margin-top: 30px;
    padding: 0 60px;
}

/* Featured Section */
.featured-section {
    display: flex;
    margin-top: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.main-featured {
    flex: 2;
    min-width: 300px;
    background-image: url('https://cloudfront-us-east-2.images.arcpublishing.com/reuters/R6SIYNSKPRL7RPZO4TDEIFPVVU.jpg');
    background-size: cover;
    height: 400px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.main-featured p:first-child {
    font-size: 30px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.main-featured p:last-child {
    position: relative;
    z-index: 2;
}

.secondary-featured {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
}

.secondary-featured-item {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6sAxfA8PVZsb6EOj34T16BNX0YpsSwp_RNw&s');
    background-size: cover;
    height: 190px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.secondary-featured-item p {
    font-size: 15px;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}
.first-secondary-item {
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.second-secondary-item {
    background-image: url('https://images.unsplash.com/photo-1547347298-4074fc3086f0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}


.category-tag {
    background: rgb(42, 42, 42);
    color: white;
    width: fit-content;
    padding: 5px 15px;
    text-align: center;
    margin-top: 0px;
    font-weight: bold;
    font-size: 10px;
    position: relative;
    z-index: 2;
}

.main-featured::before, 
.secondary-featured-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Grid Section */
.grid-section {
    margin-top: 50px;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.grid-item {
    display: flex;
    flex-direction: column;
   
}

.grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.grid-item h3 {
    margin: 10px 0;
    font-size: 18px;
}

.grid-item p {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 14px;
}

.date {
    margin-top: 10px;
    font-size: 12px;
}

/* In Focus Section */
.in-focus-section {
    margin-top: 50px;
}

.focus-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.focus-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.focus-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Exclusive Reports */
.exclusive-reports {
    margin-top: 50px;
}

.reports-container {
    display: flex;
    flex-wrap: wrap;
    gap: 200px;
    margin-top: 20px;
    position: relative; /* Add this to establish a positioning context */
}

.reports-list {
    flex: 3;
    min-width: 300px;
}

.report-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.report-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    min-width: 150px;
}

.report-item h3 {
    margin-bottom: 10px;
}

.report-item p {
    margin-bottom: 5px;
}

.top-stories {
    flex: 2;
    min-width: 300px;
    position: sticky; /* Make it sticky */
    top: 20px; /* Distance from top of viewport when sticky */
    align-self: flex-start; /* Prevent stretching to full height */
    max-height: 100vh; /* Optional: prevent it from being too tall */
    overflow-y: auto; /* Optional: add scroll if content is too tall */
}

.story-item {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    align-items: center;
}

.story-number {
    border-radius: 50%;
    background-color: rgb(81, 156, 241);
    padding: 10px;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-title {
    font-size: 22px;
    font-weight: bold;
}

.story-meta {
    font-size: 12px;
    margin-top: 10px;
}

/* All Categories */
.all-categories {
    margin-top: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
}

.category-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-top: 20px;
}

.category-item h3 {
    margin: 10px 0;
    font-size: 18px;
}

/* Footer Styles */
.footer {
    margin-top: 50px;
    background-color: black;
    color: white;
    padding: 50px 50px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.footer-section {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-section h3, 
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    font-size: 14px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .report-item {
        flex-direction: column;
    }
    
    .report-item img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0084ff;
        flex-direction: column;
        padding: 15px;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .featured-section {
        flex-direction: column;
    }
    
    .main-featured {
        height: 300px;
    }
    
    .secondary-featured {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .secondary-featured-item {
        flex: 1 1 200px;
    }
}

@media (max-width: 480px) {
    .body {
        padding: 0 15px;
    }
    
    .main-featured p:first-child {
        font-size: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}