:root {
    --primary: #0f4c81;
    --primary-dark: #08375d;
    --accent: #c8a35b;
    --accent-dark: #a9863f;
    --dark: #16232e;
    --muted: #5c6b78;
    --light: #f4f7fa;
    --border: #e2e8f0;
    --white: #ffffff;
    --success: #1f8a52;
    --danger: #c23b3b;
    --shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Trebuchet MS", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    line-height: 1.65;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------------- Top bar ---------------- */
.topbar {
    background: var(--primary-dark);
    color: #dbe7f1;
    font-size: 13.5px;
}
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px; padding: 8px 0;
}
.topbar a { color: #dbe7f1; }
.topbar a:hover { color: #fff; }
.topbar .info span { margin-right: 18px; display: inline-block; }

/* ---------------- Header / Nav ---------------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 50;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
    width: 78px; height: 78px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 24px;
    border: 3px solid var(--accent);
    overflow: hidden;
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand h1 { font-size: 23px; color: var(--primary); line-height: 1.15; }
.brand span { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav a {
    color: var(--dark); font-weight: 600; font-size: 15px;
    padding: 10px 14px; border-radius: 8px; display: block;
}
.main-nav .nav-dd-toggle {
    color: var(--dark); font-weight: 600; font-size: 15px;
    padding: 10px 14px; border-radius: 8px; display: block;
    border: 0; background: transparent; cursor: pointer; font-family: inherit;
}
.main-nav a:hover, .main-nav a.active { background: var(--light); color: var(--primary); }
.main-nav .nav-dd-toggle:hover,
.main-nav .nav-dd.active .nav-dd-toggle { background: var(--light); color: var(--primary); }
.nav-cta {
    background: var(--accent) !important; color: #1a1a1a !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--primary); }

.nav-dd { position: relative; }
.nav-dd > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    padding: 8px;
    list-style: none;
    display: none;
    z-index: 60;
}
.nav-dd:hover > .dropdown-menu,
.nav-dd:focus-within > .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.hero-carousel-wrap .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 4px;
}
.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next {
    width: 8%;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: linear-gradient(rgba(8,55,93,.86), rgba(8,55,93,.9)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff; padding: 110px 0 120px;
}
.hero h2 { font-size: clamp(28px, 4.5vw, 46px); line-height: 1.15; margin-bottom: 16px; max-width: 780px; }
.hero p { font-size: clamp(16px, 2vw, 20px); max-width: 640px; color: #dbe7f1; margin-bottom: 28px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .badge {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px; border-radius: 30px; font-size: 13.5px; backdrop-filter: blur(4px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 700;
    cursor: pointer; border: none; font-size: 15px; transition: transform .15s, box-shadow .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--accent-dark); color: #1a1a1a; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color:#fff; }
.btn-ghost { background: var(--light); color: var(--primary); }

/* ---------------- Sections ---------------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .eyebrow {
    color: var(--accent-dark); font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; font-size: 13px;
}
.section-head h3 { font-size: clamp(24px, 3.5vw, 34px); color: var(--primary); margin: 8px 0 12px; }
.section-head p { color: var(--muted); }

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

/* Notice board / marquee */
.notice-strip { background: var(--accent); color: #1a1a1a; }
.notice-strip .container { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.notice-strip .tag {
    background: var(--primary); color: #fff; padding: 5px 14px; border-radius: 6px;
    font-weight: 700; font-size: 13px; white-space: nowrap; text-transform: uppercase;
}
.notice-strip .ticker { overflow: hidden; flex: 1; }
.notice-strip .ticker ul {
    display: flex; gap: 50px; list-style: none; white-space: nowrap;
    animation: ticker 28s linear infinite;
}
.notice-strip .ticker a { color: #1a1a1a; font-weight: 600; font-size: 14.5px; }
@keyframes ticker { from { transform: translateX(20%);} to { transform: translateX(-100%);} }

/* Notice board columns */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

.notice-board { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-board .head {
    background: var(--primary); color: #fff; padding: 16px 22px;
    display: flex; justify-content: space-between; align-items: center;
}
.notice-board .head h4 { font-size: 18px; }
.notice-board .head a { color: var(--accent); font-size: 13px; font-weight: 700; }
.notice-list { list-style: none; max-height: 420px; overflow: auto; }
.notice-list li { border-bottom: 1px dashed var(--border); }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { display: flex; gap: 14px; padding: 14px 22px; align-items: flex-start; }
.notice-list a:hover { background: var(--light); }
.notice-list .date {
    background: var(--light); border: 1px solid var(--border); border-radius: 8px;
    text-align: center; min-width: 52px; padding: 6px 4px; line-height: 1.1;
}
.notice-list .date b { display: block; font-size: 18px; color: var(--primary); }
.notice-list .date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.notice-list .txt strong { display: block; font-size: 14.5px; color: var(--dark); }
.chip {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 2px 10px; border-radius: 20px; margin-top: 5px; letter-spacing: .5px;
}
.chip-notice { background: #e3f0fb; color: #0f4c81; }
.chip-circular { background: #fdf0e0; color: #a9631f; }
.chip-order { background: #fde3e3; color: #b12b2b; }
.chip-tender { background: #e6f6ec; color: #1f8a52; }
.chip-news { background: #efe6fb; color: #6b3fb1; }

.new-badge { background: var(--danger); color:#fff; font-size:10px; padding:1px 6px; border-radius:4px; margin-left:6px; vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* Quick links panel */
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h4 { color: var(--primary); margin-bottom: 16px; font-size: 18px; }
.quick-links { list-style: none; }
.quick-links li a {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px;
    color: var(--dark); font-weight: 600; border: 1px solid var(--border); margin-bottom: 8px;
}
.quick-links li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,76,129,.14); }
.card .icon {
    width: 58px; height: 58px; border-radius: 12px; background: var(--light);
    display: grid; place-items: center; margin: 22px 22px 0; font-size: 26px;
}
.card .body { padding: 22px; flex: 1; }
.card h4 { color: var(--primary); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.card .meta span { background: var(--light); border-radius: 6px; padding: 4px 10px; font-size: 12.5px; color: var(--primary); font-weight: 600; }
.card .foot { padding: 0 22px 22px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat { text-align: center; background: var(--white); border-radius: var(--radius); padding: 30px 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat b { display: block; font-size: 40px; color: var(--accent-dark); }
.stat span { color: var(--muted); font-weight: 600; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-split .prose p { margin-bottom: 14px; color: #3b4a57; }
.tick-list { list-style: none; margin-top: 10px; }
.tick-list li { padding: 6px 0 6px 30px; position: relative; color: #3b4a57; }
.tick-list li::before { content: "✔"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

/* Page banner */
.page-banner {
    background: linear-gradient(rgba(8,55,93,.85), rgba(8,55,93,.9)),
                url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff; padding: 60px 0; text-align: center;
}
.page-banner h2 { font-size: clamp(26px, 4vw, 40px); }
.breadcrumb { margin-top: 8px; color: #cfe0ee; font-size: 14px; }
.breadcrumb a { color: var(--accent); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead { background: var(--primary); color: #fff; }
table.data tbody tr:hover { background: var(--light); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-grid a { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-placeholder { background: linear-gradient(135deg, var(--primary), var(--accent)); aspect-ratio: 4/3; border-radius: 12px; display:grid; place-items:center; color:#fff; font-weight:700; }

/* Forms (public) */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 15px; font-family: inherit; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,.12); }
textarea.form-control { min-height: 130px; resize: vertical; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #e6f6ec; color: #14663c; border: 1px solid #b6e3c7; }
.alert-error { background: #fde3e3; color: #8f2020; border: 1px solid #f2b8b8; }

.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list .ico { font-size: 22px; color: var(--primary); }
.info-list b { display:block; }
.info-list span { color: var(--muted); font-size: 14.5px; }

/* Footer */
.site-footer { background: var(--dark); color: #b9c6d1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h5 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b9c6d1; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-f { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .brand-f .logo { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color:#fff; display:grid; place-items:center; font-weight:800; border: 2px solid var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding: 18px 0; text-align: center; font-size: 13.5px; }
.socials a { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.08); margin-right: 8px; color:#fff; }
.socials a:hover { background: var(--accent); color:#1a1a1a; }

/* Utilities */
.text-center { text-align:center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.prose { white-space: pre-line; }

/* Pagination */
.pagination { display:flex; gap:6px; list-style:none; justify-content:center; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border:1px solid var(--border); border-radius:8px; color: var(--primary); background:#fff; }
.pagination .active span { background: var(--primary); color:#fff; border-color: var(--primary); }

/* Responsive */
@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
    .two-col, .about-split { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background:#fff;
        box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none; padding: 10px;
        max-height: calc(100vh - 110px); overflow-y: auto;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .nav-dd > .dropdown-menu { position: static; min-width: 100%; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
    .nav-dd.open > .dropdown-menu { display: block; }
    .dropdown-menu li a { padding: 8px 10px; }
    .nav-toggle { display: block; }
    .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .topbar .info span { margin-right: 10px; }
}
