:root {
    --navy: #7a1f1f;
    --navy-dark: #4c0f0f;
    --navy-light: #8c2b2b;
    --green: #c9a227;
    --green-dark: #a07f13;
    --red: #b03a2e;
    --red-dark: #8e1f1f;
    --gold: #d4af37;
    --white: #ffffff;
    --off-white: #fdf8f0;
    --cream: #fdf6e3;
    --light-blue: #f2e2dc;
    --light-pink: #fce8e8;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text: #2d2d3f;
    --text-light: #6b6b80;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Lora', Georgia, 'Times New Roman', serif;
    --font-playful: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

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

html, body {
    height: 100%;
    margin: 0;
}

html {
    font-size: 15px;
}

body {
    font-family: var(--font-playful);
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(135deg, var(--off-white) 0%, #f5f0ea 25%, #f3e9e3 50%, #f5f0ea 75%, var(--off-white) 100%);
    background-size: 400% 400%;
    animation: bgShift 55s ease infinite;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.04;
    background: rgba(0,0,0,0.02);
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.8); }
    50%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== FULL WIDTH LAYOUT ===== */
.site-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.site-wrap > footer {
    margin-top: auto;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.section-title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
    border-radius: 2px;
    margin: 0.6rem auto 0;
}

/* ===== HEADER ===== */
header {
    background: var(--navy-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: clip;
    overflow-y: visible;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--green) 0%,
        var(--green) calc(33.333% - 3px),
        var(--white) 33.333%,
        var(--red) calc(33.333% + 3px),
        var(--red) calc(66.666% - 3px),
        var(--white) 66.666%,
        transparent calc(66.666% + 3px),
        transparent 100%
    ), linear-gradient(to bottom, rgba(140,43,43,0.05) 0%, rgba(140,43,43,0.15) 50%, rgba(140,43,43,0.05) 100%);
    transform: skewX(-14deg);
    transform-origin: left center;
    width: 115%;
    left: -7.5%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 24px;
    position: relative;
    z-index: 2;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: color 0.2s;
    position: relative;
    border-radius: var(--radius-sm);
}

nav a:hover,
nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    background: var(--white);
}

nav li:nth-child(1) a::after, nav li:nth-child(4) a::after { background: var(--red); }
nav li:nth-child(2) a::after, nav li:nth-child(5) a::after { background: var(--green); }
nav li:nth-child(3) a::after, nav li:nth-child(6) a::after { background: #e8d5a3; }

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    image-rendering: auto;
    transform: translateZ(0);
}

.hero-bg-gif {
    background-image: url('../images/school-class.gif');
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122,31,31,0.45) 0%, rgba(201,162,39,0.3) 50%, rgba(176,58,46,0.2) 100%);
    z-index: 1;
}

.hero {
    animation: slideUp 0.7s ease 0.1s both;
}

.video-hero {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #000;
}

.hero-content {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 100%);
    padding: 1.75rem 2.25rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: bounceIn 0.8s ease 0.2s both;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-family: var(--font-primary);
}

.hero-content h2 .text-brand {
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
    font-weight: 500;
    line-height: 1.6;
}

.hero-content .btn {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-content .btn:hover {
    background: #fdf0ec;
    color: var(--navy);
    transform: translateY(-3px) scale(1.02);
}

/* ===== DECORATIVE WAVE DIVIDER ===== */
.section-wave {
    position: relative;
    padding-top: 2rem;
}

.section-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--green) 0%, var(--green) 16.666%,
        var(--white) 16.666%, var(--white) 33.333%,
        var(--red) 33.333%, var(--red) 50%,
        var(--green) 50%, var(--green) 66.666%,
        var(--white) 66.666%, var(--white) 83.333%,
        var(--red) 83.333%, var(--red) 100%
    );
    background-size: 120px 6px;
    opacity: 0.25;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-playful);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(122,31,31,0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* ===== FEATURES ===== */
.features {
    padding: 2.5rem 0;
    animation: slideUp 0.7s ease 0.15s both;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 860px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fdfaf3 100%);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(76,15,15,0.08);
    border: 1px solid rgba(122,31,31,0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, var(--white) 42%, var(--white) 58%, var(--green) 58%, var(--green) 100%);
    border-radius: 0 0 4px 4px;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 10px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.5;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 34px rgba(122,31,31,0.18);
    border-color: rgba(122,31,31,0.35);
}

.feature-badge {
    width: 62px;
    height: 62px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 14px rgba(122,31,31,0.3);
    transition: transform var(--transition);
}

.feature-card:hover .feature-badge {
    transform: scale(1.08) rotate(-4deg);
}

