
/* =========================================================
   1. Theme Variables and Global Reset
   ========================================================= */

:root {
    --navy: #101b3d;
    --blue: #315efb;
    --cyan: #17b8c8;
    --ink: #172033;
    --muted: #65718a;
    --bg: #f6f8fc;
    --card: #fff;
    --line: #e7ebf3;
    --shadow: 0 18px 50px rgba(22, 40, 85, .09);
    --radius: 22px;
}

/* Apply border-box sizing to all elements */
* {
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Default body styling */
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

/* Remove default link underline */
a {
    color: inherit;
    text-decoration: none;
}

/* Responsive images */
img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   2. Shared Layout and Header Navigation
   ========================================================= */

/* Common container */
.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

/* Sticky website header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 235, 243, .85);
}

/* Navigation layout */
.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand link contains only the original PNG logo */
.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Actual logo image: no extra text or CSS-generated logo */
.brand-logo {
    display: block;
    width: 180px;
    height: 60px;
    object-fit: contain;
}

/* Footer logo size */
.footer-brand .brand-logo {
    width: 190px;
    height: 65px;
}

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #46516a;
    font-size: .92rem;
    font-weight: 650;
}

/* Navigation hover and active link */
.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

/* Navigation action buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile menu button */
.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 1.2rem;
}


/* =========================================================
   3. Reusable Buttons
   ========================================================= */

/* Common button design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    padding: 12px 18px;
    background: var(--blue);
    color: #fff;
    font-weight: 750;
    box-shadow: 0 9px 22px #315efb30;
    transition: .2s;
}

/* Button hover effect */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px #315efb40;
}

/* Secondary button */
.btn.secondary {
    background: #eef2ff;
    color: var(--blue);
    box-shadow: none;
}

/* Light button */
.btn.light {
    background: #fff;
    color: var(--navy);
    box-shadow: none;
}


/* =========================================================
   4. Home Page Hero and Preview Panel
   ========================================================= */

/* Main hero section */
.hero {
    padding: 76px 0 68px;
    background:
        radial-gradient(circle at 80% 20%, #b9f3f0 0, transparent 28%),
        radial-gradient(circle at 12% 10%, #dce5ff 0, transparent 32%),
        linear-gradient(135deg, #f7f9ff, #edf7ff);
    overflow: hidden;
}

/* Hero content and visual layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 50px;
}

/* Small label above hero heading */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #dce5ff;
    border-radius: 999px;
    background: #fff;
    color: #3658ce;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .3px;
}

/* Small colored dot */
.eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18b8a5;
}

/* Main hero heading */
.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.7rem);
    line-height: 1.06;
    letter-spacing: -2.7px;
    color: var(--navy);
    margin: 20px 0;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, var(--blue), #09aeb9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero paragraph */
.hero p {
    font-size: 1.1rem;
    color: #5e6981;
    max-width: 570px;
    margin: 0 0 28px;
}

/* Hero action buttons */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Small note below hero buttons */
.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: #71809a;
    font-size: .85rem;
}

/* Avatar group */
.avatar-stack {
    display: flex;
}

/* Individual avatar circles */
.avatar-stack span {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 2px solid white;
    background: #dce6ff;
    margin-left: -7px;
    display: grid;
    place-items: center;
    font-size: .72rem;
}

/* Hero preview area */
.hero-visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
}

/* Main preview card */
.visual-card {
    position: relative;
    width: min(100%, 470px);
    background: #fff;
    border: 1px solid #fff;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 30px 80px #1b367326;
    transform: rotate(2deg);
}

/* Preview card top area */
.visual-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 5px 16px;
    color: #66728b;
    font-size: .78rem;
    font-weight: 700;
}

/* Inner preview window */
.visual-window {
    background: #f4f7ff;
    border-radius: 18px;
    padding: 20px;
}

/* Preview window heading */
.visual-title {
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--navy);
    margin-bottom: 15px;
}

/* Preview tiles grid */
.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Individual preview tile */
.visual-tile {
    background: #fff;
    border: 1px solid #e8edfa;
    border-radius: 15px;
    padding: 16px;
    min-height: 104px;
}

/* Preview tile icon */
.tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #e9efff;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* Preview tile title */
.visual-tile strong {
    display: block;
    font-size: .86rem;
}

/* Preview tile small text */
.visual-tile small {
    color: var(--muted);
}

/* Floating labels around preview card */
.float-tag {
    position: absolute;
    background: #fff;
    border-radius: 15px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    font-weight: 800;
    color: var(--navy);
    font-size: .83rem;
}

/* First floating label */
.tag-one {
    top: 28px;
    right: -5px;
}

/* Second floating label */
.tag-two {
    bottom: 20px;
    left: -15px;
}


/* =========================================================
   5. Shared Section Headings and Card Components
   ========================================================= */

