@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap');

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #0f766e;
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --surface-color: #ffffff;
    --surface-soft: #f8fafc;
    --shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 18px 44px rgba(37, 99, 235, 0.18);
    --section-space: clamp(3.5rem, 7vw, 5rem);
    --section-space-tight: clamp(2.25rem, 4vw, 3.25rem);
    --card-padding: clamp(1.25rem, 2vw, 2rem);
    --stack-xs: 0.5rem;
    --stack-sm: 0.75rem;
    --stack-md: 1rem;
    --stack-lg: 1.5rem;
    --stack-xl: 2rem;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
textarea,
select {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    background: var(--surface-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.74), rgba(15, 118, 110, 0.72), rgba(124, 58, 237, 0.74));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 0;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: padding 0.3s, background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled,
.header.menu-open {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.86), rgba(15, 118, 110, 0.9));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.65rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.solid-bg {
    position: sticky;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo h1 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s, background 0.3s, transform 0.3s;
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
}

.desktop-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    height: 45px;
    width: 45px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3.5px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.mobile-nav.active {
    max-height: 400px;
    padding: 1rem 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-of-type {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-right: 2.5rem;
}

.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.mobile-lang-switcher a {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.mobile-lang-switcher a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive - Show hamburger on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .logo h1 {
        font-size: 1.1rem;
    }
}

.admin-link {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.admin-link:hover {
    background: var(--secondary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: clamp(560px, 72vh, 720px);
    padding-top: 80px;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.22)),
        linear-gradient(135deg, #2563eb 0%, #0f766e 58%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
    opacity: 0.46;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.13) 46%, transparent 64%);
    transform: translateX(45%);
    animation: heroSheen 7s ease-in-out infinite;
    pointer-events: none;
}

#puzzleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 1.25rem;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    text-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    margin: 0;
    line-height: 1.18;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
    animation: fadeInUp 1s 0.2s backwards;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    color: #1d4ed8;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s 0.4s backwards;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(37, 99, 235, 0.12) 45%, transparent 70%);
    transform: translateX(110%);
    transition: transform 0.7s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover::before {
    transform: translateX(-110%);
}

/* ==================== COURSES SECTION ==================== */
.courses-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f0fdfa 100%);
}

.section-header {
    text-align: center;
    display: grid;
    gap: var(--stack-sm);
    margin-bottom: 2.5rem;
}

.section-header h2 {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: var(--dark-color);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 74px;
    height: 4px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 2rem;
    justify-content: center;
}

.course-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75),
        0 18px 42px rgba(15, 23, 42, 0.08),
        var(--shadow);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 2;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.06),
        0 28px 60px rgba(15, 23, 42, 0.13),
        var(--shadow-lg);
}

.course-card:hover::before {
    opacity: 1;
}

.course-image {
    position: relative;
    aspect-ratio: 1 / 1; /* جعل الصورة مربعة تماماً */
    width: 100%;
    overflow: hidden;
}

.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.36));
    opacity: 0;
    transition: opacity 0.35s;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.course-card:hover .course-image::after {
    opacity: 1;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    z-index: 2;
}

.course-badge.full {
    background: var(--danger-color);
}

.course-badge.featured {
    right: auto;
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, #ff002d, #3820bb);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
    animation: badgeFloat 2.8s ease-in-out infinite;
}

.course-badge.featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: -35%;
    width: 36%;
    height: 100%;
    background: rgba(255, 255, 255, 0.28);
    transform: skewX(-24deg);
    animation: badgeShine 2.8s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.03);
    }
}

@keyframes badgeShine {
    0%,
    25% {
        right: -35%;
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    65%,
    100% {
        right: 115%;
        opacity: 0;
    }
}

.course-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--stack-md);
    padding: 1.35rem;
}

.course-title {
    font-size: 1.3rem;
    margin: 0;
    color: #111827;
    line-height: 1.45;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.meta-item {
    --meta-accent: var(--primary-color);
    --meta-bg: rgba(102, 126, 234, 0.1);
    --meta-text: #4338ca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--meta-bg);
    color: var(--meta-text);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.16);
}

