/* =====================================================================
 * Palace International School - Vibrant Redesign Stylesheet
 * Native CSS3 with custom properties, animated curly bubble backdrop,
 * gallery & lightbox styles. Zero external CSS frameworks.
 * ===================================================================== */

:root {
    --color-primary: #1e3a8a;       /* Royal Sapphire */
    --color-primary-light: #2563eb; /* Vibrant Cobalt */
    --color-primary-dark: #0f172a;  /* Deep Midnight */
    --color-teal: #0d9488;          /* Emerald Teal */
    --color-teal-light: #14b8a6;
    --color-accent: #f59e0b;        /* Sunburst Gold */
    --color-accent-light: #fbbf24;
    --color-accent-dark: #d97706;
    --color-coral: #e11d48;         /* Vibrant Coral Rose */
    --color-indigo: #4f46e5;        /* Rich Indigo */
    --color-text: #1e293b;
    --color-text-muted: #475569;
    --color-bg-light: #f8fafc;
    --color-bg-warm: #fffbeb;
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;
    --color-success: #059669;
    --color-danger: #dc2626;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 36px rgba(15, 23, 42, 0.12);
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg-white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-primary-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* =====================================================================
 * Animated Background Bubbles & Curly Swirl Layer
 * ===================================================================== */
.animated-bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.14;
    will-change: transform;
    animation: bubbleFloat 18s ease-in-out infinite;
}

.bg-bubble-1 {
    width: 340px;
    height: 340px;
    top: 6%;
    left: -80px;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
    animation-duration: 20s;
}

.bg-bubble-2 {
    width: 260px;
    height: 260px;
    top: 32%;
    right: -60px;
    background: radial-gradient(circle at 30% 30%, #fbbf24, #f59e0b);
    animation-duration: 16s;
    animation-delay: -4s;
}

.bg-bubble-3 {
    width: 300px;
    height: 300px;
    bottom: 18%;
    left: 10%;
    background: radial-gradient(circle at 30% 30%, #14b8a6, #0d9488);
    animation-duration: 22s;
    animation-delay: -7s;
}

.bg-bubble-4 {
    width: 220px;
    height: 220px;
    bottom: 6%;
    right: 12%;
    background: radial-gradient(circle at 30% 30%, #fb7185, #e11d48);
    animation-duration: 19s;
    animation-delay: -2s;
}

.bg-curly {
    position: absolute;
    opacity: 0.16;
    will-change: transform;
    animation: curlyDrift 24s ease-in-out infinite;
}

.bg-curly-1 {
    top: 14%;
    right: 6%;
    width: 240px;
    height: 240px;
}

.bg-curly-2 {
    top: 52%;
    left: 4%;
    width: 220px;
    height: 220px;
    animation-delay: -8s;
    animation-direction: reverse;
}

.bg-curly-3 {
    bottom: 12%;
    right: 32%;
    width: 200px;
    height: 200px;
    animation-delay: -12s;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(24px, -32px, 0) scale(1.06); }
    66% { transform: translate3d(-18px, 22px, 0) scale(0.96); }
}

@keyframes curlyDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(18px, -24px, 0) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-bubble, .bg-curly {
        animation: none !important;
    }
}

/* =====================================================================
 * Buttons
 * ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
}

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

.btn-sm { padding: 7px 15px; font-size: 0.84rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    color: #ffffff;
}

.btn-portal {
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-portal:hover {
    background: linear-gradient(135deg, #d97706, #be123c);
    color: #ffffff;
}

.btn-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #ffffff;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #ffffff;
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--color-primary-dark);
}

/* =====================================================================
 * Top Navigation Header
 * ===================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    height: 76px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
}

/* =====================================================================
 * Hero Section with Real Campus Photography & Vibrant Overlay
 * ===================================================================== */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 72px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 55%, #4f46e5 100%);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.72) 55%, rgba(13, 148, 136, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
    text-wrap: balance;
}

.hero-title .highlight-gold {
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-size: 1.12rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    max-width: 640px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-light);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 2px;
}

/* =====================================================================
 * Sections & Colorful Band Rhythm
 * ===================================================================== */
.section {
    padding: 76px 0;
    position: relative;
    z-index: 2;
}

.section-warm {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.section-sky {
    background: linear-gradient(180deg, #eff6ff 0%, #f0fdfa 100%);
}

.section-rose {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.section-kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    text-wrap: balance;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 660px;
    margin: 0 auto 44px;
}

/* Welcome Grid */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: stretch;
}

.welcome-photo-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #e2e8f0;
    min-height: 360px;
}

.welcome-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-primary);
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 18px 0 22px;
}

