:root {
    --ntc-navy: #07183f;
    --ntc-blue: #1474f7;
    --ntc-light: #f4f8ff;
    --ntc-text: #1f2937;
}

/* Correct logo sizing in the real site header */
.ntc-custom-logo,
.site-branding .custom-logo-link,
.header-logo .custom-logo-link,
.site-logo .custom-logo-link,
.navbar-brand,
.logo,
.logo-area a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 0 !important;
}

.ntc-logo-img,
.custom-logo.ntc-logo-img,
.site-branding img.custom-logo,
.header-logo img,
.site-logo img,
.navbar-brand img,
.logo img,
.logo-area img {
    width: auto !important;
    max-width: 220px !important;
    max-height: 72px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Remove the two unwanted horizontal bars / blank page-title areas shown above the hero */
body .top-header,
body .header-top,
body .topbar,
body .top-bar,
body .pre-header,
body .page-header,
body .page-title-wrap,
body .page-title-area,
body .breadcrumb-area,
body .breadcrumbs,
body .breadcrumb,
body .course-log-breadcrumb,
body .banner-title,
body .page-title,
body .entry-header,
body .site-content > .entry-header,
body .elementor-page-title,
body .wp-block-spacer:first-child,
body .entry-content > .wp-block-spacer:first-child,
body .entry-content > .wp-block-group:empty:first-child,
body .entry-content > .wp-block-cover:empty:first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Remove any remaining space between the menu/header and first homepage image */
body header,
body .site-header,
body #masthead,
body .main-header,
body .header-area,
body .navbar,
body .navigation-area {
    margin-bottom: 0 !important;
}

body .site-content,
body #content,
body .content-area,
body main,
body .page,
body .entry-content,
body .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home .entry-content > *:first-child,
body.front-page .entry-content > *:first-child,
body .site-main > *:first-child,
body #primary > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Prevent duplicate logo image blocks from appearing inside page content */
.ntc-duplicate-logo-block,
.entry-content figure.ntc-duplicate-logo-block,
.entry-content .wp-block-image.ntc-duplicate-logo-block {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Homepage blocks */
.ntc-home-intro {
    padding: 42px 20px 20px;
}

.ntc-popular-courses,
.ntc-course-catalogue {
    padding: 56px 20px;
    background: #fff;
}

.ntc-popular-courses {
    background: linear-gradient(180deg, #ffffff 0%, var(--ntc-light) 100%);
}

.ntc-section-head {
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.ntc-eyebrow {
    display: inline-block;
    color: var(--ntc-blue);
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
}

.ntc-section-head h2 {
    color: var(--ntc-navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin: 0 0 12px;
}

.ntc-section-head p {
    color: var(--ntc-text);
    font-size: 18px;
    margin: 0 auto;
}

.ntc-course-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ntc-course-card {
    background: #fff;
    border: 1px solid rgba(20,116,247,.12);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 38px rgba(7,24,63,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ntc-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(7,24,63,.14);
}

.ntc-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ntc-light);
    margin-bottom: 16px;
}

.ntc-card-category {
    color: var(--ntc-blue);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px;
}

.ntc-course-card h3 {
    color: var(--ntc-navy);
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 16px;
}

.ntc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ntc-card-meta span {
    background: #eef5ff;
    color: var(--ntc-navy);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.ntc-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ntc-blue);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 800;
}

.ntc-course-catalogue {
    background: #fff;
}

.ntc-category-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.ntc-category-panel {
    border: 1px solid rgba(7,24,63,.12);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.ntc-category-panel summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--ntc-navy);
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ntc-category-panel summary span {
    color: var(--ntc-blue);
    font-weight: 800;
}

.ntc-category-panel ul {
    margin: 0;
    padding: 0 22px 18px 42px;
    columns: 2;
}

.ntc-category-panel li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.ntc-category-panel a {
    color: var(--ntc-text);
    text-decoration: none;
}

.ntc-category-panel a:hover {
    color: var(--ntc-blue);
}

@media (max-width: 1024px) {
    .ntc-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ntc-logo-img,
    .site-branding img.custom-logo,
    .header-logo img,
    .site-logo img,
    .navbar-brand img,
    .logo img,
    .logo-area img {
        max-width: 170px !important;
        max-height: 58px !important;
    }
    .ntc-course-grid {
        grid-template-columns: 1fr;
    }
    .ntc-category-panel ul {
        columns: 1;
    }
}
