/* ============================================================
   Bannu Book — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    --forest: #0D1B3E;
    --pine: #1A3A6E;
    --emerald: #1E4D9A;
    --sage: #2E6DD4;
    --gold: #8A9BB5;
    --gold-light: #C0CEDE;
    --gold-pale: #EEF2F8;
    --ivory: #F7F9FC;
    --stone: #f2f3f5;
    --ink: #1C1C1E;
    --muted: #6B7280;
    --border: rgba(138, 155, 181, 0.22);
    --border-strong: rgba(138, 155, 181, 0.5);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.13);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-h1: clamp(1.953rem, 1.643rem + 1.625vw, 3.052rem);
    --fs-h2: clamp(1.563rem, 1.363rem + 1.042vw, 2.441rem);
    --fs-h3: clamp(1.313rem, 1.167rem + 0.760vw, 1.953rem);
    --fs-h4: clamp(1.125rem, 1.021rem + 0.542vw, 1.563rem);
    --fs-h5: clamp(1.000rem, 0.938rem + 0.323vw, 1.250rem);
    --fs-h6: clamp(0.875rem, 0.833rem + 0.219vw, 1.000rem);
    --fs-body: clamp(0.9375rem, 0.906rem + 0.167vw, 1.063rem);
    --fs-sm: clamp(0.813rem, 0.792rem + 0.104vw, 0.875rem);
    --fs-xs: clamp(0.688rem, 0.667rem + 0.104vw, 0.800rem);
    --lh-heading: 1.2;
    --lh-subhead: 1.3;
    --lh-body: 1.6;
    --mb-h1: 0.6rem;
    --mb-h2: 0.55rem;
    --mb-h3: 0.5rem;
    --mb-h4: 0.45rem;
    --mb-h5: 0.4rem;
    --mb-h6: 0.35rem;
    --mb-body: 0.875rem;
    --prose-width: 70ch;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 60px;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-style: normal;
    color: var(--forest);
    line-height: var(--lh-heading);
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: var(--mb-h1);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--mb-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--pine);
    line-height: var(--lh-subhead);
    letter-spacing: -0.015em;
    margin-bottom: var(--mb-h3);
}

h4 {
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--pine);
    line-height: var(--lh-subhead);
    letter-spacing: -0.01em;
    margin-bottom: var(--mb-h4);
}

h5 {
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.35;
    margin-bottom: var(--mb-h5);
}

h6 {
    font-size: var(--fs-h6);
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: var(--mb-h6);
}

p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    line-height: var(--lh-body);
    margin-bottom: var(--mb-body);
    max-width: var(--prose-width);
}

p.full-width {
    max-width: none;
}

ul,
ol {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    padding-left: 1.25rem;
    line-height: var(--lh-body);
    margin-bottom: var(--mb-body);
}

li {
    margin-bottom: 0.3rem;
}

small {
    font-size: var(--fs-xs);
    color: var(--muted);
}

strong {
    color: var(--forest);
    font-weight: 600;
}

em {
    color: var(--pine);
    font-style: italic;
}

/* ============================================================
   PATTERN BACKGROUND
   ============================================================ */

.pattern-bg {
    background-color: var(--ivory);
    background-image: radial-gradient(circle at 1px 1px, rgba(138, 155, 181, 0.15) 1px, transparent 0);
    background-size: 28px 28px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    background: var(--forest);
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 155, 181, 0.28);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

header::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0;
    gap: 1rem;
    position: relative;
}

.logo-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.site-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.5rem, 1.4vw, 0.6rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

/* ============================================================
   HAMBURGER
   ============================================================ */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(138, 155, 181, 0.1);
    border: 1px solid rgba(138, 155, 181, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s var(--ease);
}

