/* ===== Pakistan High Commission Abuja - Custom Styles ===== */
:root {
    --green-dark: #0B3D2E;
    --green-darker: #052015;
    --green-primary: #01411C;
    --green-accent: #0d5c3f;
    --gold: #C9A227;
    --gold-dark: #b08d1e;
    --cream: #f7f5f0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.hero-title,
.section-title,
.hc-message h3,
.explore-content h3,
.news-card-title,
.feature-card-content h3 {
    font-family: Georgia, 'Times New Roman', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-accent);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-dark);
}

.btn-light {
    background: var(--white);
    color: var(--green-dark);
}

.btn-light:hover {
    background: var(--cream);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--green-darker);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-link {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--white);
}

.top-bar-separator {
    color: rgba(255,255,255,0.3);
}

.top-bar-social {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
}

.top-bar-social:hover {
    color: var(--white);
}

.lang-selector {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

/* ===== Header ===== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-emblem {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--green-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 4px;
    /* Pages can add menu entries automatically, so a busy menu must not be able
       to push the header wider than the viewport. The nav yields space first and
       scrolls only if it genuinely cannot fit. */
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 8px 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-primary);
    background: rgba(1, 65, 28, 0.06);
}

.header-cta {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 12px;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,32,21,0.45) 0%, rgba(5,32,21,0.15) 45%, rgba(5,32,21,0) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    color: var(--white);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: var(--green-primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-date {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.hero-description {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-btn {
    font-size: 14px;
    padding: 12px 24px;
}

/* Hero Sidebar */
.hero-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-news-item:hover {
    background: var(--cream);
}

.sidebar-news-thumb {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news-text h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-date {
    font-size: 11px;
    color: var(--text-muted);
}

.view-all-news {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-primary);
    border-top: 1px solid var(--border);
    transition: color 0.2s;
}

.view-all-news:hover {
    color: var(--green-accent);
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    color: var(--text-dark);
}

.hero-arrow:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.hero-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ===== Quick Links Section ===== */
.quick-links-section {
    padding: 50px 0;
    background: var(--white);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-link-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px 34px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.quick-link-card:hover {
    border-color: var(--green-primary);
    box-shadow: 0 4px 16px rgba(1, 65, 28, 0.1);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(1, 65, 28, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--green-primary);
}

.quick-link-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.quick-link-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.quick-link-arrow {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    transition: all 0.2s;
}

.quick-link-card:hover .quick-link-arrow {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--white);
}

/* ===== About Section ===== */
.about-section {
    padding: 60px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-text {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    border-radius: 12px;
    color: var(--white);
    background: url('../img/hero-flags.png') center / cover;
}

.about-text::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(145deg, rgba(5,32,21,0.95), rgba(1,65,28,0.72));
    content: '';
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--green-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.about-text .section-label {
    color: #e4cb75;
}

.about-text .section-title {
    color: var(--white);
}

.about-text .section-description {
    color: rgba(255,255,255,0.82);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* HC Card */
.hc-card {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hc-card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,32,21,0.08) 22%, rgba(5,32,21,0.9) 100%);
    content: '';
    pointer-events: none;
}

.hc-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.hc-message {
    position: relative;
    z-index: 1;
    padding: 20px;
    padding-top: 150px;
    color: var(--white);
}

.hc-message h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.hc-message p {
    font-size: 13px;
    color: rgba(255,255,255,0.84);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
}

.hc-link {
    font-size: 13px;
    font-weight: 600;
    color: #e4cb75;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hc-link:hover {
    color: var(--white);
}

/* Explore Card */
.explore-card {
    background: var(--green-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.explore-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.explore-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,32,21,0.3), rgba(5,32,21,0.88));
    content: '';
    pointer-events: none;
}

.explore-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: var(--white);
}

.explore-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.explore-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 16px;
}

.explore-mini-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 20px 20px;
}

.explore-mini-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.explore-mini-card:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== News Section ===== */
.news-section {
    padding: 60px 0;
    background: var(--white);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.news-tabs {
    display: flex;
    gap: 4px;
}

.news-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    font-family: inherit;
}

.news-tab:hover {
    color: var(--green-primary);
}

.news-tab.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--green-accent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-card-image {
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 16px;
}

