/* -------------------------------------------------------------
   ESCUELA SANTA ROSA DEL HUERTO - MAIN STYLE SHEET (VANILLA CSS)
   ------------------------------------------------------------- */

/* 1. Design System & Variables */
:root {
    /* Color Palette */
    --primary: #2B334C;          /* Slate Dark Blue (Main school identity) */
    --primary-light: #414D6D;    /* Mid-tone Slate Blue */
    --primary-dark: #1E2436;     /* Deep Shadow Slate */
    
    --secondary: #F9CA07;        /* Golden Yellow (School shield yellow) */
    --secondary-hover: #E0B506;  /* Darker Golden Yellow */
    --secondary-light: #FDF3CD;  /* Light tint for alerts/backgrounds */
    
    --accent: #098768;           /* Emerald/Forest Green (Environmental seal) */
    --accent-light: #01FB66;     /* Neon Green for highlights */
    --accent-bg: #E6F3F0;        /* Light environmental background */
    
    --daem-blue: #093960;        /* Logo DAEM blue */
    --daem-orange: #F27900;      /* Logo DAEM orange */
    
    /* Semantic Colors */
    --text-dark: #1E293B;        /* Cool Gray 900 */
    --text-medium: #475569;      /* Cool Gray 700 */
    --text-light: #94A3B8;       /* Cool Gray 400 */
    --text-white: #FFFFFF;
    
    --bg-light: #F8FAFC;         /* Cool Gray 50 */
    --bg-white: #FFFFFF;
    --bg-dark: #0F172A;          /* Cool Gray 900 for dark layouts */
    
    --border-color: #E2E8F0;     /* Cool Gray 200 */
    --border-focus: #F9CA07;
    
    --success: #10B981;
    --error: #EF4444;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(43, 51, 76, 0.08), 0 2px 4px rgba(43, 51, 76, 0.04);
    --shadow-lg: 0 16px 32px rgba(43, 51, 76, 0.12), 0 4px 8px rgba(43, 51, 76, 0.06);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s linear;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

/* 3. Common Layout & Grid System */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

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

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.mt-sm { margin-top: 15px; }
.mt-md { margin-top: 30px; }
.mt-lg { margin-top: 50px; }
.mt-xl { margin-top: 80px; }

.mb-sm { margin-bottom: 15px; }
.mb-md { margin-bottom: 30px; }
.mb-lg { margin-bottom: 50px; }

.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* 4. UI Components (Buttons, Badges, etc) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-xs {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 202, 7, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-white);
}
.btn-accent:hover {
    background-color: #076d54;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}
.btn-outline-white:hover {
    background-color: var(--text-white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 15px;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--text-white);
}

.badge-accent {
    background-color: var(--accent);
    color: var(--text-white);
}

.sub-title {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-medium);
}

.rounded-img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
}

