/* ICT Academy Modern Styles - Updated for FRS Compliance */

/* Root Variables for Modern Academy Design */
:root {
    /* Primary Color Palette */
    --primary-modern: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;

    /* ICTA Brand Colors (as per FRS Section 4.3) */
    --icta-navy: #1B2951;
    --icta-blue: #2563EB;
    --icta-cyan: #06B6D4;
    --icta-gold: #F59E0B;

    /* Supporting Colors */
    --primary-color: var(--icta-navy);
    --secondary-color: #6c757d;
    --success-color: #10B981;
    --info-color: var(--icta-cyan);
    --warning-color: var(--icta-gold);
    --danger-color: #EF4444;
    --light-color: #F8FAFC;
    --dark-color: #1E293B;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 0.9rem;
    --line-height-base: 1.6;

    /* Spacing & Layout */
    --border-radius: 0.75rem;
    --border-radius-sm: 0.375rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions & Animations */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Base Typography & Body */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ICTA Brand Colors */
.text-navy { color: var(--icta-navy) !important; }
.text-blue { color: var(--icta-blue) !important; }
.text-cyan { color: var(--icta-cyan) !important; }
.text-gold { color: var(--icta-gold) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

.bg-navy { background-color: var(--icta-navy) !important; }
.bg-blue { background-color: var(--icta-blue) !important; }
.bg-cyan { background-color: var(--icta-cyan) !important; }
.bg-gold { background-color: var(--icta-gold) !important; }

/* Gradient Backgrounds */
.bg-gradient-navy {
    background: linear-gradient(135deg, var(--icta-navy) 0%, #2A3B5C 100%) !important;
}
.bg-gradient-cyan {
    background: linear-gradient(135deg, var(--icta-cyan) 0%, #0891B2 100%) !important;
}
.bg-gradient-gold {
    background: linear-gradient(135deg, var(--icta-gold) 0%, #D97706 100%) !important;
}

/* Button Styles */
.btn-navy {
    background-color: var(--icta-navy);
    border-color: var(--icta-navy);
    color: white;
    transition: var(--transition-base);
}
.btn-navy:hover, .btn-navy:focus, .btn-navy:active {
    background-color: #162040;
    border-color: #162040;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-cyan {
    background-color: var(--icta-cyan);
    border-color: var(--icta-cyan);
    color: white;
    transition: var(--transition-base);
}
.btn-cyan:hover, .btn-cyan:focus, .btn-cyan:active {
    background-color: #0891B2;
    border-color: #0891B2;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-gold {
    background-color: var(--icta-gold);
    border-color: var(--icta-gold);
    color: white;
    transition: var(--transition-base);
}
.btn-gold:hover, .btn-gold:focus, .btn-gold:active {
    background-color: #D97706;
    border-color: #D97706;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-navy {
    border-color: var(--icta-navy);
    color: var(--icta-navy);
    transition: var(--transition-base);
}
.btn-outline-navy:hover, .btn-outline-navy:focus, .btn-outline-navy:active {
    background-color: var(--icta-navy);
    border-color: var(--icta-navy);
    color: white;
}

/* Badge Styles */
.badge-navy {
    background-color: var(--icta-navy);
    color: white;
}
.badge-cyan {
    background-color: var(--icta-cyan);
    color: white;
}
.badge-gold {
    background-color: var(--icta-gold);
    color: white;
}

/* Glassmorphism Effects (as per FRS Section 4.3) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-xl);
}

/* Navigation Styles (Responsive with Sticky Header as per FRS Section 4.2) */
.icta-navbar {
    background: linear-gradient(135deg, var(--icta-navy) 0%, var(--icta-blue) 100%) !important;
    box-shadow: var(--box-shadow);
    transition: var(--transition-base);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0;
    min-height: 70px;
}

.icta-navbar.scrolled {
    background: rgba(27, 41, 81, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.icta-navbar .container {
    align-items: center;
}

.icta-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.icta-brand:hover {
    color: var(--icta-cyan) !important;
    text-decoration: none;
}

.brand-logo {
    transition: var(--transition-base);
    max-height: 40px;
    width: auto;
}

.icta-brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

.icta-nav-link {
    font-weight: 500;
    padding: 0.6rem 0.9rem !important;
    border-radius: var(--border-radius-sm);
    margin: 0 0.2rem;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.icta-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-1px);
}

.icta-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.icta-dropdown {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    min-width: 160px;
}

.navbar-nav .nav-item.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.9rem !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Right aligned user menu */
.navbar-nav:last-child {
    margin-left: auto;
}

/* Additional navbar consistency styles */
.navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Ensure consistent spacing for all nav elements */
.navbar-nav .nav-item {
    margin: 0 0.1rem;
}

/* Login/Register buttons styling */
.navbar-nav .btn {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

/* Hero Section Styles (as per FRS Section 4.1) */
.icta-hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--icta-navy) 0%, var(--icta-blue) 50%, var(--icta-cyan) 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(27, 41, 81, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge .badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-actions {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    white-space: nowrap;
}

.hero-stats {
    margin-top: 2rem;
}

.hero-stats .stat-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
}

.hero-logo {
    max-width: 200px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-card {
    position: absolute;
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: -1s;
}

.floating-card.card-2 {
    top: 60%;
    right: -10%;
    animation-delay: -2s;
}

.floating-card.card-3 {
    top: 10%;
    right: 20%;
    animation-delay: -3s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Section Styles */
.section-badge .badge {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.section-title {
    font-weight: 800;
    line-height: 1.2;
    color: var(--icta-navy);
}

/* About ICTA Section */
.about-icta-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--light-color) 0%, #F1F5F9 100%);
}

.about-content {
    padding-right: 1rem;
}

.mission-vision .glass-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.mission-vision .glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.goals-grid .goal-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.goals-grid .goal-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    min-width: 60px;
    text-align: center;
}

.about-visual {
    padding-left: 1rem;
}

/* Training Programs Section */
.training-programs-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #F1F5F9 0%, var(--light-color) 100%);
}

.program-card {
    transition: var(--transition-base);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.program-card .card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
}

.program-card .card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card .card-body .card-text {
    flex: 1;
}

.program-card .card-body ul {
    margin-top: auto;
}

.program-card .card-footer {
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
    background: transparent;
}

.program-card .list-unstyled li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Certificate Verification Section */
.certificate-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.verification-content {
    padding-right: 1.5rem;
}

.verification-form-container .glass-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.verification-features .feature-item {
    padding: 0.75rem 0;
    transition: var(--transition-base);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
}

.verification-features .feature-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.6);
    padding-left: 1rem;
}

.verification-features .feature-icon {
    min-width: 40px;
    text-align: center;
}

.verification-form .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.verification-form .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-sm);
}

.verification-form .form-control {
    border-left: none;
    font-size: 0.95rem;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, var(--icta-navy) 0%, #162040 100%) !important;
}

.footer-link {
    transition: var(--transition-base);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--icta-cyan) !important;
    text-decoration: none;
    transform: translateX(4px);
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    text-decoration: none;
}