.news-card-date {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card-link:hover {
    color: var(--green-accent);
}

.news-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 40px 0;
}

/* ===== Features Section ===== */
.features-section {
    padding: 0 0 60px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.feature-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    background-size: cover;
    background-position: center;
}

.feature-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0B3D2E 0%, rgba(11,61,46,0.98) 34%, rgba(11,61,46,0.72) 62%, rgba(11,61,46,0.18) 100%);
}

.feature-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: var(--white);
    width: 100%;
}

.feature-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}

.feature-card-content .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* ===== Footer ===== */
.main-footer { position: relative; background-color: var(--footer-bg-color, #ffffff); }
.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--footer-bg-image, none);
    background-size: cover;
    background-position: center;
    opacity: var(--footer-bg-opacity, 0.18);
    pointer-events: none;
}
#site-footer-content { position: relative; z-index: 1; }

/* ===== Nav Toggle (mobile) ===== */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
}
.nav-backdrop[hidden] { display: none !important; }

.nav-cta-mobile {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

/* ===== Booking ===== */
.booking-section {
    padding: 56px 0 70px;
    background: var(--cream);
    min-height: 60vh;
}

.booking-container { max-width: 860px; }
.booking-head { margin-bottom: 28px; }

.booking-form {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.booking-form fieldset { border: none; padding: 0; margin: 0 0 26px; }

.booking-form fieldset + fieldset {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-legend {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-primary);
    margin-bottom: 16px;
    padding: 0;
}

.booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form .form-row-3 { grid-template-columns: repeat(3, 1fr); }
.booking-form .form-group { margin-bottom: 18px; }

.booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.req { color: #c0392b; }

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(1, 65, 28, 0.1);
}

.booking-form textarea { resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.booking-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.booking-actions .form-hint { margin: 0; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover { background: var(--cream); border-color: var(--text-muted); }

.error-list { margin: 6px 0 0 18px; font-weight: 400; font-size: 13px; }

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Confirmation */
.confirmation-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(1, 65, 28, 0.1);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-card .section-title { font-size: 26px; }
.confirmation-card .section-description { max-width: 520px; margin-left: auto; margin-right: auto; }
.confirmation-card .booking-actions { justify-content: center; }

.reference-box {
    background: var(--cream);
    border: 1px dashed var(--green-primary);
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
}

.reference-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.reference-value {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 22px;
    color: var(--green-dark);
    letter-spacing: 1px;
}

.helpdesk-ticket-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.helpdesk-track-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--green-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.helpdesk-track-link:hover { color: var(--green-accent); }

.helpdesk-track-form { max-width: 620px; }

.ticket-reference {
    color: var(--green-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
}

.ticket-status,
.priority-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.status-open { background: #fff3cd; color: #795b00; }
.status-in_progress { background: #dcecff; color: #15528a; }
.status-waiting_for_requester { background: #f0e8ff; color: #5b3985; }
.status-resolved { background: #d8f1df; color: #226137; }
.status-closed { background: #e8eaed; color: #4f5964; }

.ticket-thread {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.ticket-message {
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green-primary);
    border-radius: 6px;
    background: var(--white);
}

.ticket-message.from-staff { border-left-color: var(--gold); }

.ticket-message-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.ticket-message-header span,
.ticket-message-header time { color: var(--text-muted); font-size: 11px; }
.ticket-message-header time { margin-left: auto; }
.ticket-message p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.helpdesk-reply-form { margin-top: 24px; }
.helpdesk-private-link-notice { overflow-wrap: anywhere; }
.knowledge-search { display: flex; gap: 8px; margin: 20px 0; }
.knowledge-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.knowledge-categories { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 8px; }
.knowledge-categories a { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 12px; text-decoration: none; }
.knowledge-categories a.active, .knowledge-categories a:hover { border-color: var(--green-primary); color: var(--green-primary); }
.knowledge-article-list { border-top: 1px solid var(--border); }
.knowledge-article-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.knowledge-article-category { color: var(--green-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.knowledge-article-item h2 { margin: 5px 0; font-size: 18px; line-height: 1.3; }
.knowledge-article-item h2 a { color: var(--green-dark); text-decoration: none; }
.knowledge-article-item h2 a:hover { color: var(--green-primary); }
.knowledge-article-item p { margin: 0; color: var(--text-muted); font-size: 13px; }
.knowledge-article-page > .section-title { margin-top: 8px; }
.knowledge-article-content { margin: 24px 0; color: var(--text-dark); line-height: 1.8; white-space: pre-wrap; }
@media (max-width: 640px) { .knowledge-article-item { align-items: flex-start; flex-direction: column; } }

.summary-list { text-align: left; max-width: 460px; margin: 0 auto 28px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-row dt { color: var(--text-muted); margin: 0; }
.summary-row dd { margin: 0; font-weight: 600; text-align: right; }

.status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-pending   { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== CMS Pages ===== */
.page-shell {
    background: var(--white);
    padding: 0 0 70px;
    margin-top: 0;
}

.page-container { padding-top: 0; margin-top: 0; }

.page-container .page-content {
    padding-top: 0;
    margin-top: 0;
    display: flow-root;
    min-width: 0;
    overflow-x: clip;
}

.page-container .page-content > * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.page-breadcrumb a { color: var(--green-primary); }
.page-breadcrumb a:hover { text-decoration: underline; }

.page-header {
    border-bottom: 2px solid var(--green-primary);
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
}

.page-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.page-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
}

.page-content {
    text-decoration: none;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.page-content > * + * { margin-top: 1em; }

.page-content h2 { font-size: 24px; font-weight: 700; margin-top: 1.6em; color: var(--text-dark); }
.page-content h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; color: var(--text-dark); }
.page-content h4 { font-size: 16px; font-weight: 700; margin-top: 1.2em; color: var(--text-dark); }
.page-content a { color: var(--green-primary); text-decoration: none; }
.page-content a:hover { color: var(--green-accent); }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content li { margin-bottom: 0.4em; }
.page-content blockquote {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 14px 18px;
    margin: 1.2em 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.page-content blockquote p { margin: 0; }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.page-content th, .page-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.page-content th { background: var(--cream); font-weight: 700; }
.page-content code {
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.page-footer { margin-top: 40px; }

/* ===== Responsive ===== */

/* Large desktop: keep container comfortable */
@media (max-width: 1280px) {
    .main-nav { gap: 0; }
    .nav-link { padding: 8px 7px; font-size: 12.5px; }
    .header-cta { padding: 10px 12px; font-size: 11.5px; }
}

/* Below this the header + full nav no longer fit side by side */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    /* Nav becomes a slide-down panel under the header */
    .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        background: var(--white);
        padding: 10px 16px 18px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.14);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 10px;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-link:last-of-type { border-bottom: none; }
    .nav-cta-mobile { display: inline-flex; }
    .header-cta { display: none; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 900px) {
    .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 30px; }
    .hero-sidebar { width: 300px; }
    .hero-container { gap: 20px; }
    .section-title { font-size: 24px; }
}

/* Compact desktop composition used by the supplied homepage mockup. */
@media (min-width: 901px) and (max-width: 1100px) {
    .header-inner { gap: 8px; padding: 8px 0; }
    .logo-area { gap: 8px; }
    .logo-emblem { width: 40px; height: 40px; }
    .logo-title { font-size: 12px; }
    .logo-subtitle { font-size: 9px; }
    .main-nav { gap: 0; }
    .nav-link { padding: 6px 4px; font-size: 10px; }
    .header-cta { gap: 5px; padding: 8px 9px; font-size: 10px; }
    .header-cta-label { white-space: nowrap; }

    .hero-section { min-height: 405px; }
    .hero-container {
        justify-content: space-between;
        gap: 24px;
        padding: 16px 20px 16px 64px;
    }
    .hero-content { flex: 0 1 370px; max-width: 370px; }
    .hero-title { font-size: 30px; font-weight: 600; line-height: 1.12; }
    .hero-sidebar { width: 280px; height: 370px; padding: 8px 10px; border-radius: 8px; }
    .sidebar-news-list { gap: 2px; }
    .sidebar-news-item { gap: 8px; padding: 4px 0; }
    .sidebar-news-thumb { width: 104px; height: 68px; border-radius: 4px; }
    .sidebar-news-text h4 { font-size: 12px; }
    .sidebar-news-date { font-size: 10px; }
    .view-all-news { margin-top: 4px; padding: 6px; font-size: 11px; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }

    .quick-links-section { padding: 10px 0 14px; }
    .quick-links-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }
    .quick-link-card {
        padding: 12px 8px 22px;
        border: 0;
        border-radius: 0;
    }
    .quick-link-card + .quick-link-card { border-left: 1px solid var(--border); }
    .quick-link-icon { width: 46px; height: 46px; margin-bottom: 8px; }
    .quick-link-title { font-size: 12px; }
    .quick-link-desc { font-size: 10px; }
    .quick-link-arrow { width: 22px; height: 22px; right: 8px; bottom: 6px; }

    .about-section { padding: 18px 0 14px; background: var(--white); }
    .about-grid { grid-template-columns: 1fr 0.72fr 1.12fr; gap: 20px; }
    .section-title { font-size: 25px; }
    .section-description { font-size: 12px; line-height: 1.65; margin-bottom: 16px; }
    .hc-card { border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .hc-message { padding: 10px; padding-top: 120px; }
    .hc-message h3 { font-size: 15px; line-height: 1.2; }
    .hc-message p { font-size: 11px; }
    .hc-link { font-size: 11px; }
    .explore-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 4px; }
    .explore-image { position: absolute; inset: 0; height: auto; }
    .explore-content { position: relative; padding: 18px 18px 8px; }
    .explore-content h3 { font-size: 21px; }
    .explore-content p { font-size: 11px; margin-bottom: 10px; }
    .explore-mini-cards { position: relative; gap: 6px; padding: 0 12px 12px; }
    .explore-mini-card { padding: 8px 4px; font-size: 9px; border-radius: 4px; }

    .news-section { padding: 0 0 16px; }
    .news-header { margin-bottom: 12px; }
    .news-tab { padding: 8px 14px; font-size: 12px; }
    .view-all-link { font-size: 11px; }
    .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .news-card { border-radius: 4px; }
    .news-card-image { aspect-ratio: 2.3 / 1; }
    .news-card-body { padding: 10px; }
    .news-card-date { font-size: 10px; }
    .news-card-title { font-size: 12px; }
    .news-card-link { font-size: 11px; }

    .features-section { padding-bottom: 10px; }
    .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .feature-card { height: 124px; border-radius: 4px; }
    .feature-card-content { padding: 12px; }
    .feature-card-content h3 { font-size: 16px; }
    .feature-card-content p { font-size: 10px; margin-bottom: 8px; }
    .feature-card-content .btn { padding: 6px 10px; font-size: 10px; }
}

/* Small tablet / large phone landscape */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; }
    .hero-content { max-width: 100%; }
    .hero-sidebar { width: 100%; }
    .hero-arrow { display: none; }
    .hero-section { min-height: 0; }
    .hero-container { padding-top: 44px; padding-bottom: 44px; }
    .features-grid { grid-template-columns: 1fr; }

    /* Text now spans full width, so darken evenly to keep contrast */
    .hero-overlay {
        background: linear-gradient(180deg, rgba(5,32,21,0.74) 0%, rgba(5,32,21,0.64) 55%, rgba(5,32,21,0.58) 100%);
    }
    .hero-bg { background-position: 62% center; }
}

/* Phone */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Top bar: drop secondary links + socials to remove horizontal overflow */
    .top-bar-left { gap: 10px; min-width: 0; }
    .top-bar-item:nth-child(2) { display: none; }
    .top-bar-left .top-bar-item:first-child { white-space: nowrap; }
    .top-bar-right { gap: 8px; }
    .top-bar-right .top-bar-link,
    .top-bar-right .top-bar-separator,
    .top-bar-right .top-bar-social { display: none; }

    .logo-emblem { width: 38px; height: 38px; }
    .logo-title { font-size: 13px; }
    .logo-subtitle { font-size: 10px; }
    .header-inner { gap: 12px; }

    .hero-title { font-size: 26px; }
    .hero-description { font-size: 14px; margin-bottom: 18px; }
    .hero-dots { bottom: 14px; }
    .hero-sidebar { padding: 16px; }
    .sidebar-news-thumb { width: 64px; height: 50px; }

    .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-link-card { padding: 18px 12px 32px; }
    .quick-link-icon { width: 46px; height: 46px; margin-bottom: 10px; }
    .quick-link-icon svg { width: 22px; height: 22px; }
    .quick-link-title { font-size: 13px; }
    .quick-link-desc { font-size: 11px; }

    .about-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }

    /* News tabs scroll horizontally instead of wrapping/overflowing */
    .news-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .news-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .news-tabs::-webkit-scrollbar { display: none; }
    .news-tab { padding: 10px 14px; white-space: nowrap; font-size: 13px; }
    .view-all-link { align-self: flex-end; }

    .news-grid { grid-template-columns: 1fr; }
    .news-card-image { aspect-ratio: 16 / 9; }

    /* Comfortable touch targets on phones */
    .news-card-link { padding: 8px 0; font-size: 13px; }
    .hc-link { padding: 6px 0; }

    .page-shell { padding: 0 0 50px; margin-top: 0; }
    .page-title { font-size: 26px; }
    .page-excerpt { font-size: 15px; }
    .page-content { font-size: 14.5px; }
    .page-content h2 { font-size: 21px; }
    .page-content h3 { font-size: 18px; }
    .page-content table { font-size: 13px; }
    .page-content th, .page-content td { padding: 8px 10px; }
}

/* Small phone */
@media (max-width: 400px) {
    .booking-section { padding: 36px 0 48px; }
    .booking-form { padding: 18px; }
    .booking-form .form-row,
    .booking-form .form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .confirmation-card { padding: 24px 18px; }
    .reference-value { font-size: 18px; }
    .booking-actions .btn { width: 100%; justify-content: center; }
    .summary-row { font-size: 13px; }

    .quick-links-grid { grid-template-columns: 1fr; }
    .quick-link-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
    .quick-link-icon { margin: 0; flex-shrink: 0; }
    .quick-link-title { margin-bottom: 2px; }
    .quick-link-desc { margin-bottom: 0; }
    .quick-link-arrow { position: static; margin-left: auto; flex-shrink: 0; }
    .hero-title { font-size: 23px; }
    .explore-mini-cards { grid-template-columns: repeat(2, 1fr); }
    .logo-title { font-size: 12px; }
}

/* Hover-only effects should not stick on touch devices */
@media (hover: none) {
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Editable Quick Links blocks retain a compact layout on smaller screens. */
.phc-quick-links { grid-template-columns: repeat(var(--quick-columns, 6), minmax(0, 1fr)); width: 100%; }
.phc-quick-links .quick-link-card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .phc-quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .phc-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .phc-quick-links { grid-template-columns: minmax(0, 1fr); } }

.commissioner-profile { display: flex; align-items: flex-start; gap: 36px; margin: 28px 0 48px; }
.commissioner-profile > div { flex: 1; min-width: 0; }
.commissioner-portrait { width: 280px; max-width: 100%; height: auto; border-radius: 12px; }
.commissioner-label { color: var(--green, #00694e); font-weight: 600; margin-bottom: 12px; }
.commissioner-biography { white-space: pre-line; line-height: 1.8; overflow-wrap: anywhere; }
.commissioner-history { margin-bottom: 40px; }
.commissioner-table-wrap { overflow-x: auto; margin-top: 20px; }
.commissioner-table { width: 100%; border-collapse: collapse; text-align: left; }
.commissioner-table th { background: #00694e; color: white; }
.commissioner-table th, .commissioner-table td { padding: 16px 20px; border-bottom: 1px solid #d8e4df; }
.commissioner-table tbody tr:nth-child(even) { background: #f2f7f4; }
@media (max-width: 650px) { .commissioner-profile { flex-direction: column; gap: 24px; } .commissioner-portrait { width: 240px; } .commissioner-table th, .commissioner-table td { padding: 12px; } }
.commissioner-table-person { display: inline-flex; align-items: center; gap: 14px; color: #00694e; font-weight: 600; }
.commissioner-table-person:hover span:last-child { text-decoration: underline; }
.commissioner-thumbnail { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 5px; flex-shrink: 0; }
.commissioner-thumbnail-placeholder { display: grid; place-items: center; background: #e7f1ed; color: #00694e; }





/* Footer content follows the same container as the page and header. */
#site-footer-content { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
#site-footer-content .container { max-width: none; padding: 0; margin: 0; }
