/* === MEDIA PAGE SECTION === */
.media-section {
    padding: 2rem 1rem;
    background-color: #f4f8fc;
    font-family: 'Lexend', sans-serif;
}

/* === HEADER === */
.media-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    color: #00BFFF;
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.media-heading {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.media-subheading {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

/* === CARD GRID === */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
    justify-items: center;
}

/* === MEDIA CARD === */
.media-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.media-card-image img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.media-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.media-card-description {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: left;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.media-card-link {
    text-decoration: none;
    background-color: #00b300;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: background 0.2s ease;
}

.media-card-link:hover {
    background-color: #009900;
}

/* === ANIMATION === */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .media-heading {
        font-size: 1.8rem;
    }

    .media-subheading {
        font-size: 1rem;
    }

    .media-card-image img {
        width: 120px;
        height: 170px;
    }

    .media-card-description {
        max-height: 200px;
    }
}
