/* ============================================
   COMPLEXE SCOLAIRE ADONAI - CSS3 Stylesheet
   Modern, Playful, Responsive Design
   ============================================ */

/* Root Custom Properties */
:root {
    --primary-light: #E3EBAB;
    --primary-dark: #0D6B23;
    --secondary-light: #E647B7;
    --secondary-dark: #191854;
    --accent-color: #FF6B3D;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: var(--primary-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .tagline {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-light);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    color: var(--text-light);
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.slider-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 24, 84, 0.6) 0%, rgba(13, 107, 35, 0.6) 100%);
    z-index: 2;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 4;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 28px;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: white;
    transform: scale(1.15);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-light);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(230, 71, 183, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 71, 183, 0.5);
    background: var(--secondary-dark);
}

/* ================UT SECTION============================
   ABO
   ============================================ */

.about {
    padding: 80px 40px;
    background: rgba(247, 247, 248, 0.034);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.014);
    z-index: 1;
}




.about .container {
    position: relative;
    z-index: 2;
}

.about2 {
    padding: 80px 40px;
    background: rgba(25, 69, 151, 0.342);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

}

.about2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(239, 239, 241, 0.226);
    z-index: 1;
}




.about2 .container {
    position: relative;
    z-index: 2;
}

.about h2,
.section-primary h2,
.section-college h2,
.gallery-section h2,
.announcements-section h2,
.contact-section h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
    position: relative;
}

.about h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-dark));
    margin: 15px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.about-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.about-card p {
    color: var(--text-dark);
    opacity: 0.85;
}

/* ============================================
   ARTICLES GRID (JOURNAL STYLE)
   ============================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.journal-article {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-light);
}

.journal-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.article-header {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    color: white;
    padding: 18px;
    text-align: center;
}

.article-header h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.article-date {
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 18px;
}

.article-content p {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   EXAM RESULTS SECTION
   ============================================ */

.exam-results {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(243, 230, 255, 0.5) 0%, rgba(230, 247, 255, 0.5) 100%);
    position: relative;
}

.exam-results .container h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.exam-results .container h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-dark));
    margin: 15px auto 0;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.exam-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 5px solid var(--secondary-light);
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.exam-header {
    padding: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.cepe-header {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.bepc-header {
    background: linear-gradient(135deg, #4ECDC4, #6FE7D3);
}

.probatoire-header {
    background: linear-gradient(135deg, #FFD93D, #FFE66D);
    color: #333;
}

.bacc-header {
    background: linear-gradient(135deg, #6BCB77, #8FE58F);
}

.exam-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.exam-icon {
    font-size: 40px;
}

.exam-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exam-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.exam-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--secondary-light);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-light);
}

.exam-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-dark));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.exam-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-primary h2,
.section-college h2 {
    color: var(--primary-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--secondary-light);
    font-weight: 500;
    margin-top: 10px;
}

/* ============================================
   PRIMARY & COLLEGE SECTIONS
   ============================================ */

.section-primary,
.section-college {
    padding: 80px 40px;
    background: #f9f9f9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.section-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 235, 171, 0.322);
    z-index: 1;
}

.section-college::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(187, 73, 153, 0.438);
    z-index: 1;
}

.section-college {
    background: rgb(255, 255, 255);
}

.section-primary .container,
.section-college .container {
    position: relative;
    z-index: 2;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 5px solid;
}

.primary-card {
    border-top-color: var(--primary-dark);
}

.primary-card:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(227, 235, 171, 0.1) 100%);
}

.college-card {
    border-top-color: var(--secondary-dark);
}

.college-card:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, rgba(230, 71, 183, 0.1) 100%);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.program-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.program-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.program-card ul {
    list-style: none;
}

.program-card li {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   ACADEMIC RESULTS SECTION
   ============================================ */

.results-section {
    padding: 80px 40px;
    background: white;
}

.results-section h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.results-section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-dark));
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--secondary-light);
    margin-bottom: 50px;
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.result-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 15px;
    display: block;
}

