/* ============================================
   Academic LMS Template Custom Styles
   Description: Professional learning management system template
   emphasizing accessibility, modern design, and academic authority
   ============================================ */

/* ============================================
   CSS Custom Variables - Academic Theme
   ============================================ */
:root {
    /* Academic Color Palette */
    --academic-navy: #1e3a5f;
    --academic-royal-blue: #3b82f6;
    --academic-success: #10b981;
    --academic-alert: #f59e0b;
    --academic-slate: #64748b;
    --academic-cream: #f8fafc;
    --academic-light-blue: #e0f2fe;

    /* Gradients */
    --academic-gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    --academic-gradient-hero: linear-gradient(135deg, rgba(30, 58, 95, 0.75) 0%, rgba(59, 130, 246, 0.70) 100%);

    /* Spacing */
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;

    /* Typography */
    --heading-font-weight: 700;
    --body-font-weight: 400;
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Navigation Enhancements
   ============================================ */
.rsl-navbar {
    background: var(--academic-navy) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.rsl-navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--heading-font-weight);
    color: #ffffff !important;
}

.rsl-navbar-brand:hover,
.rsl-navbar-brand:focus {
    color: #ffffff !important;
}

.rsl-navbar-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rsl-navbar-link:hover,
.rsl-navbar-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.rsl-navbar-link.active {
    color: #ffffff !important;
    position: relative;
}

.rsl-navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--academic-royal-blue);
}

/* Ensure navbar menu has proper background */
.rsl-navbar-menu {
    background: transparent;
}

/* Mobile menu styling */
@media (max-width: 768px) {
    .rsl-navbar-menu {
        background: var(--academic-navy) !important;
    }

    .rsl-navbar-menu .rsl-navbar-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .rsl-navbar-menu .rsl-navbar-link:hover,
    .rsl-navbar-menu .rsl-navbar-link:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--academic-gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: var(--heading-font-weight);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 3rem 0;
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-group .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--academic-royal-blue);
    color: #ffffff;
    border: 2px solid var(--academic-royal-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--academic-navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: var(--section-padding);
    background: var(--academic-cream);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .stat-card:hover {
        transform: none;
    }
}

.stat-icon {
    font-size: 3rem;
    color: var(--academic-royal-blue);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 1rem;
    color: var(--academic-slate);
    font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0 0 1rem 0;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--academic-slate);
    line-height: 1.8;
}

/* ============================================
   Programs Section
   ============================================ */
.programs-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.program-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .program-card:hover {
        transform: none;
    }
}

.program-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .program-card:hover .program-image img {
        transform: none;
    }
}

.program-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.5rem;
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0 0 1rem 0;
}

