/**
 * Main Frontend Styles
 * Theme variables loaded from PHP (data/theme.json)
 * 
 * All CSS Variables are set dynamically by PHP via output_theme_css()
 */

/* ========================================
   BASE STYLES
======================================== */
* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base, 16px);
}

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    line-height: var(--line-height-body, 1.6);
    color: var(--text-primary, #0f172a);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-heading, -0.02em);
    font-weight: var(--font-weight-heading, 700);
    color: var(--text-primary, #0f172a);
}

p,
li {
    color: var(--text-secondary, #64748b);
}

p {
    text-align: justify;
}

a {
    transition: color var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.theme-container {
    max-width: var(--container-max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.theme-section {
    padding-top: var(--section-padding-y, 5rem);
    padding-bottom: var(--section-padding-y, 5rem);
}

.theme-grid {
    display: grid;
    gap: var(--card-gap, 2rem);
    grid-template-columns: repeat(var(--grid-cols-mobile, 1), 1fr);
}

@media (min-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(var(--grid-cols-desktop, 3), 1fr);
    }
}

/* ========================================
   TYPOGRAPHY UTILITIES
======================================== */
.text-primary {
    color: var(--primary, #40afcc);
}

.text-primary-dark {
    color: var(--primary-dark, #2c8aad);
}

.text-heading {
    color: var(--text-primary, #0f172a);
}

.text-body {
    color: var(--text-secondary, #64748b);
}

.text-muted {
    color: var(--text-muted, #94a3b8);
}

.text-success {
    color: var(--success, #10b981);
}

.text-error {
    color: var(--error, #ef4444);
}

.text-warning {
    color: var(--warning, #f59e0b);
}

.text-info {
    color: var(--info, #3b82f6);
}

/* ========================================
   BACKGROUND UTILITIES
======================================== */
.bg-primary {
    background-color: var(--primary, #40afcc);
}

.bg-primary-dark {
    background-color: var(--primary-dark, #2c8aad);
}

.bg-primary-light {
    background-color: var(--primary-light, #e0f6fa);
}

.bg-primary-lighter {
    background-color: var(--primary-lighter, #f0f9ff);
}

.bg-dark {
    background-color: var(--dark-bg, #0e4249);
}

.bg-dark-darker {
    background-color: var(--dark-bg-darker, #0a3338);
}

.bg-light {
    background-color: var(--bg-light, #f8fafc);
}

.bg-section {
    background-color: var(--bg-section, #f1f5f9);
}

.bg-success {
    background-color: var(--success-bg, #ecfdf5);
}

.bg-error {
    background-color: var(--error-bg, #fef2f2);
}

.bg-warning {
    background-color: var(--warning-bg, #fffbeb);
}

.bg-info {
    background-color: var(--info-bg, #eff6ff);
}

/* ========================================
   BORDER UTILITIES
======================================== */
.border-primary {
    border-color: var(--primary, #40afcc);
}

.border-default {
    border-color: var(--border-color, #e2e8f0);
}

.border-success {
    border-color: var(--success, #10b981);
}

.border-error {
    border-color: var(--error, #ef4444);
}

.border-warning {
    border-color: var(--warning, #f59e0b);
}

.border-info {
    border-color: var(--info, #3b82f6);
}

/* ========================================
   SHADOW UTILITIES
======================================== */
.shadow-theme-sm {
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.shadow-theme-md {
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.shadow-theme-lg {
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.shadow-theme-xl {
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
}

.shadow-theme-2xl {
    box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
}

.shadow-theme-primary {
    box-shadow: var(--shadow-primary, 0 10px 30px -5px rgba(64, 175, 204, 0.4));
}

/* ========================================
   ANIMATIONS & TRANSITIONS
======================================== */
.transition-theme {
    transition-property: all;
    transition-duration: var(--transition-speed, 300ms);
    transition-timing-function: var(--transition-easing, ease-in-out);
}

.hover-scale:hover {
    transform: scale(var(--hover-scale, 1.05));
}

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

/* Float animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

/* Pulse glow */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary, #40afcc);
    }

    50% {
        box-shadow: 0 0 40px var(--primary, #40afcc);
    }
}

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

/* Marquee */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ========================================
   BUTTONS - Using Theme Variables
======================================== */
.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--button-padding-y, 0.75rem) var(--button-padding-x, 2rem);
    border-radius: var(--button-radius, 0.75rem);
    font-weight: 600;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
    cursor: pointer;
    border: none;
}

.btn-theme:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary, #40afcc);
    color: white;
    padding: var(--button-padding-y, 0.75rem) var(--button-padding-x, 2rem);
    border-radius: var(--button-radius, 0.75rem);
    font-weight: 600;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.btn-primary:hover {
    background: var(--primary-dark, #2c8aad);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary, 0 10px 30px -5px rgba(64, 175, 204, 0.4));
}

.btn-secondary {
    background: transparent;
    color: var(--primary, #40afcc);
    border: 2px solid var(--primary, #40afcc);
    padding: var(--button-padding-y, 0.75rem) var(--button-padding-x, 2rem);
    border-radius: var(--button-radius, 0.75rem);
    font-weight: 600;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.btn-secondary:hover {
    background: var(--primary, #40afcc);
    color: white;
}

/* ========================================
   FORMS - Using Theme Variables
======================================== */
.input-theme {
    width: 100%;
    height: var(--input-height, 3rem);
    padding: 0 1rem;
    border: var(--input-border-width, 1px) solid var(--border-color, #e2e8f0);
    border-radius: calc(var(--button-radius, 0.75rem));
    font-size: 1rem;
    color: var(--text-primary, #0f172a);
    background: white;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.input-theme:focus {
    outline: none;
    border-color: var(--primary, #40afcc);
    box-shadow: 0 0 0 var(--focus-ring-width, 3px) rgba(64, 175, 204, 0.2);
}

.input-theme::placeholder {
    color: var(--text-muted, #94a3b8);
}

.textarea-theme {
    width: 100%;
    min-height: calc(var(--input-height, 3rem) * 3);
    padding: 1rem;
    border: var(--input-border-width, 1px) solid var(--border-color, #e2e8f0);
    border-radius: calc(var(--button-radius, 0.75rem));
    font-size: 1rem;
    color: var(--text-primary, #0f172a);
    background: white;
    resize: vertical;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.textarea-theme:focus {
    outline: none;
    border-color: var(--primary, #40afcc);
    box-shadow: 0 0 0 var(--focus-ring-width, 3px) rgba(64, 175, 204, 0.2);
}

/* Legacy support */
.input-field {
    width: 100%;
    height: var(--input-height, 3rem);
    padding: 0 1rem;
    border: var(--input-border-width, 1px) solid var(--border-color, #e2e8f0);
    border-radius: calc(var(--radius, 1rem) * 0.75);
    font-size: 1rem;
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary, #40afcc);
    box-shadow: 0 0 0 var(--focus-ring-width, 3px) rgba(64, 175, 204, 0.2);
}

/* ========================================
   CARDS
======================================== */
.card {
    background: white;
    border-radius: var(--radius, 1rem);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-speed, 300ms) var(--transition-easing, ease-in-out);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
}

.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius, 1rem);
}

/* ========================================
   ALERTS - Status Colors
======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius, 1rem);
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-bg, #ecfdf5);
    border-color: var(--success, #10b981);
    color: var(--success, #10b981);
}

.alert-error {
    background: var(--error-bg, #fef2f2);
    border-color: var(--error, #ef4444);
    color: var(--error, #ef4444);
}

.alert-warning {
    background: var(--warning-bg, #fffbeb);
    border-color: var(--warning, #f59e0b);
    color: var(--warning, #f59e0b);
}

.alert-info {
    background: var(--info-bg, #eff6ff);
    border-color: var(--info, #3b82f6);
    color: var(--info, #3b82f6);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--dark-bg, #0e4249), var(--dark-bg, #0e4249) 60%, var(--primary, #40afcc));
}

/* ========================================
   HERO SLIDER
======================================== */
.hero-slider {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-bg, #0e4249);
}

/* Slide Container */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
    z-index: 10;
}

/* Background Image with Ken Burns Effect */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.1);
}

/* Gradient Overlays */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(14, 66, 73, 1) 0%, rgba(14, 66, 73, 0.8) 40%, rgba(14, 66, 73, 0.2) 100%);
}

.hero-slide-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, rgba(14, 66, 73, 1) 0%, transparent 100%);
}

/* Content Container */
.hero-content-wrapper {
    position: relative;
    z-index: 20;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
}

/* Left Content */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Badge - Glassmorphism Style */
.hero-badge,
.hero-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 9999px;
    box-shadow: 
        0 4px 20px rgba(74, 222, 128, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-badge-btn {
    text-decoration: none;
    cursor: pointer;
}

.hero-badge-btn:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.35) 0%, rgba(34, 197, 94, 0.25) 100%);
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 
        0 6px 25px rgba(74, 222, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-badge-btn:hover .hero-badge-arrow {
    transform: translateX(4px);
}

.hero-badge-text {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-badge-arrow {
    font-size: 1rem;
    color: #fff;
    transition: transform 0.3s ease;
}

/* Legacy support for old subtitle format */
.hero-subtitle-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle-bar {
    height: 2px;
    width: 3rem;
    background-color: var(--primary, #40afcc);
}

.hero-subtitle {
    color: var(--primary, #40afcc);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-highlight {
    background: linear-gradient(to right, var(--primary, #40afcc), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.75;
    max-width: 36rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Hero title line 1 - with bottom spacing */
.hero-title-line1 {
    display: block;
    margin-bottom: 30px;
}

/* Dynamic text suffix - fixed, doesn't animate */
.hero-dynamic-suffix {
    color: inherit;
    font-weight: inherit;
    padding-left: 15px;

}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.25rem;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-btn-primary {
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 9999px;
    background-color: #14798c;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(64, 175, 204, 0.4);
}

.hero-btn-primary:hover {
    background-color: var(--primary-dark, #2c8aad);
    box-shadow: 0 0 30px rgba(64, 175, 204, 0.6);
    transform: scale(1.02);
}

.hero-btn-secondary {
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 9999px;
    background-color: transparent;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Right Sidebar Panel */
.hero-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .hero-sidebar {
        display: block;
        position: relative;
    }
}

.hero-sidebar-panel {
    background: rgba(14, 66, 73, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-sidebar-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.hero-sidebar-header p {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0.25rem 0 0;
}

.hero-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

.hero-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.hero-sidebar-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-sidebar-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.hero-sidebar-item:hover .hero-sidebar-item-icon {
    color: white;
}

.hero-sidebar-item-title {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.hero-sidebar-item:hover .hero-sidebar-item-title {
    color: var(--primary, #40afcc);
}

.hero-sidebar-item-desc {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.hero-sidebar-item:hover .hero-sidebar-item-desc {
    color: #cbd5e1;
}

.hero-sidebar-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-sidebar-item-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.hero-sidebar-item-arrow {
    color: #475569;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.hero-sidebar-item:hover .hero-sidebar-item-arrow {
    color: var(--primary, #40afcc);
    transform: translateX(4px);
}

.hero-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.hero-sidebar-btn {
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.hero-sidebar-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.hero-sidebar-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-sidebar-btn-primary {
    background: rgba(64, 175, 204, 0.1);
    color: var(--primary, #40afcc);
}

.hero-sidebar-btn-primary:hover {
    background: rgba(64, 175, 204, 0.2);
}

/* Sidebar Glow Effect */
.hero-sidebar-glow {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 16rem;
    height: 16rem;
    background: rgba(64, 175, 204, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Controls */
.hero-controls {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0 1.5rem;
}

.hero-controls-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Progress Indicators */
.hero-progress {
    display: flex;
    gap: 1rem;
}

.hero-progress-item {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    width: 4rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .hero-progress-item {
        width: 6rem;
    }
}

.hero-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: var(--primary, #40afcc);
    width: 0;
    transition: width 0.3s ease;
}

.hero-progress-item.active .hero-progress-fill {
    width: 100%;
    transition: width 6s linear;
}

.hero-progress-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.hero-progress-item.active .hero-progress-num,
.hero-progress-item:hover .hero-progress-num {
    color: white;
}

/* Navigation Arrows */
.hero-nav {
    display: flex;
    gap: 1rem;
}

.hero-nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: var(--primary, #40afcc);
    border-color: var(--primary, #40afcc);
    color: white;
}

.hero-nav-btn:active {
    transform: scale(0.95);
}

/* Dynamic Text Animation */
@keyframes heroTextFade {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.hero-dynamic-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
   GLASSMORPHISM
======================================== */
.glass-white {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(14, 66, 73, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light, #f1f5f9);
}

::-webkit-scrollbar-thumb {
    background: var(--primary, #40afcc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #2c8aad);
}

/* ========================================
   PROSE / RICH TEXT CONTENT
======================================== */
.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary, #0f172a);
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-primary, #0f172a);
}

.prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary, #0f172a);
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary, #0f172a);
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    text-align: justify;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose ul li {
    list-style-type: disc;
}

.prose ol li {
    list-style-type: decimal;
}

.prose strong {
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.prose a {
    color: var(--primary, #40afcc);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--primary-dark, #2c8aad);
}

.prose blockquote {
    border-left: 4px solid var(--primary, #40afcc);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary, #64748b);
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Prose variants */
.prose-slate h1,
.prose-slate h2,
.prose-slate h3,
.prose-slate h4 {
    color: #0f172a;
}

.prose-slate p,
.prose-slate li {
    color: #475569;
}

.prose-lg {
    font-size: 1.125rem;
}

.prose-lg h2 {
    font-size: 1.875rem;
}

.prose-lg h3 {
    font-size: 1.5rem;
}

/* Prose Table Styles */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.prose table thead {
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
}

.prose table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #334155;
}

.prose table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.prose table tbody tr:hover {
    background: #f8fafc;
}

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

/* Responsive table wrapper */
.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* WordPress figure table support */
.prose figure.wp-block-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.prose figure.wp-block-table table {
    margin: 0;
}

.prose figure.wp-block-table figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
}

/* Striped table variant */
.prose table.striped tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* ========================================
   DIAGONAL SPLIT + TEXTURE - CORPORATE/ELEGANT
======================================== */
.diagonal-hero {
    position: relative;
    overflow: hidden;
    background: #0e4249;
}

.diagonal-split {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.diagonal-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--footer-bg, #0e4249) 0%, var(--footer-bg, #0e4249) 50%, var(--footer-bg-alt, #0a5a68) 50%, var(--footer-bg-alt, #0a5a68) 100%);
}

.diagonal-split::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 30%, rgba(64, 175, 204, 0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.diagonal-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, rgba(64, 175, 204, 0.3) 20%, rgba(64, 175, 204, 0.3) 80%, transparent 100%);
    transform: rotate(35deg) translateX(-50%);
    transform-origin: top center;
    z-index: 1;
}

.diagonal-line-1 {
    left: 45%;
    opacity: 0.5;
}

.diagonal-line-2 {
    left: 48%;
    opacity: 0.3;
    width: 1px;
}

.diagonal-line-3 {
    left: 52%;
    opacity: 0.15;
    width: 1px;
}

.diagonal-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    z-index: 2;
}

.diagonal-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 40px,
            rgba(64, 175, 204, 0.02) 40px,
            rgba(64, 175, 204, 0.02) 41px
        );
    z-index: 2;
}

.diagonal-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(64, 175, 204, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 4;
    pointer-events: none;
}

.diagonal-accent {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 175, 204, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

.diagonal-accent-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: 10%;
}

.diagonal-accent-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: 20%;
}

.diagonal-corner {
    position: absolute;
    z-index: 1;
}

.diagonal-corner-tl {
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 0% 0%, rgba(14, 116, 144, 0.15) 0%, transparent 70%);
}

.diagonal-corner-br {
    bottom: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 100% 100%, rgba(64, 175, 204, 0.1) 0%, transparent 70%);
}

.diagonal-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        transparent 0%,
        rgba(14, 66, 73, 0.25) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* ========================================
   DIAGONAL HERO LIGHT - FOR SLIDER OVERLAY
======================================== */
.diagonal-hero-light {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.diagonal-split-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(14, 66, 73, 0.85) 0%, 
        rgba(14, 66, 73, 0.7) 35%, 
        rgba(10, 90, 104, 0.5) 50%, 
        rgba(14, 66, 73, 0.3) 100%
    );
}

.diagonal-split-light::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 30%, rgba(64, 175, 204, 0.1) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.diagonal-line-light {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(64, 175, 204, 0.2) 20%, rgba(64, 175, 204, 0.2) 80%, transparent 100%);
    transform: rotate(35deg) translateX(-50%);
    transform-origin: top center;
    z-index: 2;
}

.diagonal-line-light-1 {
    left: 45%;
    opacity: 0.6;
}

.diagonal-line-light-2 {
    left: 48%;
    opacity: 0.4;
}

.diagonal-line-light-3 {
    left: 52%;
    opacity: 0.2;
}

.diagonal-texture-light {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: 3;
}

.diagonal-pattern-light {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 40px,
            rgba(64, 175, 204, 0.03) 40px,
            rgba(64, 175, 204, 0.03) 41px
        );
    z-index: 3;
}

.diagonal-dots-light {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(64, 175, 204, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 4;
    pointer-events: none;
}

/* ========================================
   SEARCH MODAL - COMMAND PALETTE STYLE
======================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.2s ease;
}

.search-modal.active .search-container {
    transform: translateY(0) scale(1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.search-icon {
    color: #94a3b8;
    font-size: 24px;
}

.search-input {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
    background: transparent;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-shortcut {
    display: flex;
    gap: 4px;
}

.search-shortcut kbd,
.search-tip kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Search Group Labels */
.search-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-group-label .material-symbols-outlined {
    font-size: 16px;
    color: #40afcc;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f8fafc;
}

.search-result-item.selected {
    background: #f1f5f9;
}

.search-result-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-result-image .material-symbols-outlined {
    font-size: 24px;
    color: #40afcc;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-snippet {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.search-result-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
}

.search-result-badge.blog {
    background: #fef3c7;
    color: #92400e;
}

.search-result-badge.kurs {
    background: #d1fae5;
    color: #065f46;
}

.search-result-category {
    font-size: 11px;
    color: #94a3b8;
}

.search-highlight {
    background: #fef08a;
    color: #0f172a;
    padding: 0 2px;
    border-radius: 2px;
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #94a3b8;
}

.search-empty .material-symbols-outlined {
    font-size: 48px;
    margin-bottom: 12px;
}

.search-empty p {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
}

.search-empty-tip {
    font-size: 13px;
    margin-top: 4px;
}

.search-footer {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.search-tip {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tip kbd {
    margin-right: 2px;
}

/* Accreditation Badge */
@property --badge-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.accreditation-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    background: transparent;
    z-index: 1;
}

.accreditation-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: conic-gradient(from var(--badge-angle), #14798c, #e8b931, #3b82f6, #e8b931, #14798c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: badge-spin 3s linear infinite;
}

@keyframes badge-spin {
    to { --badge-angle: 360deg; }
}

.accreditation-badge img {
    height: 22px;
    width: auto;
    display: block;
}

.accreditation-badge-filled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

.accreditation-badge-lg img {
    height: 30px;
}

/* Mobile */
@media (max-width: 640px) {
    .search-modal {
        padding-top: 0;
        align-items: flex-start;
    }
    
    .search-container {
        margin: 0;
        border-radius: 0 0 16px 16px;
        max-height: 100vh;
    }
    
    .search-results {
        max-height: calc(100vh - 140px);
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-footer {
        display: none;
    }
}