:root {
    --primary: #00695c;
    --primary-dark: #004d40;
    --accent: #00a896;
    --gold: #d99f2b;
    --ink: #102a43;
    --muted: #62748a;
    --surface: #ffffff;
    --soft: #eef7f5;
    --line: #dbe7e5;
    --shadow: 0 18px 45px rgba(16, 42, 67, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f8fbfb;
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.topbar {
    background: var(--primary-dark);
    color: #e8fffb;
    font-size: 0.9rem;
    padding: 0.55rem 0;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-links a {
    color: #e8fffb;
    opacity: 0.9;
}

.topbar-links a:hover {
    opacity: 1;
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(219, 231, 229, 0.8);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.05);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.navbar-brand small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}

.nav-link {
    color: #334155;
    font-weight: 650;
    padding: 0.6rem 0.75rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    color: #fff !important;
    background: var(--primary);
    border-radius: 8px;
    padding-inline: 1rem !important;
    margin-left: 0.35rem;
}

.hero,
.carousel-item {
    min-height: 650px;
}

.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 57, 50, 0.92) 0%, rgba(0, 77, 64, 0.74) 44%, rgba(0, 77, 64, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
}

.carousel-caption {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: left;
    width: 100%;
    max-width: 1140px;
    padding-right: 2rem;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    background: rgba(0, 105, 92, 0.1);
    border: 1px solid rgba(0, 105, 92, 0.14);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow {
    color: #113f38;
    background: rgba(255, 255, 255, 0.92);
}

.section-kicker.light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.carousel-caption h1 {
    max-width: 880px;
    margin: 1rem 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.85rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
}

.carousel-caption p {
    max-width: 680px;
    color: #eafffb;
    font-size: 1.18rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.btn-primary-custom,
.btn-ghost-custom,
.btn-light-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary-custom {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 28px rgba(0, 168, 150, 0.25);
}

.btn-primary-custom:hover,
.btn-light-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-ghost-custom {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
}

.btn-ghost-custom:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.btn-light-custom {
    color: var(--primary-dark);
    background: #fff;
}

.quick-strip {
    position: relative;
    z-index: 2;
    margin-top: -44px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 88px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.quick-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}

.section-padding {
    padding: 90px 0;
}

.bg-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    margin: 0.8rem 0 0.75rem;
    color: var(--primary-dark);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    font-weight: 850;
    line-height: 1.12;
}

.section-text {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
    color: #24445b;
    font-weight: 650;
}

.feature-list i {
    color: var(--accent);
    margin-right: 0.55rem;
}

.director-panel {
    position: relative;
    min-height: 510px;
}

.director-panel img {
    width: 86%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.director-card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(420px, 86%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.director-card span,
.director-card a {
    color: var(--primary);
    font-weight: 800;
}

.director-card h3,
.service-card h3,
.news-card h3,
.focus-card h3,
.event-item h3 {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
}

.director-card p,
.service-card p,
.news-card p,
.focus-card p,
.event-item p {
    color: var(--muted);
    line-height: 1.65;
}

.service-card,
.news-card,
.notice-board,
.focus-card,
.downloads-panel {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.05);
}

.service-card,
.focus-card,
.downloads-panel {
    padding: 1.6rem;
}

.service-card,
.quick-card,
.focus-card,
.downloads-panel a,
.notice-item,
.event-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.quick-card:hover,
.focus-card:hover,
.downloads-panel a:hover,
.notice-item:hover,
.event-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 105, 92, 0.34);
    box-shadow: var(--shadow);
}

.service-icon,
.focus-card i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #dff5f0;
    border-radius: 8px;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.stats-section {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 77, 64, 0.95), rgba(0, 105, 92, 0.92)),
        url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?q=80&w=1600&auto=format&fit=crop") center/cover;
    padding: 70px 0;
}

