/*
Theme Name: My Custom Template
Theme URI: http://example.com/
Author: Antigravity
Author URI: http://example.com/
Description: A premium school landing page theme inspired by Everest International.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-template
*/

/* ============================================
   DESIGN TOKENS & VARIABLES
   ============================================ */
:root {
    --primary: #c0392b;
    --primary-dark: #96281b;
    --primary-light: #e74c3c;
    --accent: #f39c12;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --navy: #0f3460;
    --light: #f8f9fa;
    --light-2: #eef2f7;
    --gray: #6c757d;
    --gray-light: #dee2e6;
    --white: #ffffff;
    --text: #2d3748;
    --text-muted: #718096;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animate-up {
    animation: fadeInUp 0.7s ease-out both;
}

.animate-left {
    animation: fadeInLeft 0.7s ease-out both;
}

.animate-right {
    animation: fadeInRight 0.7s ease-out both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* ============================================
   SITE HEADER / NAVBAR
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.header-top-bar {
    background: var(--primary);
    padding: 0.35rem 8%;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.top-bar-links {
    display: flex;
    gap: 1rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    transition: var(--transition);
}

.top-bar-links a:hover {
    color: white;
}

.header-main {
    padding: 0.75rem 8%;
    width: 100%;
    box-sizing: border-box;
}

.header-main .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
    overflow: hidden;
    /* Ensure image doesn't bleed out of rounded corners */
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Or contain, depending on branding preference */
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-outline-dark:hover {
    background: var(--light-2);
    border-color: var(--gray);
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    box-shadow: var(--shadow-lg);
}

.btn-white-red {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white-red:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
}

.btn-accent:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ============================================
   HERO IMAGE SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 580px;
    overflow: hidden;
    background: var(--dark);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.9s;
    z-index: 0;
}

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

.slide.leaving {
    opacity: 0;
    visibility: visible;
    z-index: 2;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide Background */
.slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide-bg svg,
.slide-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Per-slide gradient overlays */
.slide-overlay {
    position: absolute;
    inset: 0;
}

.slide-overlay-1 {
    background: linear-gradient(105deg,
            rgba(10, 22, 40, 0.88) 0%,
            rgba(26, 58, 110, 0.65) 55%,
            rgba(10, 22, 40, 0.3) 100%);
}

.slide-overlay-2 {
    background: linear-gradient(105deg,
            rgba(15, 52, 96, 0.90) 0%,
            rgba(26, 107, 138, 0.60) 55%,
            rgba(15, 52, 96, 0.25) 100%);
}

.slide-overlay-3 {
    background: linear-gradient(105deg,
            rgba(45, 27, 0, 0.92) 0%,
            rgba(139, 58, 0, 0.65) 55%,
            rgba(45, 27, 0, 0.3) 100%);
}

.slide-overlay-4 {
    background: linear-gradient(105deg,
            rgba(26, 10, 46, 0.92) 0%,
            rgba(74, 10, 30, 0.65) 55%,
            rgba(26, 10, 46, 0.3) 100%);
}

/* Slide Content */
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8% 4rem;
    max-width: 900px;
    z-index: 2;
}

.slide.active .slide-content>* {
    animation: fadeInUp 0.7s ease-out both;
}

.slide.active .slide-badge {
    animation-delay: 0.1s;
}

.slide.active .slide-title {
    animation-delay: 0.2s;
}

.slide.active .slide-desc {
    animation-delay: 0.3s;
}

.slide.active .slide-actions {
    animation-delay: 0.4s;
}

.slide.active .slide-stats {
    animation-delay: 0.5s;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(192, 57, 43, 0.22);
    border: 1px solid rgba(192, 57, 43, 0.45);
    color: #ff9a8a;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.slide-highlight {
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.slide-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.slide-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Slide Stats */
.slide-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
}

.slide-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.slide-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.slide-stat-num em {
    font-style: normal;
    color: var(--primary-light);
    font-size: 1.4rem;
}

.slide-stat-lbl {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

/* Prev / Next Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 1.5rem;
}

.slider-next {
    right: 1.5rem;
}

/* Dot Navigation */
.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: white;
    border-color: white;
    width: 28px;
    border-radius: 5px;
}

.slider-dot:hover:not(.active) {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 2px 2px 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   WELCOME SECTION - 3 COLUMN LAYOUT
   ============================================ */
.welcome-section {
    padding: 4rem 0;
    background: white;
}

.welcome-grid-3col {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Column 1: Principal */

.principal-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.principal-img {
    height: 220px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.principal-img-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(192, 57, 43, 0.3), transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(243, 156, 18, 0.2), transparent 50%);
}

.principal-svg {
    width: 160px;
    height: 200px;
    position: relative;
    z-index: 1;
}

.principal-info {
    padding: 1.25rem;
    text-align: center;
}

.principal-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.principal-role {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Column 2: Welcome content */
.col-welcome {
    padding: 0.5rem 0;
}

.welcome-greeting {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.welcome-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.welcome-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more-link:hover {
    gap: 0.75rem;
}

/* Column 3: Sidebar */
.col-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Events sidebar */
.events-sidebar {
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: white;
}

.events-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.events-sidebar-header h3 {
    font-size: 0.95rem;
    color: white;
}

.view-all-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.view-all-link:hover {
    color: white;
}

.event-card {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 0.6rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.event-card:last-of-type {
    margin-bottom: 0;
}

.event-date {
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.5rem;
    text-align: center;
    min-width: 42px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.event-date .mon {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.event-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-holiday {
    background: rgba(231, 76, 60, 0.25);
    color: #ff8a7a;
}

.tag-cultural {
    background: rgba(243, 156, 18, 0.25);
    color: #fbbf24;
}

.tag-sports {
    background: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.tag-academic {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.event-detail-link {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    transition: var(--transition);
}

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

.calendar-btn {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.calendar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Parent Resources Box */
.parent-resources-box {
    background: var(--light-2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.sidebar-box-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.parent-resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parent-resource-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: white;
}

.parent-resource-item:hover {
    background: white;
    color: var(--primary);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.res-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.res-red {
    background: rgba(192, 57, 43, 0.12);
}

.res-blue {
    background: rgba(15, 52, 96, 0.12);
}

.res-green {
    background: rgba(39, 174, 96, 0.12);
}

.res-orange {
    background: rgba(243, 156, 18, 0.12);
}

/* Admissions Sidebar Box */
.admissions-sidebar-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: white;
}

.admissions-sidebar-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.admissions-sidebar-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ============================================
   NEWS SECTION - 2 COLUMN + SIDEBAR
   ============================================ */
.news-section {
    padding: 4rem 0;
    background: var(--light-2);
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}


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

.news-header-left .section-label {
    margin-bottom: 0.4rem;
}

.news-header-left .section-title {
    margin-bottom: 0;
    font-size: 1.8rem;
}

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

.news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
    border: 1px solid var(--gray-light);
}

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

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

.news-img-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.news-img img,
.news-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-img-bg.bg-cultural {
    background: linear-gradient(135deg, #1a1a2e, #c0392b);
}

.news-img-bg.bg-academic {
    background: linear-gradient(135deg, #0f3460, #1a6b8a);
}

.news-img-bg.bg-sports {
    background: linear-gradient(135deg, #1a5276, #27ae60);
}

.news-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-cultural {
    background: rgba(192, 57, 43, 0.85);
    color: white;
}

.badge-academic {
    background: rgba(15, 52, 96, 0.85);
    color: white;
}

.badge-sports {
    background: rgba(39, 174, 96, 0.85);
    color: white;
}

.news-body {
    padding: 1.25rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.news-link:hover {
    gap: 0.6rem;
}

/* News Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-resources-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}

.sidebar-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-resource-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--light-2);
}

.sidebar-resource-item:hover {
    background: var(--light-2);
    color: var(--primary);
    transform: translateX(3px);
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(192, 57, 43, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-body {
    padding: 1.5rem;
    flex: 1;
}

.feature-card:hover .feature-icon {
    transform: none;
}

.icon-red {
    background: rgba(192, 57, 43, 0.1);
}

.icon-blue {
    background: rgba(15, 52, 96, 0.1);
}

.icon-green {
    background: rgba(39, 174, 96, 0.1);
}

.icon-orange {
    background: rgba(243, 156, 18, 0.1);
}

.icon-purple {
    background: rgba(142, 68, 173, 0.1);
}

.icon-teal {
    background: rgba(26, 188, 156, 0.1);
}

.feature-title {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   PARENT RESOURCES FULL GRID
   ============================================ */
.resources-section {
    padding: 4rem 0;
    background: var(--light-2);
}

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

.resource-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 57, 43, 0.15);
}

.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-text .resource-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.resource-text .resource-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ============================================
   ADMISSIONS CTA
   ============================================ */
.admissions-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.admissions-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.admissions-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.admissions-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
}

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

.admissions-text .section-label::before,
.admissions-text .section-label::after {
    background: rgba(255, 255, 255, 0.5);
}

.admissions-text .section-title {
    color: white;
    margin-bottom: 0.75rem;
}

.admissions-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.admissions-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.admissions-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.footer-links a::before {
    content: '›';
    color: var(--primary);
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background: rgba(192, 57, 43, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.contact-text {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.map-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    flex-direction: column;
    gap: 0.4rem;
}

.map-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
}

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

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    border: none;
    text-decoration: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .welcome-grid-3col {
        grid-template-columns: 200px 1fr 260px;
        gap: 1.5rem;
    }

    .news-layout {
        grid-template-columns: 1fr 240px;
    }
}

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

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

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

    .hero-visual {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

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

    .col-principal {
        grid-column: 1;
        grid-row: 1;
    }

    .col-welcome {
        grid-column: 2;
        grid-row: 1;
    }

    .col-sidebar {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hero-content {
        padding: 3rem 0;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .col-principal {
        max-width: 220px;
        margin: 0 auto;
    }

    .col-sidebar {
        grid-template-columns: 1fr;
    }

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

    .news-sidebar {
        grid-template-columns: 1fr;
    }

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

    .admissions-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}