.social-links .social-link:hover {
    background: var(--icta-cyan);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Form Enhancements */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 2px solid #E2E8F0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--icta-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input-group-text {
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius-sm);
    background: #F8FAFC;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design (as per FRS Section 4.3) */
@media (max-width: 991.98px) {
    .icta-navbar {
        padding: 0.75rem 0;
    }

    .navbar-nav.mx-auto {
        text-align: center;
        margin: 1rem 0;
    }

    .icta-nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
        justify-content: center;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .icta-hero-section {
        padding: 60px 0 30px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 2.5rem;
    }

    .hero-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .floating-elements {
        display: none;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .icta-hero-section {
        padding: 40px 0 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-icta-section,
    .training-programs-section,
    .certificate-section {
        padding: 3rem 0;
    }

    .about-content,
    .about-visual {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .verification-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-stats {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .hero-stats .row {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-stats .col-md-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
        margin-bottom: 0;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .program-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .icta-hero-section {
        padding: 30px 0 15px;
    }

    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .hero-badge .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-actions {
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .about-icta-section,
    .training-programs-section,
    .certificate-section {
        padding: 2.5rem 0;
    }

    .verification-form-container .card-body {
        padding: 1.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .brand-logo {
        height: 35px;
    }

    .program-card .card-body {
        padding: 1.25rem;
    }

    .program-card .card-header {
        padding: 1rem 1.25rem;
    }

    .program-card .card-footer {
        padding: 1rem 1.25rem;
    }

    .verification-features .feature-item:hover {
        transform: none;
        background: transparent;
        padding-left: 0;
    }
}

/* Accessibility Enhancements (as per FRS Section 5 - WCAG 2.1 compliant) */
*:focus {
    outline: 2px solid var(--icta-cyan);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--icta-navy);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
    color: white;
    text-decoration: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--icta-navy);
    }

    .hero-background {
        background: var(--icta-navy);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-card,
    .hero-logo {
        animation: none;
    }

    .pulse-animation {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .icta-navbar,
    .hero-visual,
    .floating-elements,
    .scroll-indicator,
    .social-links,
    .btn {
        display: none !important;
    }

    .hero-content,
    .about-content,
    .verification-content {
        color: black !important;
    }

    .glass-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Performance Optimizations */
.hero-background,
.hero-overlay {
    will-change: transform;
}

.floating-card,
.hero-logo {
    will-change: transform;
}

.glass-card {
    will-change: background, transform;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--icta-cyan);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================================
   MODERN ACADEMY STYLES
   ============================================== */

/* Modern Color Classes */
.text-primary-modern { color: var(--primary-modern) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.bg-primary-modern { background-color: var(--primary-modern) !important; }
.border-primary-modern { border-color: var(--primary-modern) !important; }

/* Modern Academy Hero Section */
.academy-hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-top: -70px;
    padding-top: 90px;
}

.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-modern) 0%, var(--icta-blue) 50%, var(--primary-light) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.badge-modern {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary-light);
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-modern) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-outline-modern {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats-modern .stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.hero-stats-modern .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    display: block;
}

.hero-stats-modern .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Hero Visual Features */
.hero-features-grid {
    position: relative;
    width: 100%;
    height: 400px;
}

.feature-highlight {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    min-width: 200px;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.feature-highlight:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-highlight.feature-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.feature-highlight.feature-2 {
    top: 20%;
    right: 0;
    animation-delay: -1.5s;
}

.feature-highlight.feature-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: -3s;
}

.feature-highlight.feature-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: -4.5s;
}

.feature-highlight .feature-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    text-align: center;
}

.feature-highlight .feature-text h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.feature-highlight .feature-text small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.academy-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.academy-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 8s ease-in-out infinite;
}

/* Section Titles */
.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--icta-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6B7280;
}

/* Training Programs Modern */
.training-programs-modern {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.program-filters {
    margin-bottom: 2rem;
}

.btn-filter {
    background: transparent;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.btn-filter.active,
.btn-filter:hover {
    background: var(--primary-modern);
    border-color: var(--primary-modern);
    color: white;
}

.programs-grid .program-card-modern {
    background: white;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F3F4F6;
}

.programs-grid .program-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--primary-modern);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 1rem 1.5rem;
    flex-shrink: 0;
}

.program-icon.bg-info { background: var(--icta-cyan); }
.program-icon.bg-warning { background: var(--icta-gold); }

.program-content {
    padding: 0 1.5rem 1rem 1.5rem;
    flex: 1;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--icta-navy);
    margin-bottom: 0.75rem;
}