/* Common section spacing */
.section {
    padding: 76px 0;
}

/* Section heading layout */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

/* Small label above section heading */
.section-kicker {
    color: var(--blue);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section main heading */
.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin: 8px 0 10px;
    color: var(--navy);
}

/* Section description */
.section-head p {
    color: var(--muted);
    max-width: 540px;
    margin: 0;
}

/* Course cards grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Shared base style for course, feature and content cards */
.course-card,
.feature-card,
.content-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 5px 22px rgba(22, 40, 85, .035);
    transition: .22s;
}

/* Hover effect for course and feature cards */
.course-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #d8e1ff;
}

/* Course and feature icon */
.course-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
    background: #edf2ff;
}

/* Course card content layout */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Keep course link at the bottom */
.course-card .text-link {
    margin-top: auto;
}

/* Course card heading */
.course-card h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 1.08rem;
}

/* Course card description */
.course-card p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: .9rem;
}

/* Reusable text link */
.text-link {
    color: var(--blue);
    font-size: .88rem;
    font-weight: 800;
}


/* =========================================================
   6. Home Page Features, Resources and Footer
   ========================================================= */

/* Dark feature section */
.feature-band {
    background: var(--navy);
    color: white;
    border-radius: 28px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Decorative circle in feature section */
.feature-band:after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: #315efb;
    opacity: .25;
    right: -100px;
    top: -160px;
}

/* Feature section heading */
.feature-band h2 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin: 10px 0;
}

/* Feature section paragraph */
.feature-band p {
    color: #c2cbe0;
}

/* Feature list grid */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    position: relative;
    z-index: 1;
}

/* Individual feature item */
.feature-pill {
    padding: 15px;
    border: 1px solid #ffffff22;
    background: #ffffff0b;
    border-radius: 14px;
    font-weight: 700;
    font-size: .9rem;
}

/* Feature item icon */
.feature-pill span {
    color: #57d7d0;
    margin-right: 8px;
}

/* Feature cards grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Feature card icon spacing */
.feature-card .course-icon {
    margin-bottom: 14px;
}

/* Feature card heading */
.feature-card h3 {
    margin: 0 0 6px;
    color: var(--navy);
}

/* Feature card paragraph */
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

/* Call-to-action section */
.cta {
    padding: 48px;
    border-radius: 26px;
    background: linear-gradient(120deg, #315efb, #13aebc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* CTA heading */
.cta h2 {
    margin: 0 0 7px;
    font-size: 2rem;
}

/* CTA paragraph */
.cta p {
    margin: 0;
    color: #e4f5ff;
}

/* Website footer */
.site-footer {
    background: #0d1734;
    color: #d7def0;
    padding: 48px 0 22px;
}

/* Footer columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

/* Footer brand description */
.footer-brand p {
    color: #aeb9d2;
    max-width: 350px;
    font-size: .9rem;
}

/* Footer column heading */
.footer-col h4 {
    margin: 0 0 15px;
    color: white;
}

/* Footer links */
.footer-col a {
    display: block;
    color: #aeb9d2;
    margin: 8px 0;
    font-size: .9rem;
}

/* Footer link hover */
.footer-col a:hover {
    color: white;
}

/* Footer bottom row */
.footer-bottom {
    border-top: 1px solid #ffffff1b;
    margin-top: 34px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #8996b4;
    font-size: .82rem;
}


/* =========================================================
   7. Inner Pages: Content, Topics and Sidebar
   ========================================================= */

/* Inner page hero section */
.page-hero {
    padding: 54px 0 42px;
    background: linear-gradient(120deg, #eaf0ff, #eefafa);
}

/* Inner page main heading */
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--navy);
    letter-spacing: -1.5px;
    margin: 8px 0;
}

/* Inner page description */
.page-hero p {
    color: var(--muted);
    max-width: 700px;
    margin: 0;
}

/* Breadcrumb navigation */
.breadcrumbs {
    font-size: .82rem;
    color: #77839b;
    margin-bottom: 12px;
}

/* Breadcrumb links */
.breadcrumbs a {
    color: var(--blue);
    font-weight: 700;
}

/* Main content and sidebar layout */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

/* Main content card */
.content-card {
    padding: 30px;
}

/* Content card headings */
.content-card h2 {
    color: var(--navy);
    margin: 0 0 12px;
}

.content-card h3 {
    color: var(--navy);
    margin-top: 25px;
}

/* Content card paragraphs and lists */
.content-card p,
.content-card li {
    color: #58647b;
}

/* Topic items grid */
.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Individual topic item */
.topic-item {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

/* Topic item title */
.topic-item strong {
    display: block;
    color: var(--navy);
}

/* Topic item small text */
.topic-item small {
    color: var(--muted);
}

/* Resource links container */
.resource-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Individual resource link */
.resource {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f9fbff;
    font-weight: 750;
    color: #34415c;
}

/* Resource link hover */
.resource:hover {
    border-color: #bdcbff;
    color: var(--blue);
}

/* Sidebar box */
.sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}

/* Sidebar heading */
.sidebar h3 {
    margin: 0 0 13px;
    color: var(--navy);
}

/* Sidebar links */
.sidebar a {
    display: block;
    padding: 9px 0;
    color: #63708a;
    border-bottom: 1px solid #f0f2f7;
    font-size: .9rem;
}

/* Sidebar link hover */
.sidebar a:hover {
    color: var(--blue);
}

/* Search form layout */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin-top: 22px;
}

