﻿@font-face {
    font-family: 'Expo Arabic';
    src: url('fonts/Expo Arabic Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Expo Arabic';
    src: url('fonts/Expo Arabic Book.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Expo Arabic';
    src: url('fonts/Expo Arabic Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Expo Arabic';
    src: url('fonts/Expo Arabic Bold.ttf') format('truetype');
    font-weight: 700;
}

:root {
    --primary-color: #003d6a;
    --primary-hover: #002b4d;
    --accent-color: #F58220;
    /* Pantone Orange for accents */
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f9fafb;
    --font-main: 'Expo Arabic', sans-serif;
    --transition: all 0.3s ease;
    --page-gutter: clamp(16px, 3.2vw, 34px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for the fixed header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: calc(var(--page-gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--page-gutter) + env(safe-area-inset-right));
}

/* Header Styles */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #fff;
    /* Pure White Background */
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 2;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 1s ease forwards;
    color: var(--text-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.8;
}

.hero-content .btn {
    margin-top: 4px;
}

.hero-cta-btn {
    width: fit-content;
    min-width: 180px;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.hero-image {
    flex: 1;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-image img {
    max-width: 120%;
    height: auto;
    transform: translate(-10%, -80px) scale(1);
    /* Initial position */
    transition: var(--transition);
    animation: softZoom 40s ease-out forwards;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 61, 106, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid #fff;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(245, 130, 32, 0.3);
}

.instructor-cta-btn {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.corporate-cta-btn {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.instructor-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 24px -6px rgba(245, 130, 32, 0.38);
}

/* Angled Sections */
.angled-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    /* Extra padding for the angle */
}

/* Pseudo element to create the angled background without distorting the container */
.angled-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: inherit;
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: top left;
}

.angled-content {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softZoom {
    0% {
        transform: translate(-10%, -80px) scale(1);
    }

    100% {
        transform: translate(-10%, -80px) scale(1.15);
        /* 15% zoom in */
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
        /* Float up by 20px */
    }

    100% {
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    /* Changed to gray since hero is now white */
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 61, 106, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text .highlight {
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: right;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Added Soft Shadow */
}

.feature-card:hover {
    transform: translateY(-5px);
    /* Enhanced Shadow on Hover */
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color) !important;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Courses Section */
.courses-section {
    padding: 100px 0;
    background-color: #fff;
    /* Changed to white because the section above is now gray */
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.courses-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 61, 106, 0.2);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.course-card {
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    border-radius: 18px;
    padding: 24px 22px 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.course-card::before {
    content: none;
}

.course-card.hide {
    display: none;
}

.courses-empty-state {
    text-align: center;
    padding: 36px 24px;
    border: 1px dashed rgba(0, 61, 106, 0.25);
    border-radius: 14px;
    background: #f8fbff;
    color: #334155;
    max-width: 720px;
    margin: 14px auto 0;
}

.courses-empty-state h3 {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.courses-empty-state p {
    margin: 0;
    font-size: 1rem;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.highlighted-card {
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
}

.highlighted-card:hover {
    transform: translateY(-8px);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color) !important;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.3);
    z-index: 1;
    line-height: 1;
}

.course-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.course-title-wrap h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 700;
}

.course-type-pill {
    display: inline-flex;
    align-items: center;
    background: #eaf3ff;
    color: #0b4f8a;
    border: 1px solid #d3e5ff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.course-price-box {
    min-width: 95px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
}

.course-price-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.course-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.meta-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 5px;
}

.meta-item strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

.course-features-title {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

.course-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-features li {
    margin: 0;
    font-size: 0.93rem;
    color: #334155;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.course-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent-color), #f59e0b);
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    margin-top: auto;
}

/* Corporate Section */
.corporate-section {
    padding: 140px 0 100px;
    background-color: var(--bg-light);
    /* Changed to gray to strictly alternate */
    position: relative;
    z-index: 2;
}

.corporate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: inherit;
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: top left;
}

.corporate-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.corporate-image {
    flex: 1;
    position: relative;
    animation: fadeInUp 1s ease forwards;
}

.corporate-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 61, 106, 0.1));
    transition: var(--transition);
    animation: floatImage 6s ease-in-out infinite;
}

.corporate-image:hover img {
    /* Hover effect is mostly handled by continuous float now, but we enhance shadow */
    filter: drop-shadow(0 30px 40px rgba(0, 61, 106, 0.2));
}

.corporate-text {
    flex: 1;
    text-align: right;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.corporate-text h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.corporate-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.corporate-features {
    list-style: none;
    margin-bottom: 40px;
}

.corporate-features li {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.corporate-features li::before {
    content: "✔";
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Instructor Recruitment Section */
.instructor-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.instructor-content {
    position: relative;
    z-index: 2;
}

.instructor-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.instructor-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.instructor-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Professional Footer Section */
.main-footer {
    background-color: #0f172a;
    color: #fff;
    padding-top: 0;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-top: 60px;
    /* Leave space below the wave */
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color) !important;
    border-radius: 5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.links-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-block;
}

.links-col a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 58px;
    background: transparent;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    object-fit: contain;
    box-shadow: 0 1px 8px rgba(255, 255, 255, 0.08);
}

.footer-logo p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #fff;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    /* WhatsApp Official Color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.mt-3 {
    margin-top: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    direction: ltr;
    /* Ensure left-to-right alignment for social icons */
    justify-content: flex-end;
    /* Align right for Arabic UI */
}

.social-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}

.social-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    position: relative;
    padding-bottom: 10px;
}

.social-title p::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 61, 106, 0.5);
}

