/**
 * Mettasoul Student Page Stylesheet
 * Custom styles for template-student.php
 */

/* Section Spacing & Spacing Alignment with Theme */
.student-page-section {
    padding: 20px 0;
    position: relative;
}

.student-page-section.bg-kem {
    background-color: var(--ms-bg-kem) !important;
}

.student-page-section.bg-white {
    background-color: #FFFFFF !important;
}

/* Custom serenity gradient for Psychology Section */
.student-psychology-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFB 100%) !important;
}

/* 01. Thanh Neo Điều Hướng Nhanh (Sticky Anchor Nav) */
html body #page .student-anchor-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(11, 111, 120, 0.14)) !important;
    border-color: rgba(11, 111, 120, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 22px rgba(11, 111, 120, 0.10) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 10px !important; /* Condense empty space below navigation bar */
}

/* Tighter top padding for the first section below the nav */
html body #student-orientation {
    padding-top: 10px !important;
}

html body .student-anchor-nav__link {
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ms-primary-dark) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--ms-transition) !important;
}

html body .student-anchor-nav__link:hover,
html body .student-anchor-nav__link.active {
    background: linear-gradient(135deg, rgba(20, 137, 146, 0.84), rgba(5, 79, 87, 0.92)) !important;
    border-color: rgba(179, 246, 242, 0.64) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 8px 18px rgba(3, 62, 68, 0.20) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Section Titles and Typography */
.student-section-header {
    max-width: 800px;
    margin: 0 auto 15px;
    text-align: center;
}

.student-section-header h2 {
    color: var(--ms-primary-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.student-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--ms-accent);
    border-radius: 2px;
}

.student-section-header p {
    font-size: 15px;
    color: var(--ms-text-muted);
    line-height: 1.6;
    margin-top: 10px;
}

/* 02. Khối định hướng nhanh: Bạn đang cần điều gì? */
.student-quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.student-quick-nav__card {
    background: #FFFFFF;
    border-radius: var(--ms-radius-md);
    border: 1px solid var(--ms-border-light);
    box-shadow: var(--ms-shadow-soft);
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--ms-transition);
    position: relative;
}

.student-quick-nav__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow-medium);
    border-color: var(--ms-accent);
}

.student-quick-nav__icon-box {
    font-size: 28px;
    margin-bottom: 12px;
    background: #FFF8EA;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ms-transition);
}

.student-quick-nav__card:hover .student-quick-nav__icon-box {
    background: var(--ms-accent);
    transform: rotate(10deg) scale(1.05);
}

.student-quick-nav__need {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ms-text);
    margin-bottom: 10px;
    line-height: 1.35;
    height: 38px; /* Fix height to align arrow down */
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-quick-nav__arrow {
    font-size: 14px;
    color: var(--ms-primary-medium);
    margin-bottom: 10px;
    font-weight: bold;
    animation: bounceSlow 2s infinite;
}

.student-quick-nav__target {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--ms-border-light);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.student-quick-nav__target-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html body .student-quick-nav__link {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ms-primary-dark) !important;
    background: rgba(11, 111, 120, 0.15) !important;
    border: 1.5px solid rgba(11, 111, 120, 0.38) !important;
    padding: 6px 20px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: var(--ms-transition) !important;
    backdrop-filter: blur(8px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(180%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 3px 8px rgba(11, 111, 120, 0.08) !important;
}

html body .student-quick-nav__card:hover .student-quick-nav__link {
    background: rgba(242, 140, 0, 0.22) !important;
    color: var(--ms-accent) !important;
    border-color: rgba(242, 140, 0, 0.48) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 6px 15px rgba(242, 140, 0, 0.18) !important;
}

/* 03-06. Alternating Split Layout Sections */
.student-split-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
}

.student-split__image-col {
    flex: 1;
    max-width: 50%;
}

.student-split__content-col {
    flex: 1;
    max-width: 50%;
}

