/* ==========================================================================
   CUSTOM STYLES - COLEGIO SICOPEDAGÓGICO DE FONTIBÓN
   ========================================================================== */

/* Root Variables */
:root {
    --primary-green: #006633;
    --secondary-green: #009933;
    --light-green: #00cc66;
    --dark-green: #004422;
    --accent-green: #cdebd5;
    --background-green: #f0f8f0;
    --border-green: #ccddcc;
    
    --primary-red: #cc0000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #343a40;

    /* Pastel palette for headings, menus and option controls */
    --pastel-blue: #ddeeff;
    --pastel-blue-border: #9fc9e8;
    --pastel-blue-text: #24516e;
    --pastel-yellow: #fff1bf;
    --pastel-yellow-border: #e6c96e;
    --pastel-yellow-text: #66501b;
    --pastel-pink: #fad7e5;
    --pastel-pink-border: #e8a8c0;
    --pastel-pink-text: #733a52;
    --pastel-green: #d9f0df;
    --pastel-green-border: #a4d3ae;
    --pastel-green-text: #28563a;
    --pastel-lavender: #e8ddf8;
    --pastel-lavender-border: #c2acdf;
    --pastel-lavender-text: #4f3a70;
    --pastel-peach: #ffe0cf;
    --pastel-peach-border: #e9b397;
    --pastel-peach-text: #70422d;
    --pastel-red: #f6c7c7;
    --pastel-red-border: #df9e9e;
    --pastel-red-text: #713b3b;
    --bs-orange: #ffd6a5;
    --bs-orange-border: #e8b87a;
    --bs-orange-text: #704822;
    --bs-purple: #d8c4f0;
    --bs-purple-border: #bda2df;
    --bs-purple-text: #4f3a70;
    --bs-warning: #fff1bf;
    --bs-warning-border: #e6c96e;
    --bs-warning-text: #66501b;
    --bs-cyan: #c7eef3;
    --bs-cyan-border: #94d7df;
    --bs-cyan-text: #275b63;
    --bs-code-color: #f4c9db;
    --bs-code-color-border: #e3a6bd;
    --bs-code-color-text: #71384e;
    --bs-success: #a4d3ae;
    --bs-warning-bg-subtle: #6b561a;
    --heading-blue: #527a9c;
    --heading-pink: #9b5674;
    --heading-green: #477d59;
    --heading-lavender: #765d9a;
    --heading-peach: #a36749;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-red), #ff4444, var(--primary-red));
    z-index: 2;
}

/* IMAGEN DE FONDO DEL HEADER - CAMBIAR AQUÍ PARA MODIFICAR FONDO */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/fondo2.jpg') center/cover; /* Imagen de fondo del header principal */
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.header-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Simple Header for Internal Pages */
.header-simple {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 2rem 0;
    position: relative;
}

.header-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-red), #ff4444, var(--primary-red));
}

.logo-simple {
    display: flex;
    align-items: center;
}

.logo-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */
.main-nav {
    background: var(--secondary-green);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 3px solid var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-green);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--white) !important;
}

.nav-item.active .nav-link {
    background: var(--light-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link i {
    font-size: 1.1rem;
}

/* ==========================================================================
   CAROUSEL STYLES
   ========================================================================== */
.carousel-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

.carousel-image {
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
}

.carousel-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.carousel-content h5 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.carousel-content p {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--white);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    border: none;
    margin: 0 5px;
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================================================
   INFO SECTION STYLES
   ========================================================================== */
.info-section {
    padding: 4rem 0;
    background: var(--background-green);
}

.info-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-content {
    padding: 2rem;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-title i {
    font-size: 1.8rem;
    color: var(--secondary-green);
}

.info-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.info-image {
    height: 200px;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.info-panel:hover .info-image img {
    transform: scale(1.05);
}

/* ==========================================================================
   HISTORY SECTION STYLES
   ========================================================================== */
.history-section {
    padding: 4rem 0;
    background: var(--white);
}

.history-timeline {
    margin-top: 2rem;
}

.history-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 2px solid var(--border-green);
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-green);
}

.history-year {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white) !important;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.history-content {
    padding: 1.5rem;
}

.history-title {
    color: var(--dark-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.history-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.history-image {
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.history-card:hover .history-image img {
    transform: scale(1.1);
}

/* ==========================================================================
   FORUM SECTION STYLES
   ========================================================================== */

/* Forum Introduction Section */
.forum-intro-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--background-green), var(--white));
}

.forum-intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
}

/* News Categories Section */
.news-categories-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-green);
}

