/*
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: 2rem 0;
}

@media screen and (max-width: 767px) {
    .section {
        padding: 1.5rem 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.22) 0%, rgba(30, 58, 138, 0.16) 100%);
}

/* Floating decorative shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.floating-shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-shape-3 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    top: 30%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
    animation-delay: -4s;
}

.floating-shape-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation: float 9s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(1);
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.02);
    }
}

.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: 2rem 0;
}

@media screen and (max-width: 767px) {
    .contact-main-section {
        padding: 1.5rem 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;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative blob shapes */
.about-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.about-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: slowFloat 20s ease-in-out infinite;
}

.about-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation: slowFloat 25s ease-in-out infinite reverse;
}

@keyframes slowFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(15px, -15px) rotate(3deg);
    }
    66% {
        transform: translate(-10px, 10px) rotate(-2deg);
    }
}

.hp-about > .container {
    position: relative;
    z-index: 1;
}

.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: linear-gradient(180deg, #f0f4ff 0%, #e8eefd 50%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

/* Curved background band like Kiota */
.programs-curve-bg {
    position: absolute;
    top: 20%;
    left: -10%;
    right: -10%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(241,245,249,0.6) 100%);
    border-radius: 50% 50% 0 0;
    transform: rotate(-2deg);
    pointer-events: none;
    z-index: 0;
}

.floating-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.floating-dot-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.floating-dot-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 8%;
    animation: float 12s ease-in-out infinite;
    animation-delay: -3s;
}

.floating-dot-3 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    bottom: 15%;
    left: 15%;
    animation: float 10s ease-in-out infinite;
    animation-delay: -6s;
}

.hp-programs-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.hp-programs-grid {
    position: relative;
    z-index: 1;
}

.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: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    position: relative;
}

.hp-program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hp-program-card:hover::before {
    opacity: 1;
}

.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 - Redesigned ---- */
.hp-testimonials {
    padding: 6rem 0 8rem;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hp-testimonials::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hp-testimonials::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.08) 0%, transparent 70%);
    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: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.hp-testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 1rem 0 0;
    text-shadow: none;
}

.hp-testimonials-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.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: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hp-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #fbbf24;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 1;
}

.hp-testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hp-testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

.hp-testimonial-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.85;
    font-style: normal;
    margin: 0 0 1.75rem;
    font-weight: 400;
}

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

.hp-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.hp-testimonial-avatar-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 3px solid #fbbf24;
}

.hp-testimonial-author strong {
    display: block;
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 700;
}

.hp-testimonial-author span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

@media screen and (max-width: 767px) {
    .single-header {
        min-height: 240px;
        padding: 2rem 0;
        margin-bottom: 0.25rem;
    }
}

/* 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%;
}

/* ============================================
   RESPONSIVE: Decorative Background Shapes
   ============================================ */

/* Tablet and smaller - scale down decorative shapes */
@media screen and (max-width: 991px) {
    .about-shape-1 {
        width: 280px;
        height: 280px;
        top: -70px;
        left: -70px;
    }

    .about-shape-2 {
        width: 200px;
        height: 200px;
        bottom: -30px;
        right: -30px;
    }

    .floating-shape-1 {
        width: 200px;
        height: 200px;
        top: 8%;
        right: 3%;
    }

    .floating-shape-2 {
        width: 140px;
        height: 140px;
        bottom: 18%;
        left: 3%;
    }

    .floating-shape-3 {
        width: 100px;
        height: 100px;
        top: 25%;
        left: 8%;
    }

    .floating-shape-4 {
        width: 70px;
        height: 70px;
        bottom: 30%;
        right: 10%;
    }

    .floating-dot-1 {
        width: 60px;
        height: 60px;
    }

    .floating-dot-2 {
        width: 45px;
        height: 45px;
    }

    .floating-dot-3 {
        width: 30px;
        height: 30px;
    }
}

