/* ==========================================================================
   Te.Sa. Energy - Design System 2025
   Professional light theme for education & training
   Clean, trustworthy, modern
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-tertiary: #eef0f7;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(15, 23, 42, 0.12);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --color-primary: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1e3a8a;
    --color-secondary: #0891b2;
    --color-accent: #f59e0b;
    --color-accent-light: #fbbf24;
    --color-success: #059669;

    --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #1d4ed8, #0891b2, #059669);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-text: linear-gradient(135deg, #1d4ed8, #0891b2);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #0891b2 100%);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.1);
    --shadow-primary: 0 8px 30px rgba(29, 78, 216, 0.2);
    --shadow-card-hover: 0 16px 48px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(29, 78, 216, 0.06);

    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-max: 1240px;
    --navbar-height: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

@media (hover: none) {
    body { cursor: auto; }
    .custom-cursor, .cursor-dot { display: none !important; }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: none;
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(29, 78, 216, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(29, 78, 216, 0.6);
    background: rgba(29, 78, 216, 0.04);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(29, 78, 216, 0.06);
    border: 1px solid rgba(29, 78, 216, 0.1);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.section-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-header h2 .text-gradient,
.section-header h2.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    width: 0%;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    border: 2px solid var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ---------- Cards ---------- */
.glass-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    border-color: rgba(29, 78, 216, 0.1);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    height: var(--navbar-height);
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
}

.navbar-logo img {
    height: 42px;
    width: auto;
    transition: all var(--transition-normal);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    letter-spacing: 0.01em;
}

/* On hero (dark bg) make nav links white */
.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-link:hover::after {
    width: 20px;
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(29, 78, 216, 0.06);
}

.navbar:not(.scrolled) .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active::after {
    width: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 20px;
    padding: 4px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-glass);
}

.navbar:not(.scrolled) .lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    letter-spacing: 0.08em;
}

.navbar:not(.scrolled) .lang-btn {
    color: rgba(255, 255, 255, 0.5);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.navbar:not(.scrolled) .lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.25);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
    cursor: none;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
    transform-origin: center;
}

.navbar:not(.scrolled) .hamburger span {
    background: #fff;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--navbar-height);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--gradient-hero);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(8, 145, 178, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 90%, rgba(5, 150, 105, 0.1) 0%, transparent 60%);
    animation: aurora 20s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% {
        background:
            radial-gradient(ellipse 80% 60% at 20% 50%, rgba(8, 145, 178, 0.25) 0%, transparent 60%),
            radial-gradient(ellipse 60% 70% at 80% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 50% 50% at 50% 90%, rgba(5, 150, 105, 0.1) 0%, transparent 60%);
    }
    50% {
        background:
            radial-gradient(ellipse 70% 70% at 60% 40%, rgba(8, 145, 178, 0.2) 0%, transparent 60%),
            radial-gradient(ellipse 80% 60% at 15% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 55%),
            radial-gradient(ellipse 60% 60% at 80% 20%, rgba(5, 150, 105, 0.12) 0%, transparent 60%);
    }
    100% {
        background:
            radial-gradient(ellipse 60% 80% at 80% 55%, rgba(8, 145, 178, 0.2) 0%, transparent 60%),
            radial-gradient(ellipse 70% 50% at 30% 25%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
            radial-gradient(ellipse 80% 50% at 50% 80%, rgba(5, 150, 105, 0.08) 0%, transparent 60%);
    }
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-inner {
    display: block;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, #93c5fd, #67e8f9, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 44px;
    max-width: 540px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.hero-buttons .btn-primary::before {
    display: none;
}

.hero-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-buttons .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse-dot 2s ease infinite;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Services / Bento Grid ---------- */
.services {
    background: var(--bg-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-item {
    padding: 0;
    text-align: left;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    overflow: hidden;
}

.bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: auto;
    flex-direction: row;
}

/* Illustration area */
.bento-illustration {
    padding: 24px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.bento-illustration img {
    width: 100%;
    max-width: 180px;
    height: auto;
    transition: transform var(--transition-smooth);
}

.bento-item:hover .bento-illustration img {
    transform: scale(1.06) translateY(-4px);
}

.bento-item.featured .bento-illustration {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.bento-item.featured .bento-illustration img {
    max-width: 320px;
    width: 100%;
}

/* Content area */
.bento-content {
    padding: 16px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    position: relative;
}

.bento-item.featured .bento-content {
    padding: 40px;
    justify-content: center;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.15);
}

.bento-item:hover .bento-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 30px rgba(29, 78, 216, 0.25);
}

.bento-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bento-item.featured h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
}

.bento-item.featured p {
    font-size: 0.95rem;
    max-width: 400px;
}

.bento-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.06;
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-smooth);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
}

.about-float-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-float-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.about-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    cursor: none;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: inherit;
}

