/* =========================================================
   LEARNING CARDS SECTION - FULL BLEED & RESPONSIVE
   ========================================================= */

/* Forces the section to span the entire screen width */
.mars-learning-section { 
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 80px 5%; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    background: transparent; /* Allows global background to show through */
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

/* Inner wrapper to keep cards readable on ultrawide monitors */
.mars-learning-section .learning-inner-wrap { 
    width: 90%; 
    max-width: 1500px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative;
    z-index: 10;
}

/* Section Heading */
.learning-heading { 
    text-align: center; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-bottom: 50px;
}
.learning-heading h2 { 
    color: #ffffff; 
    font-size: 42px; 
    text-align: center; 
    margin: 0; 
    font-weight: 700; 
    font-family: 'Orbitron', sans-serif; 
    letter-spacing: 1px; 
    text-transform: capitalize;
}

/* Cards Grid System */
.mars-cards-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    gap: 30px; 
    flex-wrap: wrap; 
    width: 100%; 
}

/* Individual Glassmorphism Card */
.mars-card {
    width: 31%;
    max-width: 500px;
    box-sizing: border-box; 
    padding: 50px 40px; 
    border-radius: 20px; 
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(14px); 
    -webkit-backdrop-filter: blur(14px); 
    border: 2px solid rgba(0,245,255,0.35); /* Base subtle cyan border */
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1), inset 0 0 12px rgba(0, 245, 255, 0.05); 
    color: #ffffff;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, all 0.4s; 
    position: relative; 
    display: flex; 
    flex-direction: column;
}

.mars-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff, #ff4a3f); 
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mars-card:hover::before {
    opacity: 1;
}

.mars-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,245,255,0.25);
}

/* Card Icon */
.mars-card .icon { 
    font-size: 55px; 
    color: #00f5ff; 
    margin-bottom: 25px; 
    display: flex; 
    justify-content: center; 
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6)); 
    transition: transform 0.4s ease;
}

/* Card Typography */
.mars-card h3 { 
    color: #00f5ff; 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 20px; 
    font-size: 1.6rem; 
    font-family: 'Orbitron', sans-serif; 
}
.mars-card p { 
    text-align: center; 
    color: #e6f7ff; 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin: 0; 
}

/* Card Hover Animations */
.mars-card:hover { 
    transform: translateY(-12px); 
    border-color: rgba(0, 245, 255, 0.65);
    box-shadow: 0 15px 30px rgba(0, 245, 255, 0.25), 0 0 80px rgba(0, 245, 255, 0.15); 
}
.mars-card:hover .icon {
    transform: scale(1.1);
}

/* =========================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================= */
@media(max-width: 1024px) {
    .mars-cards-wrapper { 
        gap: 20px; 
    }
    .mars-card { 
        max-width: calc(50% - 10px); /* 2 columns on tablet */
    }
}

@media(max-width: 768px) {
    .mars-learning-section {
        padding: 60px 20px;
    }
    .learning-heading h2 { 
        font-size: 26px; 
        line-height: 1.3;
    }
    .mars-cards-wrapper { 
        flex-direction: column; 
        align-items: center; 
    }
    .mars-card { 
        max-width: 100%; /* 1 column on mobile */
        width: 100%;
    }
    .mars-learning-section .section-bg-video {
        object-position: 80% center; /* Shift focus to show moving lines on the edges */
    }
}