/* Vibrant Cards Grid */
.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.media-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.media-card-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.media-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.media-card:hover .media-card-img-wrap img {
    transform: scale(1.04);
}

.media-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta-line {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.card-accent-bar {
    height: 4px;
    width: 100%;
}

.accent-blue { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.accent-teal { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.accent-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.accent-coral { background: linear-gradient(90deg, #e11d48, #fb7185); }

/* =====================================================================
 * Campus Photo Gallery Section (Before Footer)
 * ===================================================================== */
.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.gallery-filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 45%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #ffffff;
}

.gallery-caption-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.gallery-caption-sub {
    font-size: 0.76rem;
    color: #cbd5e1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #020617;
}

.lightbox-bar {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

/* =====================================================================
 * Footer & CTA Banner
 * ===================================================================== */
.cta-banner {
    background: linear-gradient(120deg, #1e3a8a 0%, #4f46e5 50%, #0d9488 100%);
    color: #ffffff;
    padding: 64px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-text h2 {
    color: #ffffff;
    font-size: 2rem;
}

.cta-text p {
    color: #e2e8f0;
    max-width: 580px;
}

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 64px 0 28px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
    gap: 36px;
    margin-bottom: 44px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
}

/* Inner Page Header & Forms */
.page-header {
    background: linear-gradient(135deg, #1e3a8a, #0d9488);
    color: #ffffff;
    padding: 56px 0;
}

.page-title {
    color: #ffffff;
    font-size: 2.4rem;
}

.page-lead {
    color: #e2e8f0;
    max-width: 700px;
}

.breadcrumbs {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.breadcrumbs a { color: #ffffff; }

.page-content-container,
.article-layout,
.contact-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

.sidebar-widget,
.contact-card,
.form-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    display: flex;
    gap: 10px;
}
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* =====================================================================
 * Stage 5: Accessibility, Inner Pages, Blog Search, Pagination & Errors
 * ===================================================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 3000;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    left: 16px;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-portal-mobile {
    display: none;
    width: 100%;
    padding-top: 8px;
}

/* Blog Search & Pagination */
.search-bar-wrapper {
    margin-top: 24px;
    max-width: 640px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1 1 260px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-clear-btn {
    background: rgba(255, 255, 255, 0.9);
}

.search-status-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    font-size: 0.94rem;
}

.pagination-wrapper {
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    background: #ffffff;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 56px 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
}

.empty-state p {
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 8px auto 20px;
}

/* Single Article & Dynamic Page Content */
.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.article-body h2,
.article-content h2 {
    margin-top: 28px;
    font-size: 1.65rem;
}

.article-body h3,
.article-content h3 {
    margin-top: 22px;
    font-size: 1.28rem;
}

.article-body p,
.article-content p {
    margin-bottom: 16px;
    color: #334155;
    line-height: 1.75;
}

.article-body ul,
.article-body ol,
.article-content ul,
.article-content ol {
    margin: 0 0 18px 22px;
    color: #334155;
    line-height: 1.75;
}

.article-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    padding: 18px 22px;
    background: #eff6ff;
    border-left: 4px solid var(--color-primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 26px;
}

.article-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.widget-title {
    font-size: 1.12rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eff6ff;
}

.sidebar-contact-list,
.sidebar-links,
.dates-list {
    list-style: none;
    margin-bottom: 16px;
}

.sidebar-contact-list li,
.sidebar-links li,
.dates-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}

.sidebar-links a {
    font-weight: 600;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Contact Page & Forms */
.contact-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.form-subtitle {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.required {
    color: var(--color-danger);
}

.form-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    text-align: center;
}

/* Error Pages (404 / 403) */
.error-page-header {
    padding: 88px 0;
}

.error-giant-num {
    font-size: clamp(4rem, 10vw, 6.5rem);
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 10px;
}

.error-page-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.error-page-header .page-lead {
    margin: 0 auto 28px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .media-card,
    .media-card-img-wrap img,
    .gallery-item img,
    .btn,
    .whatsapp-float-btn {
        transition: none !important;
    }
}

/* =====================================================================
 * WhatsApp Floating Click to Chat Button
 * ===================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    padding: 10px 18px 10px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
}

.whatsapp-float-btn:hover {
    background: #20ba59;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.whatsapp-float-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.whatsapp-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.whatsapp-icon-wrap svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.whatsapp-label {
    letter-spacing: 0.2px;
}

@media (max-width: 640px) {
    .whatsapp-float-btn {
        bottom: 18px;
        right: 18px;
        padding: 12px;
        border-radius: 50%;
        gap: 0;
    }
    .whatsapp-label {
        display: none;
    }
}


