:root {
    --primary: #d94841;
    --primary-dark: #b9322c;
    --secondary: #16324f;
    --accent: #f4b942;
    --surface: #ffffff;
    --surface-soft: #f8f4ef;
    --surface-strong: #fff6ea;
    --surface-muted: #f5f7fb;
    --text-main: #1b2430;
    --text-muted: #5d6978;
    --border-color: rgba(22, 50, 79, 0.12);
    --shadow-soft: 0 20px 50px rgba(17, 31, 56, 0.08);
}

body.dark-mode {
    --primary: #ff7862;
    --primary-dark: #ff6a52;
    --secondary: #dce8f5;
    --accent: #ffd071;
    --surface: #0f1822;
    --surface-soft: #152231;
    --surface-strong: #1a2b3c;
    --surface-muted: #14202d;
    --text-main: #edf3fb;
    --text-muted: #a8b7c8;
    --border-color: rgba(220, 232, 245, 0.12);
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #ffffff;
    color: var(--text-main);
    transition: background-color 0.35s ease, color 0.35s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand strong {
    font-family: "Outfit", sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.site-container {
    max-width: 1140px;
}

.section-space {
    padding: 110px 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 0;
}

.lead-text,
.section-copy,
.video-card p,
.gallery-copy,
.contact-copy,
.footer-box p,
.footer-brand p,
.contact-list li,
.course-card p,
.course-outline li,
.detail-card p,
.page-intro p,
.qualification-item span,
.feature-item span,
.mini-stat span,
.why-card p {
    color: var(--text-muted);
}

.btn-brand {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 0;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(217, 72, 65, 0.2);
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
}

.topbar {
    background: var(--secondary);
    color: #fff;
    font-size: 0.92rem;
}

.topbar a {
    color: #fff;
}

.topbar a:hover {
    color: var(--accent);
}

.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.main-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(17, 31, 56, 0.06);
}

body.dark-mode .main-navbar {
    background: rgba(15, 24, 34, 0.95);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #f08b4d);
    box-shadow: 0 14px 28px rgba(217, 72, 65, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1.15rem;
    color: var(--text-main);
}

.brand-text small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    padding: 0.9rem 1rem;
    position: relative;
}

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

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    min-width: 240px;
}

.dropdown-item {
    color: var(--text-main);
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: calc(100% + 8px);
    margin-top: -10px;
}

.dropdown-submenu > .dropdown-toggle::after {
    float: right;
    margin-top: 0.55rem;
    transform: rotate(-90deg);
}