.hamburger:hover {
    background: rgba(138, 155, 181, 0.18);
    border-color: rgba(138, 155, 181, 0.45);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

nav a {
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 0 0.875rem;
    height: 34px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
    border: 1px solid transparent;
    position: relative;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: transform 0.2s var(--ease);
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav a.active {
    color: #fff;
    background: rgba(138, 155, 181, 0.2);
}

nav a.active::after {
    transform: translateX(-50%) scaleX(1);
    background: var(--gold-light);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
    position: relative;
    height: clamp(400px, 52vw, 520px);
    overflow: hidden;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(13, 27, 62, 0.88) 0%, rgba(13, 27, 62, 0.5) 55%, rgba(13, 27, 62, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
}

.slide-overlay h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.563rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: var(--lh-heading);
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.02em;
    max-width: none;
}

.slide-overlay p {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.063rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 6vw, 44px);
    height: clamp(40px, 6vw, 44px);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    font-size: clamp(0.75rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
}

.slider-btn:hover {
    background: rgba(138, 155, 181, 0.3);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: all 0.2s var(--ease);
}

.dot.active::after,
.dot:hover::after {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: scale(1.3);
}

.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--ivory));
    pointer-events: none;
    z-index: 5;
}

/* ============================================================
   MAIN
   ============================================================ */

main {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 6vw, 4rem);
    min-height: 50vh;
    width: 100%;
}

/* ============================================================
   ICON BOX
   ============================================================ */

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
    transition: all 0.22s var(--ease);
}

.icon-box svg {
    color: var(--emerald);
    width: 22px;
    height: 22px;
}

.grid-item:hover .icon-box {
    background: var(--forest);
    border-color: var(--gold);
}

.grid-item:hover .icon-box svg {
    color: var(--gold-light);
}

/* ============================================================
   CARD
   ============================================================ */

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--forest);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--stone);
    position: relative;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--sage);
    border-radius: 2px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--pine);
    line-height: var(--lh-subhead);
    letter-spacing: -0.01em;
    margin: 1.35rem 0 0.45rem;
}

.card h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.35;
    margin: 1rem 0 0.35rem;
}

.card h5 {
    font-family: var(--font-heading);
    font-size: var(--fs-h6);
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
    margin: 0.8rem 0 0.28rem;
}

.card p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    line-height: var(--lh-body);
    margin-bottom: 0.65rem;
    max-width: var(--prose-width);
}

.card ul,
.card ol {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    padding-left: 1.25rem;
    line-height: var(--lh-body);
    margin-bottom: 0.65rem;
}

/* ============================================================
   SECTION WITH IMAGE
   ============================================================ */

.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.section-with-image.reverse {
    direction: rtl;
}

.section-with-image.reverse>* {
    direction: ltr;
}

.section-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.section-with-image:hover .section-image {
    transform: scale(1.04);
}

.section-text {
    background: #fff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--sage);
}

.section-with-image.reverse .section-text {
    border-left: none;
    border-right: 3px solid var(--sage);
}

.section-text h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--forest);
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    margin-bottom: 0.7rem;
}

.section-text h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--pine);
    line-height: var(--lh-subhead);
    letter-spacing: -0.01em;
    margin: 1.1rem 0 0.4rem;
}

.section-text h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.35;
    margin: 0.9rem 0 0.32rem;
}

.section-text h5 {
    font-family: var(--font-heading);
    font-size: var(--fs-h6);
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
    margin: 0.75rem 0 0.25rem;
}

.section-text p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    line-height: var(--lh-body);
    margin-bottom: 0.55rem;
    max-width: var(--prose-width);
}

.section-text ul,
.section-text ol {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--muted);
    padding-left: 1.1rem;
    line-height: var(--lh-body);
}

/* ============================================================
   GRID
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin: 1.25rem 0;
    width: 100%;
}

.grid-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.grid-item-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.grid-item:hover .grid-item-img {
    transform: scale(1.05);
}

.grid-item-body {
    padding: 1.1rem 1rem;
}

.grid-item h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.grid-item h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-h6);
    font-weight: 500;
    color: var(--pine);
    line-height: 1.35;
    margin-bottom: 0.28rem;
}

.grid-item p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0.9rem;
    max-width: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.5625rem 1.25rem;
    background: var(--forest);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: var(--pine);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--forest);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold-pale);
}

.btn-gold {
    background: var(--sage);
    color: #fff;
    border-color: var(--sage);
}

.btn-gold:hover {
    background: var(--emerald);
    border-color: var(--emerald);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-family: var(--font-body);
    display: block;
    margin-bottom: 0.35rem;
    color: var(--forest);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid rgba(138, 155, 181, 0.38);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    font-family: var(--font-body);
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--gold-pale);
    color: var(--pine);
    border-radius: 100px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(138, 155, 181, 0.38);
}

.badge.pending {
    background: #FFF8E1;
    color: #7A5C10;
    border-color: rgba(255, 193, 7, 0.38);
}

.badge.approved {
    background: #E8F5E9;
    color: #1B5E20;
    border-color: rgba(76, 175, 80, 0.38);
}

.badge.rejected {
    background: #FFEBEE;
    color: #B71C1C;
    border-color: rgba(239, 83, 80, 0.38);
}

/* ============================================================
   FILTERS
   ============================================================ */