.meta-item i {
    color: var(--meta-accent);
    font-size: 0.95rem;
}

.meta-item span {
    color: var(--meta-text);
    font-weight: 600;
}

.meta-item.meta-date {
    --meta-accent: #2563eb;
    --meta-bg: rgba(37, 99, 235, 0.12);
    --meta-text: #1d4ed8;
}

.meta-item.meta-duration {
    --meta-accent: #8b5cf6;
    --meta-bg: rgba(139, 92, 246, 0.12);
    --meta-text: #7c3aed;
}

.meta-item.meta-time {
    --meta-accent: #f59e0b;
    --meta-bg: rgba(245, 158, 11, 0.16);
    --meta-text: #b45309;
}

.meta-item.meta-attendance.meta-online {
    --meta-accent: #0891b2;
    --meta-bg: rgba(6, 182, 212, 0.14);
    --meta-text: #0f766e;
}

.meta-item.meta-attendance.meta-onsite {
    --meta-accent: #059669;
    --meta-bg: rgba(16, 185, 129, 0.14);
    --meta-text: #047857;
}

.course-description {
    color: #475569;
    margin: 0;
    line-height: 1.85;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.85));
    border: 1px solid #e2e8f0;
}

.btn-register {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.btn-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
    transform: translateX(110%);
    transition: transform 0.7s;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.27);
}

.btn-register:hover::before {
    transform: translateX(-110%);
}

.btn-register.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.no-courses {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-courses i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.about-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--dark-color);
    margin-bottom: var(--stack-md);
}

.about-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 0;
}

.features-list li {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.features-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.features-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: var(--section-space) 0;
    background: var(--light-color);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.25rem;
    color: var(--dark-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: grid;
    gap: var(--stack-sm);
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.contact-item:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.contact-item i {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 0.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-item h3 {
    margin: 0;
    color: var(--dark-color);
}

.contact-item p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: grid;
    gap: var(--stack-md);
}

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

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: color 0.3s, background 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== REGISTRATION PAGE ==================== */
.course-banner {
    position: relative;
    height: clamp(260px, 34vw, 420px);
    overflow: hidden;
}

.course-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(67, 56, 202, 0.45)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.74));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.banner-overlay-content {
    display: grid;
    gap: 0.85rem;
    max-width: 760px;
}

.banner-kicker {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.banner-overlay h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.2;
}

.course-info-sidebar h3,
.course-description-box h4,
.registration-form-wrapper h2,
.custom-fields-section h3 {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.banner-overlay h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.45), 0 2px 10px rgba(15, 23, 42, 0.35);
}

.banner-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.9;
}

.registration-section {
    padding: var(--section-space-tight) 0;
    background:
        radial-gradient(circle at top right, rgba(102, 126, 234, 0.08), transparent 26%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.07), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.registration-form-container {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.course-info-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
    padding: var(--card-padding);
    border-radius: 28px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.05),
        0 24px 60px rgba(15, 23, 42, 0.08),
        0 10px 28px rgba(124, 58, 237, 0.06);
    height: fit-content;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}

.course-info-sidebar::before,
.registration-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--accent-color));
}

.course-info-sidebar:hover,
.registration-form-wrapper:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.05),
        0 30px 70px rgba(15, 23, 42, 0.11);
}

.course-info-header {
    display: grid;
    gap: 0.55rem;
}

.course-info-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 700;
}

.course-info-sidebar h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.course-info-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.course-thumb {
    width: 100%;
    border-radius: 22px;
    margin: 0;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.course-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.info-item {
    --info-accent: var(--primary-color);
    --info-bg: rgba(102, 126, 234, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--info-bg));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.12);
    min-height: auto;
}

.info-item i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--info-accent);
    font-size: 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.info-item div {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.info-item strong {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.45;
}

.info-item span {
    color: #475569;
    line-height: 1.8;
    word-break: break-word;
}

.info-item.info-date {
    --info-accent: #4f46e5;
    --info-bg: rgba(99, 102, 241, 0.12);
}

.info-item.info-duration {
    --info-accent: #8b5cf6;
    --info-bg: rgba(139, 92, 246, 0.12);
}

.info-item.info-time {
    --info-accent: #f59e0b;
    --info-bg: rgba(245, 158, 11, 0.14);
}

.info-item.info-end-date {
    --info-accent: #ec4899;
    --info-bg: rgba(236, 72, 153, 0.12);
}

.info-item.info-attendance.info-online {
    --info-accent: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.12);
    grid-column: 1 / -1;
    min-height: auto;
}