.student-split-section.row-reverse .student-split-wrapper {
    flex-direction: row-reverse;
}

/* Split Image Layout styling */
.student-split__image-container {
    position: relative;
    border-radius: var(--ms-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--ms-shadow-medium);
    width: 100%;
}

.student-split__image-container.aspect-16-9 {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    background-color: transparent !important;
}

.student-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Disable hover scale zoom for 16:9 images to prevent cropping flyer text */
.student-split-wrapper:hover .student-split__image-container.aspect-16-9 .student-split__image {
    transform: none !important;
}

/* Default hover zoom for standard split images */
.student-split-wrapper:hover .student-split__image {
    transform: scale(1.05);
}

/* Ensure contained fit for course flyers/banners to prevent stretching or cropping */
.student-split__image-container.aspect-16-9 .student-split__image {
    object-fit: contain !important;
}

.student-split__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--ms-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Elements styling */
.student-section-tagline {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ms-accent);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.student-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.student-section-subtitle {
    font-size: 17px;
    font-style: italic;
    color: var(--ms-text-muted);
    margin-bottom: 20px;
    display: block;
    line-height: 1.4;
    text-align: left !important;
}

.student-section-desc {
    font-size: 15px;
    color: var(--ms-text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

/* Title Row for inline Alignment of Title & CTA Button */
.student-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.student-section-title-row .student-section-title {
    margin-bottom: 0 !important;
}

/* Subtitle Row for inline Alignment of Subtitle & CTA Button */
.student-section-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.student-section-subtitle-row .student-section-subtitle {
    margin-bottom: 0 !important;
}

/* Glassmorphism CTA Button Styles */
html body .student-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    transition: var(--ms-transition) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;

    /* Orange Glass style default */
    background-color: rgba(242, 140, 0, 0.16) !important;
    background-image: none !important;
    color: var(--ms-accent) !important;
    border: 1.5px solid rgba(242, 140, 0, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 15px rgba(242, 140, 0, 0.12) !important;
}

html body .student-cta-btn:hover {
    background-color: rgba(242, 140, 0, 0.28) !important;
    color: var(--ms-accent) !important;
    border-color: rgba(242, 140, 0, 0.6) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(242, 140, 0, 0.28) !important;
    transform: translateY(-2px) !important;
}

/* Teal Glass style modifier */
html body .student-cta-btn.student-cta-btn--teal {
    background-color: rgba(11, 111, 120, 0.16) !important;
    background-image: none !important;
    color: var(--ms-primary) !important;
    border: 1.5px solid rgba(11, 111, 120, 0.45) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 15px rgba(11, 111, 120, 0.12) !important;
}

html body .student-cta-btn.student-cta-btn--teal:hover {
    background-color: rgba(11, 111, 120, 0.28) !important;
    color: var(--ms-primary) !important;
    border-color: rgba(11, 111, 120, 0.6) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(11, 111, 120, 0.28) !important;
    transform: translateY(-2px) !important;
}

/* 03. MELIS 12-18 Values List */
.student-melis-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.student-value-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.student-value-icon {
    font-size: 24px;
    background: #EAF7F7;
    color: var(--ms-primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-value-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-bottom: 4px;
}

.student-value-text p {
    font-size: 14px;
    color: var(--ms-text-muted);
    line-height: 1.5;
}

/* 04. Xây dựng nhân hiệu tuổi teen flowchart */
.student-brand-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
}

.student-flow-step {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--ms-border-light);
    border-radius: var(--ms-radius-md);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--ms-shadow-soft);
    transition: var(--ms-transition);
}

.student-flow-step .step-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--ms-accent);
    background: rgba(242, 140, 0, 0.08);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: var(--ms-transition);
}

.student-flow-step .step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    line-height: 1.3;
}

.student-flow-step:hover {
    transform: translateY(-3px);
    border-color: var(--ms-accent) !important;
    box-shadow: 0 6px 18px rgba(242, 140, 0, 0.12);
}

