﻿:root {
    --nutan-primary: #156082;
    --nutan-accent: #b3272d;
    --nutan-ink: #1d2b36;
}

html { scroll-behavior: smooth; }
body { color: var(--nutan-ink); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f5b301;
    outline-offset: 2px;
}

.site-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.site-contact-list a,
.site-address {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}
.site-contact-list i { margin-right: 6px; }

.site-page-hero {
    position: relative;
    background: linear-gradient(rgba(0, 30, 67, 0.86), rgba(0, 30, 67, 0.90)),
                url(../img/bg/bg-2.jpg) center/cover no-repeat;
    border-bottom: 0;
    padding: 66px 0 58px;
}
.site-page-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4.5vw, 50px);
    margin: 0;
}
/* Breadcrumb on the dark hero */
.site-page-hero .breadcrumb { margin: 0 0 12px; }
.site-page-hero .breadcrumb-item,
.site-page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, 0.85); }
.site-page-hero .breadcrumb-item a { color: #ffce45; text-decoration: none; }
.site-page-hero .breadcrumb-item a:hover { text-decoration: underline; }
.site-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.6); }
.site-content-section { padding: 48px 0; }
.legacy-content h2,
.legacy-content h3,
.site-content-section h2,
.site-content-section h3 {
    color: var(--nutan-primary);
}
.legacy-content iframe,
.site-content-section iframe {
    width: 100%;
    min-height: 520px;
    border: 1px solid #d5e0e6;
    border-radius: 6px;
}
.site-footer {
    background: #103d52;
    color: #fff;
    padding: 42px 0 22px;
}
.site-footer a { color: #fff; }
.site-footer h2 {
    font-size: 20px;
    color: #fff;
}
.site-copyright {
    border-top: 1px solid rgba(255,255,255,.22);
    margin: 28px 0 0;
    padding-top: 18px;
    text-align: center;
}

.navbar #navbarSupportedContent:empty::after {
    content: "Loading navigation...";
    color: #fff;
    font-size: 14px;
}
.responsive-navbar #navbarOffcanvasContent .navbar-nav {
    display: block;
    width: 100%;
    padding-left: 0;
}
.responsive-navbar #navbarOffcanvasContent .nav-item {
    display: block;
    width: 100%;
}
.responsive-navbar #navbarOffcanvasContent .nav-link {
    color: #fff;
    padding: 9px 0;
    white-space: normal;
}
.responsive-navbar #navbarOffcanvasContent .dropdown-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0;
    background: transparent;
    margin: 0 0 0 14px;
    padding: 0;
}
.responsive-navbar #navbarOffcanvasContent .dropdown-menu .nav-link {
    font-size: 14px;
    opacity: .92;
}
.navbar .nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table th {
    background: #eef6fa;
    color: var(--nutan-primary);
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.resource-card {
    border: 1px solid #d9e7ee;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}
.resource-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}
@media (max-width: 767.98px) {
    .site-content-section { padding: 32px 0; }
    .legacy-content iframe,
    .site-content-section iframe { min-height: 420px; }
}

/* =========================================================================
   Course / Programme detail pages  (shared template — .course-detail scope)
   ========================================================================= */
.course-hero .course-hero-sub {
    color: rgba(255, 255, 255, 0.82);
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.7;
}

/* Quick-facts strip */
.course-facts { margin-bottom: 48px; }
.course-facts .course-fact {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-facts .course-fact:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}
.course-facts .course-fact .icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 24px;
    color: var(--primaryColor);
    background: rgba(250, 57, 74, 0.09);
}
.course-facts .course-fact .meta span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a8f98;
    margin-bottom: 3px;
}
.course-facts .course-fact .meta strong {
    font-size: 16px;
    color: #1f2933;
    line-height: 1.35;
}

/* Left content presented as one clean card */
.course-detail .program-details-left-sidebar { margin-right: 0; }
.course-detail .biochemistry {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 30px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.course-detail .biochemistry > h1 { display: none; }      /* drop duplicate page title */
.course-detail .biochemistry > .container { padding: 0; max-width: 100%; }
.course-detail .biochemistry h3,
.course-detail .biochemistry h4 {
    position: relative;
    font-size: 21px;
    margin: 28px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f2;
}
.course-detail .biochemistry h4 { text-align: left !important; }
.course-detail .biochemistry h3:first-child,
.course-detail .biochemistry h4:first-child { margin-top: 0; }
.course-detail .biochemistry h3::before,
.course-detail .biochemistry h4::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 20px;
    border-radius: 6px;
    background: var(--primaryColor);
    margin-right: 12px;
    vertical-align: -3px;
}
.course-detail .biochemistry > p { color: #555; line-height: 1.85; }
.course-detail .biochemistry .table-responsive { border-radius: 10px; }

/* Note / callout (re-uses existing .program-card) */
.course-detail .program-card {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    background: #fff8f1;
    border: 1px solid #ffe2c7;
    border-left: 4px solid #ff9f43;
    border-radius: 12px;
    padding: 18px 20px;
    color: #6b5333;
    line-height: 1.75;
}
.course-detail .program-card:empty { display: none; }
.course-detail .program-card::before {
    content: "\ea0c";                 /* remixicon information-line */
    font-family: "remixicon" !important;
    font-size: 22px;
    color: #ff9f43;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Sidebar widgets */
.course-detail .program-details-right-sidebar { position: sticky; top: 24px; }
.course-widget {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.course-widget h3 {
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f2;
}
.course-contact-list { margin: 0; }
.course-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    color: #555;
    border-bottom: 1px dashed #eee;
}
.course-contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.course-contact-list li i { color: var(--primaryColor); font-size: 18px; margin-top: 2px; }
.course-contact-list a { color: #555; text-decoration: none; word-break: break-word; }
.course-contact-list a:hover { color: var(--primaryColor); }

.course-cta { background: linear-gradient(135deg, var(--primaryColor), #d62333); text-align: center; }
.course-cta h3 { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.course-cta p { color: rgba(255, 255, 255, 0.92); margin-bottom: 18px; }
.course-cta .default-btn { background: #fff; color: var(--primaryColor); }
.course-cta .default-btn:hover { background: #0d1b2a; color: #fff; }

.course-links { list-style: none; padding: 0; margin: 0; }
.course-links li { margin-bottom: 10px; }
.course-links li:last-child { margin-bottom: 0; }
.course-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.course-links a:hover { border-color: var(--primaryColor); color: var(--primaryColor); background: rgba(250, 57, 74, 0.04); }
.course-links a i { color: var(--primaryColor); }
.course-links a.is-current { background: var(--primaryColor); color: #fff; border-color: var(--primaryColor); }
.course-links a.is-current i { color: #fff; }

@media (max-width: 991px) {
    .course-detail .program-details-right-sidebar { position: static; margin-top: 30px; }
    .course-detail .biochemistry { padding: 24px 20px; }
}