/* Mobile - further reduce shapes */
@media screen and (max-width: 767px) {
    .about-shape-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }

    .about-shape-2 {
        width: 150px;
        height: 150px;
        bottom: -20px;
        right: -20px;
    }

    .floating-shape-1 {
        width: 140px;
        height: 140px;
        top: 5%;
        right: 2%;
    }

    .floating-shape-2 {
        width: 100px;
        height: 100px;
        bottom: 15%;
        left: 2%;
    }

    .floating-shape-3 {
        width: 70px;
        height: 70px;
        top: 20%;
        left: 5%;
    }

    .floating-shape-4 {
        width: 50px;
        height: 50px;
        bottom: 25%;
        right: 8%;
    }

    /* Reduce animation movement on mobile for better performance */
    @keyframes slowFloat {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg);
        }
        33% {
            transform: translate(8px, -8px) rotate(2deg);
        }
        66% {
            transform: translate(-5px, 5px) rotate(-1deg);
        }
    }

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

    /* Simplify curved background on mobile */
    .programs-curve-bg {
        top: 10%;
        height: 80%;
        transform: rotate(-1deg);
    }
}

/* Small mobile - hide some decorations for cleaner look */
@media screen and (max-width: 480px) {
    .about-shape-1 {
        width: 150px;
        height: 150px;
        top: -40px;
        left: -40px;
    }

    .about-shape-2 {
        width: 120px;
        height: 120px;
        bottom: -15px;
        right: -15px;
    }

    .floating-shape-1 {
        width: 100px;
        height: 100px;
        top: 3%;
    }

    .floating-shape-2 {
        width: 70px;
        height: 70px;
        bottom: 12%;
    }

    .floating-shape-3,
    .floating-shape-4 {
        display: none;
    }

    .floating-dot-2,
    .floating-dot-3 {
        display: none;
    }

    .floating-dot-1 {
        width: 40px;
        height: 40px;
        top: 5%;
        left: 3%;
    }
}

/* Pause animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-shape,
    .floating-dot,
    .floating-shape {
        animation: none !important;
    }
}

/* 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%;
    }
}

/* ============================================
   GALLERY PAGE
   ============================================ */

.gallery-page {
    padding: 2rem 0 5rem;
}

/* Filter bar */
.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.gfbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gfbtn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
    background: #eff6ff;
}

.gfbtn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.gfbtn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 0.35rem;
}

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

/* Category section */
.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section-hd {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-cat-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-cat-icon svg {
    width: 28px;
    height: 28px;
}

.gallery-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.gallery-cat-desc {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Sub-section label */
.gallery-sub {
    margin-bottom: 2rem;
}

.gallery-sub-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #fbbf24;
}

/* Masonry-style responsive grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

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

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

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

/* Thumbnail button */
.gthumb {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    background-color: #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gthumb:hover,
.gthumb:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    outline: none;
    z-index: 1;
    position: relative;
}

.gthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gthumb:hover img {
    transform: scale(1.06);
}

/* Fallback hero */
.gallery-hero-fallback {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 5rem 0 3rem;
    margin-bottom: 0.5rem;
}

.gallery-hero-fallback h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 0;
}

/* ---- Lightbox ---- */
.glightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.glightbox[hidden] {
    display: none;
}

.glb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

#glb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#glb-cap {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

.glb-close,
.glb-prev,
.glb-next {
    position: fixed;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.glb-close:hover,
.glb-prev:hover,
.glb-next:hover {
    background: rgba(255,255,255,0.3);
}

.glb-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    line-height: 1;
}

.glb-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 2rem;
}

.glb-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 2rem;
}

/* Mobile lightbox */
@media screen and (max-width: 767px) {
    .glb-prev { left: 0.5rem; }
    .glb-next { right: 0.5rem; }
    .glb-close { top: 0.5rem; right: 0.5rem; }
    .gallery-cat-title { font-size: 1.2rem; }
    .gallery-cat-icon { width: 42px; height: 42px; }
    .gallery-cat-icon svg { width: 22px; height: 22px; }
}