.student-flow-step:hover .step-num {
    background: var(--ms-accent);
    color: #FFFFFF;
}

.student-flow-arrow {
    font-size: 18px;
    font-weight: bold;
    color: var(--ms-primary-medium);
    opacity: 0.6;
}

/* Key Highlights list for Brand Page */
.student-brand-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ms-text);
}

.student-brand-features .feature-icon {
    font-size: 16px;
    color: var(--ms-accent);
    flex-shrink: 0;
}

/* Overlapping images collage for psychology channels */
.student-psychology-images {
    position: relative;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Serenity Background Glow Sphere */
.student-psychology-images::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(179, 246, 242, 0.28) 0%, rgba(255, 248, 234, 0.12) 70%, transparent 100%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.student-psychology-images .main-img {
    width: 78% !important;
    height: 78% !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    box-shadow: 0 10px 30px rgba(11, 111, 120, 0.08) !important;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.student-psychology-images .sub-img {
    position: absolute !important;
    bottom: 5% !important;
    right: 5% !important;
    width: 54% !important;
    height: 54% !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    border: 6px solid #FFFFFF !important;
    box-shadow: 0 15px 35px rgba(11, 111, 120, 0.16) !important;
    z-index: 2;
    transform: rotate(2.5deg) !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Premium 3D Parallax Hover effect */
.student-split-wrapper:hover .student-psychology-images .main-img {
    transform: translate(4px, 4px) scale(0.99) !important;
}

.student-split-wrapper:hover .student-psychology-images .sub-img {
    transform: translate(-10px, -10px) rotate(0deg) scale(1.04) !important;
    box-shadow: 0 20px 45px rgba(11, 111, 120, 0.22) !important;
}

/* 05. Tâm lý học đường styling details */
.student-psychology-keywords {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.student-psychology-keywords .keyword-tag {
    background: #EAF7F7;
    color: var(--ms-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--ms-radius-sm);
    letter-spacing: 0.3px;
}

.student-psychology-keywords .keyword-separator {
    color: var(--ms-accent);
    opacity: 0.5;
    font-weight: bold;
}

.student-psychology-channels-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
    width: 100%;
}

.student-psychology-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.student-psychology-channels-cta {
    flex-shrink: 0;
}

.student-psychology-channels .channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-psychology-channels .channel-dot {
    width: 8px;
    height: 8px;
    background-color: var(--ms-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.student-psychology-channels .channel-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-text);
}

/* 06. Trắc nghiệm nghề nghiệp steps timeline */
.student-career-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.career-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.career-step-num {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--ms-accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(242, 140, 0, 0.3);
}

.career-step-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-bottom: 4px;
}

.career-step-body p {
    font-size: 14px;
    color: var(--ms-text-muted);
    line-height: 1.5;
}

.student-career-progress {
    display: none;
}

.student-disclaimer {
    background: #FFF9F2;
    border-left: 4px solid var(--ms-accent);
    padding: 12px 16px;
    border-radius: 0 var(--ms-radius-sm) var(--ms-radius-sm) 0;
    margin-bottom: 30px;
}

.student-disclaimer p {
    font-size: 13.5px;
    color: var(--ms-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* 07. CTA cuối trang */
.student-footer-cta-card {
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--ms-radius-lg);
    background-color: #FFFFFF;
    box-shadow: var(--ms-shadow-soft);
    border: 1px solid var(--ms-border-light);
    position: relative;
    overflow: hidden;
}

.student-footer-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--ms-accent);
}

.student-footer-cta-card h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--ms-primary-dark);
}