.info-item.info-attendance.info-onsite {
    --info-accent: #059669;
    --info-bg: rgba(16, 185, 129, 0.12);
    grid-column: 1 / -1;
    min-height: auto;
}

.course-description-box {
    display: grid;
    gap: var(--stack-sm);
    margin-top: 0.15rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.course-description-box h4,
.course-description-box p {
    margin: 0;
}

.course-description-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.course-description-box h4 {
    font-size: 1.1rem;
}

.course-description-text {
    color: #475569;
    line-height: 1.9;
}

.description-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.description-toggle:hover {
    background: rgba(79, 70, 229, 0.16);
}

.registration-form-wrapper {
    position: relative;
    display: grid;
    gap: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
    padding: var(--card-padding);
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}

.form-header {
    display: grid;
    gap: 0.55rem;
}

.form-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    font-size: 0.82rem;
    font-weight: 700;
}

.registration-form-wrapper h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.form-description {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.registration-form {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.form-group label {
    display: block;
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.96rem;
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid #dbe3f0;
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.form-group small {
    color: #6b7280;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.phone-input {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    direction: ltr;
}

.phone-code-input {
    width: 100% !important;
    text-align: center;
    font-weight: 600;
    direction: ltr;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.phone-input input[type="tel"] {
    min-width: 0;
    direction: ltr;
    text-align: left;
}

.custom-fields-section {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.custom-fields-section h3 {
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(102, 126, 234, 0.22);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
    transform: translateX(110%);
    transition: transform 0.7s;
}

.btn-submit i,
.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover::before {
    transform: translateX(-110%);
}

.floating-submit-proxy {
    position: fixed;
    right: 16px;
    left: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1200;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 58px;
    padding: 1rem 1.35rem;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 18px 42px rgba(37, 99, 235, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.floating-submit-proxy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.3) 45%, transparent 70%);
    transform: translateX(110%);
    animation: floatingSubmitShine 2.6s ease-in-out infinite;
}

.floating-submit-proxy::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    animation: floatingSubmitRing 1.9s ease-in-out infinite;
    pointer-events: none;
}

.floating-submit-proxy i,
.floating-submit-proxy span {
    position: relative;
    z-index: 1;
}

.floating-submit-proxy.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    animation: floatingSubmitPulse 1.9s ease-in-out infinite;
}

.floating-submit-proxy:disabled {
    opacity: 0.72;
    pointer-events: none;
    animation: none;
}

.btn-cancel {
    padding: 1rem 2rem;
    background: white;
    color: var(--text-color);
    border: 1.5px solid #dbe3f0;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: var(--light-color);
}

/* ==================== SUCCESS PAGE ==================== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
}

.success-container {
    display: grid;
    gap: 0.85rem;
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: min(100%, 680px);
    max-width: 680px;
    animation: bounceIn 0.6s;
}

.success-icon {
    font-size: 3.2rem;
    color: var(--success-color);
    margin: 0;
    line-height: 1;
}

.success-container h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin: 0;
}

.success-message {
    margin: -0.25rem 0 0;
    color: #6b7280;
}

.success-info {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.info-box {
    background: var(--light-color);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-align: right;
}

.info-box p {
    margin: 0;
}

.info-note {
    margin-top: 0.35rem !important;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #6b7280;
}

.attendance-confirm-box {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    color: #334155;
    text-align: right;
}

.attendance-confirm-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #047857;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.attendance-confirm-box h3 {
    margin: 0 0 0.25rem;
    color: #064e3b;
    font-size: 1.05rem;
}

.attendance-confirm-box p {
    margin: 0;
    line-height: 1.7;
}

.attendance-spam-note {
    margin-top: 0.35rem !important;
    color: #9a3412;
    font-size: 0.9rem;
}

.attendance-success-icon {
    color: var(--success-color);
}

.attendance-error-icon {
    color: #f59e0b;
}

.attendance-note-box {
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.course-details-box {
    display: grid;
    gap: 0.35rem;
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    text-align: right;
}

.course-details-box h3,
.course-details-box p {
    margin: 0;
}

.calendar-add-box {
    display: grid;
    gap: 0.85rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 1rem;
    text-align: right;
}

.calendar-add-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.calendar-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.calendar-add-header h3 {
    margin: 0 0 0.2rem;
    color: #064e3b;
    font-size: 1.05rem;
}

.calendar-add-header p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 0.9rem;
}

.calendar-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-add-calendar {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #047857, #10b981);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(4, 120, 87, 0.24);
    animation: calendarButtonPulse 1.8s ease-in-out infinite;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-add-calendar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.3) 45%, transparent 70%);
    transform: translateX(110%);
    animation: calendarButtonShine 2.4s ease-in-out infinite;
}

.btn-add-calendar i,
.btn-add-calendar span {
    position: relative;
    z-index: 1;
}

.btn-add-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(4, 120, 87, 0.28);
}

@keyframes calendarButtonPulse {
    0%,
    100% {
        box-shadow: 0 12px 26px rgba(4, 120, 87, 0.24);
    }

    50% {
        box-shadow: 0 16px 36px rgba(16, 185, 129, 0.4);
    }
}

@keyframes calendarButtonShine {
    0% {
        transform: translateX(110%);
    }

    52%,
    100% {
        transform: translateX(-110%);
    }
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 4s linear;
    z-index: 9999;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ==================== ANIMATIONS ==================== */
@keyframes heroSheen {
    0%,
    45% {
        transform: translateX(45%);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        transform: translateX(-45%);
        opacity: 0;
    }
}

@keyframes floatingSubmitPulse {
    0%,
    100% {
        box-shadow:
            0 18px 42px rgba(37, 99, 235, 0.32),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }

    50% {
        box-shadow:
            0 22px 52px rgba(16, 185, 129, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.24) inset;
    }
}

@keyframes floatingSubmitShine {
    0% {
        transform: translateX(110%);
    }

    48%,
    100% {
        transform: translateX(-110%);
    }
}

@keyframes floatingSubmitRing {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.02);
    }
}

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 400px;
        padding-top: 100px;
    }

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

    .hero-content {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

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

    .map-section {
        padding: var(--section-space-tight) 0;
    }

    .map-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .map-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-action {
        width: 100%;
        justify-content: center;
    }

    .map-frame-shell {
        border-radius: 18px;
    }

    .map-pin-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
        max-width: calc(100% - 1.5rem);
    }

    .map-embed,
    .map-embed iframe {
        min-height: 280px;
        height: 280px !important;
    }

    .courses-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .course-banner {
        height: auto;
    }

    .course-banner img {
        height: auto;
        display: block;
    }

    .banner-overlay {
        padding: 1.25rem;
    }

    .banner-overlay h1 {
        font-size: 1.85rem;
    }

    .banner-overlay p {
        font-size: 0.96rem;
    }

    .about-grid,
    .registration-form-container {
        grid-template-columns: 1fr;
    }

    .features-list {
        gap: 0.5rem 1.25rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .course-info-sidebar {
        position: relative;
        top: 0;
    }

    .registration-section {
        padding: 1.5rem 0 2rem;
    }

    .course-info-sidebar,
    .registration-form-wrapper {
        gap: 1rem;
    }

    .course-thumb {
        order: 1;
    }

    .course-description-box {
        order: 2;
    }

    .course-meta-grid {
        order: 3;
    }

    .course-info-sidebar h3,
    .registration-form-wrapper h2 {
        font-size: 1.65rem;
    }

    .course-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-item {
        min-height: auto;
    }

    .info-item.info-attendance.info-online,
    .info-item.info-attendance.info-onsite {
        grid-column: auto;
    }

    .course-description-box {
        padding: 1rem 1rem 0.95rem;
    }

    .course-description-header {
        align-items: flex-start;
    }

    .description-toggle {
        display: inline-flex;
    }

    .course-description-box.is-collapsed .course-description-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        line-height: 1.7;
    }

    .course-description-box.is-expanded .course-description-text {
        display: block;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
        text-align: center;
    }

    body.has-floating-submit {
        padding-bottom: 86px;
    }

    .floating-submit-proxy {
        position: fixed;
        right: 16px;
        left: 16px;
        bottom: max(14px, env(safe-area-inset-bottom));
        z-index: 1200;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        min-height: 58px;
        padding: 1rem 1.35rem;
        border: 0;
        border-radius: 20px;
        background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
        color: #ffffff;
        font-family: inherit;
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1;
        box-shadow:
            0 18px 42px rgba(37, 99, 235, 0.32),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
        transform: translateY(calc(100% + 28px));
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
    }

    .floating-submit-proxy::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.3) 45%, transparent 70%);
        transform: translateX(110%);
        animation: floatingSubmitShine 2.6s ease-in-out infinite;
    }

    .floating-submit-proxy::after {
        content: '';
        position: absolute;
        inset: -8px;
        border-radius: 24px;
        border: 2px solid rgba(255, 255, 255, 0.18);
        animation: floatingSubmitRing 1.9s ease-in-out infinite;
        pointer-events: none;
    }

    .floating-submit-proxy i,
    .floating-submit-proxy span {
        position: relative;
        z-index: 1;
    }

    .floating-submit-proxy.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        animation: floatingSubmitPulse 1.9s ease-in-out infinite;
    }

    .floating-submit-proxy:disabled {
        opacity: 0.72;
        pointer-events: none;
        animation: none;
    }

    .success-container {
        padding: 1.1rem;
        gap: 0.8rem;
    }

    .attendance-confirm-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .success-actions {
        gap: 0.75rem;
    }

    .lang-switcher {
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 540px) {
    .course-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .phone-input {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .phone-code-input {
        width: 100% !important;
    }

    .info-item {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .info-item strong {
        font-size: 0.96rem;
    }

    .info-item span {
        font-size: 0.94rem;
        line-height: 1.65;
    }
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-switcher a {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switcher a.active {
    background: var(--primary-color);
    color: white !important;
}

.lang-switcher .divider {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== LOGO ==================== */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* ==================== MAP SECTION ==================== */
.map-section {
    padding: var(--section-space-tight) 0 var(--section-space);
    background:
        radial-gradient(circle at top right, rgba(118, 75, 162, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.map-card {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    inset: auto -8% -38% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.18), transparent 68%);
    pointer-events: none;
}

.map-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
}

.map-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 700;
}

.map-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.map-heading-row h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.map-heading-row p {
    margin: 0.55rem 0 0;
    color: #64748b;
    line-height: 1.8;
    max-width: 720px;
}

.map-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(102, 126, 234, 0.24);
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(102, 126, 234, 0.3);
}

.map-frame-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #dbeafe;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.map-pin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-color);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.map-pin-badge i {
    color: #ef4444;
}

.map-embed {
    min-height: clamp(280px, 42vw, 460px);
}

.map-embed iframe {
    display: block;
    width: 100% !important;
    height: clamp(280px, 42vw, 460px) !important;
    border: none;
    filter: saturate(0.95) contrast(1.02);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== ADMIN FOOTER BUTTON ==================== */
.admin-access {
    margin-top: 1.5rem;
}

.btn-admin-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-admin-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ==================== LTR DIRECTION (English) ==================== */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .nav {
    margin-right: 0;
    margin-left: auto;
}

html[dir="ltr"] .course-badge {
    right: auto;
    left: 10px;
}

html[dir="ltr"] .features-list li {
    text-align: left;
}

html[dir="ltr"] .info-box,
html[dir="ltr"] .course-details-box {
    text-align: left;
}

html[dir="ltr"] .lang-switcher {
    margin-right: 0;
    margin-left: 1rem;
}

/* ==================== SIDEBAR LANGUAGE SWITCHER ==================== */
.sidebar-lang {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-lang a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.sidebar-lang a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-lang a.active {
    background: var(--primary-color);
    color: white;
}
