﻿.modules,
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card1 {
    background: #ffffff;
    border-left: 6px solid #9a2827;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    min-height: 170px;
    margin-bottom: 5px;
}

.card:hover {
    transform: translateY(-8px);
}

.card1 h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: bold;
}

.card1 p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.icon {
    font-size: 1.8rem;
    margin-right: 10px;
    color: #00bcd4;
}

.card1 span {
    font-weight: bold;
    color: #000;
}

@media (max-width: 768px) {
    .section h2 {
        font-size: 2rem;
        width: 100% !important;
    }
}

.section h2 {
    text-align: center;
    font-size: 1.9rem;
    background: linear-gradient(0deg, #b02930 20%, #dc4343 50%, #b02930 85%);
    color: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 70%;
    margin: 15px auto 30px auto;
}

.sub-section.aos-init.aos-animate {
    border-radius: 20px;
}

.course-grid {
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .course-grid h2 {
        font-size: 28px;
        color: #333;
        margin-bottom: 20px;
    }

.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px 20px;
}

.grid-item {
    grid-column: span 2;
    padding-left: 10px;
    border-left: 3px solid #9a2827;
    transition: border-color 0.3s;
}

    .grid-item:hover {
        border-color: #9a2827;
    }

    .grid-item h3 {
        color: #9a2827;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .grid-item p {
        color: #444;
        font-size: 16px;
        line-height: 1.6;
    }

    .grid-item.empty {
        visibility: hidden;
    }

/* === Responsive Breakpoints === */

/* Large tablets (≥ 992px): 3 items per row */
@media (max-width: 1200px) {
    .grid-item {
        grid-column: span 3;
    }
}

/* Tablets (≥ 768px and < 992px): 2 items per row */
@media (max-width: 991px) {
    .grid-item {
        grid-column: span 3;
    }
}

/* Mobile (≤ 767px): 1 item per row */
@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-item {
        grid-column: span 1;
        border-left: 4px solid #9a2827;
        padding-left: 12px;
    }

    .course-grid h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .grid-item h3 {
        font-size: 18px;
    }

    .grid-item p {
        font-size: 15px;
    }
}

.explorations-creative {
    padding: 30px 20px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

    .explorations-creative h2 {
        font-size: 36px;
        color: #111;
        margin-bottom: 30px;
        line-height: 1.3;
        letter-spacing: 1px;
    }

        .explorations-creative h2 span {
            font-size: 22px;
            color: #666;
            font-weight: 300;
        }

.explorations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

    .explorations-grid div {
        font-size: 17px;
        color: #333;
        background-color: #9a28272e;
        padding: 14px 18px;
        border-left: 4px solid #a92330;
        position: relative;
        transition: all 0.3s ease;
        cursor: default;
        transform: translateY(0);
        opacity: 0;
        font-weight: bold;
        animation: fadeUp 0.6s forwards;
    }

        .explorations-grid div:hover {
            background-color: #9a282733;
            color: #000;
            border-left-color: #9a2827;
            transform: translateY(-4px);
        }

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animations */
.explorations-grid div:nth-child(1) {
    animation-delay: 0.05s;
}

.explorations-grid div:nth-child(2) {
    animation-delay: 0.1s;
}

.explorations-grid div:nth-child(3) {
    animation-delay: 0.15s;
}

.explorations-grid div:nth-child(4) {
    animation-delay: 0.2s;
}

.explorations-grid div:nth-child(5) {
    animation-delay: 0.25s;
}

.explorations-grid div:nth-child(6) {
    animation-delay: 0.3s;
}

.explorations-grid div:nth-child(7) {
    animation-delay: 0.35s;
}

.explorations-grid div:nth-child(8) {
    animation-delay: 0.4s;
}

.explorations-grid div:nth-child(9) {
    animation-delay: 0.45s;
}

.explorations-grid div:nth-child(10) {
    animation-delay: 0.5s;
}

.explorations-grid div:nth-child(11) {
    animation-delay: 0.55s;
}

.explorations-grid div:nth-child(12) {
    animation-delay: 0.6s;
}

.explorations-grid div:nth-child(13) {
    animation-delay: 0.65s;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .explorations-creative h2 {
        font-size: 26px;
    }

    .explorations-grid div {
        font-size: 15px;
    }
}
