/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Header styles */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.site-name a {
    text-decoration: none;
    color: white;
}

.burger-icon {
    position: absolute;
    left: 1rem;
    cursor: pointer;
    z-index: 100;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    height: 3px;
    width: 100%;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-icon.active .burger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-icon.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-icon.active .burger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Side navigation */
.side-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #34495e;
    transition: left 0.3s ease;
    z-index: 9;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-nav.open {
    left: 0;
}

.nav-item {
    padding: 1rem;
    color: white;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #2c3e50;
    transition: background-color 0.2s ease;
}

.nav-item:hover {
    background-color: #2c3e50;
}

/* Main content */
/* .main-content {
    padding: 1rem;
    transition: margin-left 0.3s ease;
    align-items: center;
} */

/* Feed container */
.feed-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 1rem;
    padding:2rem;
}

/* News card */
.news-card {
    width: 55%;
    align-self: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-image-container {
    height: 150px;
    overflow: hidden;
}


.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-headline {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;

}

.news-summary {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-domain {
    font-size: 0.8rem;
    color: #95a5a6;
    align-self: flex-start;
    background-color: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
}

/* Overlay when sidenav is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8;
    display: none;
}

.overlay.active {
    display: block;
}

/* No feed indicator needed for column layout */

/* Responsive design adjustments */
@media (min-width: 768px) {

  


    .news-card {
        flex-direction: row;
        height: 200px;
        max-width: 55%;
    }
    
    .news-image-container {
        width: 200px;
        height: 100%;
    }
    
    .news-card-content {
        width: calc(100% - 200px);
    }
}



@media (max-width: 700px) {
    .news-card {
        flex-direction: column;
        width: 95%; /* Take up almost full width */
        max-width: none; /* Remove max-width limitation */
        height: auto; /* Adjust height automatically */
        margin: 0 auto; /* Center the card */
    }

    .news-image-container {
        width: 100%; /* Image takes full width */
        height: 200px; /* Fixed height for the image */
    }

    .news-card-content {
        width: 100%; /* Content takes full width */
    }

    .news-summary {
        margin-bottom: 0.5rem; /* Reduce margin */
    }
}
