/* CoursePlus Landing Page Styles */
/* Responsive design optimized for 320px and up */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Enhanced Design System */
    --primary-gradient: linear-gradient(135deg, #4f7744 0%, #79a77a 100%);
    --enterprise-gradient: linear-gradient(135deg, #263a63 0%, #5a7fc9 100%);
    --education-gradient: linear-gradient(135deg, #6b4fb5 0%, #d7a6c2 60%, #f3b58a 100%);
    --training-gradient: linear-gradient(135deg, #d09a56 0%, #8fb89f 60%, #7da6d6 100%);

    /* Advanced Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Enhanced Shadows and Spacing */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-hard: 0 16px 60px rgba(0, 0, 0, 0.15);
    --spacing-unit: 1rem;

    /* Brand Colors */
    --brand-blue: #65a30d;
    --brand-purple: #7c3aed;
    --brand-orange: #f59e0b;
    --brand-green: #10b981;
}

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Advanced Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInFromLeft 1s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInFromRight 1s ease-out forwards;
}

.animate-scaleUp {
    animation: scaleUp 0.8s ease-out forwards;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-countUp {
    animation: countUp 0.6s ease-out forwards;
}

/* Enhanced Gradient Backgrounds */
.gradient-primary {
    background: var(--primary-gradient);
}

/* Loader overlay styles */
#courses-loader {
    display: none; /* toggled via classes 'flex' / 'hidden' */
}
.loader-box .spinner {
    border-top-color: transparent;
}

/* Industry holder spacing */
#industry-holder {
    display: block;
    margin-bottom: 1rem;
}

/* Intro styles */
#courses-intro h1 {
    animation: fadeInUp 0.7s ease-out;
}
#courses-intro p {
    animation: fadeInUp 0.9s ease-out;
}

.gradient-enterprise {
    background: var(--enterprise-gradient);
}

.gradient-education {
    background: var(--education-gradient);
}

.gradient-training {
    background: var(--training-gradient);
}

