/* ===== 88 Captains – Shared Stylesheet ===== */
:root {
    --brand-blue: #01a0e1;
    --brand-navy: #012f5c;
    --brand-yellow: #fdd415;
    --top-footer: #001a33;
    --bottom-footer: #001529;
    --text: #525c65;
    --muted: #c9d3dd;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Hind", sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    background: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1,
h2,
h3,
h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.25;
}

/* ---------- Header ---------- */
header.site-header {
    position: sticky;
    top: 0;
    background: var(--brand-blue);
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 52px;
    width: auto;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 34px;
}
nav a {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
nav a:hover,
nav a.active {
    border-bottom-color: var(--brand-yellow);
}
.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(232, 244, 251, 0.6) 0%, rgba(255, 249, 219, 0.6) 100%),
        url("/images/penang-bridge.jpeg") center/cover no-repeat;
    padding: 70px 0 60px;
    text-align: center;
}
.hero h1 {
    font-size: 54px;
    color: var(--brand-navy);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.hero .tagline {
    font-size: 22px;
    color: var(--brand-navy);
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.85;
}
.hero .sub {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 17px;
    color: #4a5562;
}
.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}
.partners img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: saturate(1) contrast(1);
}

/* ---------- Page header for subpages ---------- */
.page-header {
    background: linear-gradient(135deg, #012f5c 0%, #01a0e1 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    font-size: 46px;
    margin-bottom: 10px;
}
.page-header .crumbs {
    color: #d8e8f5;
    font-size: 14px;
    letter-spacing: 1px;
}
.page-header .crumbs a {
    color: var(--brand-yellow);
}

/* ---------- Section shared ---------- */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 40px;
    display: inline-block;
    padding-bottom: 14px;
    position: relative;
}
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--brand-yellow);
}
.section-title .sub {
    margin-top: 14px;
    color: #6b7683;
    font-size: 16px;
}

/* ---------- About ---------- */
#about p {
    max-width: 960px;
    margin: 0 auto 16px;
    text-align: center;
    color: #3e4a57;
}

/* ---------- Services ---------- */
#services {
    background: #f6f9fc;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.service {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(1, 47, 92, 0.08);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(1, 47, 92, 0.12);
}
.service .thumb {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfeff9, #cfe5f6);
}
.service .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service h3 {
    padding: 20px 20px 8px;
    font-size: 20px;
    position: relative;
}
.service h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--brand-yellow);
    margin-top: 10px;
}
.service p {
    padding: 0 20px 22px;
    color: #6b7683;
    font-size: 14px;
    flex: 1;
}
.service .cta {
    padding: 0 20px 22px;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Team ---------- */
.team-subhead {
    text-align: center;
    font-size: 26px;
    color: var(--brand-navy);
    margin: 60px 0 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.team-subhead::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: var(--brand-yellow);
}
.people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 30px;
}
.people.five {
    grid-template-columns: repeat(5, 1fr);
}
.person {
    text-align: center;
}
.person .avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #d9e6f2, #eaf2fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 38px;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(1, 47, 92, 0.15);
}
.person .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.person h4 {
    font-size: 17px;
    color: var(--brand-navy);
    margin-bottom: 4px;
}
.person .role {
    font-size: 14px;
    color: #6b7683;
    font-style: italic;
}

/* ---------- News ---------- */
#news,
.news-listing {
    background: #f6f9fc;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(1, 47, 92, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.news-card:hover {
    transform: translateY(-4px);
}
.news-card .thumb {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #01a0e1, #012f5c);
}
.news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card .body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card .date {
    font-size: 12px;
    color: #8a94a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.news-card h3 {
    font-size: 17px;
    margin-bottom: 18px;
    flex: 1;
}
.news-card .read-more {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 2px;
}
.load-more {
    display: block;
    margin: 50px auto 0;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    border: none;
    padding: 14px 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
}

