/* ============================================
   VK Zagreb - Main Stylesheet
   Modern, clean design for a rowing club
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --color-primary: #0f3d6e;
    --color-primary-dark: #0a2a4d;
    --color-primary-light: #e8f0f8;
    --color-primary-rgb: 15, 61, 110;
    --color-accent: #2196F3;
    --color-accent-dark: #1976D2;
    --color-gold: #c9a84c;
    --color-gold-light: #f5ecd4;

    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fc;
    --color-bg-dark: #0a1628;

    --color-text: #1a2332;
    --color-text-light: #5a6a7e;
    --color-text-muted: #8896a7;

    --color-border: #e2e8f0;
    --color-border-light: #f0f3f7;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Sizes */
    --header-height: 80px;
    --container-width: 1200px;
    --container-narrow: 800px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 60px -15px rgba(0,0,0,0.18);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* --- Section utilities --- */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-label--light {
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 20px;
    color: var(--color-text);
}


/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.site-logo .custom-logo {
    height: 48px;
    width: auto;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--transition);
}


.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
}

.scrolled .logo-text {
    color: var(--color-primary);
}

/* Nav */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.scrolled .nav-link {
    color: var(--color-text-light);
}

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

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: var(--color-gold);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
}

.header-cta:hover {
    background: #b8933f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.scrolled .mobile-toggle span {
    background: var(--color-text);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* -- Non-home pages: dark header by default -- */
body:not(.home) .site-header:not(.scrolled) .logo-icon,
body:not(.home) .site-header:not(.scrolled) .logo-text {
    color: #fff;
}
body:not(.home) .site-header:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.85);
}


/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1628;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.82) 0%, rgba(15,61,110,0.65) 50%, rgba(10,22,40,0.75) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* Hero wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 4;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}


/* ============================================
   HIGHLIGHTS
   ============================================ */

.highlights {
    padding: 80px 0 100px;
    background: var(--color-bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: -140px;
    position: relative;
    z-index: 5;
}

.highlight-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: var(--color-text);
}

.highlight-featured {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.highlight-featured:hover {
    color: #fff;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.highlight-featured .highlight-icon {
    color: var(--color-gold);
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.highlight-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
}

.highlight-featured .highlight-title {
    color: #fff;
}

.highlight-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
}

.highlight-featured .highlight-text {
    color: rgba(255,255,255,0.75);
}

.highlight-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    transition: transform var(--transition);
}

.highlight-featured .highlight-link {
    color: var(--color-gold);
}

.highlight-card:hover .highlight-link {
    transform: translateX(4px);
}


/* ============================================
   ABOUT PREVIEW
   ============================================ */

.about-preview {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* About visual */
.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid #fff;
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}


/* ============================================
   SCHOOL CTA
   ============================================ */

.school-cta {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(15,61,110,0.85) 60%, rgba(21,101,160,0.82) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    overflow: hidden;
}

.school-cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.school-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    color: #fff;
    margin-bottom: 20px;
}

.school-cta-text {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

.school-cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
}

.feature svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

.school-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================
   NEWS
   ============================================ */

.news-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

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

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

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card--large {
    grid-column: span 1;
}

.news-card--large:first-child {
    grid-column: span 2;
    grid-row: span 1;
}

.news-card--large:first-child {
    flex-direction: row;
}

.news-card--large:first-child .news-card-image {
    width: 55%;
    height: auto;
    min-height: 280px;
    flex-shrink: 0;
}

.news-card--large:first-child .news-card-body {
    padding: 32px;
    justify-content: center;
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-alt) 100%);
}

.news-card-placeholder svg {
    width: 60%;
    height: auto;
}

.news-card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.2;
    box-shadow: var(--shadow);
}

.date-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.date-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.date-year {
    display: block;
    font-size: 11px;
    opacity: 0.6;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.news-card-title a:hover {
    color: var(--color-primary);
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    flex: 1;
}

.news-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: transform var(--transition);
}

.news-card-link:hover {
    transform: translateX(4px);
}

.news-more {
    text-align: center;
    margin-top: 48px;
}


/* ============================================
   CONTACT STRIP
   ============================================ */

.contact-strip {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    padding: 48px 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.contact-strip-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-strip-text p {
    color: var(--color-text-light);
    font-size: 16px;
}

.contact-strip-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}