.filters {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select,
.filters input {
    font-family: var(--font-body);
    padding: 0.5rem 0.75rem;
    border: 1.5px solid rgba(138, 155, 181, 0.38);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--pine);
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    font-family: var(--font-body);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    border-left: 3px solid;
}

.alert-success {
    background: #F0FBF4;
    color: #1B5E20;
    border-color: #4CAF50;
}

.alert-error {
    background: #FFF0F0;
    color: #B71C1C;
    border-color: #EF5350;
}

.alert-info {
    background: #F0F7FF;
    color: #0D47A1;
    border-color: #42A5F5;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(138, 155, 181, 0.18);
    border-top-color: var(--sage);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--forest);
    color: rgba(255, 255, 255, 0.65);
    padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
    margin-top: clamp(2rem, 5vw, 4rem);
    border-top: 1px solid rgba(138, 155, 181, 0.22);
    width: 100%;
}

footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h5);
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.3;
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(138, 155, 181, 0.18);
}

.footer-section a {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: var(--fs-sm);
    transition: all 0.2s var(--ease);
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.footer-section a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-section p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: none;
}

.footer-section p i {
    margin-right: 10px;
    color: #ffd700;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: auto;
    margin-bottom: 0;
}

.social-icons a:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    min-height: auto;
    margin-bottom: 0;
}