.student-footer-cta-card p {
    font-size: 16px;
    margin-bottom: 35px;
    color: var(--ms-text-muted);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.student-footer-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.student-footer-cta-actions .btn-pill {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 30px;
    transition: var(--ms-transition);
    text-align: center;
}

html body .student-footer-cta-actions .btn-pill-orange {
    background-color: rgba(242, 140, 0, 0.16) !important;
    background-image: none !important;
    color: var(--ms-accent) !important;
    border: 1.5px solid rgba(242, 140, 0, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 15px rgba(242, 140, 0, 0.12) !important;
}

html body .student-footer-cta-actions .btn-pill-orange:hover {
    background-color: rgba(242, 140, 0, 0.28) !important;
    color: var(--ms-accent) !important;
    border-color: rgba(242, 140, 0, 0.6) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(242, 140, 0, 0.28) !important;
    transform: translateY(-2px) !important;
}

html body .student-footer-cta-actions .btn-pill-outline {
    background-color: rgba(11, 111, 120, 0.16) !important;
    background-image: none !important;
    color: var(--ms-primary) !important;
    border: 1.5px solid rgba(11, 111, 120, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 15px rgba(11, 111, 120, 0.12) !important;
}

html body .student-footer-cta-actions .btn-pill-outline:hover {
    background-color: rgba(11, 111, 120, 0.28) !important;
    color: var(--ms-primary) !important;
    border-color: rgba(11, 111, 120, 0.6) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 8px 25px rgba(11, 111, 120, 0.28) !important;
    transform: translateY(-2px) !important;
}

/* Keyframes animations */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Structural Ordering Elements */
.student-mobile-header {
    display: none;
}

.student-mobile-cta {
    display: none;
}

.student-brand-marquee {
    display: none;
}

/* Responsive Configurations */
@media (max-width: 1199px) {
    .student-quick-nav {
        gap: 20px;
    }
    
    .student-section-title {
        font-size: 28px;
    }
    
    .student-split-wrapper {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .student-quick-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .student-split-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .student-mobile-header {
        display: block !important;
        order: 1 !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .student-desktop-header {
        display: none !important;
    }
    
    .student-split__image-col {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .student-split__content-col {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .student-mobile-cta {
        display: flex !important;
        margin-top: 25px !important;
        width: 100% !important;
    }
    
    .student-mobile-cta .student-cta-btn {
        width: 100% !important;
        max-content: fit-content !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .student-split__image-col,
    .student-split__content-col {
        max-width: 100%;
        width: 100%;
    }
    
    .student-split__image-container {
        aspect-ratio: 1920 / 720; /* Dynamic landscape crops on mobile */
        height: 250px;
    }
    
    .student-section-header h2 {
        font-size: 28px;
    }
    
    .student-footer-cta-card h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .student-page-section {
        padding: 25px 0 !important;
    }
    
    .student-split-wrapper {
        gap: 20px !important;
    }
    
    .student-section-title-row,
    .student-section-subtitle-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    html body .student-section-title-row .student-cta-btn,
    html body .student-section-subtitle-row .student-cta-btn {
        align-self: flex-start !important;
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .student-psychology-channels-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 20px;
    }
    
    .student-psychology-channels-cta {
        width: 100% !important;
    }
    
    html body .student-psychology-channels-cta .student-cta-btn {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Psychology Section Mobile Centering & Balance */
    #student-psychology .student-split__content-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    #student-psychology .student-section-tagline,
    #student-psychology .student-section-title,
    #student-psychology .student-section-subtitle,
    #student-psychology .student-section-desc {
        text-align: center !important;
        align-self: center !important;
    }
    
    #student-psychology .student-psychology-keywords {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
    
    #student-psychology .student-psychology-channels-wrapper {
        align-items: center !important;
        width: 100% !important;
    }
    
    #student-psychology .student-psychology-channels {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    #student-psychology .student-psychology-channels .channel-item {
        gap: 5px !important;
        min-width: 0;
        white-space: nowrap;
    }

    #student-psychology .student-psychology-channels .channel-dot {
        width: 6px;
        height: 6px;
    }

    #student-psychology .student-psychology-channels .channel-text {
        font-size: clamp(10.5px, 3.05vw, 12px);
        line-height: 1.25;
    }
    
    #student-psychology .student-psychology-channels-cta {
        align-self: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Career steps: one compact, auto-advancing vertical slide on mobile. */
    #student-career .student-career-steps.is-carousel-ready {
        position: relative;
        display: block;
        height: 104px;
        margin: 20px 0 8px;
        overflow: hidden;
    }

    #student-career .student-career-steps.is-carousel-ready .career-step-item {
        position: absolute;
        inset: 0;
        width: 100%;
        margin: 0;
        opacity: 0;
        transform: translateY(34px);
        pointer-events: none;
        transition: transform 320ms ease, opacity 220ms ease;
    }

    #student-career .student-career-steps.is-carousel-ready .career-step-item.is-active {
        z-index: 2;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #student-career .student-career-steps.is-carousel-ready .career-step-item.is-leaving {
        z-index: 1;
        opacity: 0;
        transform: translateY(-34px);
    }

    #student-career .student-career-steps.is-carousel-ready + .student-career-progress {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0 0 16px;
    }

    #student-career .student-career-progress__bars {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    #student-career .student-career-progress__bars span {
        width: 34px;
        height: 4px;
        border-radius: 999px;
        background: rgba(11, 111, 120, 0.16);
        transition: background-color 220ms ease, transform 220ms ease;
    }

    #student-career .student-career-progress__bars span.is-active {
        background: var(--ms-accent);
        transform: scaleY(1.35);
    }

    #student-career .student-career-progress__count {
        min-width: 30px;
        color: var(--ms-primary-dark);
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
    }
    
    .student-brand-flow {
        display: none !important;
    }
    
    .student-brand-marquee {
        display: block !important;
        height: 140px;
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
        border-radius: var(--ms-radius-md);
        border: 1px dashed rgba(11, 111, 120, 0.2);
        background: rgba(255, 255, 255, 0.45);
        padding: 10px;
        box-sizing: border-box;
    }

    .student-brand-marquee::before,
    .student-brand-marquee::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 30px;
        z-index: 2;
        pointer-events: none;
    }
    .student-brand-marquee::before {
        top: 0;
        background: linear-gradient(to bottom, var(--ms-bg-kem) 0%, transparent 100%);
    }
    .student-brand-marquee::after {
        bottom: 0;
        background: linear-gradient(to top, var(--ms-bg-kem) 0%, transparent 100%);
    }

    .student-brand-marquee__track {
        display: flex;
        flex-direction: column;
        gap: 10px;
        animation: marqueeVertical 10s linear infinite;
        animation-play-state: paused;
    }

    .student-brand-marquee.is-in-view .student-brand-marquee__track {
        animation-play-state: running;
    }

    .student-brand-marquee:hover .student-brand-marquee__track {
        animation-play-state: paused;
    }

    .student-brand-marquee__track .student-flow-step {
        height: 60px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 15px !important;
        background: #FFFFFF !important;
        border: 1px solid var(--ms-border-light) !important;
        border-radius: var(--ms-radius-md) !important;
        box-shadow: var(--ms-shadow-soft) !important;
        margin: 0 !important;
    }
    
    .student-brand-marquee__track .step-num {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--ms-accent) !important;
        margin-bottom: 2px !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    .student-brand-marquee__track .step-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--ms-primary-dark) !important;
    }
    
    .student-psychology-keywords {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin-bottom: 20px !important;
    }
    
    .student-psychology-keywords .keyword-tag {
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        padding: 6px 12px !important;
        background: rgba(11, 111, 120, 0.05) !important;
        border-radius: var(--ms-radius-sm) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--ms-primary-medium) !important;
    }
    
    .student-psychology-keywords .keyword-separator {
        display: none !important;
    }
    
    .student-footer-cta-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .student-footer-cta-actions .btn-pill {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    #student-career .student-career-steps,
    #student-career .student-career-steps .career-step-item {
        transition: none !important;
    }
}