.stat-box {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-box strong {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
}

.stat-box span {
    color: #d7fffa;
    font-weight: 700;
    margin-top: 0.7rem;
}

.news-card {
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.news-body {
    padding: 1.45rem;
}

.badge-soft {
    display: inline-flex;
    color: var(--primary);
    background: #e1f7f2;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.notice-board {
    padding: 1.35rem;
}

.notice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.notice-head h2 {
    margin: 0.7rem 0 0;
    color: var(--primary-dark);
    font-weight: 850;
}

.notice-head a {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.notice-list {
    display: grid;
    gap: 0.8rem;
}

.notice-item {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    background: #fbfefd;
}

.notice-date,
.notice-item small {
    color: var(--muted);
    font-size: 0.82rem;
}

.notice-item strong {
    color: var(--ink);
    line-height: 1.35;
}

.focus-card {
    min-height: 250px;
}

.event-list,
.downloads-panel {
    display: grid;
    gap: 1rem;
}

.event-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: var(--surface);
}

.event-item time {
    width: 76px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    background: #e1f7f2;
    border-radius: 8px;
    font-weight: 800;
}

.event-item time strong {
    font-size: 1.7rem;
    line-height: 1;
}

.event-item h3,
.event-item p {
    margin: 0;
}

.downloads-panel a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    color: #24445b;
    font-weight: 750;
}

.downloads-panel a i {
    color: var(--gold);
    font-size: 1.2rem;
}

.cta-wrap {
    padding: 0 0 90px;
}

.cta-section {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 77, 64, 0.96), rgba(0, 137, 123, 0.92)),
        url("https://images.unsplash.com/photo-1584982751601-97dcc096659c?q=80&w=1600&auto=format&fit=crop") center/cover;
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4.8rem);
    box-shadow: var(--shadow);
}

.cta-section h2 {
    max-width: 860px;
    margin: 0.9rem 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 850;
    line-height: 1.1;
}

.cta-section p {
    max-width: 760px;
    margin: 0;
    color: #dbfffb;
    font-size: 1.08rem;
}

footer {
    color: #cfdbd9;
    background: #061b18;
    padding-top: 70px;
}

footer h3,
footer h4 {
    color: #fff;
    font-weight: 850;
    margin-bottom: 1rem;
}

footer p,
footer li,
footer a {
    color: #cfdbd9;
}

footer ul {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.3rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.contact-list li {
    display: flex;
    gap: 0.7rem;
}

.contact-list i {
    color: var(--accent);
    margin-top: 0.18rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 50px;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.back-to-top.is-visible {
    display: inline-flex;
}

.page-hero {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 57, 50, 0.94), rgba(0, 105, 92, 0.78)),
        url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=1600&auto=format&fit=crop") center/cover;
    padding: 96px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 1rem 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 850;
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    color: #e6fffb;
    font-size: 1.12rem;
    line-height: 1.7;
    margin: 0;
}

.breadcrumb-light {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #d7fffa;
    font-weight: 750;
}

.breadcrumb-light a {
    color: #ffffff;
}

.content-card,
.link-card,
.profile-card,
.detail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.05);
}

.content-card,
.detail-card {
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.content-card h2,
.detail-card h2 {
    color: var(--primary-dark);
    font-weight: 850;
    margin-bottom: 1rem;
}

.content-card p,
.detail-card p,
.content-card li,
.detail-card li {
    color: var(--muted);
    line-height: 1.75;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 150px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 105, 92, 0.34);
    box-shadow: var(--shadow);
}

.link-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: #dff5f0;
    border-radius: 8px;
}

.link-card h3 {
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 850;
    margin-bottom: 0.45rem;
}

.link-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table th {
    color: var(--primary-dark);
    background: #e1f7f2;
    font-weight: 850;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.profile-card {
    overflow: hidden;
}

.profile-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.profile-card div {
    padding: 1.25rem;
}

.profile-card h3 {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 850;
}

.profile-card p {
    color: var(--muted);
    margin: 0;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: 8px;
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 92, 0.12);
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-cta {
        display: inline-flex;
        margin: 0.5rem 0 0;
    }

    .hero,
    .carousel-item {
        min-height: 590px;
    }

    .carousel-item img {
        height: 590px;
    }

    .carousel-caption {
        padding-inline: 1.2rem;
    }

    .quick-strip {
        margin-top: 1rem;
    }

    .director-panel {
        min-height: auto;
    }

    .director-panel img {
        width: 100%;
        height: 360px;
    }

    .director-card {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .topbar,
    .topbar-links {
        text-align: center;
        justify-content: center;
    }

    .navbar-brand small {
        max-width: 180px;
    }

    .hero,
    .carousel-item {
        min-height: 560px;
    }

    .carousel-item img {
        height: 560px;
    }

    .carousel-caption h1 {
        font-size: 2.15rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 64px 0;
    }

    .quick-card {
        min-height: 72px;
    }

    .event-item {
        grid-template-columns: 64px 1fr;
    }

    .event-item time {
        width: 64px;
        min-height: 64px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .page-hero {
        padding: 70px 0;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}