.program-content p {
    color: var(--academic-slate);
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.program-content .btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: var(--academic-royal-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.program-content .btn:hover,
.program-content .btn:focus {
    background: #2563eb;
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .program-content .btn:hover {
        transform: none;
    }
}

/* ============================================
   Resources Section
   ============================================ */
.resources-section {
    padding: var(--section-padding);
    background: var(--academic-light-blue);
}

.resource-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.resource-panel h3 {
    font-size: 1.75rem;
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resource-panel h3 i {
    color: var(--academic-royal-blue);
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list li i {
    color: var(--academic-royal-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.resource-list li span {
    color: #374151;
    font-weight: 500;
}

/* ============================================
   Virtual Tour Section
   ============================================ */
.tour-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.tour-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tour-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--academic-slate);
    font-style: italic;
}

/* ============================================
   Admissions Timeline
   ============================================ */
.admissions-section {
    padding: var(--section-padding);
    background: var(--academic-cream);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--academic-gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--heading-font-weight);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.timeline-step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(180deg, var(--academic-royal-blue) 0%, var(--academic-light-blue) 100%);
    z-index: 1;
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-content h3 i {
    color: var(--academic-royal-blue);
}

.timeline-content p {
    color: var(--academic-slate);
    margin: 0;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: var(--section-padding);
    background: #ffffff;
}

.testimonial-card {
    background: var(--academic-cream);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--academic-royal-blue);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: #374151;
    margin: 0 0 1.5rem 0;
    flex: 1;
    position: relative;
    padding-left: 2rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--academic-royal-blue);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-author {
    text-align: center;
}

.testimonial-name {
    font-weight: var(--heading-font-weight);
    color: var(--academic-navy);
    margin: 0 0 0.25rem 0;
}

.testimonial-program {
    color: var(--academic-slate);
    font-size: 0.9rem;
}

/* ============================================
   Accessibility Features Section
   ============================================ */
.accessibility-section {
    padding: var(--section-padding);
    background: var(--academic-navy);
    color: #ffffff;
}

.accessibility-section .section-header h2 {
    color: #ffffff;
}

.accessibility-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.accessibility-feature {
    text-align: center;
    padding: 2rem 1rem;
}

.accessibility-icon {
    font-size: 3rem;
    color: var(--academic-royal-blue);
    margin-bottom: 1rem;
}

.accessibility-feature h3 {
    font-size: 1.25rem;
    font-weight: var(--heading-font-weight);
    margin: 0 0 0.75rem 0;
    color: #ffffff;
}

.accessibility-feature p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta-section {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.final-cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.final-cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--academic-gradient-hero);
    z-index: 1;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-section h2 {
    font-size: 3rem;
    font-weight: var(--heading-font-weight);
    margin: 0 0 2rem 0;
}

.final-cta-section .hero-cta-group {
    margin-top: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--academic-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem 0;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: var(--heading-font-weight);
    margin: 0 0 1.5rem 0;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
    color: var(--academic-royal-blue);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--academic-royal-blue);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .social-links a:hover {
        transform: none;
    }
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--academic-royal-blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background: #2563eb;
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top:hover {
        transform: none;
    }
}

/* ============================================
   Modal Customization
   ============================================ */
.modal-container .modal {
    border-radius: 16px;
    max-width: 700px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-container .modal-header {
    background: var(--academic-gradient-primary);
    color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-container .modal-header h2 {
    margin: 0;
    font-size: 1.875rem;
    color: #ffffff;
    font-weight: 700;
}

.modal-container .modal-header .close-modal {
    color: #ffffff;
    opacity: 0.9;
    font-size: 2.5rem;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-container .modal-header .close-modal:hover,
.modal-container .modal-header .close-modal:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-container .modal-body {
    padding: 2.5rem;
    background: #ffffff;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Custom scrollbar for light mode modal body */
.modal-container .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-container .modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-container .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-container .modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-container .modal-body p {
    color: #64748b;
    line-height: 1.7;
}

.modal-container .modal-footer {
    padding: 1.5rem 2.5rem;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* Modal Footer Layout */
.modal-container .modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

/* Modal Button Styling */
.modal-container .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.modal-container .btn:focus {
    outline: 2px solid var(--academic-royal-blue);
    outline-offset: 2px;
}

.modal-container .btn-primary {
    background: var(--academic-royal-blue);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.modal-container .btn-primary:hover,
.modal-container .btn-primary:focus {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.modal-container .btn-secondary {
    background: #ffffff;
    color: #64748b;
    border: 2px solid #e5e7eb;
}

.modal-container .btn-secondary:hover,
.modal-container .btn-secondary:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Alternative ghost style for cancel buttons */
.modal-container .btn-ghost {
    background: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.modal-container .btn-ghost:hover,
.modal-container .btn-ghost:focus {
    background: rgba(100, 116, 139, 0.05);
    border-color: #94a3b8;
    color: #475569;
}

/* Light mode form styling */
.modal-container form .slot-layout {
    margin-bottom: 1rem;
}

.modal-container form .slot-layout:last-of-type {
    margin-bottom: 0;
}

.modal-container form .rsl-field-tile {
    margin-bottom: 0;
    background: rgba(30, 58, 95, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.modal-container form .rsl-field-tile:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.modal-container form .rsl-field-tile:focus-within {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-container form .rsl-field-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.modal-container form .rsl-field-input {
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.modal-container form .rsl-field-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-container form .rsl-field-input::placeholder {
    color: #94a3b8;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: auto;
        min-width: 200px;
        max-width: 85%;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Modal responsive adjustments */
    .modal-container .modal {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .modal-container .modal-header,
    .modal-container .modal-body,
    .modal-container .modal-footer {
        padding: 1.5rem;
    }

    .modal-container .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-container .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-container .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .timeline-step {
        gap: 1.5rem;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .timeline-step::after {
        left: 25px;
        top: 50px;
    }

    .final-cta-section {
        padding: 5rem 2rem;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    .footer-column {
        margin-bottom: 2rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .resource-panel {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1rem 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */
[data-theme="dark"] body {
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Dark mode button styling */
[data-theme="dark"] .btn-primary {
    background: var(--academic-royal-blue);
    color: #ffffff !important;
    border-color: var(--academic-royal-blue);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

[data-theme="dark"] .program-content .btn {
    background: var(--academic-royal-blue);
    color: #ffffff !important;
}

[data-theme="dark"] .program-content .btn:hover,
[data-theme="dark"] .program-content .btn:focus {
    background: #2563eb;
    color: #ffffff !important;
}

[data-theme="dark"] .stats-section,
[data-theme="dark"] .admissions-section {
    background: #1e293b;
}

[data-theme="dark"] .programs-section,
[data-theme="dark"] .tour-section,
[data-theme="dark"] .testimonials-section {
    background: #0f172a;
}

[data-theme="dark"] .resources-section {
    background: #1e3a5f;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .resource-panel,
[data-theme="dark"] .timeline-content {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .program-content h3,
[data-theme="dark"] .resource-panel h3,
[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .testimonial-name {
    color: #e2e8f0;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .program-content p,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .testimonial-program {
    color: #94a3b8;
}

[data-theme="dark"] .testimonial-card {
    background: #1e293b;
}

[data-theme="dark"] .testimonial-quote {
    color: #cbd5e1;
}

[data-theme="dark"] .resource-list li {
    border-bottom-color: #334155;
}

[data-theme="dark"] .resource-list li span {
    color: #e2e8f0;
}

[data-theme="dark"] .accessibility-section {
    background: #1e293b;
}

[data-theme="dark"] .site-footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #1e293b;
}

[data-theme="dark"] .modal-container .modal {
    background: #1e293b;
}

[data-theme="dark"] .modal-container .modal-body {
    background: #1e293b;
    color: #e2e8f0;
}

/* Custom scrollbar for dark mode modal body */
[data-theme="dark"] .modal-container .modal-body::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] .modal-container .modal-body::-webkit-scrollbar-track {
    background: #0f172a;
}

[data-theme="dark"] .modal-container .modal-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

[data-theme="dark"] .modal-container .modal-body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

[data-theme="dark"] .modal-container .modal-body p {
    color: #94a3b8;
}

[data-theme="dark"] .modal-container .modal-footer {
    background: #0f172a;
    border-top-color: #334155;
}

/* Dark mode modal button styling */
[data-theme="dark"] .modal-container .btn-primary {
    background: var(--academic-royal-blue);
    color: #ffffff;
}

[data-theme="dark"] .modal-container .btn-primary:hover,
[data-theme="dark"] .modal-container .btn-primary:focus {
    background: #2563eb;
}

[data-theme="dark"] .modal-container .btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

[data-theme="dark"] .modal-container .btn-secondary:hover,
[data-theme="dark"] .modal-container .btn-secondary:focus {
    background: #475569;
    border-color: #64748b;
    color: #f1f5f9;
}

[data-theme="dark"] .modal-container .btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border-color: #475569;
}

[data-theme="dark"] .modal-container .btn-ghost:hover,
[data-theme="dark"] .modal-container .btn-ghost:focus {
    background: rgba(148, 163, 184, 0.1);
    border-color: #64748b;
    color: #e2e8f0;
}

/* Dark mode form theming */
[data-theme="dark"] .modal-container form .rsl-field-tile {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .modal-container form .rsl-field-tile:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .modal-container form .rsl-field-tile:focus-within {
    border-color: #3b82f6;
    background: rgba(30, 58, 95, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .modal-container form .rsl-field-label {
    color: #e2e8f0;
}

[data-theme="dark"] .modal-container form .rsl-field-input {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
}

[data-theme="dark"] .modal-container form .rsl-field-input:focus {
    background: rgba(30, 41, 59, 1);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .modal-container form .rsl-field-input::placeholder {
    color: #64748b;
    opacity: 1;
}

/* Dark mode select dropdown */
[data-theme="dark"] .modal-container form select.rsl-field-input {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

[data-theme="dark"] .modal-container form select.rsl-field-input option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Dark mode textarea */
[data-theme="dark"] .modal-container form textarea.rsl-field-input {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .rsl-navbar,
    .back-to-top,
    .hero-cta-group,
    .final-cta-section {
        display: none;
    }

    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
}

/* ===================================
   ACCESSIBILITY WIDGET THEME OVERRIDES
   Matching Academic LMS Colors
   =================================== */
:root {
    --rsl-a11y-primary: #1e3a5f;
    --rsl-a11y-primary-dark: #152a45;
    --rsl-a11y-primary-light: #3b82f6;
    --rsl-a11y-secondary: #3b82f6;
    --rsl-a11y-button-gradient: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    --rsl-a11y-button-shadow: 0 4px 16px rgba(30, 58, 95, 0.4);
    --rsl-a11y-button-shadow-hover: 0 6px 24px rgba(30, 58, 95, 0.5);
    --rsl-a11y-header-gradient: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    --rsl-a11y-toggle-gradient: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    --rsl-a11y-success: #10b981;
}