.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
    font-family: var(--font-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.35rem 1.1rem;
    border: 1.5px solid var(--green);
    border-radius: 50px;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.feature-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.feature-grid .feature-card:nth-child(1) { animation: slideUp 0.5s ease 0.15s both; }
.feature-grid .feature-card:nth-child(2) { animation: slideUp 0.5s ease 0.25s both; }
.feature-grid .feature-card:nth-child(3) { animation: slideUp 0.5s ease 0.35s both; }
.feature-grid .feature-card:nth-child(4) { animation: slideUp 0.5s ease 0.45s both; }
.feature-grid .feature-card:nth-child(5) { animation: slideUp 0.5s ease 0.55s both; }
.feature-grid .feature-card:nth-child(6) { animation: slideUp 0.5s ease 0.65s both; }
.feature-grid .feature-card:nth-child(7) { animation: slideUp 0.5s ease 0.75s both; }
.feature-grid .feature-card:nth-child(8) { animation: slideUp 0.5s ease 0.85s both; }

/* ===== ABOUT ===== */
.about {
    padding: 2.5rem 0;
    animation: slideUp 0.7s ease 0.1s both;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--gray-300) 40%, transparent 50%, var(--gray-300) 60%, transparent 100%);
}

.about:last-of-type::after {
    display: none;
}

.section-title {
    animation: slideUp 0.5s ease both;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    position: relative;
}

.about-text h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.4rem;
    background: var(--green);
    border-radius: 3px;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.about-text p {
    font-size: 0.98rem;
    color: var(--gray-700);
    margin-bottom: 0.9rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo {
    max-width: 100%;
    height: auto;
    max-height: 260px;
    border-radius: var(--radius-md);
    transition: transform var(--transition);
}

.about-logo:hover {
    transform: scale(1.03);
}

/* ===== STAFF LIST ===== */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
}

.staff-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: slideUp 0.5s ease both;
    position: relative;
    border-left: 4px solid var(--green);
}

.staff-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--navy);
}

.staff-item:nth-child(1) { animation-delay: 0.05s; }
.staff-item:nth-child(2) { animation-delay: 0.1s; }
.staff-item:nth-child(3) { animation-delay: 0.15s; }
.staff-item:nth-child(4) { animation-delay: 0.2s; }
.staff-item:nth-child(5) { animation-delay: 0.25s; }
.staff-item:nth-child(6) { animation-delay: 0.3s; }
.staff-item:nth-child(7) { animation-delay: 0.35s; }
.staff-item:nth-child(8) { animation-delay: 0.4s; }

.staff-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.staff-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2e0da, #d8b8ad);
    flex-shrink: 0;
    border: 3px solid var(--navy);
    transition: transform var(--transition);
}

.staff-item:hover .staff-photo {
    transform: scale(1.05);
}

.staff-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.staff-role {
    font-size: 0.78rem;
    color: var(--red);
    margin-bottom: 0.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--light-pink);
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
}

.staff-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Staff list classic (staff directory) */
.staff-list-classic {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.staff-list-classic .staff-entry {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    animation: slideUp 0.5s ease both;
    transition: transform var(--transition), box-shadow var(--transition);
}

.staff-list-classic .staff-entry:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.staff-list-classic .staff-entry:nth-child(1) { animation-delay: 0.02s; }
.staff-list-classic .staff-entry:nth-child(2) { animation-delay: 0.04s; }
.staff-list-classic .staff-entry:nth-child(3) { animation-delay: 0.06s; }
.staff-list-classic .staff-entry:nth-child(4) { animation-delay: 0.08s; }
.staff-list-classic .staff-entry:nth-child(5) { animation-delay: 0.1s; }
.staff-list-classic .staff-entry:nth-child(6) { animation-delay: 0.12s; }
.staff-list-classic .staff-entry:nth-child(7) { animation-delay: 0.14s; }
.staff-list-classic .staff-entry:nth-child(8) { animation-delay: 0.16s; }
.staff-list-classic .staff-entry:nth-child(9) { animation-delay: 0.18s; }
.staff-list-classic .staff-entry:nth-child(10) { animation-delay: 0.2s; }
.staff-list-classic .staff-entry:nth-child(11) { animation-delay: 0.22s; }
.staff-list-classic .staff-entry:nth-child(12) { animation-delay: 0.24s; }

.staff-list-classic .staff-entry:last-child {
    border-bottom: none;
}

.staff-list-classic .staff-entry h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.staff-list-classic .staff-entry .staff-role {
    display: inline-block;
}

.staff-list-classic .staff-entry .staff-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== FIXTURES ===== */
.fixtures {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    animation: slideUp 0.7s ease 0.15s both;
}

.fixture-group {
    margin-bottom: 2rem;
}

.fixture-sport-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 3px solid var(--navy);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: slideUp 0.5s ease both;
}

