/* ===================================
   SPLIT-SCREEN MAGAZINE DESIGN
   Compact version for Activities Page
   =================================== */

.activities-split-section {
    background-color: #f5f5f5;
    padding: 40px 0; /* Add padding to show background */
    margin: 0;
    /* Single background image with overlay */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../../assets/images/activity1.jpeg'); /* Use activity1 as main section background */
    background-attachment: scroll; /* Changed from fixed for better compatibility */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Ensure section has height */
}

.split-card {
    display: flex;
    align-items: stretch;
    min-height: 300px; /* Variation 3: Medium balanced size */
    margin: 25px auto; /* Centered with more spacing */
    max-width: 1300px;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35); /* Slightly stronger shadow */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-card:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

.split-card:nth-child(even) {
    flex-direction: row-reverse;
}

.card-image {
    flex: 0 0 58%; /* Variation 3: Balanced image width */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.95); /* Slightly dimmed by default */
}

.split-card:hover .card-image img {
    transform: scale(1.07); /* Zoom on hover */
    filter: brightness(1); /* Full brightness on hover */
}

.activities-category-header {
    text-align: center;
    color: #ffffff;
    margin: 40px auto 25px;
    max-width: 760px;
    padding: 10px 20px 0;
}

.activities-category-header.secondary {
    margin-top: 70px;
}

.activities-category-header h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.activities-category-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* Mobile accessibility improvements for category headers */
@media (max-width: 768px) {
    .activities-category-header {
        padding: 0 16px;
    }

    .activities-category-header h3,
    .activities-category-header p {
        display: inline-block;
        background: rgba(0, 0, 0, 0.78);
        padding: 6px 14px;
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .activities-category-header h3 {
        font-size: 1.4rem;
    }

    .activities-category-header p {
        font-size: 0.95rem;
    }
}

.category-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fefefe;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Carousel styling for activity cards */
.card-image .owl-carousel {
    height: 100%;
}

.card-image .owl-carousel .item {
    height: 100%;
}

.card-image .owl-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.card-image .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5) !important;
    margin: 0 5px;
    transition: all 0.3s;
}

.card-image .owl-dots .owl-dot.active {
    background: white !important;
    width: 25px;
    border-radius: 5px;
}

.split-card:hover .card-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15); /* Subtle dark overlay for better text readability */
    z-index: 1;
}

.card-content {
    flex: 0 0 42%; /* Variation 3: Balanced content width */
    padding: 30px 28px; /* More comfortable padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    position: relative;
    border-left: 3px solid rgba(255,255,255,0.3); /* Left border accent */
}

.split-card:nth-child(even) .card-content {
    border-left: none;
    border-right: 3px solid rgba(255,255,255,0.3); /* Right border for reversed cards */
}

.split-card:nth-child(odd) .card-content {
    /* Uniform navy background to match admission cards */
    background: rgba(31, 41, 55, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}

.split-card:nth-child(even) .card-content {
    /* Uniform navy background to match admission cards */
    background: rgba(31, 41, 55, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}

.card-number {
    font-size: 70px; /* Variation 3: Medium size */
    font-weight: 900;
    opacity: 0.1; /* Slightly more visible */
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
}

.card-content h2 {
    font-size: 28px; /* Variation 3: Balanced size */
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.subtitle {
    font-size: 14px; /* Variation 3: Slightly larger */
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 400;
    font-style: italic; /* Italic for distinction */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.why-join {
    margin: 15px 0 10px 0; /* Variation 3: More top margin */
}

.why-join h4 {
    font-size: 12px; /* Variation 3: Slightly larger */
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-join ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-join li {
    padding: 5px 0; /* Variation 3: More breathing room */
    padding-left: 22px;
    position: relative;
    font-size: 13px; /* Variation 3: More readable */
}

.why-join li:before {
    content: "→"; /* Variation 3: Arrow instead of checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.schedule-timeline {
    display: flex;
    align-items: center;
    gap: 12px; /* Variation 3: More spacing */
    margin: 12px 0; /* Variation 3: Better spacing */
    padding: 12px; /* Variation 3: More comfortable padding */
    background: rgba(255,255,255,0.22); /* Variation 3: Subtle background */
    border-radius: 10px;
    border-left: 3px solid rgba(255,255,255,0.5); /* Variation 3: Accent border */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.schedule-icon {
    font-size: 24px; /* Variation 3: Larger icon */
    width: 35px;
    text-align: center;
}

.schedule-details h5 {
    font-size: 11px; /* Variation 3: More readable */
    opacity: 0.85;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-details p {
    font-size: 13px; /* Variation 3: More readable */
    font-weight: 600;
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 7px; /* Variation 3: Balanced spacing */
    padding: 13px 28px; /* Variation 3: Comfortable button size */
    background: rgba(255, 255, 255, 0.95);
    color: #1f272b;
    border-radius: 30px; /* Variation 3: Less rounded */
    text-decoration: none;
    font-weight: 700;
    font-size: 13px; /* Variation 3: Balanced size */
    margin-top: 15px;
    transition: all 0.3s;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Variation 3: Softer shadow */
}

.cta-button:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #1f272b;
    background: white; /* Variation 3: Full white on hover */
}

.student-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Variation 3: Balanced spacing */
    background: rgba(255,255,255,0.3);
    padding: 6px 14px; /* Variation 3: More comfortable */
    border-radius: 20px; /* Variation 3: More rounded */
    font-size: 12px; /* Variation 3: More readable */
    font-weight: 700;
    margin-bottom: 10px; /* Variation 3: More space */
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    align-self: flex-start;
}

.student-count-badge i {
    font-size: 12px;
}

/* Responsive Design - Variation 3 */
@media (max-width: 992px) {
    .split-card, .split-card:nth-child(even) {
        flex-direction: column;
        min-height: auto;
    }
    
    .card-image, .card-content {
        flex: 1 1 100%;
    }
    
    .card-image {
        min-height: 250px;
    }
    
    .card-content {
        padding: 30px 25px;
        border-left: none !important;
        border-right: none !important;
        border-top: 3px solid rgba(255,255,255,0.3); /* Top border on mobile */
    }
    
    .card-content h2 {
        font-size: 26px;
    }
    
    .card-number {
        font-size: 60px;
    }
}

@media (max-width: 576px) {
    .card-content h2 {
        font-size: 24px;
    }
    
    .card-content {
        padding: 25px 20px;
    }
    
    .schedule-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-number {
        font-size: 50px;
    }
}