.news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--dark-green);
    border: 2px solid var(--border-green);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
    background: var(--secondary-green);
    color: var(--white);
    border-color: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 153, 51, 0.3);
}

.category-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 102, 51, 0.4);
}

.category-btn i {
    font-size: 1.1rem;
}

/* Featured News Section */
.featured-news-section {
    padding: 3rem 0;
    background: var(--light-gray);
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

.featured-news-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid transparent;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-green);
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-news-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
    position: relative;
}

.news-badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary-red), #ff4444);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-title {
    color: var(--dark-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* News Grid Section */
.news-grid-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--white), var(--background-green));
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.news-article {
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-green);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 51, 0.3);
    min-width: 60px;
}

.news-date-badge .day {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.news-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.category-tag.academico {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: var(--white);
}

.category-tag.eventos {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: var(--white);
}

.category-tag.deportes {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: var(--white);
}

.category-tag.cultura {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: var(--white);
}

.category-tag.institucional {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.news-title {
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: auto;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-green);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--secondary-green);
    font-weight: 500;
    font-size: 0.9rem;
}

.news-time {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.newsletter-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-title {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-title i {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.newsletter-text {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0;
}

.btn-newsletter {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-newsletter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.btn-newsletter i {
    font-size: 1.2rem;
}

/* News Meta Styles */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   GALLERY SECTION STYLES
   ========================================================================== */

/* Gallery Introduction Section */
.gallery-intro-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--background-green), var(--white));
}

.gallery-intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
}

/* Gallery Filters Section */
.gallery-filters-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-green);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--dark-green);
    border: 2px solid var(--border-green);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: var(--secondary-green);
    color: var(--white);
    border-color: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 153, 51, 0.3);
}

.filter-btn.active {
    background: var(--primary-green);
    color: var(--white) !important;
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 102, 51, 0.4);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Gallery Main Section */
.gallery-main-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--light-gray), var(--background-green));
    min-height: 70vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.gallery-item {
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    background: var(--white);
    border: 3px solid transparent;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-green);
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.15);
    filter: brightness(1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    margin-bottom: 1rem;
}

.gallery-title {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-description {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-category {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.gallery-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--light-green), var(--secondary-green));
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 153, 51, 0.3);
}

.gallery-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 51, 0.5);
}

.gallery-btn i {
    margin-right: 0.5rem;
}

/* Masonry-style layout for larger screens */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
    }
    
    .gallery-item:nth-child(4n+1) .gallery-image {
        height: 320px;
    }
    
    .gallery-item:nth-child(4n+2) .gallery-image {
        height: 240px;
    }
    
    .gallery-item:nth-child(4n+3) .gallery-image {
        height: 280px;
    }
    
    .gallery-item:nth-child(4n+4) .gallery-image {
        height: 300px;
    }
}

/* Modal Improvements */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    background: var(--white);
}

.modal-body img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   ADMISSIONS POPUP MODAL
   ========================================================================== */
.admissions-modal {
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
}

.admissions-modal-dialog {
    max-width: 800px;
    margin: 2rem auto;
}

.admissions-modal-content {
    background: var(--white);
    border-radius: 25px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.admissions-modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white) !important;
    padding: 1.5rem;
    border-bottom: none;
    position: relative;
    text-align: center;
}

.admissions-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.admissions-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.admissions-close-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
}

.admissions-modal-body {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 240, 0.9) 100%);
}

.admissions-main-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.admissions-character {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 150px;
    z-index: 2;
}

.admissions-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.speech-bubble {
    position: absolute;
    bottom: 120px;
    left: 130px;
    background: var(--white);
    border: 3px solid var(--primary-green);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: bounce 2s infinite;
}

.speech-close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
}

.speech-close-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary-green);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 33px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--white);
}