.footer-bottom {
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta-btn {
        align-self: center;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: min(92vw, 420px);
        transform: none !important;
        animation: none !important;
        margin: -72px auto 0;
        display: block;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .courses-section {
        padding: 60px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .highlighted-card {
        transform: scale(1);
    }

    .highlighted-card:hover {
        transform: translateY(-5px);
    }

    .corporate-section {
        padding: 48px 0;
    }

    .corporate-container {
        flex-direction: column;
        text-align: center;
        gap: 26px;
    }

    .corporate-image img {
        max-width: min(78vw, 320px);
        animation: none;
        filter: drop-shadow(0 10px 18px rgba(0, 61, 106, 0.12));
    }

    .corporate-text {
        text-align: center;
    }

    .corporate-text h2 {
        font-size: 2rem;
    }

    .corporate-features {
        text-align: right;
        display: inline-block;
    }

    .instructor-section {
        padding: 60px 0;
    }

    .instructor-content h2 {
        font-size: 2rem;
    }

    .instructor-content p {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-container .links-col {
        display: none;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo p {
        display: none;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-title {
        align-items: center;
    }

    .social-title p::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-bottom-container {
        justify-content: center;
    }
}

/* ========================================= */
/*       Registration Page Styles (New)      */
/* ========================================= */
.registration-section {
    padding: 140px 0 80px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 80px);
    /* Adjust based on header height */
}

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

/* Right Side: Course Summary */
.course-summary-box {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    position: sticky;
    top: 100px;
}

.summary-header .badge {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.summary-header h2 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.4;
}

.summary-details {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.detail-item.price-item i {
    background: rgba(245, 130, 32, 0.1);
    color: var(--accent-color);
}

.detail-item strong {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.detail-item .summary-price {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.summary-skills h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-skills ul {
    list-style: none;
    padding: 0;
}

.summary-skills li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.summary-skills li::before {
    content: '✔️';
    font-size: 0.9rem;
    color: var(--primary-color);
}

.summary-description {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-description h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-description p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.9;
    white-space: pre-line;
}
/* Left Side: Registration Form */
.registration-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 30px;
    text-align: right;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.05rem;
}

.register-form .form-group {
    margin-bottom: 25px;
}

.register-form .row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.input-wrapper .required {
    color: #e53e3e;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #f8fafc;
    resize: vertical;
    /* Allow resizing only vertically */
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 106, 0.1);
    background-color: #fff;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.form-check input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}

.form-check a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: none;
    cursor: pointer;
}

/* Registration Page Responsiveness */
@media (max-width: 900px) {
    .registration-container {
        grid-template-columns: 1fr;
    }

    .course-summary-box {
        position: static;
        order: -1;
        /* Keep summary above form on mobile */
    }

    .register-form .row-group {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/*  Registration Page Redesign (Info then Form) */
/* ========================================= */
.registration-redesign {
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(245, 130, 32, 0.12), transparent 55%),
        radial-gradient(1000px 420px at 5% 0%, rgba(0, 61, 106, 0.11), transparent 55%),
        var(--bg-light);
}

.registration-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 980px;
}

.registration-intro-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(0, 61, 106, 0.08);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 16px 45px rgba(0, 18, 33, 0.08);
}

.registration-intro-head h1 {
    margin: 12px 0 10px;
    font-size: clamp(1.5rem, 2.7vw, 2.2rem);
    line-height: 1.35;
    color: var(--text-color);
}

.registration-intro-head p {
    margin: 0;
    color: #5a6678;
    font-size: 1.02rem;
    border-right: 3px solid rgba(245, 130, 32, 0.35);
    padding-right: 10px;
}

.registration-intro-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 14px;
}

.meta-pill i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 61, 106, 0.1);
    color: var(--primary-color);
}

.meta-pill span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 3px;
}

.meta-pill strong {
    font-size: 1.08rem;
    color: #0f172a;
}

