@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Series Container */
.series-container {
    padding: 40px 20px;
    text-align: center;
}

/* Header Section */
.series-header {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
    margin: 20px auto;
}

.series-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Image Container */
.series-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.series-thumbnail {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.series-thumbnail:hover {
    transform: scale(1.05);
}

/* Class Grid */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1100px;
    margin: auto;
}

/* Class Card */
.class-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent; /* Default border */
}

/* Red Shadow & Border on Hover */
.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(255, 0, 0, 0.5); /* Red shadow */
    border: 2px solid red; /* Red border */
}

/* Class Text */
.class-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.class-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Button */
.view-pdf-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.view-pdf-btn:hover {
    background: #c0392b;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .series-thumbnail {
        max-width: 80%;
    }

    .class-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .series-header {
        width: 95%;
    }

    .series-thumbnail {
        max-width: 95%;
    }

    .class-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .class-card {
        width: 100%;
    }
}