@media (min-width: 992px) {
    .dropdown-mega:hover > .dropdown-menu,
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

.hero-shell {
    background:
        radial-gradient(circle at top left, rgba(244, 185, 66, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(22, 50, 79, 0.02), transparent 30%);
}

.hero-slider {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    padding: 70px;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(7, 18, 32, 0.84), rgba(7, 18, 32, 0.36));
}

.slide-one {
    background: url("https://images.unsplash.com/photo-1516321310764-8d7d5f612d0b?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.slide-two {
    background: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.slide-three {
    background: url("https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 690px;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.08rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slider .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-slider .owl-dots .owl-dot.active span {
    background: var(--accent);
}

.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
}

.hero-slider .owl-nav button.owl-prev {
    left: 22px;
}

.hero-slider .owl-nav button.owl-next {
    right: 22px;
}

.welcome-section,
.video-grid-section,
.contact-section,
.page-section {
    background: var(--surface);
}

.image-panel {
    position: relative;
    padding-right: 38px;
}

.image-card,
.instructor-image img,
.why-us-image img,
.page-image img,
.gallery-card,
.video-card,
.detail-hero-image img,
.feature-banner img,
.course-thumb img {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-main img,
.why-us-image img,
.page-image img,
.detail-hero-image img {
    height: 560px;
    object-fit: cover;
    width: 100%;
}

.image-float {
    position: absolute;
    right: 0;
    bottom: 32px;
    background: var(--surface);
    max-width: 240px;
}

.mini-stat {
    padding: 28px;
}

.mini-stat strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.feature-list,
.why-us-grid,
.overview-grid,
.detail-grid {
    display: grid;
    gap: 16px;
}

.feature-list {
    margin-top: 28px;
}

.feature-item,
.why-card,
.detail-card,
.overview-card {
    padding: 20px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-item i,
.why-card i,
.detail-card i,
.overview-card i,
.qualification-item i {
    color: var(--primary);
}

.courses-section,
.course-listing-section,
.gallery-section,
.page-banner,
.course-detail-section {
    background:
        linear-gradient(180deg, var(--surface-soft), var(--surface));
}

.course-card {
    height: 100%;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover,
.gallery-card:hover,
.video-card:hover {
    transform: translateY(-8px);
}

.course-card-large .course-body,
.course-card-simple .course-body {
    padding: 30px;
}

.course-media {
    position: relative;
}

.course-media img,
.course-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    left: 20px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 50, 79, 0.82);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.course-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(217, 72, 65, 0.16), rgba(244, 185, 66, 0.22));
    color: var(--primary);
    font-size: 1.55rem;
}

.course-card h3,
.video-card h3,
.footer-box h3,
.why-card h3,
.detail-card h3,
.overview-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.course-card a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

.why-us-section {
    background: var(--surface-muted);
}

.why-us-grid,
.overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.why-card i,
.overview-card i,
.detail-card i {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.instructor-section {
    background: var(--surface);
}

.instructor-image img {
    height: 100%;
    min-height: 540px;
    object-fit: cover;
}

.instructor-card {
    padding: 36px;
    border-radius: 30px;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
}

.instructor-card h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.instructor-role {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 700;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.qualification-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
}

.page-banner {
    padding: 90px 0 70px;
}

.breadcrumb-text {
    color: var(--text-muted);
    font-weight: 600;
}

.page-panel,
.contact-panel,
.detail-panel {
    padding: 32px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.stat-card {
    padding: 18px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--secondary);
}

.category-anchor {
    scroll-margin-top: 110px;
}

.section-stack {
    display: grid;
    gap: 28px;
}

.gallery-grid .gallery-card,
.video-grid .video-card {
    cursor: pointer;
}

.gallery-card img,
.video-thumb-custom {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-overlay,
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(5, 16, 29, 0.1), rgba(5, 16, 29, 0.45));
    color: #fff;
    font-size: 2.4rem;
}

.gallery-media,
.video-media {
    position: relative;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 26px;
}

.gallery-modal-image,
.video-frame-wrap iframe {
    width: 100%;
    border-radius: 18px;
}

.gallery-modal-image {
    max-height: 68vh;
    object-fit: cover;
}

.modal-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.modal-nav-btn {
    border: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
}

.video-frame-wrap {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.contact-form .form-control,
.contact-form .form-select {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-main);
}

.contact-form textarea.form-control {
    min-height: 140px;
}

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

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.course-outline {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.course-outline li {
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}

.related-courses {
    display: grid;
    gap: 18px;
}

.related-course {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}

.footer-section {
    background: #101e2f;
    color: #fff;
    padding-top: 90px;
}

.footer-section .brand-text strong,
.footer-section .brand-text small,
.footer-box h3,
.footer-brand p,
.contact-list li {
    color: #fff;
}

.footer-box,
.footer-brand {
    padding-right: 10px;
}

.subscribe-form {
    display: grid;
    gap: 12px;
}

.subscribe-form .form-control {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 50px;
    padding: 22px 0;
    color: rgba(255, 255, 255, 0.74);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 14px 28px rgba(217, 72, 65, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark-mode .footer-section {
    background: #08121c;
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 84px 0;
    }

    .topbar-actions {
        justify-content: flex-start !important;
    }

    .navbar-collapse {
        background: var(--surface);
        padding: 18px;
        border-radius: 22px;
        margin-top: 16px;
        border: 1px solid var(--border-color);
    }

    .dropdown-submenu > .dropdown-menu {
        left: 0;
        margin-top: 8px;
    }

    .hero-slide {
        min-height: 520px;
        padding: 54px 42px;
    }

    .image-panel {
        padding-right: 0;
    }

    .image-float {
        right: 16px;
    }

    .qualification-grid,
    .why-us-grid,
    .overview-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .topbar-info,
    .topbar-actions {
        justify-content: center;
    }

    .brand-text small {
        display: none;
    }

    .hero-slide {
        min-height: 500px;
        padding: 36px 22px 56px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-brand,
    .btn-outline-light {
        width: 100%;
        text-align: center;
    }

    .image-main img,
    .instructor-image img,
    .why-us-image img,
    .page-image img,
    .detail-hero-image img {
        min-height: auto;
        height: 420px;
    }

    .image-float {
        position: static;
        margin-top: 20px;
        max-width: 100%;
    }

    .instructor-card,
    .page-panel,
    .contact-panel,
    .detail-panel {
        padding: 28px 22px;
    }

    .hero-slider .owl-nav button.owl-prev,
    .hero-slider .owl-nav button.owl-next {
        width: 44px;
        height: 44px;
    }

    .hero-slider .owl-nav button.owl-prev {
        left: 10px;
    }

    .hero-slider .owl-nav button.owl-next {
        right: 10px;
    }
}