.footer-links a:hover {
    color: #ffd700;
    padding-left: 0;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   DIRECTORY STYLES
   ============================================================ */

/* Dark header strip at top of each card */
.dc-header {
    background: var(--forest);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    height: 90px;
    position: relative;
    flex-shrink: 0;
}

/* Avatar wrapper — sits centred, half overlapping the header */
.dc-avatar-wrap {
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Round image container */
.dir-img-wrap {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    background: var(--gold-light);
    box-shadow: 0 4px 18px rgba(13, 27, 62, 0.22);
    flex-shrink: 0;
}

.dir-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Initials fallback circle */
.dir-initials {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    box-shadow: 0 4px 18px rgba(13, 27, 62, 0.22);
}

/* Card body — extra top padding to clear the overlapping avatar */
.grid-item-body {
    padding: 3.6rem 1.1rem 1.1rem;
    text-align: center;
}

.dir-title {
    font-family: var(--font-heading);
    color: var(--forest);
    font-size: var(--fs-h5);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.3rem;
}

.dir-badge {
    display: block;
    margin-bottom: 0.6rem;
}

/* Description — clamped to 2 lines by default */
.dir-desc {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.6;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

/* Expanded state */
.dir-desc.dir-desc-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* See more / see less button */
.dir-see-more {
    display: block;
    margin: 0 auto 0.65rem;
    background: none;
    border: none;
    color: var(--sage);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    padding: 0.1rem 0;
    font-family: var(--font-body);
    transition: color 0.2s;
}

.dir-see-more:hover {
    color: var(--pine);
}

/* Detail rows */
.dir-details-section {
    border-top: 1px solid var(--border);
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    text-align: left;
}

.dir-detail {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: var(--fs-xs);
    margin: 0;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.dir-detail svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--pine);
}

.dir-link {
    color: var(--pine);
    text-decoration: none;
}

.dir-link:hover {
    color: var(--sage);
    text-decoration: underline;
}

.dir-link-break {
    word-break: break-all;
}

/* ============================================================
   RESPONSIVE BANNER
   ============================================================ */

@media (max-width: 768px) {
    .responsive-banner {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .responsive-banner img {
        height: 200px !important;
    }

    .responsive-banner .overlay {
        position: relative !important;
        background: #0d1b3e !important;
        padding: 1.5rem !important;
    }
}

/* ============================================================
   TABLET  (900 px)
   ============================================================ */

@media (max-width: 900px) {

    .section-with-image,
    .section-with-image.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .section-with-image.reverse>* {
        direction: ltr;
    }

    .section-image {
        min-height: 230px;
        max-height: 300px;
        width: 100%;
    }

    .section-text {
        border-left: none !important;
        border-right: none !important;
        border-top: 3px solid var(--sage);
    }

    /* Directory: 2 columns on tablet */
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   MOBILE  (768 px)
   ============================================================ */

@media (max-width: 768px) {
    body {
        padding-top: 58px;
    }

    .hamburger {
        display: flex !important;
    }

    nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: -280px;
        bottom: 0;
        width: 260px;
        background: #0D1B3E;
        border-left: 2px solid #2E6DD4;
        z-index: 9999;
        padding: 0;
        height: 100vh;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    nav.open {
        right: 0;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    }

    nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 70px 10px 20px;
        height: auto;
    }

    nav li {
        width: 100%;
        height: auto;
    }

    nav a {
        height: auto;
        min-height: 46px;
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
        width: 100%;
        border-radius: var(--radius-sm);
        justify-content: flex-start;
        color: rgba(255, 255, 255, 0.65);
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
    }

    nav a.active {
        background: rgba(46, 109, 212, 0.22);
        color: #fff;
    }

    /* Grid: 2 columns on mobile too (cards are compact enough) */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .grid-item .btn {
        width: 100%;
    }

    .grid-item-img {
        height: 155px;
    }

    /* Directory avatar — slightly smaller on mobile */
    .dc-header {
        height: 76px;
    }

    .dir-img-wrap,
    .dir-initials {
        width: 90px;
        height: 90px;
    }

    .dc-avatar-wrap {
        bottom: -45px;
    }

    .grid-item-body {
        padding: 3.2rem 0.85rem 0.9rem;
    }

    .dir-title {
        font-size: var(--fs-h6);
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters select,
    .filters input {
        width: 100%;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .footer-section:first-child {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.4rem;
        grid-column: 1 / -1;
    }

    .footer-section:first-child h3 {
        width: 100%;
        margin-bottom: 0.4rem;
    }

    .footer-section:first-child>a {
        min-height: auto;
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 100px;
    }

    .footer-section:first-child>a:hover {
        padding-left: 0.6rem;
        background: rgba(255, 255, 255, 0.08);
        color: var(--gold-light);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        margin: 0;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
    }

    .footer-links a {
        font-size: 0.75rem;
        min-height: auto;
        padding: 0.2rem 0;
        width: auto;
        border-bottom: none;
        color: rgba(255, 255, 255, 0.75);
        margin-bottom: 0;
    }

    .footer-links span {
        display: inline;
        color: rgba(255, 255, 255, 0.3);
    }

    footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p {
        font-size: 0.813rem;
        line-height: 1.6;
    }

    .footer-section a {
        font-size: 0.813rem;
        min-height: 40px;
    }

    .social-icons {
        justify-content: flex-start;
        margin-top: 1rem;
        gap: 12px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* ============================================================
   SMALL PHONE  (480 px)
   ============================================================ */

@media (max-width: 480px) {
    body {
        padding-top: 58px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .site-subtitle {
        display: none;
    }

    /* Single column only on very small phones */
    .grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .grid-item-img {
        height: 140px;
    }

    .grid-item-body {
        padding: 0.9rem;
    }

    /* Directory avatar on small phones */
    .dc-header {
        height: 70px;
    }

    .dir-img-wrap,
    .dir-initials {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
    }

    .dc-avatar-wrap {
        bottom: -40px;
    }

    .grid-item-body {
        padding: 2.9rem 0.8rem 0.85rem;
    }

    .section-image {
        min-height: 190px;
    }

    .section-text {
        padding: 1.1rem 0.9rem;
    }

    .btn {
        font-size: var(--fs-xs);
        padding: 0.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1rem 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5625rem 0.625rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .footer-section p {
        font-size: 0.75rem;
    }

    .footer-section a {
        font-size: 0.75rem;
    }

    .footer-section p i {
        font-size: 14px;
        width: 18px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .footer-bottom p {
        font-size: 0.688rem;
    }

    .footer-links a {
        font-size: 0.688rem;
    }
}



@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;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}