/* ============================================
   MODERN GRADIENT SLIDES (Methodology & Professor)
   ============================================ */

.modern-gradient-slide {
    background: linear-gradient(145deg, #2909a6 0%, #3d1cc4 50%, #1e0780 100%);
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Subtle pattern overlay for texture */
.modern-gradient-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Typography Overrides for Dark Background - Scoped */
.slider-slide .slide-title-modern {
    font-family: var(--font-display);
    font-size: 3.2rem;
    /* Reduced to fit safely */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    margin-top: 0;
    text-align: center;
    /* Center title */
    position: relative;
    z-index: 2;
    /* Ensure above overlay */

    /* Gradient Text */
    background: linear-gradient(to right, #00f2fe 20%, #ffffff 80%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    /* Fallback/Override */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-slide .slide-subtitle-modern {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-weight: 500;
    margin-top: 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* --- Methodology Slide Layout --- */
.slide-content-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center everything */
    align-items: center;
    /* Horizontally center */
    width: 100%;
    height: auto;
    /* Let it flow */
    position: relative;
    z-index: 2;
}

.methodology-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    /* Reduced gap */
    width: 100%;
    max-width: 800px;
    /* Constrain width for better aesthetic */
    margin-bottom: var(--space-md);
}

/* Update cards for centered alignment context */
.method-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    /* Compact padding */
    display: flex;
    gap: var(--space-md);
    transition: all 0.3s ease;
    align-items: center;
    text-align: left;
    /* Keep text left-aligned inside card */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 242, 254, 0.3);
}

.method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.15);
    padding: 10px;
    /* Smaller padding */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    /* Compact icon */
    height: 48px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.method-icon .material-symbols-outlined {
    font-size: 24px;
}

.method-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.method-text strong {
    color: white;
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* --- Professor Slide Layout --- */
.professor-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Optimized col ratio */
    gap: var(--space-lg);
    height: 100%;
    align-items: center;
    width: 100%;
    max-width: 900px;
    /* Constrain width */
    margin: 0 auto;
    /* Center in slide */
}

/* SCOPED: Top container for title is outside grid */
.modern-gradient-slide>div:first-child {
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    /* Prevent title from shrinking */
}

.professor-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
}

.professor-img-wrapper {
    width: 200px;
    /* Reduced to fit */
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circle background behind */
.professor-img-wrapper::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    border-radius: 50%;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
}

.professor-cutout-img {
    max-width: 110%;
    max-height: 110%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transform: scale(1.15) translateY(-10px);
}

.professor-name-badge span {
    font-size: 0.9rem;
    color: #00f2fe;
    /* Cyan match */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0, 242, 254, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.professor-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    /* Compact gap */
    min-height: 0;
    /* Allow flex shrinking */
}

.prof-section h4 {
    font-size: 0.9rem;
    color: #00f2fe !important;
    margin-bottom: 4px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    padding-bottom: 2px;
    display: inline-block;
    font-weight: 700;
}

.prof-list li {
    font-size: 0.95rem;
    /* Slightly smaller to fit lines */
    line-height: 1.4;
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
}

.prof-list li::before {
    content: '▶';
    /* Arrow instead of dot */
    font-size: 0.6em;
    color: #00f2fe;
    position: absolute;
    left: 0;
    top: 5px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .slider-slide .slide-title-modern {
        font-size: 2.2rem;
        /* Smaller on mobile but still big */
    }

    .slider-slide .slide-subtitle-modern {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }

    .modern-gradient-slide {
        padding: var(--space-md);
        justify-content: flex-start;
        /* Start from top on mobile */
        overflow-y: auto;
        /* Allow scroll ONLY on mobile if absolutely needed */
    }

    .methodology-steps {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        max-width: 100%;
    }

    .professor-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .professor-image-col {
        margin-bottom: 0;
    }

    .professor-content-col {
        align-items: flex-start;
        text-align: left;
    }

    .prof-section {
        width: 100%;
    }
}