.fixture-group:nth-child(1) .fixture-sport-header { animation-delay: 0s; }
.fixture-group:nth-child(2) .fixture-sport-header { animation-delay: 0.1s; }
.fixture-group:nth-child(3) .fixture-sport-header { animation-delay: 0.2s; }
.fixture-group:nth-child(4) .fixture-sport-header { animation-delay: 0.3s; }
.fixture-group:nth-child(5) .fixture-sport-header { animation-delay: 0.4s; }
.fixture-group:nth-child(6) .fixture-sport-header { animation-delay: 0.5s; }
.fixture-group:nth-child(7) .fixture-sport-header { animation-delay: 0.6s; }
.fixture-group:nth-child(8) .fixture-sport-header { animation-delay: 0.7s; }

.sport-icon {
    display: none;
}

.fixture-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--navy);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: slideUp 0.4s ease both;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.fixture-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.fixture-opponent {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.fixture-details {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.fixture-notes {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-style: italic;
}

/* ===== NEWS ===== */
.news {
    padding: 2.5rem 0;
    animation: slideUp 0.7s ease 0.2s both;
}

#announcements {
    background: linear-gradient(180deg, var(--off-white) 0%, rgba(245,226,220,0.5) 100%);
    border-top: 4px solid var(--navy);
    border-bottom: 4px solid var(--navy);
    position: relative;
}

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

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

.news-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border-left: 4px solid var(--navy-light);
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--green);
}

.news-grid .news-card:nth-child(1) { animation: slideUp 0.5s ease 0.1s both; }
.news-grid .news-card:nth-child(2) { animation: slideUp 0.5s ease 0.2s both; }
.news-grid .news-card:nth-child(3) { animation: slideUp 0.5s ease 0.3s both; }

.news-date {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-family: var(--font-primary);
}

.news-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.announce-card {
    background: linear-gradient(135deg, #fff 0%, #fbf1ee 100%);
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: slideUp 0.5s ease both;
    position: relative;
    border: 1px solid #e2cfc8;
    box-shadow: 0 3px 12px rgba(122,31,31,0.08);
    border-left: 5px solid var(--navy);
}

.announce-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(122,31,31,0.04) 50%);
    border-radius: 0 var(--radius-lg) 0 0;
    pointer-events: none;
}

.announce-card:nth-child(2) { animation-delay: 0.1s; }
.announce-card:nth-child(3) { animation-delay: 0.2s; }

.announce-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(122,31,31,0.15);
    border-color: var(--navy-light);
    border-left-color: var(--green);
}