.speech-text {
    color: var(--dark-green);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.admissions-content {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.admissions-highlight {
    background: linear-gradient(135deg, var(--light-green), var(--background-green));
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.admissions-highlight h4 {
    color: var(--dark-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.admissions-highlight p {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 1rem;
}

.admissions-cta {
    margin-top: 2rem;
}

.admissions-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.admissions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Modal animations */
.admissions-modal.fade .admissions-modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

.admissions-modal.show .admissions-modal-dialog {
    transform: scale(1);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 3rem 0 1rem;
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-title i {
    font-size: 1.8rem;
    color: var(--light-green);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--light-green);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--light-green);
    color: var(--white);
    transform: scale(1.1);
}

.footer-map {
    margin-bottom: 2rem;
}

.footer-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-green);
    background: var(--white);
    padding: 0.5rem;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    border-radius: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Styles */
@media (max-width: 992px) {
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-image {
        height: 400px;
    }
    
    .carousel-content {
        padding: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 2rem 0;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
    
    .logo-small {
        width: 60px;
        height: 60px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-content h5 {
        font-size: 1.2rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .info-content {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .history-timeline {
        margin-top: 1rem;
    }
    
    .history-card {
        margin-bottom: 1.5rem;
        transform: none !important;
    }
    
    .history-card:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .history-year {
        padding: 0.8rem;
        font-size: 1.1rem;
        position: relative;
    }
    
    .history-year::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid var(--secondary-green);
    }
    
    .history-content {
        padding: 1.2rem;
        position: relative;
    }
    
    .history-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: var(--primary-green);
        font-weight: 600;
    }
    
    .history-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .history-image {
        height: 120px;
        margin-top: 1rem;
        border-radius: 10px;
        border: 2px solid var(--border-green);
    }
    
    /* Mobile accordion-style history */
    .history-card {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .history-card.collapsed .history-content {
        max-height: 60px;
        overflow: hidden;
        position: relative;
    }
    
    .history-card.collapsed .history-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, var(--white));
    }
    
    .history-card.collapsed .history-image,
    .history-card.collapsed .history-text {
        display: none;
    }
    
    .history-card.expanded .history-content {
        max-height: none;
        animation: expandContent 0.4s ease-out;
    }
    
    .history-expand-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: var(--primary-green);
        color: var(--white);
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .history-expand-btn:hover {
        background: var(--secondary-green);
        transform: scale(1.1);
    }
    
    @keyframes expandContent {
        from {
            max-height: 60px;
            opacity: 0.8;
        }
        to {
            max-height: 500px;
            opacity: 1;
        }
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-chat {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .carousel-image {
        height: 250px;
    }
    
    .carousel-content {
        padding: 0.8rem;
    }
    
    .carousel-content h5 {
        font-size: 1rem;
    }
    
    .carousel-content p {
        font-size: 0.8rem;
    }
    
    .info-content {
        padding: 1rem;
    }
    
    .history-content {
        padding: 0.8rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
    
    .map-container {
        height: auto;
        padding: 0.3rem;
    }
    
    /* Mobile modal optimizations */
    .admissions-modal-content {
        margin: 0.5rem;
        max-height: 95vh;
        display: flex;
        flex-direction: column;
    }
    
    .admissions-modal-body {
        padding: 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        position: relative;
        min-height: 350px;
        overflow: visible;
    }
    
    .admissions-image {
        order: 1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .admissions-image img {
        max-width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
        border-radius: 15px;
    }
    
    .admissions-character {
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 70px;
        height: 70px;
        z-index: 2;
    }
    
    .admissions-character img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    }
    
    .speech-bubble {
        position: absolute;
        bottom: 85px;
        right: 10px;
        left: auto;
        max-width: 200px;
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 12px;
        transform: none;
        animation: bounce 2s infinite;
    }
    
    .speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 15px;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--white);
    }
    
    .speech-close-btn {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -3px;
        right: -3px;
    }
    
    .admissions-content {
        order: 2;
        padding: 1rem;
        text-align: center;
    }
    
    .admissions-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .admissions-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .admissions-modal-content {
        margin: 0.25rem;
        max-height: 98vh;
    }
    
    .admissions-modal-body {
        padding: 0.8rem;
        min-height: 320px;
    }
    
    .admissions-image img {
        max-height: 150px;
    }
    
    .admissions-character {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    
    .speech-bubble {
        bottom: 70px;
        right: 5px;
        max-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .speech-bubble::after {
        bottom: -5px;
        right: 12px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid var(--white);
    }
    
    .speech-close-btn {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .admissions-content h3 {
        font-size: 1.1rem;
    }
    
    .admissions-content p {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   LOADING ANIMATION
   ========================================================================== */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SCROLLBAR STYLES
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .whatsapp-chat,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .nav-item,
    .gallery-filters,
    .gallery-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .header,
    .footer {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }
    
    .news-card,
    .history-card,
    .info-panel,
    .gallery-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   PASTEL VISUAL THEME
   The main green headers stay unchanged; content headings and controls use
   alternating pastel tones for a friendlier visual hierarchy.
   ========================================================================== */

/* Content headings: the main header and white-on-green headers are excluded. */
h1:not(.header-title):not(.page-title),
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-blue);
}

.section-title {
    color: var(--heading-blue);
}

.section-title::after {
    background: linear-gradient(to right, var(--pastel-blue-border), var(--pastel-pink-border));
}

.info-title {
    color: var(--heading-pink);
}

.info-title i {
    color: var(--pastel-pink-border);
}

.history-title {
    color: var(--heading-green);
}

.section-subtitle {
    color: var(--heading-lavender);
}

.section-subtitle::after {
    background: linear-gradient(to right, var(--pastel-lavender-border), var(--pastel-blue-border));
}

.featured-title,
.newsletter-title {
    color: var(--heading-blue);
}

.news-title {
    color: var(--heading-pink);
}

.admissions-highlight h4 {
    color: var(--heading-peach);
}

/* Preserve white text in headers, overlays, footers and modal headers. */
.header-title,
.page-title,
.carousel-content h5,
.gallery-title,
.footer-title,
.footer-subtitle,
.modal-title,
.admissions-modal-title {
    color: var(--white) !important;
}

/* Navigation menu: each item gets its own pastel color. */
.main-nav {
    background: #f8f5fb;
    border-top-color: var(--pastel-blue-border);
    border-bottom-color: var(--pastel-pink-border);
}

.nav-link {
    background: var(--nav-bg, var(--pastel-blue));
    color: var(--nav-text, var(--pastel-blue-text)) !important;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: var(--nav-border, var(--pastel-blue-border));
    color: var(--nav-text, var(--pastel-blue-text)) !important;
}

.nav-item:nth-child(1) {
    --nav-bg: var(--pastel-blue);
    --nav-border: var(--pastel-blue-border);
    --nav-text: var(--pastel-blue-text);
}

.nav-item:nth-child(2) {
    --nav-bg: var(--pastel-pink);
    --nav-border: var(--pastel-pink-border);
    --nav-text: var(--pastel-pink-text);
}

.nav-item:nth-child(3) {
    --nav-bg: var(--pastel-yellow);
    --nav-border: var(--pastel-yellow-border);
    --nav-text: var(--pastel-yellow-text);
}

.nav-item:nth-child(4) {
    --nav-bg: var(--pastel-green);
    --nav-border: var(--pastel-green-border);
    --nav-text: var(--pastel-green-text);
}

/* Explicit pastel colors requested for the forum and image-library links. */
.nav-link[class~="bg-[color:var(--bs-orange)]"] {
    --nav-bg: var(--bs-orange);
    --nav-border: var(--bs-orange-border);
    --nav-text: var(--bs-orange-text);
}

.nav-link[class~="bg-[color:var(--bs-purple)]"] {
    --nav-bg: var(--bs-purple);
    --nav-border: var(--bs-purple-border);
    --nav-text: var(--bs-purple-text);
}

.nav-link[class~="bg-[color:var(--bs-warning)]"] {
    --nav-bg: var(--bs-warning);
    --nav-border: var(--bs-warning-border);
    --nav-text: var(--bs-warning-text);
}

/* Keep the requested colors active even when the link is selected. */
.nav-item:nth-child(2) .nav-link {
    --nav-bg: var(--bs-orange);
    --nav-border: var(--bs-orange-border);
    --nav-text: var(--bs-orange-text);
}

.nav-item:nth-child(3) .nav-link {
    --nav-bg: var(--bs-purple);
    --nav-border: var(--bs-purple-border);
    --nav-text: var(--bs-purple-text);
}

.nav-item:nth-child(4) .nav-link {
    --nav-bg: var(--bs-warning);
    --nav-border: var(--bs-warning-border);
    --nav-text: var(--bs-warning-text);
}

/* Filter and category option buttons. */
.category-btn,
.filter-btn {
    background: var(--option-bg, var(--pastel-blue));
    color: var(--option-text, var(--pastel-blue-text));
    border-color: var(--option-border, var(--pastel-blue-border));
}

.category-btn:hover,
.filter-btn:hover {
    background: var(--option-border, var(--pastel-blue-border));
    color: var(--option-text, var(--pastel-blue-text));
    border-color: var(--option-border, var(--pastel-blue-border));
    box-shadow: 0 6px 20px rgba(82, 122, 156, 0.2);
}

.category-btn.active,
.filter-btn.active {
    background: var(--option-bg, var(--pastel-blue));
    color: var(--option-text, var(--pastel-blue-text)) !important;
    border-color: var(--option-border, var(--pastel-blue-border));
    box-shadow: inset 0 0 0 2px var(--option-border, var(--pastel-blue-border)),
        0 4px 15px rgba(82, 122, 156, 0.2);
}

.category-btn:nth-child(1),
.filter-btn:nth-child(1) {
    --option-bg: var(--pastel-blue);
    --option-border: var(--pastel-blue-border);
    --option-text: var(--pastel-blue-text);
}

.category-btn:nth-child(2),
.filter-btn:nth-child(2) {
    --option-bg: var(--pastel-yellow);
    --option-border: var(--pastel-yellow-border);
    --option-text: var(--pastel-yellow-text);
}

.category-btn:nth-child(3),
.filter-btn:nth-child(3) {
    --option-bg: var(--pastel-pink);
    --option-border: var(--pastel-pink-border);
    --option-text: var(--pastel-pink-text);
}

.category-btn:nth-child(4),
.filter-btn:nth-child(4) {
    --option-bg: var(--pastel-green);
    --option-border: var(--pastel-green-border);
    --option-text: var(--pastel-green-text);
}

.category-btn:nth-child(5),
.filter-btn:nth-child(5) {
    --option-bg: var(--pastel-lavender);
    --option-border: var(--pastel-lavender-border);
    --option-text: var(--pastel-lavender-text);
}

.category-btn:nth-child(6),
.filter-btn:nth-child(6) {
    --option-bg: var(--pastel-peach);
    --option-border: var(--pastel-peach-border);
    --option-text: var(--pastel-peach-text);
}

/* Forum category colors requested by the selected controls. */
.news-categories .category-btn[data-category="academico"] {
    --option-bg: var(--bs-cyan);
    --option-border: var(--bs-cyan-border);
    --option-text: var(--bs-cyan-text);
}

.news-categories .category-btn[data-category="eventos"] {
    --option-bg: var(--bs-warning);
    --option-border: var(--bs-warning-border);
    --option-text: var(--bs-warning-text);
}

.news-categories .category-btn[data-category="deportes"] {
    --option-bg: var(--bs-code-color);
    --option-border: var(--bs-code-color-border);
    --option-text: var(--bs-code-color-text);
}

.news-categories .category-btn[data-category="cultura"] {
    --option-bg: var(--bs-purple);
    --option-border: var(--bs-success);
    --option-text: var(--bs-warning-bg-subtle);
    border-top-color: var(--bs-success);
    border-right-color: var(--bs-success);
    border-bottom-color: var(--bs-success);
    border-left-color: var(--bs-success);
}

.news-categories .category-btn[data-category="institucional"] {
    --option-bg: var(--accent-green);
    --option-border: var(--pastel-green-border);
    --option-text: var(--pastel-green-text);
}

/* History date/title containers alternate between pastel yellow and red. */
.history-timeline .row > [class*="col"]:nth-child(odd) {
    --history-bg: var(--pastel-yellow);
    --history-border: var(--pastel-yellow-border);
    --history-text: var(--pastel-yellow-text);
}

.history-timeline .row > [class*="col"]:nth-child(even) {
    --history-bg: var(--pastel-red);
    --history-border: var(--pastel-red-border);
    --history-text: var(--pastel-red-text);
}

.history-year {
    background: var(--history-bg, var(--pastel-yellow));
    color: var(--history-text, var(--pastel-yellow-text)) !important;
    border-bottom: 3px solid var(--history-border, var(--pastel-yellow-border));
}

.history-title {
    color: var(--history-text, var(--heading-green));
}

/* Carousel dots and standard action buttons follow the same palette. */
.carousel-indicators button:nth-child(1) {
    background: var(--pastel-blue-border);
}

.carousel-indicators button:nth-child(2) {
    background: var(--pastel-yellow-border);
}

.carousel-indicators button:nth-child(3) {
    background: var(--pastel-pink-border);
}

.carousel-indicators button:nth-child(4) {
    background: var(--pastel-green-border);
}

.btn-primary {
    background: var(--pastel-blue-border);
    color: var(--pastel-blue-text);
}

.btn-primary:hover {
    background: var(--pastel-blue);
    color: var(--pastel-blue-text);
}

.btn-secondary {
    color: var(--pastel-pink-text);
    border-color: var(--pastel-pink-border);
}

.btn-secondary:hover {
    background: var(--pastel-pink);
    color: var(--pastel-pink-text);
}

.gallery-btn {
    background: var(--pastel-yellow);
    color: var(--pastel-yellow-text);
    box-shadow: 0 4px 15px rgba(230, 201, 110, 0.35);
}

.gallery-btn:hover {
    background: var(--pastel-yellow-border);
    color: var(--pastel-yellow-text);
    box-shadow: 0 6px 20px rgba(230, 201, 110, 0.45);
}

.history-expand-btn {
    background: var(--pastel-pink-border);
    color: var(--pastel-pink-text);
}

.history-expand-btn:hover {
    background: var(--pastel-pink);
    color: var(--pastel-pink-text);
}