.result-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.result-card p {
    color: var(--text-dark);
    opacity: 0.85;
    font-size: 14px;
}

/* Results Details Table */
.results-details {
    margin-bottom: 60px;
}

.results-details h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

.results-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.results-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.results-image-container {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    text-align: center;
}

.results-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.results-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: white;
}

.results-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.results-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: var(--primary-light);
}

.results-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.results-table .success {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Subject Performance */
.subject-performance {
    background: #f9f9f9;
    padding: 40px;
    border-radius: var(--border-radius);
}

.subject-performance h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.performance-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.performance-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.performance-item h4 {
    font-size: 16px;
    color: var(--secondary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
    transition: width 0.8s ease;
}

.performance-score {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(227, 235, 171, 0.1) 0%, rgba(230, 71, 183, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 71, 183, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

.gallery-section h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.gallery-section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-dark));
    margin: 15px auto 0;
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 16px;
    font-style: italic;
}

/* ============================================
   PHOTOBOOK STYLES
   ============================================ */

.photobook-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photobook-header {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.photobook-header h3 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.book-subheader {
    font-size: 16px;
    opacity: 0.95;
    font-style: italic;
}

.photobook-gallery {
    padding: 50px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.photo-item {
    cursor: pointer;
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f5f5f5;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover .photo-wrapper img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 107, 35, 0.85) 0%, rgba(25, 24, 84, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 48px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.photo-overlay p {
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LIGHTBOX ZOOM STYLES
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secondary-dark);
}

.lightbox-close:hover {
    background: var(--secondary-light);
    color: white;
    transform: rotate(90deg);
}

.lightbox-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: auto;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: grab;
}

#lightboxImage:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-btn {
    background: var(--secondary-light);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.zoom-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.1);
}

.zoom-level {
    color: white;
    font-weight: 600;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(230, 71, 183, 0.8);
    border-color: var(--secondary-light);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: -80px;
}

.lightbox-nav.next {
    right: -80px;
}

.lightbox-caption {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    max-width: 600px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 20px;
    }

    .photobook-gallery {
        padding: 30px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .photo-item {
        height: 200px;
    }

    .photobook-header h3 {
        font-size: 24px;
    }

    .lightbox-content {
        width: 95vw;
        height: 95vh;
        gap: 15px;
    }

    .lightbox-close {
        top: -35px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox-nav.prev {
        left: -60px;
    }

    .lightbox-nav.next {
        right: -60px;
    }

    .zoom-controls {
        bottom: 10px;
        padding: 10px 15px;
        gap: 10px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .zoom-level {
        font-size: 14px;
        min-width: 50px;
    }

    .lightbox-caption {
        bottom: 80px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 30px 15px;
    }

    .gallery-section h2 {
        font-size: 28px;
    }

    .photobook-gallery {
        padding: 15px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .photo-item {
        height: 150px;
    }

    .zoom-icon {
        font-size: 32px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-nav.prev {
        left: -50px;
    }

    .lightbox-nav.next {
        right: -50px;
    }
}

/* Old carousel styles (keeping for compatibility) */

/* ============================================
   ANNOUNCEMENTS SECTION
   ============================================ */

.announcements-section {
    padding: 80px 40px;
    background: #f9f9f9;
}

.announcements-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.announcement-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-dark);
}

.announcement-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.announcement-card .date {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.announcement-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.announcement-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    color: var(--secondary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-light);
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff5f9 100%);
}

.team-section h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.team-section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-dark));
    margin: 15px auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

.team-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.team-role {
    color: var(--secondary-light);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.team-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 20px 20px;
    margin-bottom: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 40px;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.info-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-dark);
    font-size: 14px;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-dark);
    box-shadow: 0 0 0 3px rgba(25, 24, 84, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 24, 84, 0.3);
}