/* Search input */
.search-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dce3f1;
    border-radius: 13px;
    padding: 13px 15px;
    font: inherit;
    outline: none;
}

/* Search input focus effect */
.search-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #315efb16;
}

/* Notice or information box */
.notice {
    padding: 16px 18px;
    border-radius: 14px;
    background: #eff7ff;
    border: 1px solid #dcecff;
    color: #425777;
    margin: 18px 0;
}

/* Notice heading text */
.notice strong {
    color: var(--navy);
}

/* Empty search result message */
.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #d5ddec;
    border-radius: 18px;
}


/* =========================================================
   8. Responsive Layout: Tablet
   ========================================================= */

@media (max-width: 900px) {

    /* Reduce navigation spacing */
    .nav-links {
        gap: 14px;
    }

    /* Show two course cards in one row */
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reduce hero column gap */
    .hero-grid {
        gap: 24px;
    }

    /* Show two feature cards in one row */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   9. Responsive Layout: Mobile
   ========================================================= */

@media (max-width: 680px) {

    /* Reduce container width on mobile */
    .container {
        width: min(100% - 28px, 1160px);
    }

    /* Reduce navigation height */
    .nav {
        height: 68px;
    }

    /* Full logo remains visible on mobile */
    .brand-logo {
        width: 150px;
        height: 50px;
    }

    /* Footer logo size on mobile */
    .footer-brand .brand-logo {
        width: 170px;
        height: 58px;
    }

    /* Show mobile menu button */
    .menu-btn {
        display: block;
    }

    /* Mobile navigation dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 22px 22px;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    /* Show menu when JavaScript adds the open class */
    .nav-links.open {
        display: flex;
    }

    /* Mobile navigation link spacing */
    .nav-links a {
        padding: 10px;
    }

    /* Hide desktop action button on mobile */
    .nav-actions .btn {
        display: none;
    }

    /* Reduce hero section spacing */
    .hero {
        padding: 52px 0 45px;
    }

    /* Put hero content into one column */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust hero heading letter spacing */
    .hero h1 {
        letter-spacing: -1.8px;
    }

    /* Reduce hero preview height */
    .hero-visual {
        min-height: 310px;
    }

    /* Adjust preview card width */
    .visual-card {
        width: 94%;
    }

    /* Adjust floating label positions */
    .tag-one {
        right: 0;
    }

    .tag-two {
        left: 0;
    }

    /* Reduce section spacing */
    .section {
        padding: 54px 0;
    }

    /* Stack section heading content */
    .section-head {
        display: block;
    }

    /* Add spacing to section link */
    .section-head .text-link {
        display: inline-block;
        margin-top: 12px;
    }

    /* Show two cards in one row */
    .course-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Reduce card padding */
    .course-card,
    .feature-card {
        padding: 17px;
    }

    /* Stack feature band content */
    .feature-band {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    /* Reduce feature heading size */
    .feature-band h2 {
        font-size: 1.8rem;
    }

    /* Keep two feature items in one row */
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }

    /* Stack CTA content */
    .cta {
        padding: 30px;
        display: block;
    }

    /* Add spacing above CTA button */
    .cta .btn {
        margin-top: 18px;
    }

    /* Show two footer columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    /* Footer brand takes full row */
    .footer-brand {
        grid-column: 1 / -1;
    }

    /* Stack footer bottom content */
    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-top: 6px;
    }

    /* Stack content and sidebar */
    .content-layout {
        grid-template-columns: 1fr;
    }

    /* Reduce content card padding */
    .content-card {
        padding: 22px;
    }

    /* Show one topic in each row */
    .topic-list {
        grid-template-columns: 1fr;
    }

    /* Reduce inner page hero spacing */
    .page-hero {
        padding: 38px 0 30px;
    }
}


/* =========================================================
   10. Small Mobile Screens
   ========================================================= */

@media (max-width: 390px) {

    /* Show one card in each row */
    .course-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Stack feature list items */
    .feature-list {
        grid-template-columns: 1fr;
    }

    /* Adjust hero heading size */
    .hero h1 {
        font-size: 2.45rem;
    }
}


/* =========================================================
   11. Accessibility Improvements
   ========================================================= */

/* Visible keyboard focus for links and controls */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

/* Respect the visitor's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