.program-meta {
    margin-bottom: 1rem;
}

.badge-level {
    background: var(--primary-modern);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
}

.badge-duration {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.program-description {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.program-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.program-features .feature-item i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.program-action {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.btn-program-primary {
    background: var(--primary-modern);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-program-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-program-secondary {
    background: var(--icta-cyan);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-program-secondary:hover {
    background: #0891B2;
    color: white;
    transform: translateY(-1px);
}

.btn-program-warning {
    background: var(--icta-gold);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-program-warning:hover {
    background: #D97706;
    color: white;
    transform: translateY(-1px);
}

.btn-view-all {
    background: linear-gradient(135deg, var(--icta-navy) 0%, var(--primary-modern) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Training Schedule */
.training-schedule-section {
    background: #F9FAFB;
}

.schedule-container {
    max-width: 100%;
}

.schedule-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 480px;
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.schedule-date {
    margin-bottom: 1rem;
}

.date-badge {
    background: var(--primary-modern);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--icta-navy);
    margin-bottom: 0.75rem;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.schedule-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.schedule-meta {
    flex: 1;
}

.schedule-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6B7280;
}

.schedule-meta .meta-item i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.schedule-action {
    margin-top: auto;
    padding-top: 1rem;
}

.schedule-action .btn-register-pill {
    --register-gradient-start: #2da1ff;
    --register-gradient-end: #0f1f3d;
    --register-icon-bg: rgba(15, 31, 61, 0.25);
    width: 100%;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 999px;
    padding: 0.5rem;
    font-weight: 600;
    text-transform: none;
    background: linear-gradient(135deg, var(--register-gradient-start), var(--register-gradient-end));
    box-shadow: 0 12px 24px rgba(18, 73, 142, 0.25);
    transition: all 0.25s ease;
}

.schedule-action .btn-register-pill .pill-icon {
    background: var(--register-icon-bg);
    border-radius: 0.8rem;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.65rem;
}

.schedule-action .btn-register-pill .pill-icon i {
    font-size: 0.95rem;
}

.schedule-action .btn-register-pill .pill-text {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
}

.schedule-action .btn-register-pill:hover,
.schedule-action .btn-register-pill:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(14, 54, 108, 0.35);
}

.schedule-action .btn-register-pill:disabled,
.schedule-action .btn-register-pill.disabled {
    background: linear-gradient(135deg, #cbd5f5, #94a3b8);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.schedule-action .btn-register-pill.btn-register-pill--full {
    background: linear-gradient(135deg, #f3f4f6, #d1d5db);
    color: #374151;
    box-shadow: none;
}

.schedule-instructor {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.instructor-name {
    font-weight: 600;
    color: var(--icta-navy);
    font-size: 0.9rem;
}

.instructor-title {
    color: #6B7280;
    font-size: 0.8rem;
}

/* Resources Section */
.resources-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.resource-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #F3F4F6;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--primary-modern);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.resource-title {
    font-weight: 700;
    color: var(--icta-navy);
    margin-bottom: 0.75rem;
}

.resource-description {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.resource-stats {
    margin-bottom: 1rem;
}

.btn-resource {
    background: var(--primary-modern);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-resource:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

/* Featured Downloads */
.featured-downloads {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
}

.download-list {
    max-width: 100%;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #F3F4F6;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #F9FAFB;
    border-color: var(--primary-light);
}

.download-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.download-info {
    flex: 1;
}

.download-title {
    font-weight: 600;
    color: var(--icta-navy);
    margin-bottom: 0.25rem;
}

.download-meta {
    font-size: 0.8rem;
    color: #6B7280;
}

/* Announcements */
.announcements-section {
    background: #F9FAFB;
}

.announcement-card {
    background: white;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F3F4F6;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.announcement-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.announcement-date {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
}

.date-text {
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.announcement-content {
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    flex: 1;
}

.announcement-title {
    font-weight: 700;
    color: var(--icta-navy);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.announcement-excerpt {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 0.35rem;
}

.announcement-action {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}

.btn-announcement {
    background: var(--primary-modern);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-announcement:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.faq-accordion {
    background: transparent;
}

.faq-item {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-header {
    border: none;
    background: transparent;
}

.btn-faq {
    background: transparent;
    border: none;
    color: var(--icta-navy);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-faq:hover,
.btn-faq:focus {
    background: #F9FAFB;
    color: var(--primary-modern);
    box-shadow: none;
}

.faq-question {
    flex: 1;
    font-size: 1.05rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-modern);
}

.btn-faq[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    background: #F9FAFB;
}

.faq-body p {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design Improvements */
@media (max-width: 991.98px) {
    .academy-hero-section {
        margin-top: -60px;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .hero-features-grid {
        height: 300px;
    }

    .feature-highlight {
        min-width: 160px;
        padding: 1rem;
    }

    .academy-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .academy-hero-section {
        margin-top: -50px;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-features-grid {
        display: none;
    }

    .academy-logo-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 2rem 0;
    }

    .section-title-modern {
        font-size: 1.8rem;
        text-align: center;
    }

    .program-filters {
        text-align: center;
    }

    .btn-filter {
        margin: 0.25rem;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .schedule-card,
    .resource-card,
    .announcement-card {
        margin-bottom: 1.5rem;
    }

    .schedule-card {
        min-height: 420px;
    }

    .download-item {
        padding: 0.75rem;
    }

    .download-icon {
        font-size: 1.25rem;
        width: 35px;
        margin-right: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .academy-hero-section {
        margin-top: -50px;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .schedule-card {
        min-height: 380px;
    }

    .section-title-modern {
        font-size: 1.6rem;
    }

    .hero-stats-modern .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats-modern .stat-label {
        font-size: 0.8rem;
    }

    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 1rem 1rem 0.75rem 1rem;
    }

    .btn-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