.announce-card .news-date {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.announce-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.announce-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy-light);
    position: relative;
    overflow: clip;
    margin-top: 5rem;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--green) 0%,
        var(--green) calc(33.333% - 3px),
        var(--white) 33.333%,
        var(--red) calc(33.333% + 3px),
        var(--red) calc(66.666% - 3px),
        var(--white) 66.666%,
        transparent calc(66.666% + 3px),
        transparent 100%
    ), linear-gradient(to top, rgba(140,43,43,0.05) 0%, rgba(140,43,43,0.15) 50%, rgba(140,43,43,0.05) 100%);
    transform: skewX(-14deg);
    transform-origin: left center;
    width: 115%;
    left: -7.5%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.footer-contact {
    padding: 3rem 0 1rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.footer-contact .section-title {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-contact .section-title::after {
    background: linear-gradient(90deg, var(--green), var(--white), var(--red));
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    position: relative;
}

.contact-item::before {
    display: none;
}

.contact-item p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    font-weight: 500;
}

.footer-content {
    text-align: center;
    padding: 1.5rem 32px 1.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    max-width: 1480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content p {
    margin: 0.15rem 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 0.6rem;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-logo:hover {
    opacity: 0.9;
    transform: scale(1.08);
}

/* ===== DOWNLOAD BUTTON ===== */
.dl-btn {
    display: inline-block;
    background: var(--navy-light);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    font-family: var(--font-playful);
}
.dl-btn:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    width: 38px;
    height: 38px;
    cursor: pointer;
    padding: 10px 8px;
    position: relative;
    z-index: 20;
    border-radius: var(--radius-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 25px; }

.hamburger.open span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
    top: 11px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
    top: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 0;
        justify-content: flex-end;
    }

    .header-content nav {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        margin-top: 0.75rem;
        position: relative;
        z-index: 10;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(140,43,43,0.97);
        border-radius: var(--radius-md);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        backdrop-filter: blur(8px);
    }

    .header-content nav.open {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 0;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav ul li + li {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    nav a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.03em;
    }

    nav a:hover,
    nav a.active {
        background: rgba(255,255,255,0.08);
    }

    nav a::after {
        display: none;
    }

    .footer-contact {
        padding: 2rem 0 0.5rem;
    }

    .footer-contact .section-title {
        margin-bottom: 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .footer-content {
        padding: 1rem 24px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 380px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .news {
        padding: 2.5rem 0;
    }

    .about-text h2::before {
        display: none;
    }

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

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

    .news-grid,
    #announcements .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .staff-list-classic {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .feature-grid,
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 320px;
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-text h2 {
        font-size: 1.3rem;
    }

    .contact-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .contact-item::before {
        margin: 0;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.6rem 1.6rem;
        font-size: 0.9rem;
    }

    .announce-card {
        padding: 1.25rem;
    }
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    display: none;
    max-width: 680px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
}

.admin-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-bar button {
    background: none;
    border: 1px solid var(--navy);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--navy);
    transition: background 0.2s;
    font-family: var(--font-playful);
}

.admin-bar button:hover {
    background: rgba(122,31,31,0.1);
}

.admin-bar .admin-close-btn {
    border-color: var(--red-dark);
    color: var(--red-dark);
}

.admin-bar .admin-close-btn:hover {
    background: rgba(200,30,30,0.1);
}

.admin-section {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.admin-section-header:hover {
    background: var(--gray-100);
}

.admin-section-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    font-family: var(--font-playful);
}

.admin-section-header .arrow {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: transform 0.25s ease;
}

.admin-section.open .admin-section-header .arrow {
    transform: rotate(90deg);
}

.admin-section-body {
    display: none;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.admin-section.open .admin-section-body {
    display: block;
    animation: fadeIn 0.2s ease;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-playful);
    font-size: 0.9rem;
    background: var(--gray-100);
    transition: border-color 0.2s, background 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--navy-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(140,43,43,0.1);
}

.admin-form input[type="file"] {
    background: var(--gray-100);
    padding: 0.5rem 0.75rem;
}

.admin-form label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.admin-form .btn {
    width: 100%;
    margin-top: 0.25rem;
}

.remove-section {
    background: var(--white);
    border-radius: var(--radius-sm);
    min-height: 2rem;
}

.remove-section h4 {
    color: var(--red-dark);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.remove-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
}

.remove-item-row:last-child {
    border-bottom: none;
}

.remove-item-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
    flex-shrink: 0;
    font-family: var(--font-playful);
    font-weight: 600;
}

.remove-item-btn:hover {
    background: var(--red-dark);
}

@media (max-width: 640px) {
    .admin-panel {
        padding: 0.75rem;
        margin: 0 0.5rem 2rem;
    }

    .admin-section-header {
        padding: 0.75rem 1rem;
    }

    .admin-section-header h3 {
        font-size: 0.85rem;
    }

    .admin-section-body {
        padding: 0.75rem 1rem 1rem;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        padding: 0.55rem 0.65rem;
        font-size: 0.85rem;
    }
}

/* ===== CONTACT PAGE EXTRA ===== */
.contact-details-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 520px;
    margin: 0 auto;
}

.contact-details-card p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-details-card p strong {
    color: var(--navy);
    min-width: 80px;
}

/* ===== HENNENMAN HOERSKOOL CUSTOM ===== */
nav ul li { position: relative; }

nav li.dropdown > a::after { content: none; }

nav li.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(201,162,39,0.14);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 50px;
    padding: 0.4rem 1.05rem;
    margin-left: 0.4rem;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

nav li.dropdown > a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition), border-color var(--transition);
}

nav li.dropdown:hover > a,
nav li.dropdown:focus-within > a {
    background: var(--green);
    border-color: var(--green);
}

nav li.dropdown:hover > a::before {
    transform: rotate(225deg) translateY(-1px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76,15,15,0.98);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    padding: 0.6rem;
    min-width: 230px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 120;
    margin-top: 0.35rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: rgba(76,15,15,0.98);
    border-left: 1px solid rgba(255,255,255,0.12);
    border-top: 1px solid rgba(255,255,255,0.12);
    transform: rotate(45deg);
}

.dropdown-menu li { width: 100%; text-align: left; }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    text-shadow: none;
    position: relative;
}

.dropdown-menu a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.dropdown-menu a:hover {
    background: rgba(201,162,39,0.16);
    color: var(--white);
}