.tab-btn:hover {
    color: var(--color-primary);
    border-color: rgba(29, 78, 216, 0.2);
}

.tab-btn.active {
    border-color: transparent;
    color: #fff;
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.98rem;
}

.tab-content.active {
    display: block;
}

/* ---------- Featured Courses ---------- */
.featured-courses {
    background: var(--bg-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.course-card {
    padding: 0;
    cursor: none;
    background: var(--bg-card);
    overflow: hidden;
}

.course-card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.course-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-image {
    transform: scale(1.06);
}

.course-card-body {
    padding: 28px;
}

.course-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(29, 78, 216, 0.06);
    border: 1px solid rgba(29, 78, 216, 0.1);
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.course-card:hover h3 {
    color: var(--color-primary);
}

.course-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.course-card-link svg {
    transition: transform var(--transition-normal);
}

.course-card:hover .course-card-link svg {
    transform: translateX(4px);
}

/* ---------- Stats Section ---------- */
.stats {
    position: relative;
    background: var(--gradient-hero);
    color: #fff;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-item::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), var(--color-accent));
    border-radius: 3px;
    margin: 0 auto 24px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 400;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--bg-secondary);
}

.cta-inner {
    text-align: center;
    padding: 100px 48px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.cta-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-inner h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta-inner .btn {
    background: #fff;
    color: var(--color-primary-dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-inner .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(8, 145, 178, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 30% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.page-hero .section-label {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.page-hero .section-label::before {
    background: var(--color-accent);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 18px;
    position: relative;
    color: #fff;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Courses Page ---------- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    cursor: none;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: inherit;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    color: var(--color-primary);
    border-color: rgba(29, 78, 216, 0.2);
}

.filter-btn.active {
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.filter-btn.active::before {
    opacity: 1;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-full-card {
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: stretch;
    cursor: none;
    background: var(--bg-card);
}

.course-full-image-wrapper {
    overflow: hidden;
    position: relative;
}

.course-full-card .course-full-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-full-card:hover .course-full-image {
    transform: scale(1.06);
}

.course-full-card .course-full-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-full-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.course-full-card:hover h3 {
    color: var(--color-primary);
}

.course-full-card .course-subtitle {
    font-size: 0.88rem;
    color: var(--color-secondary);
    margin-bottom: 14px;
    font-weight: 500;
}

.course-full-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.course-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
}

/* ---------- PSR Courses ---------- */
.psr-banner {
    text-align: center;
    margin-bottom: 56px;
}

.psr-banner img {
    max-width: 360px;
    margin: 0 auto 28px;
}

.psr-funded-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.12);
    color: var(--color-success);
    letter-spacing: 0.03em;
}

.psr-funded-badge svg {
    color: var(--color-success);
}

.psr-intro {
    max-width: 760px;
    margin: 0 auto 72px;
    text-align: center;
}

.psr-intro h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.psr-intro .psr-subtitle {
    color: var(--color-primary);
    font-size: 0.92rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.psr-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.psr-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 72px;
}

.psr-course-card {
    overflow: hidden;
    padding: 0;
    background: var(--bg-card);
}

.psr-course-card-image-wrapper {
    overflow: hidden;
}

.psr-course-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.psr-course-card:hover img {
    transform: scale(1.06);
}

.psr-course-card .psr-card-body {
    padding: 36px;
}

.psr-course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.psr-course-card .psr-card-subtitle {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.psr-course-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.psr-detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.psr-detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.psr-detail-item .psr-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    min-width: 85px;
    flex-shrink: 0;
}

.psr-detail-item .psr-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.psr-info-section {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.psr-info-section h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--color-primary);
}

.psr-info-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
    border-color: rgba(29, 78, 216, 0.1);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-info-card .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
    transition: all var(--transition-smooth);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.25);
}

.contact-info-card .contact-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.contact-info-card h4 {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.contact-info-card a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.contact-form-wrapper .form-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    cursor: none;
}

.form-checkbox label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: none;
}

.form-message {
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 0.88rem;
}

.form-message.success {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Map */
.map-section {
    padding-bottom: 120px;
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    height: 450px;
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- Footer ---------- */
.footer {
    background: #0f172a;
    color: #fff;
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(10);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-accent);
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-list li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: #fff;
}

/* ---------- Animations ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
}

/* ---------- Nav Overlay ---------- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-overflow {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* ---------- Course Detail Page ---------- */
.course-detail-hero {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.course-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

.course-detail-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
}

.course-detail-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-detail-hero .breadcrumb a:hover {
    color: #fff;
}

.course-detail-hero .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.course-detail-hero .breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.course-detail-hero .course-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.course-detail-hero .course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.course-badge.badge-type {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-badge.badge-gol {
    background: var(--color-accent);
    color: #1a1a2e;
}

.course-detail-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    position: relative;
}

.course-detail-hero .course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
}

.course-detail-hero .hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.course-detail-hero .hero-meta-item svg {
    opacity: 0.7;
}

.course-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding: 64px 0 80px;
}