@media (max-width: 575px) {
    .student-quick-nav {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .student-quick-nav__card {
        padding: 15px 10px !important;
    }
    
    .student-quick-nav__icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    
    .student-quick-nav__need {
        font-size: 12px !important;
        height: 38px !important;
        margin-bottom: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .student-quick-nav__arrow {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    
    .student-quick-nav__target {
        padding-top: 8px !important;
    }
    
    .student-quick-nav__target-title {
        font-size: 11px !important;
        margin-bottom: 6px !important;
        letter-spacing: 0.1px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.3 !important;
    }
    
    html body .student-quick-nav__link {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .student-split__image-container {
        height: 180px;
    }
    
    .student-section-header h2 {
        font-size: 24px;
    }
    
    .student-footer-cta-card {
        padding: 40px 20px;
    }
}

@keyframes marqueeVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-280px);
    }
}

/* Modal Popup Layout for Consultation Form */
.student-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto; /* Scroll on the wrapper */
    padding: 30px 10px; /* Padding for mobile viewports scroll */
    box-sizing: border-box;
}

.student-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.student-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 65, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.student-modal-container {
    background: #FFFFFF;
    border-radius: var(--ms-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 5;
    padding: 35px 30px 45px 30px;
    box-shadow: 0 25px 60px rgba(11, 60, 65, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto; /* Allow auto centering inside scroll container */
    overflow: visible !important; /* Prevent select dropdown clipping */
}

.student-modal.active .student-modal-container {
    transform: scale(1);
}

.student-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--ms-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--ms-transition);
}