nav li.dropdown:hover .dropdown-menu,
nav li.dropdown:focus-within .dropdown-menu {
    display: block;
    animation: dropdownIn 0.25s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

nav a::after,
nav li:nth-child(1) a::after,
nav li:nth-child(2) a::after,
nav li:nth-child(3) a::after,
nav li:nth-child(4) a::after,
nav li:nth-child(5) a::after,
nav li:nth-child(6) a::after {
    background: var(--gold);
}

nav a { font-size: 0.88rem; }

/* ===== NAV ANIMATIONS ===== */
@keyframes headerIn {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}
header {
    animation: headerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navItemIn {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}
nav > ul > li {
    opacity: 0;
    animation: navItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
nav > ul > li:nth-child(1) { animation-delay: 0.10s; }
nav > ul > li:nth-child(2) { animation-delay: 0.17s; }
nav > ul > li:nth-child(3) { animation-delay: 0.24s; }
nav > ul > li:nth-child(4) { animation-delay: 0.31s; }
nav > ul > li:nth-child(5) { animation-delay: 0.38s; }
nav > ul > li:nth-child(6) { animation-delay: 0.45s; }
nav > ul > li:nth-child(7) { animation-delay: 0.52s; }
nav > ul > li:nth-child(8) { animation-delay: 0.59s; }
nav > ul > li:nth-child(9) { animation-delay: 0.66s; }
nav > ul > li:nth-child(10) { animation-delay: 0.73s; }
nav > ul > li:nth-child(11) { animation-delay: 0.80s; }

nav > ul > li a {
    transition: color 0.25s, background 0.25s, text-shadow 0.25s;
}
nav > ul > li a:hover {
    text-shadow: 0 0 14px rgba(255, 215, 100, 0.65);
}

@media (max-width: 768px) {
    nav li.dropdown > a::before { content: none; }
    nav li.dropdown > a {
        margin-left: 0;
        border: none;
        background: none;
        border-radius: 0;
    }
    nav li.dropdown:hover > a,
    nav li.dropdown:focus-within > a {
        background: rgba(255,255,255,0.08);
    }
    .dropdown-menu {
        position: static;
        display: block;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        min-width: 0;
        margin-top: 0;
    }
    .dropdown-menu::before { content: none; }
    .dropdown-menu a { font-size: 0.92rem; padding: 0.7rem 1.5rem; }
    .header-content nav.open { max-height: 900px; }
}

/* ===== HENNENMAN HERO ===== */
.hero-hsh {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(201,162,39,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(176,58,46,0.22) 0%, transparent 55%),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #6e1f1f 100%);
    min-height: 260px;
}

.hero-hsh .hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-logo {
    height: 84px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
    animation: bounceIn 0.9s ease 0.15s both;
}

.hero h2.hero-title {
    font-size: 2rem;
    color: var(--white);
    text-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.hero .hero-motto {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-hsh .hero-content {
    background: rgba(76,15,15,0.45);
    border: 1px solid rgba(255,255,255,0.25);
}

/* ===== BANNER STRIP ===== */
.banner-strip {
    background: var(--navy);
    padding: 0.5rem 0;
    text-align: center;
}

.banner-strip a {
    display: inline-block;
}

.banner-strip img {
    max-width: 720px;
    width: 90%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform var(--transition), box-shadow var(--transition);
}

.banner-strip a:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.heyhennie-hint {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===== TABLES ===== */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

table th,
table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem;
}

table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.03em;
}

table tr:nth-child(even) td { background: var(--gray-100); }
table tr:last-child td { border-bottom: none; }

/* ===== PHOTO CARDS ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.photo-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: var(--gray-100);
}

.photo-card .photo-cap {
    padding: 0.65rem 0.9rem;
}

.photo-card .photo-cap h4 {
    font-size: 0.95rem;
    color: var(--navy);
}

.photo-card .photo-cap p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

/* ===== DOC LISTS ===== */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy);
}

.doc-card .doc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-card .doc-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 500;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

/* ===== INFO CARDS / CONTACT ===== */
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

.info-card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.info-card p, .info-card li { font-size: 0.95rem; color: var(--text-light); }
.info-card ul { padding-left: 1.2rem; }

.section-lead {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.02rem;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--red), var(--gold));
}

.map-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.staff-photo img {
    width: 64px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.about-image img.about-logo {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ===== SLIDESHOW ===== */
.slideshow {
    position: relative;
    max-width: 900px;
    margin: 1.5rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--navy-dark);
}

.slideshow-track {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slideshow-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-btn:hover {
    background: var(--green);
}

.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }

.slideshow-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 3;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition);
}

.slideshow-dot.active {
    background: var(--green);
}
