/*
Theme Name: Zahari School Theme
Theme URI: https://github.com/jimmymugo/school-site
Author: Custom Development
Author URI: 
Description: A professional, lightweight custom WordPress theme for Zahari School. Built for easy content management by non-technical staff, with full Gutenberg compatibility, custom post types, and mobile-first responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zahari-school
Tags: custom-background, threaded-comments, translation-ready, featured-images, theme-options, blog, education, school
*/

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ========================================
   Layout
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

/* ========================================
   Header & Navigation - Mirema Style
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Transparent state — front page only, before scroll */
.header-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.header-transparent .header-top-bar {
    background-color: rgba(10, 25, 70, 0.55);
}

.header-transparent .header-main {
    background-color: transparent;
    border-bottom-color: rgba(255,255,255,0.15);
}

.header-transparent .main-navigation a,
.header-transparent .site-title a {
    color: #ffffff;
}

.header-transparent .main-navigation a:hover {
    color: #fbbf24;
}

.header-transparent .logo-img {
    filter: none;
}

/* Scrolled state — solid white */
.header-scrolled {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.header-scrolled .header-top-bar {
    background-color: #1e3a8a;
}

.header-scrolled .header-main {
    background-color: #ffffff;
    border-bottom-color: #e5e7eb;
}

.header-scrolled .main-navigation a {
    color: #1e293b;
}

.header-scrolled .logo-img {
    filter: none;
}

/* Top bar */
.header-top-bar {
    background-color: #1e3a8a;
    padding: 0.35rem 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.header-top-btn {
    background-color: #fbbf24;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.header-top-btn:hover {
    background-color: #f59e0b;
    color: #1e3a8a;
    text-decoration: none;
}

/* Main header bar */
.header-main {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    min-height: 60px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo .logo-img {
    height: 48px;
    width: auto;
    max-width: 180px;
    display: block;
}

@media (min-width: 768px) {
    .site-logo .logo-img { height: 56px; max-width: 200px; }
}

@media (min-width: 1024px) {
    .site-logo .logo-img { height: 60px; max-width: 220px; }
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}

.site-title:hover {
    color: #1e3a8a;
    text-decoration: none;
}

.site-tagline {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
}

.main-navigation {
    display: none;
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        justify-content: center;
    }
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    position: relative;
    white-space: nowrap;
    display: block;
}

/* Dropdown support for sub-menus */
.main-navigation li ul {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-top: 3px solid #1e3a8a;
    border-radius: 0 0 6px 6px;
    min-width: 200px;
    z-index: 1100;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation li ul a {
    padding: 0.7rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b !important;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    background-color: #ffffff;
}

.main-navigation li ul a:hover {
    background-color: #eff6ff;
    color: #1e3a8a !important;
}

.main-navigation li ul a::after {
    display: none;
}

/* Mobile hamburger toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #1e40af;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e40af;
    transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.header-transparent .mobile-menu-toggle span {
    background-color: #ffffff;
}

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

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

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

/* ========================================
   Mobile Navigation
   ======================================== */

.mobile-navigation {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mobile-navigation.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-nav-logo img {
    height: 44px;
    width: auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover { color: #1e3a8a; }

.mobile-nav-body {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    display: block;
    padding: 0.95rem 1.25rem;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus {
    color: #1e3a8a;
    background-color: #f0f4ff;
    text-decoration: none;
}

.mobile-navigation .sub-menu {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.mobile-navigation .sub-menu a {
    padding-left: 2.25rem;
    font-size: 0.92rem;
    color: #374151;
}

/* ========================================
   Hero Section - Mirema School Style
   ======================================== */

.hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    margin-top: -1px;
}

.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Parabolic wave at base of hero section */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 70, 0.48) 0%, rgba(30, 58, 138, 0.38) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 6rem 1rem;
}

.hero-content {
    max-width: 750px;
    text-align: left;
}

/* Hero load animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fbbf24;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    animation: heroFadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    animation: heroFadeUp 0.75s ease both;
    animation-delay: 0.25s;
}

@media (min-width: 768px) {
    .hero-title { font-size: 5.5rem; }
}

@media (min-width: 1100px) {
    .hero-title { font-size: 6.5rem; }
}

.hero-description {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.95);
    max-width: 580px;
    margin: 0 0 2.5rem;
    line-height: 1.75;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    animation: heroFadeUp 0.8s ease both;
    animation-delay: 0.42s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease both;
    animation-delay: 0.6s;
}

.hero-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-btn-outline:hover {
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    border-color: #ffffff;
}

.hero-btn-solid {
    background: #fbbf24;
    color: #1e3a8a;
    border: 2px solid #fbbf24;
}

.hero-btn-solid:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e3a8a;
    text-decoration: none;
}

/* ========================================
   Page Transition Loader
   ======================================== */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#page-loader .loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: loaderSpin 1.6s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(30,58,138,0.18));
}

#page-loader .loader-ring {
    display: none;
}

@keyframes loaderSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.85; }
}

/* Legacy hero compat */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero h1 { color: #ffffff; font-size: 2rem; margin-bottom: 1rem; }
.hero p  { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.95; }

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #f59e0b;
    color: #1a1a1a;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #d97706;
    color: #1a1a1a;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Cards & Grid
   ======================================== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover,
.card-title a:focus {
    color: #1e40af;
}

.card-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* ========================================
   News & Events
   ======================================== */

.news-item,
.event-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-image,
.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content,
.event-content {
    padding: 1.5rem;
}

.news-date,
.event-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.event-date-badge {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ========================================
   Staff Profiles
   ======================================== */

.staff-card {
    text-align: center;
}

.staff-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #e5e7eb;
}

.staff-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.staff-role {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.staff-department {
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   Gallery
   ======================================== */

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

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Downloads
   ======================================== */

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease;
}

.download-item:hover {
    background-color: #f3f4f6;
}

.download-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #1e3a8a;
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.download-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #1e40af;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #6b7280;
}

.contact-form {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Footer - Kiota School Style
   ======================================== */

/* Footer Social Row */
.footer-social-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: rgba(255,255,255,0.10);
    transition: background-color 0.2s ease, transform 0.15s ease;
    width: fit-content;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.footer-social-icon span {
    line-height: 1;
}

.footer-social-icon:hover {
    background-color: rgba(255,255,255,0.20);
    color: #ffffff;
    text-decoration: none;
    transform: translateX(3px);
}

.footer-social-icon--facebook:hover  { background-color: #1877f2; }
.footer-social-icon--instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social-icon--twitter:hover   { background-color: #000000; }
.footer-social-icon--youtube:hover   { background-color: #ff0000; }
.footer-social-icon--linkedin:hover  { background-color: #0a66c2; }

/* ========================================
   Contact Page
   ======================================== */

/* Info Cards Row */
.contact-cards-section {
    padding: 3rem 0 2rem;
    background: #f9fafb;
}

.contact-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-cards-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .contact-cards-row { grid-template-columns: repeat(4, 1fr); }
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon--blue { background-color: #dbeafe; color: #1e3a8a; }
.contact-card-icon--gold { background-color: #fef9c3; color: #92400e; }

.contact-card-body h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 0 0 0.35rem;
}

.contact-card-body a,
.contact-card-body p {
    font-size: 0.92rem;
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin: 0 0 0.2rem;
    line-height: 1.4;
}

.contact-card-body a:hover { color: #1e3a8a; }

.contact-wa-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem !important;
    background-color: #dcfce7;
    color: #166534 !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
}

/* Main two-column section */
.contact-main-section {
    padding: 4rem 0;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .contact-main-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.contact-form-col h2,
.contact-info-col h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f1f4b;
    margin: 0.4rem 0 0.75rem;
}

.contact-form-intro {
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* Form fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 560px) {
    .contact-form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.contact-form-field input,
.contact-form-field textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s;
    width: 100%;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.contact-form-btn {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.contact-form-btn:hover { background-color: #1e3a8a; opacity: 0.88; }

/* Social cards grid */
.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

@media (min-width: 480px) {
    .contact-social-grid { grid-template-columns: 1fr 1fr; }
}

.contact-social-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.88rem;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    background-color: #1e3a8a;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.contact-social-card:hover {
    transform: translateY(-3px);
    opacity: 1;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.contact-social-card strong { display: block; font-weight: 700; }
.contact-social-card span   { font-size: 0.78rem; opacity: 0.8; }

.contact-social-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-social-card--facebook  { background-color: #1877f2; }
.contact-social-card--instagram { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.contact-social-card--twitter   { background-color: #14171a; }
.contact-social-card--youtube   { background-color: #ff0000; }

/* WhatsApp CTA */
.contact-whatsapp-cta {
    margin-top: 1rem;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.contact-whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: #ffffff;
    text-decoration: none;
}

/* Map section */
.contact-map-section {
    background: #f9fafb;
    padding-top: 3rem;
}

.contact-map-header {
    text-align: center;
    padding-bottom: 2rem;
}

.contact-map-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f1f4b;
    margin: 0.4rem 0 0.5rem;
}

.contact-map-header p {
    color: #6b7280;
}

.contact-map-embed {
    width: 100%;
    line-height: 0;
}

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

/* Main Footer */
.site-footer {
    background-color: #0f1f4b;
    color: #d1d5db;
}

.footer-top-wave {
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
    line-height: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.75rem;
    }
}

.footer-col-heading {
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 0.9rem;
}

.footer-col-text {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.footer-contact-link {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #fbbf24;
    text-decoration: none;
}

.footer-phone {
    font-size: 1.2rem;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #000000;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: background-color 0.2s ease;
}

.footer-whatsapp-btn:hover {
    background-color: #1ebe57;
    color: #000000;
    text-decoration: none;
}

.footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col-list li {
    margin-bottom: 0.6rem;
}

.footer-col-list a {
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col-list a:hover {
    color: #fbbf24;
    text-decoration: none;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #0a1530;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 0;
}

.footer-bottom-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-nav a {
    color: #e5e7eb;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-nav a:hover {
    color: #fbbf24;
    text-decoration: none;
}

/* ========================================
   Homepage Sections - Kiota School Style
   ======================================== */

/* Shared label */
.hp-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1e3a8a;
    background-color: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.hp-link-btn {
    display: inline-block;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hp-link-btn:hover {
    color: #1e40af;
    border-color: #1e3a8a;
    text-decoration: none;
}

/* ---- Section 1: About ---- */
.hp-about {
    padding: 5rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.hp-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 900px) {
    .hp-about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.hp-about-text p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.hp-why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.hp-why-list li {
    color: #374151;
    font-size: 0.95rem;
    padding: 0.45rem 0 0.45rem 1.5rem;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.hp-why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
}

.hp-about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-info-card {
    background-color: #f8faff;
    border-left: 4px solid #1e3a8a;
    padding: 1.25rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

.hp-info-card--gold {
    background-color: #fffbeb;
    border-left-color: #fbbf24;
}

.hp-info-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.hp-info-card--gold .hp-info-card-label {
    color: #92400e;
}

.hp-info-card p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.hp-card-btn {
    display: inline-block;
    background-color: #fbbf24;
    color: #1e3a8a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.hp-card-btn:hover {
    background-color: #f59e0b;
    color: #1e3a8a;
    text-decoration: none;
}

/* ---- Section 2: Programs ---- */
.hp-programs {
    padding: 5rem 0;
    background-color: #f0f4ff;
}

.hp-programs-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hp-programs-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0 0.75rem;
}

.hp-programs-header p {
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
}

.hp-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hp-programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-program-card {
    display: block;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.hp-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.hp-program-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hp-program-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,58,138,0.18);
    transition: background 0.2s ease;
}

.hp-program-card:hover .hp-program-img-overlay {
    background: rgba(30,58,138,0.32);
}

.hp-program-info {
    padding: 1.25rem 1.5rem;
}

.hp-program-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
}

.hp-program-info span {
    font-size: 0.82rem;
    color: #6b7280;
}

/* ---- Section 3: Student Life ---- */
.hp-student-life {
    padding: 5rem 0;
    background-color: #ffffff;
}

.hp-student-life-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hp-student-life-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-student-life-img {
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.hp-student-life-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.hp-student-life-content > p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hp-activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hp-activity-item {
    background-color: #f8faff;
    border-radius: 4px;
    padding: 1rem;
    border-top: 3px solid #1e3a8a;
}

.hp-activity-item strong {
    display: block;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.hp-activity-item span {
    color: #6b7280;
    font-size: 0.8rem;
}

/* ---- Section 4: Nurture Banner ---- */
.hp-nurture-banner {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hp-nurture-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hp-nurture-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,70,0.88) 0%, rgba(30,58,138,0.75) 100%);
}

.hp-nurture-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
}

.hp-nurture-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.hp-nurture-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.hp-nurture-btn {
    display: inline-block;
    background-color: #fbbf24;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.hp-nurture-btn:hover {
    background-color: #f59e0b;
    color: #1e3a8a;
    text-decoration: none;
}

/* ---- Section 5: News ---- */
.hp-news {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.hp-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hp-news-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0 0;
}

.hp-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .hp-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hp-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-news-card {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.hp-news-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hp-news-card-img-wrap {
    display: block;
    height: 210px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.hp-news-card-img-placeholder {
    background-color: #dbeafe;
}

.hp-news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.hp-news-card:hover .hp-news-card-img {
    transform: scale(1.04);
}

.hp-news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.hp-news-date {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.hp-news-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.hp-news-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-news-card-body h3 a:hover {
    color: #1e3a8a;
}

.hp-news-card-body p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.hp-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 1px solid #fbbf24;
    transition: color 0.2s ease;
}

.hp-read-more:hover {
    color: #1e40af;
    text-decoration: none;
}

/* ---- Section 6: Testimonials ---- */
.hp-testimonials {
    padding: 5rem 0 7rem;
    background: linear-gradient(160deg, #1e3a8a 0%, #1e40af 60%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.hp-testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hp-testimonials-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.hp-testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-testimonials .hp-section-label {
    background-color: rgba(255,255,255,0.1);
    color: #fbbf24;
}

.hp-testimonials-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 0;
}

.hp-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hp-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hp-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-testimonial-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-left: 3px solid #fbbf24;
    border-radius: 8px;
    padding: 1.75rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hp-testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.18);
}

.hp-testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hp-testimonial-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 1.5rem;
}

.hp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hp-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hp-testimonial-avatar-placeholder {
    background-color: rgba(255,255,255,0.15);
}

.hp-testimonial-author strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

.hp-testimonial-author span {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
}

/* ========================================
   Single Post/Page
   ======================================== */

.single-header {
    position: relative;
    background-color: #1e3a8a;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Parabolic wave at base of single-header banners */
.single-header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.single-header-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.single-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.single-meta {
    color: #6b7280;
    font-size: 0.95rem;
}

.single-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.single-content {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
}

.single-content h2,
.single-content h3 {
    margin-top: 2rem;
}

.single-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .sidebar {
        margin-top: 0;
    }
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
}

.sidebar-list a {
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.sidebar-list a:hover,
.sidebar-list a:focus {
    color: #1e40af;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a:focus {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .current {
    background-color: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

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

.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #e5e7eb;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h2 {
    margin-bottom: 1rem;
}

/* ========================================
   Search Results
   ======================================== */

.search-results-header {
    margin-bottom: 2rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 0;
}

.search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Accessibility
   ======================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: #1e40af;
    color: #ffffff;
    padding: 1rem;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* ========================================
   Scroll-reveal Animations (Kiota-style)
   ======================================== */

/* Base hidden state — fade + slide up */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Slide from left */
[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Slide from right */
[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Fade only */
[data-animate="fade"] {
    opacity: 0;
    transform: none;
    transition: opacity 0.7s ease;
}

/* Visible state — all types */
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered children */
[data-animate-child] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Delay utilities for sequential reveals */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* ========================================
   Footer Background Image (Kiota-style)
   ======================================== */

.site-footer {
    position: relative;
    background-color: #0a1530;
    color: #d1d5db;
}

.footer-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.08;
    pointer-events: none;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .btn,
    .pagination {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .single-content {
        max-width: 100%;
    }
}

/* ========================================
   Elementor Responsive Image Fixes
   ======================================== */

/* Ensure Elementor images are responsive by default */
.elementor img,
.elementor-widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for Elementor image containers */
.elementor-image {
    max-width: 100%;
}

/* Mobile: Images should be contained to show full picture */
@media screen and (max-width: 767px) {
    .elementor-widget-image img {
        object-fit: contain;
        width: 100%;
        height: auto;
    }
    /* Ensure image boxes don't crop faces on mobile */
    .elementor-widget-image .elementor-image-box-img img {
        object-fit: contain;
    }
}

/* Desktop: Images can cover their containers */
@media screen and (min-width: 768px) {
    .elementor-widget-image img {
        object-fit: cover;
    }
}

/* Extra small devices - ensure no overflow */
@media screen and (max-width: 480px) {
    .elementor img {
        width: 100%;
        max-width: 100%;
    }
}