.gradient-success {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #0f6b52 0%, #6fbf9a 100%);
}
.gradient-warning {
    background: linear-gradient(135deg, #c38a3f 0%, #e8b56a 100%);
}
.gradient-danger {
    background: linear-gradient(135deg, #a83b3b 0%, #d66b6b 100%);
}
.gradient-lime {
    background: linear-gradient(135deg, #4f7744 0%, #79a77a 100%);
}
.gradient-emerald {
    background: linear-gradient(135deg, #1f6b59 0%, #6fbf9a 100%);
}
.gradient-green {
    background: linear-gradient(135deg, #3f6f4f 0%, #7fbf8a 100%);

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
}

/* Enhanced CTA Buttons with Micro-interactions */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
    box-shadow: var(--shadow-medium);
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hard);
}

.cta-button:active {
    transform: translateY(0);
}

/* Loading States */
.button-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

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

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 20px 40px rgba(101, 163, 13, 0.3);
    transition: box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.audience-card button {
    display: none;
}

/* Enhanced Mobile Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-item {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* progress bar animation */
.progress-bar {
    transition: width 1s ease;
}

.mobile-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-menu-item:nth-child(5) { transition-delay: 0.5s; }

/* Progressive Image Loading */
.progressive-image {
    position: relative;
    overflow: hidden;
}

.progressive-image img {
    transition: opacity 0.3s ease;
}

.progressive-image img[loading="lazy"] {
    opacity: 0;
}

.progressive-image img.loaded {
    opacity: 1;
}

/* Skeleton Loading States */
.skeleton-loader {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
}

.skeleton-subtitle {
    height: 1rem;
    width: 80%;
}

.skeleton-button {
    height: 3rem;
    width: 120px;
    border-radius: 1.5rem;
}

/* Enhanced Typography */
.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Active States */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--brand-blue);
}

/* Enhanced Shadows */
.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-medium {
    box-shadow: var(--shadow-medium);
}

.shadow-hard {
    box-shadow: var(--shadow-hard);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Focus States for Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Audience Cards */
.audience-card {
    transition: all 0.5s ease;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.5s ease;
}

/* Certificate Section */
.certificate-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* App Showcase */
.app-showcase {
    position: relative;
    overflow: hidden;
}

/* Stats Counter */
.stats-counter {
    font-weight: 800;
    color: var(--brand-blue);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Extra Small Devices (320px and up) */
@media (min-width: 320px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Section */
    .hero-headline {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Cards */
    .audience-card,
    .pricing-card {
        margin-bottom: 2rem;
    }

    /* Navigation */
    .mobile-menu-item {
        font-size: 1.25rem;
    }
}

/* Small Devices (640px and up) */
@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

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

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cta-button {
        width: auto;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .hero-headline {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    /* Grid layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        margin: 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-headline {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    .hero-headline {
        font-size: var(--text-6xl);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2XL Devices (1536px and up) */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Print Styles */
@media print {
    .mobile-menu,
    .cta-button {
        display: none !important;
    }

    body {

    /* Course picker empty-state styling */

    .student-list-empty-state {
        background: #ffffff;
        border: 1px solid rgba(226,232,240,1);
        border-radius: 0.75rem;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        padding: 1.5rem;
        padding-top: 2rem; /* extra space above message */
        padding-bottom: 2rem; /* extra space below button */
        min-height: 260px; /* increased minimum height for visual balance */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* vertical centering */
        gap: 0.5rem;
        color: #6b7280;
        text-align: center; /* ensure inner text is centered */
    }

    .student-list-empty-state .empty-state-message-text {
        font-size: 0.75rem; /* smaller message text per request */
        margin: 0;
        line-height: 1.3;
        max-width: 56ch;
        padding-top: 0.75rem; /* extra padding above the text */
    }

    .empty-state-action-button {
        background: var(--brand-green, #8dc63f);
        color: #ffffff;
        padding: 0.6rem 1.1rem;
        border-radius: 0.6rem;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(14, 165, 233, 0.06);
    }

    .empty-state-action-button:hover {
        filter: brightness(0.95);
    }

    .empty-state-action-button:active { transform: translateY(1px); }
    .empty-state-action-button { display: inline-block; }

    .student-list-empty-state .empty-state-action-button { margin-top: 0.5rem; }

    /* Dark mode adjustments */
    .dark .student-list-empty-state {
        background: rgba(15, 23, 27, 0.65);
        border-color: rgba(71,85,105,0.12);
        color: #cbd5e1;
    }
    .dark .empty-state-action-button { background: #84cc16; color: #062e02; }
        background: white !important;
        color: black !important;
    }

    .glass,
    .glass-card {
        background: white !important;
        backdrop-filter: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass,
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #000;
    }

    .cta-button {
        border: 2px solid currentColor;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.4);
        --shadow-hard: 0 16px 60px rgba(0, 0, 0, 0.5);
    }
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.prose {
    max-width: 65ch;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ensure minimum touch targets on mobile */
@media (max-width: 768px) {
    .cta-button,
    .nav-link,
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

      .certificate-container {
                background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
                box-shadow:
                    0 20px 40px -12px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
                position: relative;
                overflow: hidden;
            }

            .certificate-container::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: 
                    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
                pointer-events: none;
            }

            /* Decorative watermark effect */
            .certificate-container::after {
                content: 'CERTIFIED';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) rotate(-45deg);
                font-size: 4rem;
                font-weight: 900;
                color: rgba(245, 158, 11, 0.08);
                letter-spacing: 0.2em;
                pointer-events: none;
                z-index: 0;
            }

/* removed global heading override that was inflating sizes across the site */
/* h1 {font-weight: 100 !important;font-size: 43px !important;line-height: 122% !important;-webkit-font-smoothing: antialiased;} */

.absolute.-bottom-6.-left-6.w-20.h-20.bg-emerald-600.rounded-full.flex.items-center.justify-center.shadow-large.animate-pulse {
    z-index: 27;
}

.absolute.-top-4.-right-4.w-16.h-16.bg-lime-500.rounded-full.flex.items-center.justify-center.shadow-large.animate-bounce {
    z-index: 10;
}

h2 {/* font-weight: 100 !important; *//* font-size: 40px !important; */}


/* Recent cards in the certificates listing */
.recent-card {
    padding: 8px;
    background-color: #eeeeee;
}

.certificate-container h2 {
    font-size: 25px !important;
}

.audience-card .mb-8:nth-of-type(2) {
    margin-bottom: 0px;
    margin-top: 0px;
}

section#cta.bg-gray-900 {
    background-color: rgb(50 50 50);
}

.relative.max-w-md.mx-auto.cert-mock {
    max-width: none;
    transform: scale(0.9);
}

.relative.h-96.rounded-2xl.overflow-hidden.shadow-2xl.bg-white {
    margin-top: 63px;
}

footer .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-5.gap-8.mb-12 {
    display: none;
}

footer.bg-gray-900.text-white.relative.overflow-hidden {
    background: #252424;
}

nav.fixed.top-0.left-0.right-0.z-50.glass.border-b.border-white\/10.backdrop-blur-md {
    background: white;
}

h3 {
    font-weight: 100 !important;
}

.course-card p {
    font-size: 15px;
    /* margin: 70px 0 30px !important; */
}

span.careers-chip {
    margin: 4px 0;
    display: inline-block;
}

.text-center.award-icon.mb-3 {
    text-align: left;
    margin-top: 30px;
}

.relative.buy-card {
    margin-left: 40px;
}

div#industry-tabs button {
    margin-bottom: 12px;
    margin-right: 8px;
}

section.py-20.bg-gradient-to-br.from-lime-50.to-green-50.headline {
    padding-top: 170px;
}

footer input {
    /* background: #2b2b2b !important; */
}

.w-10.h-10.bg-gray-800.rounded-lg.flex.items-center.justify-center {}

section.block-section {
    padding-bottom: 0 !important;
}

span.logo-company.text-xl.font-bold.text-white {
    font-size: 11px;
    line-height: 116%;
}


.w-10.h-10.bg-gray-800.rounded-lg.flex.items-center.justify-center {
    --tw-bg-opacity: 1;
    background-color: rgb(39 39 39);
}

div#notif-menu {
    position: absolute;
    top: 62px;
    right: 30px;
}

a.org-edit {
    position: relative;
    top: -3px;
    left: 3px;
}

div#previewSealWrapper svg {
    opacity: 0;
}



span.\\\"org-section-subtitle {
    font-size: 11px;
    padding: 30px 0 14px;
    display: block;
    text-align: center;
}

button#changeCourseBtn {
    font-size: 13px;
}

.selected-count-display.text-sm.text-slate-500 {
    font-size: 12px;
}

h3.course-title-heading.text-slate-900.dark\:text-slate-100.text-xl.font-bold.mt-2 {
    max-width: 530px;
}