/* ========== Reset & Base ========== */
h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

/* ========== Navigation ========== */
.top.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    transition: height 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.navbar-logo {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links a {
    font-size: 14px;
    color: #475569;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #008afb;
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #008afb;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008afb;
    font-size: 14px;
}

.navbar-msg {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-msg i {
    color: #ef4444;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 120px;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #475569;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #008afb;
}

.nav-item-wrap {
    position: relative;
}

/* ========== Page System ========== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    padding: 160px 40px 100px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #f8fafc 70%, #eef2ff 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: 10%;
    background: radial-gradient(circle, rgba(0, 138, 251, 0.08) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 15%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    animation-delay: 2s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 5%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    animation-delay: 4s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 138, 251, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 138, 251, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 32px;
    color: #1e293b;
    font-weight: 700;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-title .highlight {
    color: #008afb;
}

.hero-subtitle {
    font-size: 16px;
    color: #475569;
    margin-top: 16px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.3s forwards;
}

.hero-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 40px;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.6s forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Section Common ========== */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 48px;
}

/* ========== Feature Cards (Home) ========== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.feature-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-card-title i {
    color: #94a3b8;
    transition: color 0.3s;
    font-size: 16px;
}

.feature-card:hover .feature-card-title i {
    color: #008afb;
}

.feature-card-desc {
    min-height: 44px;
    font-size: 14px;
    color: #475569;
    text-align: left;
    margin-top: 12px;
    line-height: 1.6;
}

.feature-card-img {
    margin-top: 20px;
    width: 100%;
    height: 120px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
}

.feature-card-img img {
    width: 100%;
    height: 100%;
}

/* Ripple */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 138, 251, 0.15);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== Data Stats Section ========== */
.stats-section {
    background: #0f172a;
    padding: 80px 40px;
}

.stats-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.stat-icon-1 {
    background: linear-gradient(135deg, #008afb, #38bdf8);
}

.stat-icon-2 {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-icon-3 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon-4 {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.stat-number .unit {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* ========== Website Features (Home Grid) ========== */
.features-grid {
    background: #eff6ff;
    padding: 80px 40px;
}

.features-grid-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid .section-title {
    margin-bottom: 48px;
}

.features-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fg-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.fg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.fg-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #008afb;
    transition: background 0.3s, color 0.3s;
}

.fg-card:hover .fg-card-icon {
    background: #008afb;
    color: #fff;
}

.fg-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.fg-card-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

/* ========== FAQ Grid (Home) ========== */
.faq-grid-section {
    background: #f1f5f9;
    padding: 80px 40px;
}

.faq-grid-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.faq-grid-card {
    background: #fff;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.faq-grid-card-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008afb;
    font-size: 16px;
    margin-bottom: 12px;
}

.faq-grid-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.faq-grid-card-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* ========== Learning Plaza (Home) ========== */
.learning-section {
    padding: 80px 40px;
}

.learning-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.learning-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.learning-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.learning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.learning-card-thumb {
    width: 100%;
    height: 200px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.learning-card-thumb .play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e293b;
    transition: transform 0.3s;
}

.learning-card:hover .play-btn {
    transform: scale(1.1);
}

.learning-card-body {
    text-align: left;
    padding: 20px;
}

.learning-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.learning-card-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ========== Footer ========== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 40px 32px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 12px;
}

/* ========== Secondary Pages Layout ========== */
.secondary-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: none;
}

.secondary-page.active {
    display: block;
}

.breadcrumb {
    font-size: 14px;
    color: #94a3b8;
    text-align: left;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.breadcrumb a {
    color: #008afb;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #475569;
}

.secondary-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.sidebar-item {
    padding: 16px 20px;
    font-size: 14px;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: #f8fafc;
}

.sidebar-item.active {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}

/* Content Block */
.content-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.content-block-header {
    background: #f8fafc;
    text-align: left;
    padding: 20px 24px;
    border-left: 3px solid #008afb;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.content-block-body {
    padding: 24px;
    font-size: 14px;
    text-align: left;
    color: #475569;
    line-height: 1.8;
}

.content-block-body ol {
    padding-left: 24px;
}

.content-block-body ol li {
    margin-bottom: 8px;
}

.content-block-body p {
    margin-bottom: 12px;
}

.content-block-body .hl-link {
    color: #008afb;
}

.content-block-body h4 {
    font-size: 16px;
    color: #1e293b;
    margin: 16px 0 8px;
    font-weight: 700;
}

/* ========== FAQ Page ========== */
.faq-sidebar-item,
.feature-sidebar-item {
    text-align: left;
    padding: 12px 20px;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-sidebar-item:hover,
.feature-sidebar-item:hover {
    background: #f8fafc;
}

.faq-sidebar-item.active,
.feature-sidebar-item.active {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}

.faq-accordion-item,
.feature-accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-accordion-header,
.feature-accordion-header {
    background: #f8fafc;
    padding: 18px 24px;
    border-left: 3px solid #008afb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.2s;
}

.faq-accordion-header:hover,
.feature-accordion-header:hover {
    background: #f1f5f9;
}

.faq-accordion-header .arrow,
.feature-accordion-header .arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s;
}

.faq-accordion-item.open .faq-accordion-header .arrow,
.feature-accordion-item.open .feature-accordion-header .arrow {
    transform: rotate(180deg);
}

.faq-accordion-body,
.feature-accordion-body {
    text-align: left;
    /* max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease; */
    padding: 16px;
}

.faq-accordion-item.open .faq-accordion-body,
.feature-accordion-item.open .feature-accordion-body {
    max-height: 600px;
    padding: 20px 24px;
}

.faq-accordion-body p,
.faq-accordion-body ol,
.feature-accordion-body p,
.feature-accordion-body ol {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
}

.faq-accordion-body ol li {
    margin-bottom: 6px;
}

.feature-accordion-body ol li {
    margin-bottom: 10px;
}

.feature-accordion-body h5 {
    font-weight: bold;
}

/* ========== Learning Plaza Page ========== */
.video-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.video-container-header {
    background: #f8fafc;
    text-align: left;
    padding: 18px 24px;
    border-left: 3px solid #008afb;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.video-container-body {
    padding: 24px;
}

.video-container-body video {
    width: 820px;
    height: 460px;
    border-radius: 8px;
    background: #1e293b;
}

/* ========== Scroll Animations ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Tag ========== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    background: #dbeafe;
    color: #008afb;
    border-radius: 4px;
    font-size: 12px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .learning-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .feature-cards,
    .features-grid-cards,
    .faq-grid-cards,
    .learning-cards,
    .stats-inner {
        grid-template-columns: 1fr;
    }

    .secondary-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .navbar-links {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section,
    .features-grid-section,
    .faq-grid-section,
    .learning-section {
        padding: 40px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }
}