/* 5. Micro-Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-spin {
    animation: spin 1s infinite linear;
}

/* Card 3D Hover Effect */
.card-hover-3d {
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.card-hover-3d:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 6. Top Alert Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 0.9rem;
    z-index: 1001;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 7. Header & Navigation Styles */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.main-header.scrolled h1,
.main-header.scrolled .school-name,
.main-header.scrolled .school-sub,
.main-header.scrolled .nav-link {
    color: var(--text-white);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--secondary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.school-title {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    transition: var(--transition);
}

.school-sub {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Main Navigation Link Settings */
.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-btn-contact {
    background-color: var(--secondary);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-btn-contact::after {
    display: none;
}

.nav-btn-contact:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 202, 7, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.daem-logo-header {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    background-color: white;
    padding: 4px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.main-header.scrolled .daem-logo-header {
    height: 40px;
}

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

.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.main-header.scrolled .hamburger-bar {
    background-color: var(--text-white);
}

/* 8. Hero Slider Section */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content-wrap {
    z-index: 10;
    position: relative;
}

.slide-content {
    max-width: 650px;
    color: var(--text-white);
    transform: translateY(30px);
    transition: var(--transition-slow);
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1,
.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

/* Slider Controls Styles */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary);
    width: 32px;
}

/* Curved Separator at bottom of Hero */
.hero-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 12;
}

.hero-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
    transform: rotateY(180deg);
}

.hero-separator .shape-fill {
    fill: var(--bg-white);
}

/* 9. Portal Actions (Quick Links) */
.quick-links-section {
    position: relative;
    margin-top: -60px;
    z-index: 20;
    padding-bottom: 40px;
}

.quick-grid {
    gap: 20px;
}

.quick-card {
    background-color: var(--bg-white);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quick-card:nth-child(1) { border-bottom-color: var(--primary); }
.quick-card:nth-child(2) { border-bottom-color: var(--secondary); }
.quick-card:nth-child(3) { border-bottom-color: var(--accent); }
.quick-card:nth-child(4) { border-bottom-color: var(--primary-dark); }

.quick-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.bg-primary-light { background-color: var(--primary-light); }
.bg-secondary { background-color: var(--secondary); color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-primary-dark { background-color: var(--primary-dark); }

.quick-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.quick-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.quick-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-link i {
    transition: var(--transition-fast);
}

.quick-link:hover {
    color: var(--accent);
}

.quick-link:hover i {
    transform: translateX(4px);
}

/* 10. About Us (Quiénes Somos) Section */
.about-images {
    position: relative;
    padding-bottom: 60px;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 400px;
}

.image-stack-item {
    position: absolute;
    width: 75%;
}

.image-stack-item img {
    height: 280px;
    width: 100%;
}

.image-stack-item-top {
    top: 0;
    left: 0;
    z-index: 2;
}

.image-stack-item-bottom {
    bottom: 0;
    right: 0;
    z-index: 1;
}

.stack-badge {
    position: absolute;
    bottom: 40px;
    left: 20px;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    z-index: 3;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--primary);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-info h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary-light);
    font-weight: 500;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mv-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.mv-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.mv-card:nth-child(2) {
    border-left-color: var(--accent);
}

.mv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mv-header i {
    font-size: 1.25rem;
}

.mv-header h3 {
    font-size: 1.1rem;
}

.mv-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

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

/* Stats Row styling */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--primary);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    color: var(--text-white);
    text-align: center;
    box-shadow: var(--shadow-lg);
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 11. Educational Seals (PEI) Section */
.section-header-center {
    margin-bottom: 40px;
}

.section-header-center h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.pei-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pei-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pei-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.pei-card:hover .pei-img {
    transform: scale(1.1);
}

.pei-badge {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.15rem;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.pei-content {
    padding: 30px 25px 25px;
    flex-grow: 1;
}

.pei-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.pei-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Extracurricular Workshops Container */
.workshops-box {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--accent);
}

.workshops-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.workshops-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workshops-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.workshops-list li i {
    margin-top: 4px;
}

.workshops-images img {
    height: 150px;
    width: 100%;
}

.border-accent { border: 2px solid var(--accent); }
.border-primary { border: 2px solid var(--primary); }

/* 12. Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    animation: fadeIn 0.5s ease-out;
}

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

.gallery-img-box {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(43, 51, 76, 0.9), rgba(43, 51, 76, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-tag {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gallery-overlay h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

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

.gallery-item:hover .zoom-icon {
    background-color: var(--secondary);
    color: var(--primary);
}

/* 13. News / Articles Section */
.news-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.news-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.news-content h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.read-more i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--secondary-hover);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* 14. Contact & Details Section */
.contact-form-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.form-group label .required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(249, 202, 7, 0.2);
}

.error-msg {
    color: var(--error);
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
}

/* Contact Button Custom Loading State */
.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.contact-form.submitting #formSubmitBtn .btn-text {
    display: none;
}

.contact-form.submitting #formSubmitBtn .btn-loading {
    display: inline-flex;
}

.contact-form.submitting #formSubmitBtn {
    pointer-events: none;
    opacity: 0.8;
}

/* Form Feedback */
.form-feedback {
    background-color: #E6F4EA;
    color: #137333;
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--success);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feedback-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.feedback-text h4 {
    color: #137333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feedback-text p {
    color: #137333;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Contact Details Panel styles */
.contact-details-panel {
    display: flex;
    flex-direction: column;
}

.contact-details-panel h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.detail-icon.bg-secondary { color: var(--primary); }

.detail-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.detail-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.phone-link:hover,
.email-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Vector Map Representation */
.map-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-placeholder {
    height: 220px;
    background-color: #E2E8F0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        radial-gradient(var(--primary) 1px, transparent 0),
        radial-gradient(var(--primary) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    z-index: 1;
}

.map-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.map-pin {
    font-size: 2.5rem;
    color: var(--error);
    margin-bottom: 5px;
    animation: pulse 1.5s infinite ease-in-out;
}

.map-overlay h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.map-overlay p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 12px;
}

/* 15. Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border-top: 4px solid var(--secondary);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-school-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-about h3 {
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer Site Navigation Links styling */
.footer-links h4,
.footer-daem h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-daem h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-links a:hover i {
    transform: translateX(4px);
}

/* Footer DAEM brand settings */
.daem-brand-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-daem-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    background-color: white;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.daem-brand-text h5 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 700;
}

