body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #EAEAEA;
    background-color: #121212;
    background: linear-gradient(360deg, #1a1a1a, #0d0d0d);
}

#main-content {
    width: 75%;
    margin: 0 auto;
    padding: 1rem;
}

/* Hero Article Section */
.hero-article {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    max-height: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 1rem auto 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    transition: all 300ms cubic-bezier(0.45, 0, 0.4, 1);
}

.hero-content {
    text-align: left;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2em;
    color: #fdd082;
    margin-bottom: .5rem;
    margin-top: 0;
}

.hero-content p {
    font-size: 1.2rem;
    color: #B3B3B3;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 0;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-link:hover {
    text-decoration: none;
}

.hero-link:hover .hero-image img {
    transform: scale(1.1);
}

/* Main Content Section */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    width: 80%;
    max-width: 1200px;
    padding: 1rem;
}

/* Card container */
.card {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1E1E1E;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 200px;
}

.card-inactive {
    display: flex;
    align-items: center;
}

.card-inactive .card-content h3 {
    color: white;
}

.card-inactive .card-content .coming-soon {
    color: white;
    margin-top: 0;
    text-decoration-line: none;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #6A4C42;
    font-size: .9rem;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    margin-bottom: .5rem;
}

/* Separate container for the image */
.card-image,
.card-image-inactive {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card-image img,
.card-image-inactive img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.card:hover .card-image img {
    transform: scale(1.15);
}

/* Separate container for content */
.card-content {
    width: calc(100% - 1.5rem);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #EAEAEA;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFD700;
    margin: 0;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.card-content p {
    font-size: .95rem;
    line-height: 1.4;
    margin: .5rem 0 auto;
    display: -webkit-box; /* Flexible box model for truncation */
    -webkit-line-clamp: 3; /* Limits the text to 2 lines */
    line-clamp: 3;
    -webkit-box-orient: vertical; /* Orients the box vertically */
    overflow: hidden; /* Hides overflowing text */
    text-overflow: ellipsis; /* Adds ellipsis for overflow */
}

.card-content span {
    color: #FFD700;
    font-weight: 600;
    margin-top: 1rem;
}

.card-content span:hover {
    text-decoration: underline;
}

/* Reverse layout for alternating cards */
.card.reverse-layout {
    flex-direction: row-reverse;
}

/* Footer Placeholder */
#footer-placeholder {
    margin-top: 2rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {

    .hero-image {
        max-height: 200px;
    }

    .card,
    .card.reverse-layout,
    .card-inactive {
        flex-direction: column;
        height: auto;
    }

    .card-image,
    .card-image-inactive {
        width: 100%;
        height: 200px;
    }

    .card-content,
    .card-inactive
     {
        width: 100%;
        padding: 1rem;
        text-align: left;
    }

    .card-content,
    .card-inactive h3 {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .card-content,
    .card-inactive p {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 1rem;
    }

    .card-content,
    .card-inactive span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #main-content {
        width: 100%;
        padding: 0;
    }

    .card-content,
    .card-inactive h3 {
        padding: 1rem;
    }

    .card-content, 
    .card-inactive p {
        padding: 1rem;
    }

    .card-inactive .card-content .coming-soon {
        font-size: 1.4rem;
        top: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    }

}