/* ==========================================================================
   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: #66cc66;
    --background-green: #f0f8f0;
    --border-green: #ccddcc;
    
    --primary-red: #cc0000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #343a40;
    
    --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;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/fondo.jpg') center/cover;
    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;
}

.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;
}

.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;
    }
}

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