.course-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.meta-pill-price {
    border-color: rgba(245, 130, 32, 0.24);
    background: linear-gradient(135deg, #fff 0%, #fff8f1 100%);
}

.meta-pill-price i {
    background: rgba(245, 130, 32, 0.15);
    color: var(--accent-color);
}

.meta-pill-price strong {
    color: var(--accent-color);
}

.registration-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.registration-info-grid .info-block {
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 14px;
    padding: 18px;
}

.registration-info-grid .info-block h3 {
    margin: 0 0 12px;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-info-grid .info-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.registration-info-grid .info-block li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.registration-info-grid .info-block li::before {
    content: "✔";
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 1px;
}

.registration-info-grid .info-block p {
    margin: 0;
    color: #334155;
    line-height: 1.85;
    font-size: 0.95rem;
    white-space: pre-line;
}

.registration-redesign .registration-form-box {
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(0, 18, 33, 0.08);
    border: 1px solid rgba(0, 61, 106, 0.08);
}

/* Unified visual rhythm across all redesigned registration pages */
.registration-redesign .registration-stack {
    max-width: 1020px;
    gap: 24px;
}

.registration-redesign .registration-intro-card,
.registration-redesign .registration-form-box {
    border-radius: 20px;
}

.registration-redesign .form-header {
    margin-bottom: 26px;
}

.registration-redesign .form-header h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    margin-bottom: 8px;
    line-height: 1.35;
}

.registration-redesign .form-header p {
    font-size: 1rem;
    line-height: 1.75;
    color: #5b6778;
}

.registration-redesign .register-form .form-group {
    margin-bottom: 20px;
}

.registration-redesign .input-wrapper label {
    font-size: 0.96rem;
    margin-bottom: 7px;
}

.registration-redesign .input-wrapper input,
.registration-redesign .input-wrapper select,
.registration-redesign .input-wrapper textarea {
    border-radius: 10px;
    min-height: 48px;
}

.registration-redesign .input-wrapper textarea {
    min-height: 130px;
}

.registration-redesign .btn-submit {
    min-height: 52px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.registration-redesign .registration-info-grid .info-block {
    padding: 20px;
}

.registration-redesign .registration-info-grid .info-block h3 {
    font-size: 1.03rem;
}

@media (max-width: 900px) {
    .registration-intro-card {
        padding: 24px;
    }

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

    .registration-info-grid {
        grid-template-columns: 1fr;
    }

    .registration-redesign .registration-form-box {
        padding: 24px;
    }
}

@media (max-width: 620px) {
    .registration-intro-meta,
    .registration-info-grid {
        grid-template-columns: 1fr;
    }

    .registration-redesign .registration-form-box {
        padding: 24px;
    }
}

/* Corporate registration page specific */
.corporate-redesign .corporate-intro-card {
    border-top: 4px solid var(--primary-color);
}

/* Match corporate top border on other registration info cards */
.registration-redesign:not(.corporate-redesign) .registration-intro-card {
    border-top: 4px solid var(--primary-color);
}

.corporate-contact-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.corporate-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #334155;
}

.corporate-contact-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.corporate-contact-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.corporate-contact-list li::before {
    content: none !important;
}

.corporate-contact-list i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.corporate-urgent-title {
    margin: 12px 0 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.corporate-contact-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.corporate-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

/* ========================================= */
/*       Index Mobile Hamburger Menu         */
/* ========================================= */
.nav-toggle {
    display: none;
    border: 1px solid #dbe4ef;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 18, 33, 0.08);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    body.has-mobile-menu.menu-open {
        overflow: hidden;
    }

    .has-mobile-menu .main-header {
        background: transparent !important;
        box-shadow: none !important;
        padding: 14px 0;
    }

    .has-mobile-menu.legal-mobile-solid .main-header {
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .has-mobile-menu .header-content {
        justify-content: flex-start;
        gap: 14px;
    }

    .has-mobile-menu .header-brand {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .has-mobile-menu .logo img {
        height: 58px;
    }

    .has-mobile-menu .nav-toggle {
        display: inline-flex;
    }

    .has-mobile-menu .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: calc(var(--page-gutter) + env(safe-area-inset-right));
        left: calc(var(--page-gutter) + env(safe-area-inset-left));
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 34px rgba(0, 18, 33, 0.14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: 0.22s ease;
        z-index: 120;
    }

    .has-mobile-menu .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .has-mobile-menu .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: flex-start;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .has-mobile-menu .main-nav a {
        display: block;
        font-size: 1rem;
        padding: 10px 12px;
        border-radius: 8px;
        color: #0f172a;
    }

    .has-mobile-menu .main-nav a:hover {
        background: #f1f5f9;
    }

    .has-mobile-menu .main-nav a::after {
        display: none;
    }

    .courses-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 10px;
        margin-bottom: 28px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .courses-filter::-webkit-scrollbar {
        height: 6px;
    }

    .courses-filter::-webkit-scrollbar-thumb {
        background: rgba(0, 61, 106, 0.25);
        border-radius: 99px;
    }

    .filter-btn {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 9px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) and (orientation: landscape) {
    :root {
        --page-gutter: clamp(14px, 2.4vw, 24px);
    }
}
