/* ============================================
   IMMERSION ACTIVITIES SECTION STYLES
   Color Scheme: #3a3182 (Purple) & #eaa521 (Gold) & White
   ============================================ */

/* Section Container */
.immersion-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.immersion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(58, 49, 130, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(234, 165, 33, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Header Section */
.immersion-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.immersion-subtitle {
    color: #eaa521;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.immersion-subtitle::before,
.immersion-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    background: linear-gradient(90deg, transparent, #eaa521);
}

.immersion-subtitle::before {
    right: 100%;
    margin-right: 10px;
}

.immersion-subtitle::after {
    left: 100%;
    margin-left: 10px;
    background: linear-gradient(90deg, #eaa521, transparent);
}

.immersion-title {
    color: #3a3182;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
}

.immersion-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3a3182, #eaa521);
    border-radius: 2px;
}

.immersion-description {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 30px auto 0;
    padding: 0 20px;
    font-weight: 400;
}

/* Category Section */
.immersion-category {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.category-title {
    color: #3a3182;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #eaa521;
    border-radius: 2px;
}

.category-title i {
    color: #eaa521;
    margin-right: 10px;
    font-size: 28px;
}

/* Scroll Container */
.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    margin: 0 -15px;
}

/* Optional: Add subtle indicators on the sides */
.scroll-container::before,
.scroll-container::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #eaa521, transparent);
    z-index: 2;
    opacity: 0.3;
    border-radius: 10px;
}

.scroll-container::before {
    left: 10px;
}

.scroll-container::after {
    right: 10px;
}

/* Cards Wrapper with Animation */
.cards-wrapper {
    display: flex;
    gap: 30px;
    animation: scroll-horizontal 30s linear infinite;
    width: max-content;
}

.cards-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* Immersion Card */
.immersion-card {
    flex: 0 0 350px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(58, 49, 130, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.immersion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(58, 49, 130, 0.2);
    border-color: #eaa521;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a3182 0%, #4a4192 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.immersion-card:hover .card-image img {
    transform: scale(1.1);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 49, 130, 0.7) 0%, rgba(234, 165, 33, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.immersion-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 60px;
    color: #ffffff;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.immersion-card:hover .card-overlay i {
    transform: scale(1);
}

/* Card Content */
.card-content {
    padding: 25px;
    background: #ffffff;
}

.card-title {
    color: #3a3182;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.immersion-card:hover .card-title {
    color: #eaa521;
}

.card-text {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */

/* Large Tablets */
@media (max-width: 1024px) {
    .immersion-card {
        flex: 0 0 320px;
    }

    .immersion-title {
        font-size: 42px;
    }

    .category-title {
        font-size: 28px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .immersion-section {
        padding: 60px 0;
    }

    .immersion-header {
        margin-bottom: 40px;
    }

    .immersion-title {
        font-size: 36px;
    }

    .immersion-description {
        font-size: 16px;
    }

    .category-title {
        font-size: 26px;
    }

    .category-title i {
        font-size: 24px;
    }

    .immersion-card {
        flex: 0 0 280px;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }

    .scroll-container::before,
    .scroll-container::after {
        width: 50px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .immersion-section {
        padding: 50px 0;
    }

    .immersion-subtitle {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .immersion-subtitle::before,
    .immersion-subtitle::after {
        width: 30px;
    }

    .immersion-title {
        font-size: 32px;
    }

    .immersion-description {
        font-size: 15px;
        padding: 0 15px;
    }

    .immersion-category {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .category-title i {
        font-size: 22px;
        margin-right: 8px;
    }

    .immersion-card {
        flex: 0 0 260px;
    }

    .card-image {
        height: 200px;
    }

    .card-overlay i {
        font-size: 50px;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .card-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .scroll-container::before,
    .scroll-container::after {
        width: 30px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .immersion-title {
        font-size: 28px;
    }

    .category-title {
        font-size: 22px;
    }

    .immersion-card {
        flex: 0 0 240px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
    }
}

/* Animation Speed Control */
.immersion-category:nth-child(2) .cards-wrapper {
    animation-duration: 30s;
}

.immersion-category:nth-child(3) .cards-wrapper {
    animation-duration: 25s;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cards-wrapper {
        animation: none;
    }

    .scroll-container {
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background: #3a3182;
        border-radius: 10px;
    }

    .scroll-container::-webkit-scrollbar-thumb:hover {
        background: #eaa521;
    }
}

/* Print Styles */
@media print {
    .immersion-section {
        padding: 40px 0;
        background: white;
    }

    .cards-wrapper {
        animation: none;
        flex-wrap: wrap;
    }

    .immersion-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .scroll-container::before,
    .scroll-container::after {
        display: none;
    }
}