.student-modal-close:hover {
    color: var(--ms-accent);
}

.student-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.student-modal-logo img,
.student-modal-logo .custom-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.student-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-modal-subtitle {
    font-size: 13.5px;
    color: var(--ms-text-muted);
}

/* Consultation Form Fields */
.student-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.student-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.student-form-group--full {
    grid-column: span 2;
}

.student-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ms-primary-dark);
}

.student-form-group label .required {
    color: #E15B5B;
}

.student-form-group input,
.student-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ms-border-light);
    border-radius: var(--ms-radius-sm);
    font-size: 13.5px;
    color: var(--ms-text);
    background: #FDFCF9;
    box-sizing: border-box;
    transition: var(--ms-transition);
}

.student-form-group input:focus,
.student-form-group select:focus {
    outline: none;
    border-color: var(--ms-primary-medium);
    box-shadow: 0 0 0 3px rgba(11, 111, 120, 0.1);
    background: #FFFFFF;
}

.student-form-submit {
    width: 100% !important;
    background: #F28C00 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12.5px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(242, 140, 0, 0.25) !important;
    transition: all 0.25s ease !important;
    display: block !important;
}

.student-form-submit:hover {
    background: #D47A00 !important;
    box-shadow: 0 6px 20px rgba(242, 140, 0, 0.35) !important;
    transform: translateY(-1.5px) !important;
}

/* The current student-banner heading needs a fixed left copy column. */
@media (min-width: 1024px) {
    .ms-page-banner--student .ms-page-banner__copy {
        width: min(680px, 52%) !important;
        max-width: min(680px, 52%) !important;
    }

    .ms-page-banner--student .ms-page-banner__title--student {
        white-space: normal !important;
        font-size: clamp(32px, 3vw, 48px) !important;
    }
}

/* Fill the mobile banner before centering its copy vertically. */
@media (max-width: 767px) {
    .ms-page-banner--student .ms-page-banner__content {
        position: absolute;
        inset: 0;
        height: 100% !important;
        min-height: 0 !important;
        justify-content: center !important;
    }

	#page #content .ms-page-banner--student .ms-page-banner__title {
		max-width: 100% !important;
		text-transform: none !important;
		white-space: normal !important;
		overflow-wrap: break-word !important;
		word-break: normal !important;
	}
}

@media (max-width: 575px) {
    .student-form-grid {
        grid-template-columns: 1fr !important;
    }
    .student-form-group--full {
        grid-column: span 1 !important;
    }
    .student-modal-container {
        padding: 25px 20px !important;
    }
}