.form-success {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-success.show {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--text-light);
    padding: 50px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--secondary-light);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .about h2,
    .section-primary h2,
    .section-college h2,
    .gallery-section h2,
    .announcements-section h2,
    .contact-section h2,
    .exam-results .container h2 {
        font-size: 28px;
    }

    .exam-grid {
        grid-template-columns: 1fr;
    }

    .exam-results {
        padding: 40px 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 25px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 300px;
    }

    .program-card {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .about,
    .section-primary,
    .section-college,
    .gallery-section,
    .announcements-section,
    .contact-section {
        padding: 40px 20px;
    }

    .about h2,
    .section-primary h2,
    .section-college h2,
    .gallery-section h2,
    .announcements-section h2,
    .contact-section h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 18px;
    }
}

/* ============================================
   JOURNAL PAGE STYLES - IMPROVED DESIGN
   ============================================ */

.journal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--secondary-light) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    padding: 80px 40px;
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.journal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(227, 235, 171, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(230, 71, 183, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.journal-hero .hero-content {
    position: relative;
    z-index: 3;
    animation: slideUp 0.8s ease-out;
}

.journal-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.journal-hero p {
    font-size: 18px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.journal-content {
    padding: 60px 40px;
    background: #f9f9f9;
    min-height: calc(100vh - 400px);
}

.journal-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.journal-main {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-header-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-light);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.article-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-light);
}

.article-category {
    background: linear-gradient(135deg, var(--primary-light), rgba(227, 235, 171, 0.5));
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--primary-light);
}

.article-title {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.article-author {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.article-author strong {
    color: var(--secondary-dark);
    font-weight: 600;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.article-featured-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
}

.article-body h3 {
    font-size: 24px;
    color: var(--secondary-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    border-left: 4px solid var(--secondary-light);
    padding-left: 15px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.article-body li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-light);
    font-weight: bold;
    font-size: 18px;
}

.article-navigation-controls {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.nav-btn-primary {
    flex: 1;
    padding: 16px 25px;
    border: 2px solid var(--secondary-dark);
    background: white;
    color: var(--secondary-dark);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.nav-btn-primary:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(25, 24, 84, 0.3);
}

/* Sidebar Styles */
.journal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.articles-list li {
    margin-bottom: 12px;
}

.article-link {
    display: block;
    padding: 12px 14px;
    border-left: 4px solid transparent;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.article-link:hover {
    border-left-color: var(--secondary-light);
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(3px);
}

.article-link.active {
    border-left-color: var(--secondary-dark);
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(227, 235, 171, 0.3) 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: block;
    padding: 10px 14px;
    color: var(--secondary-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.categories-list a:hover {
    background: var(--primary-light);
    border-left-color: var(--secondary-light);
    transform: translateX(3px);
}

.back-to-home {
    display: inline-block;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 700;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 24, 84, 0.3);
}

/* Responsive Design for Journal */
@media (max-width: 1200px) {
    .journal-main {
        padding: 40px;
    }

    .article-title {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .journal-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .journal-main {
        padding: 35px;
    }

    .article-featured-image {
        height: 350px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-body h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .journal-hero {
        padding: 60px 20px;
        min-height: 250px;
    }

    .journal-hero h1 {
        font-size: 36px;
    }

    .journal-hero p {
        font-size: 16px;
    }

    .journal-content {
        padding: 40px 20px;
    }

    .journal-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .journal-main {
        padding: 25px;
    }

    .article-featured-image {
        height: 300px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-body h3 {
        font-size: 20px;
        margin-top: 25px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .nav-btn-primary {
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .journal-hero {
        padding: 40px 15px;
        min-height: 200px;
    }

    .journal-hero h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .journal-hero p {
        font-size: 14px;
    }

    .journal-content {
        padding: 30px 15px;
    }

    .journal-main {
        padding: 18px;
    }

    .article-featured-image {
        height: 220px;
        margin: 25px 0;
    }

    .article-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .article-body {
        font-size: 14px;
    }

    .article-body h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sidebar-widget {
        padding: 18px;
    }

    .sidebar-widget h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .article-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .article-navigation-controls {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn-primary {
        padding: 12px 15px;
        font-size: 13px;
    }
}