.course-detail-main {
    min-width: 0;
}

.course-detail-sidebar {
    position: relative;
}

.course-sidebar-sticky {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.course-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.course-sidebar-card .sidebar-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.course-sidebar-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sidebar-info-item .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(29, 78, 216, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.sidebar-info-item .info-text {
    flex: 1;
}

.sidebar-info-item .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-info-item .info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.course-helpdesk {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.course-helpdesk h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.course-helpdesk p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.helpdesk-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpdesk-contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.helpdesk-contacts a:hover {
    color: var(--color-secondary);
}

.course-section {
    margin-bottom: 48px;
}

.course-section:last-child {
    margin-bottom: 0;
}

.course-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-secondary);
}

.course-section-header .section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.course-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.course-section-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.course-section-content p {
    margin-bottom: 12px;
}

.course-section-content p:last-child {
    margin-bottom: 0;
}

/* Modules Table */
.modules-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.modules-table thead th {
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    text-align: left;
}

.modules-table thead th:last-child {
    text-align: center;
}

.modules-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.modules-table tbody tr:last-child td {
    border-bottom: none;
}

.modules-table tbody tr:hover {
    background: rgba(29, 78, 216, 0.03);
}

.modules-table .module-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modules-table .module-competence {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modules-table .module-hours {
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.modules-table tfoot td {
    padding: 14px 20px;
    background: var(--bg-secondary);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    border-top: 2px solid var(--border-glass);
}

.modules-table tfoot .module-hours {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Course not found */
.course-not-found {
    text-align: center;
    padding: 120px 0;
}

.course-not-found h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.course-not-found p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .course-sidebar-sticky {
        position: static;
    }

    .course-detail-sidebar {
        order: -1;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.featured {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .psr-courses-grid {
        grid-template-columns: 1fr;
    }

    .course-full-card {
        grid-template-columns: 1fr;
    }

    .course-full-card .course-full-image {
        height: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }

    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    body { cursor: auto; }
    .custom-cursor, .cursor-dot { display: none !important; }
    button, a, input, textarea, select, .tab-btn, .filter-btn, .form-checkbox input, .form-checkbox label { cursor: auto; }

    .hamburger {
        display: flex;
        cursor: auto;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        padding: 110px 28px 40px;
        gap: 4px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    }

    .navbar-links.open {
        right: 0;
    }

    /* Override hero-state nav styles for mobile menu */
    .navbar-links .nav-link {
        color: var(--text-secondary) !important;
        width: 100%;
        font-size: 1.1rem;
        padding: 16px 20px;
        border-radius: var(--radius-md);
    }

    .navbar-links .nav-link:hover,
    .navbar-links .nav-link.active {
        color: var(--color-primary) !important;
        background: rgba(29, 78, 216, 0.06) !important;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-links .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-glass);
    }

    .navbar-links .lang-btn {
        color: var(--text-muted) !important;
    }

    .navbar-links .lang-btn.active {
        color: #fff !important;
    }

    .hamburger.active span {
        background: var(--text-primary) !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.featured {
        grid-column: span 1;
        min-height: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .page-hero {
        padding: 140px 0 70px;
    }

    .course-detail-hero {
        padding: 130px 0 60px;
    }

    .course-detail-hero h1 {
        font-size: 1.8rem;
    }

    .course-detail-hero .course-hero-meta {
        gap: 16px;
    }

    .modules-table {
        display: block;
        overflow-x: auto;
    }

    .modules-table thead {
        display: none;
    }

    .modules-table tbody td {
        display: block;
        padding: 10px 16px;
        border-bottom: none;
    }

    .modules-table tbody td:first-child {
        padding-top: 16px;
    }

    .modules-table tbody td:last-child {
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-glass);
    }

    .modules-table .module-hours {
        text-align: left;
    }

    .modules-table .module-hours::before {
        content: 'Ore: ';
        font-weight: 400;
        color: var(--text-muted);
    }

    .modules-table tfoot {
        display: none;
    }

    .cta-inner {
        padding: 56px 28px;
    }

    .contact-form-wrapper {
        padding: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cta-inner {
        padding: 44px 20px;
    }

    .about-float-card {
        right: 0;
        bottom: -16px;
    }
}
