/* ===== General Reset & Fonts ===== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f6f9ff, #eef3ff);
    color: #333;
}

/* ===== Section Styling ===== */
.schedule-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0px 8px 30px rgba(0,0,0,0.06);
    animation: fadeIn 0.8s ease-in-out;
    backdrop-filter: blur(8px);
}

.schedule-section h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    border-bottom: 3px solid #e8ecff;
    padding-bottom: 8px;
}

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== Card Styling ===== */
.card {
    background-image: radial-gradient( circle 404px at 20.3% 15.9%,  rgb(247, 247, 247) 0%, rgb(192, 217, 248) 90% );
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: slideUp 0.6s ease forwards;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Card Images */
.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    opacity: 0.1;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 18px;
        position: absolute;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #222;
    text-align: center;
    font-weight: 600;
}

.card-content p {
    font-size: 0.97rem;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

.card-content .note {
    background: linear-gradient(135deg, #fff3cd, #ffe9b0);
    padding: 8px 12px;
    border-radius: 8px;
    color: #7a5c00;
    font-size: 0.9rem;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}

/* ===== Examination Cards - Unique Style ===== */
.exam-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.exam-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.exam-card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    opacity: 0.9;
}

.exam-card .card-content {
    padding: 18px;
}

.exam-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.exam-card p {
    color: rgba(255, 255, 255, 0.9);
}

.exam-card .note {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
}

/* ===== Notes List ===== */
.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    background: linear-gradient(135deg, #ffe9cc, #ffd9b3);
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a85c00;
    animation: fadeInUp 0.5s ease;
}

/* ===== Empty State ===== */
.empty {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Image Modal Styling ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.image-modal-content img {
    display: block;
    border-radius: 8px;
    max-width: 100%;
    max-height: 80vh;
}

/* Zoom animation for modal */
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close Button */
.image-modal-close {
    position: absolute;
    top: -40px;
    right: -25px;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.image-modal-close:hover {
    transform: scale(1.1);
    color: #ff5a5a;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 992px) {
    .schedule-section {
        margin: 30px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .schedule-section h2 {
        font-size: 1.5rem;
    }
    .card img, .exam-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .schedule-section {
        margin: 15px;
        padding: 12px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .image-modal-close {
        top: -35px;
        right: -15px;
    }
}