/* ---------- Article body ---------- */
.article-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 20px;
}
.article-body .featured {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}
.article-body h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.article-body .meta {
    color: #8a94a0;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.article-body p {
    margin-bottom: 18px;
    color: #3e4a57;
}
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--brand-blue);
    font-weight: 600;
}

/* ---------- Rich text (Tiptap output) ---------- */
.rich {
    color: #3e4a57;
}
.rich > *:first-child {
    margin-top: 0;
}
.rich > *:last-child {
    margin-bottom: 0;
}
.rich p {
    margin: 0 0 18px;
}
.rich h2 {
    font-size: 26px;
    line-height: 1.25;
    color: var(--brand-navy, #0a2c4d);
    margin: 36px 0 14px;
    font-weight: 700;
}
.rich h3 {
    font-size: 20px;
    line-height: 1.3;
    color: var(--brand-navy, #0a2c4d);
    margin: 28px 0 12px;
    font-weight: 700;
}
.rich h4 {
    font-size: 17px;
    line-height: 1.3;
    color: var(--brand-navy, #0a2c4d);
    margin: 24px 0 10px;
    font-weight: 700;
}
.rich ul,
.rich ol {
    margin: 0 0 18px;
    padding-left: 28px;
}
.rich ul {
    list-style: disc;
}
.rich ol {
    list-style: decimal;
}
.rich li {
    margin-bottom: 6px;
}
.rich li > p {
    margin: 0;
}
.rich blockquote {
    margin: 18px 0;
    padding: 6px 18px;
    border-left: 4px solid var(--brand-blue, #2271b1);
    background: #f6f9fc;
    color: #5a6776;
    font-style: italic;
}
.rich blockquote > p:last-child {
    margin-bottom: 0;
}
.rich a {
    color: var(--brand-blue, #2271b1);
    text-decoration: underline;
}
.rich a:hover {
    text-decoration: none;
}
.rich strong {
    font-weight: 700;
}
.rich em {
    font-style: italic;
}
.rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 6px;
}
.rich code {
    background: #eef2f6;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.92em;
}
.rich pre {
    background: #1d2327;
    color: #d6dade;
    padding: 14px 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 18px;
}
.rich pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.rich hr {
    border: 0;
    border-top: 1px solid #d8dde3;
    margin: 28px 0;
}

/* ---------- Service detail ---------- */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}
.service-detail .hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
.service-detail h1 {
    font-size: 40px;
    margin-bottom: 20px;
}
.service-detail p {
    margin-bottom: 18px;
    color: #3e4a57;
    font-size: 17px;
}
.university-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    margin: 30px 0;
    background: #f6f9fc;
    border-radius: 8px;
}
.university-row img {
    max-height: 70px;
    max-width: 170px;
    object-fit: contain;
}

/* ---------- Contact ---------- */
#contact {
    background: var(--brand-navy);
    color: #fff;
}
#contact h2,
#contact h3 {
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-size: 28px;
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 26px;
}
.contact-info h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-yellow);
}
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    color: #dbe3ec;
}
.contact-item .icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--brand-yellow);
    display: inline-block;
    flex-shrink: 0;
}
.contact-form h3 {
    font-size: 28px;
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 20px;
}
.contact-form h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-yellow);
}
.contact-form p {
    color: #dbe3ec;
    margin-bottom: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 4px;
    background: #eef2f7;
    font-family: inherit;
    font-size: 15px;
    color: #334;
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
    margin-bottom: 18px;
}
.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    border: none;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 1px;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--bottom-footer);
    color: #9aa5b1;
    padding: 40px 0 30px;
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-inner .info p {
    margin-bottom: 8px;
}
.footer-icon {
    width: 14px;
    height: 14px;
    border: 2px solid var(--brand-yellow);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.footer-top-sep {
    border-top: 1px solid #12304f;
    margin-top: 30px;
    padding-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .people {
        grid-template-columns: repeat(2, 1fr);
    }
    .people.five {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 {
        font-size: 42px;
    }
}
@media (max-width: 640px) {
    nav ul {
        display: none;
    }
    .burger {
        display: block;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .people,
    .people.five {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: 30px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