/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
    position: relative;
    padding: 160px 0 100px;
    background-size: cover;
    background-position: center 30%;
    text-align: center;
    overflow: hidden;
    background-color: #0a1628;
}

.page-hero--compact {
    padding: 140px 0 80px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.82) 0%, rgba(15,61,110,0.7) 60%, rgba(21,101,160,0.75) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    color: #fff;
    margin-bottom: 16px;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
    color: #fff;
}

.page-hero-breadcrumb svg {
    opacity: 0.4;
}

.page-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.page-hero-wave svg {
    width: 100%;
    height: 60px;
}

/* Post meta in hero */
.post-meta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.post-meta-hero time,
.post-meta-cat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-hero svg {
    opacity: 0.5;
}


/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    padding: 80px 0;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2 {
    font-size: 28px;
    margin: 48px 0 16px;
}

.entry-content h3 {
    font-size: 22px;
    margin: 36px 0 12px;
}

.entry-content p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.entry-content ul, .entry-content ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--color-text-light);
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 32px 0;
    box-shadow: var(--shadow);
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(33, 150, 243, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.entry-content a:hover {
    text-decoration-color: var(--color-accent);
}

.entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.entry-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
}

/* WordPress file block embed */
.wp-block-file__embed {
    display: none;
}

.wp-block-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wp-block-file__button {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition);
}

.wp-block-file__button:hover {
    background: var(--color-primary-dark);
    color: #fff;
}


/* ============================================
   SINGLE POST
   ============================================ */

.single-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-featured-image img {
    width: 100%;
    height: auto;
}

.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.single-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition);
}

.single-nav-link:hover {
    background: var(--color-primary-light);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.single-nav-link--next {
    text-align: right;
    justify-content: flex-end;
}

.single-nav-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.4;
}


/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}


/* ============================================
   404
   ============================================ */

.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--color-text-light);
    margin-bottom: 32px;
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    overflow: hidden;
}

.footer-wave {
    color: var(--color-bg);
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-inner {
    padding: 60px 0 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer headings */
.footer-heading {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

/* Footer links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Footer contact */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-gold);
}

.footer-contact a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: #fff;
}

/* Footer text */
.footer-text {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-btn {
    display: inline-flex;
    padding: 8px 20px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    margin-top: 8px;
}

.footer-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Footer bottom */
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}


/* ============================================
   ANIMATIONS
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

.page-article[data-animate] {
    opacity: 1;
    transform: none;
}

/* Hero particles */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .news-card--large:first-child {
        grid-column: span 1;
        grid-row: span 1;
        flex-direction: column;
    }

    .news-card--large:first-child .news-card-image {
        width: 100%;
        min-height: 200px;
    }

    .news-card--large:first-child .news-card-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* Mobile nav */
    .mobile-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .site-logo {
        z-index: 1001;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #0a1628;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .main-nav .nav-link {
        font-size: 22px;
        color: rgba(255,255,255,0.85) !important;
        padding: 14px 32px;
        border-radius: 8px;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-item.active .nav-link {
        color: #fff !important;
        background: rgba(255,255,255,0.1);
    }

    .header-cta {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero-scroll {
        bottom: 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Highlights */
    .highlights-grid {
        grid-template-columns: 1fr;
        margin-top: -80px;
    }

    .highlight-card {
        padding: 32px 24px;
    }

    /* About */
    .about-image-secondary {
        display: none;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat {
        flex: 1;
        min-width: 100px;
    }

    /* School CTA */
    .school-cta {
        padding: 80px 0;
    }

    .school-cta-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .school-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    /* News */
    .news-grid,
    .news-grid--archive {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 60px 0;
    }

    /* Contact strip */
    .contact-strip-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .contact-strip-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-strip-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Page hero */
    .page-hero {
        padding: 120px 0 60px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Single nav */
    .single-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .highlight-card {
        padding: 28px 20px;
    }
}


/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* Admin bar fix */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

/* Gallery */
.wp-block-gallery {
    margin: 32px 0;
}

.wp-block-gallery .wp-block-image {
    border-radius: var(--radius);
    overflow: hidden;
}

/* Caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 24px;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-light);
}