.daem-brand-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-bottom: 0;
}

.daem-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-bottom {
    background-color: #0B101E;
    padding: 25px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 16. Lightbox Modal for Gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10002;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10002;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 500px;
}

.lightbox-tag {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* 17. Responsive Breakpoints (Mobile First overrides) */

/* Laptop & Desktop adjustments (Max widths) */
@media (max-width: 1199px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 991px) {
    .grid-4-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-3-cols { grid-template-columns: repeat(2, 1fr); }
    
    .slide-content h1, .slide-content h2 { font-size: 2.75rem; }
    
    .about-images { padding-bottom: 40px; margin-bottom: 20px; }
    .image-stack { height: 350px; }
    
    .stats-row { grid-template-columns: repeat(2, 1fr); padding: 30px 10px; }
    .stat-card:nth-child(2)::after { display: none; }
    
    .workshops-images { display: none; }
    .workshops-box { border-left-width: 4px; padding: 25px; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }
    
    .grid-2-cols { grid-template-columns: 1fr; }
    .grid-3-cols { grid-template-columns: 1fr; }
    .grid-4-cols { grid-template-columns: 1fr; }
    
    /* Navigation Bar Mobile Layout */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        padding: 40px 20px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav-link {
        color: var(--text-white);
        font-size: 1.15rem;
        display: block;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--secondary);
        padding-left: 5px;
    }
    
    .nav-btn-contact {
        display: inline-block;
        text-align: center;
        width: 100%;
    }
    
    .daem-logo-header {
        display: none;
    }
    
    /* Slider Mobile sizes */
    .slide-content h1, .slide-content h2 { font-size: 2.25rem; }
    .slide-content p { font-size: 1rem; }
    .slider-btn { width: 40px; height: 40px; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
    
    /* Forms Mobile layout */
    .form-group-row { grid-template-columns: 1fr; gap: 0; }
    
    .contact-form-card { padding: 25px; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    
    .lightbox-nav { width: 45px; height: 45px; font-size: 1.1rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .school-name { font-size: 1.1rem; }
    .school-logo { height: 44px; }
}

@media (max-width: 479px) {
    .stats-row { grid-template-columns: 1fr; gap: 30px; }
    .stat-card::after { display: none !important; }
    
    .slide-actions { flex-direction: column; gap: 10px; width: 100%; }
    .slide-actions .btn { width: 100%; }
    
    .top-bar { text-align: center; }
    .top-bar-content { flex-direction: column; align-items: center; text-align: center; }
    
    .lightbox-content { max-width: 95%; }
}

/* 18. Team Sub-section Styles */
.team-sub-section {
    margin-top: 80px;
}

.team-grid {
    gap: 20px;
}

.team-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    background-color: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.team-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.team-icon.bg-secondary {
    color: var(--primary);
}

.team-card h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 700;
}

.team-role {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

@media (max-width: 575px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

}

/* 18. Public Education Banner */
.public-edu-banner {
    background-color: var(--primary-dark);
    padding: 60px 0;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.public-edu-container {
    display: grid;
    grid-template-columns: 250px 1fr 140px;
    align-items: center;
    gap: 40px;
}

.daem-logo-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.daem-card-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.public-edu-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-overtitle {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.public-edu-center h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    line-height: 1.2;
}

.public-edu-center p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.pub-badge-wrap {
    display: flex;
    margin-top: 5px;
}

.pub-badge {
    border: 1.5px dashed var(--secondary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: inline-block;
}

.public-edu-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.school-logo-border {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 15px;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.school-logo-card {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .public-edu-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .daem-logo-card {
        margin: 0 auto;
        max-width: 260px;
    }
    
    .pub-badge-wrap {
        justify-content: center;
    }
    
    .school-logo-border {
        margin: 0 auto;
    }
}


