/* CSS Custom Properties - Theme Variables */
:root {
    /* Header Colors */
    --header-bg-color: #ffffff;
    --header-text-color: #333333;
    --header-border-color: #e0e0e0;

    /* Navigation Colors */
    --navbar-bg-color: #2ecc71;
    --navbar-text-color: #ffffff;
    --navbar-hover-color: #27ae60;
    --dropdown-bg-color: #f5f5f5;
    --dropdown-text-color: #333333;
    --dropdown-hover-color: #e0e0e0;

    /* Main Content Colors */
    --main-bg-color: #fafafa;
    --section-title-color: #2ecc71;
    --text-primary-color: #333333;
    --text-secondary-color: #666666;

    /* Button Colors */
    --button-primary-color: #1976d2;
    --button-primary-hover-color: #1565c0;
    --button-text-color: #ffffff;
    --button-border-radius: 25px;

    /* Table Colors */
    --table-header-bg-color: #1976d2;
    --table-header-text-color: #ffffff;
    --table-row-hover-color: #f5f5f5;
    --table-border-color: #e0e0e0;

    /* Footer Colors */
    --footer-bg-color: var(--navbar-bg-color);
    --footer-text-color: #ffffff;
    --footer-border-color: rgba(255, 255, 255, 0.2);
    --footer-link-color: #ffffff;

    /* Accent Colors */
    --accent-primary: #1976d2;
    --accent-secondary: #ff6b6b;
    --accent-success: #51cf66;
    --accent-warning: #ffd43b;

    /* Notice Colors */
    --notice-badge-color: #ffe0e0;
    --notice-card-bg-color: #fffaf0;
    --notice-card-border-color: #ffc107;

    /* Layout */
    --logo-height: 80px;
    --container-max-width: 1200px;
    --border-radius-default: 8px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    color: var(--text-primary-color);
    background-color: var(--main-bg-color);
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--header-bg-color);
    color: var(--header-text-color);
    padding: 15px 0;
    border-bottom: 2px solid var(--header-border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex: 1;
    order: 2;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--button-primary-color);
    object-fit: cover;
    order: 1;
}

.school-info {
    text-align: center;
}

.school-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--button-primary-color);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.school-details,
.contact-info {
    font-size: 15px;
    color: #555;
    margin: 5px 0;
    font-weight: 500;
    line-height: 1.6;
}

.school-details {
    font-size: 16px;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;
}

.home-btn {
    padding: 8px 20px;
    border: 2px solid var(--button-primary-color);
    background-color: var(--button-primary-color);
    color: white;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.home-btn:hover {
    background-color: white;
    color: var(--button-primary-color);
    border-color: var(--button-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--button-primary-color);
    background-color: transparent;
    color: var(--button-primary-color);
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--button-primary-color);
    color: white;
}

/* Navigation Styles */
.navbar {
    background-color: var(--navbar-bg-color);
    padding: 12px 0;
    position: relative;
}

/* Hide navbar on all pages except index */
body:not(.index-page) .navbar {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item.dropdown::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--navbar-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--navbar-text-color);
    border-radius: 20px;
    background-color: transparent;
    font-size: 14px;
}

.nav-link:hover {
    background-color: var(--navbar-text-color);
    color: var(--navbar-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 220px;
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0;
    border: 2px solid var(--table-border-color);
    padding-top: 5px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--table-border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dropdown-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--dropdown-hover-color);
    color: var(--navbar-bg-color);
    padding-left: 25px;
}

/* Notification Marquee */
.notification-marquee {
    background: var(--navbar-bg-color);
    padding: 10px 0;
    overflow: hidden;
}

.marquee {
    --play: running;
    --direction: normal;
    --duration: 40s;
    --delay: 0s;
    --iteration-count: infinite;
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 15px;
    animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
    animation-play-state: var(--play);
    animation-direction: var(--direction);
    white-space: nowrap;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: #e71135;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background-color: #ffe0e0;
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

section {
    background-color: white;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Full width sections */
.speeches-section {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    max-width: none;
}

.section-title {
    font-size: 28px;
    color: var(--section-title-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--section-title-color);
    text-align: center;
}

/* Slider Section */
.slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slider-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Speeches Section */
.speeches-section {
    background: linear-gradient(135deg, var(--button-primary-color) 0%, var(--button-primary-hover-color) 100%);
    color: white;
    padding: 50px 30px;
}

.speeches-section .section-title {
    color: white;
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    border-bottom: 3px solid white;
    padding-bottom: 15px;
}

.speeches-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.speech-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.speech-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Alternate layout: even cards have image on right */
.speech-card:nth-child(even) {
    flex-direction: row-reverse;
}

.speaker-image-wrapper {
    flex-shrink: 0;
    width: 300px;
    text-align: center;
}

.speaker-image {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    margin-bottom: 15px;
}

.speaker-avatar {
    width: 300px;
    height: 350px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--button-primary-color), var(--button-primary-hover-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 15px;
}

.speaker-image-wrapper h3 {
    color: var(--accent-primary);
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
}

.speaker-image-wrapper .designation {
    color: var(--text-secondary-color);
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
}

.speech-content-wrapper {
    flex: 1;
    color: var(--text-primary-color);
}

.speaker-info {
    display: none;
}

.speech-title {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.speech-content {
    color: var(--text-secondary-color);
    line-height: 1.8;
    text-align: justify;
}

.speech-content p {
    margin-bottom: 12px;
}

/* Notice Board */
.notices-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 6px;
}

/* Card look for notices (reference style) */
.notice-card {
    background-color: var(--notice-card-bg-color);
    padding: 20px 22px;
    border-left: 6px solid var(--notice-card-border-color);
    border-radius: 8px;
    transition: box-shadow 0.22s cubic-bezier(.2,.8,.2,1), transform 0.18s ease;
    box-shadow: 0 6px 18px rgba(18,38,63,0.06);
}

.notice-card:hover {
    box-shadow: 0 12px 28px rgba(18,38,63,0.09);
    transform: translateY(-4px);
}

.notice-title { color: var(--accent-primary); margin: 0 0 8px; font-weight: 700; }
.notice-description { color: var(--text-primary-color); margin: 0; }
.notice-date { font-size: 12px; color: #999; margin-top: 6px; }
.notice-header { display: flex; gap: 10px; align-items: center; }
.notice-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.important-badge { background: var(--notice-badge-color); color: #c62828; padding: 2px 8px; border-radius: 12px; font-size: 12px; }

/* Notice Table Style */
.notices-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.notices-table thead {
    background: var(--navbar-bg-color);
    color: var(--table-header-text-color);
}

.notices-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notices-table tbody tr {
    border-bottom: 1px solid var(--table-border-color);
    transition: background-color 0.2s ease;
}

.notices-table tbody tr:hover {
    background-color: var(--table-row-hover-color);
}

.notices-table tbody tr:last-child {
    border-bottom: none;
}

.notices-table tbody td {
    padding: 14px 12px;
    color: var(--text-primary-color);
    font-size: 14px;
}

.notices-table tbody td:first-child {
    font-weight: 600;
    color: var(--accent-primary);
    width: 5%;
    text-align: center;
}

.notices-table tbody td:nth-child(2) {
    font-weight: 500;
    color: var(--button-primary-hover-color);
    word-break: break-word;
}

.notices-table tbody td:nth-child(3) {
    color: var(--text-secondary-color);
    font-size: 13px;
}

.notices-table tbody td:nth-child(4) {
    text-align: center;
}

.download-link {
    display: inline-block;
    padding: 6px 10px;
    background-color: #e3f2fd;
    color: var(--accent-primary);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-link:hover {
    background-color: #bbdefb;
    transform: scale(1.1);
}

/* See More Button */
.see-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--button-primary-color), var(--button-primary-hover-color));
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: var(--button-border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, var(--button-primary-hover-color), #0d47a1);
}

/* Important Links Section */
.important-links-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
}

.important-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.important-link-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    color: var(--button-primary-color);
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid var(--button-primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.important-link-item:hover {
    background: var(--button-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.important-link-item span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Important Links Table */
.important-links-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.important-links-table thead {
    background: linear-gradient(135deg, var(--button-primary-color), var(--button-primary-hover-color));
    color: white;
}

.important-links-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.important-links-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.important-links-table tbody tr:hover {
    background-color: #f5f5f5;
}

.important-links-table tbody tr:last-child {
    border-bottom: none;
}

.important-links-table tbody td {
    padding: 14px 12px;
    color: #333;
    font-size: 14px;
}

.important-links-table tbody td:first-child {
    font-weight: 600;
    color: var(--button-primary-color);
    width: 5%;
    text-align: center;
}

.important-links-table tbody td:nth-child(2) {
    font-weight: 500;
    color: var(--button-primary-hover-color);
}

.visit-link {
    display: inline-block;
    padding: 6px 10px;
    background-color: #e3f2fd;
    color: var(--button-primary-color);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.visit-link:hover {
    background-color: #bbdefb;
    transform: scale(1.1);
}

/* About Section */
.about-content {
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.gallery-caption {
    position: relative;
    background: white;
    color: #333;
    padding: 15px;
    text-align: center;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--button-primary-color);
    font-size: 14px;
    font-weight: 500;
}

.gallery-item:hover .gallery-caption {
    color: var(--button-primary-color);
}

/* Teachers Grid Section */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.teacher-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.teacher-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.teacher-info {
    padding: 20px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.teacher-designation {
    font-size: 14px;
    color: var(--button-primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.teacher-department {
    font-size: 13px;
    color: #666;
}

/* Teachers Table Section */
.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.teachers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.teachers-table thead {
    background: linear-gradient(135deg, var(--button-primary-color), var(--button-primary-hover-color));
    color: white;
}

.teachers-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teachers-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.teachers-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.teachers-table tbody tr:last-child {
    border-bottom: none;
}

.teachers-table td {
    padding: 15px;
    vertical-align: middle;
}

.teacher-photo-cell {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--button-primary-color);
}

.teacher-name-cell {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.teacher-designation-cell {
    color: var(--button-primary-color);
    font-weight: 500;
    font-size: 14px;
}

.teacher-methodology-cell {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Responsive Table */
@media (max-width: 768px) {
    .teachers-table {
        font-size: 13px;
    }
    
    .teachers-table th,
    .teachers-table td {
        padding: 10px 8px;
    }
    
    .teacher-photo-cell {
        width: 60px;
        height: 60px;
    }
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 20px 0 15px;
    margin-top: 50px;
    border-top: 4px solid var(--button-primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    color: var(--footer-text-color);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        order: 1 !important;
        width: 60px;
        height: 60px;
    }
    
    .logo-section {
        order: 2 !important;
        flex-direction: column;
        text-align: center;
    }
    
    .language-switcher {
        order: 3 !important;
    }
    
    .school-name {
        font-size: 22px;
    }
    
    .school-details {
        font-size: 13px;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    /* Mobile Navigation Menu - Scrollable */
    .navbar {
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Custom Scrollbar for mobile navbar */
    .navbar::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .navbar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 20px;
        justify-content: center;
    }
    
    .nav-item {
        width: auto;
        flex: 0 0 auto;
    }
    
    .nav-link {
        text-align: center;
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        position: absolute;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        display: none;
        margin-top: 0;
        max-height: none;
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .slider {
        height: 250px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* Speeches responsive */
    .speech-card {
        flex-direction: column !important;
        padding: 20px;
    }
    
    .speaker-image-wrapper {
        width: 100%;
    }
    
    .speaker-image,
    .speaker-avatar {
        width: 100%;
        height: 250px;
    }
    
    .speeches-section .section-title {
        font-size: 24px;
    }
}

/* Login Form Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-container h2 {
    text-align: center;
    color: var(--button-primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--button-primary-color);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--button-primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--button-primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Pages */
.content-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-page h1 {
    color: var(--button-primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.content-page h2 {
    color: #333;
    margin: 25px 0 15px;
    font-size: 24px;
}

.content-page p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.content-page ul,
.content-page ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--button-primary-color);
    background-color: white;
    color: var(--button-primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: var(--button-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.filter-btn.active {
    background-color: var(--button-primary-color);
    color: white;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

#modalCaption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 8px;
    max-width: 80%;
}

#modalCaption h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

#modalCaption p {
    font-size: 14px;
    color: #ccc;
}

.gallery-category {
    display: inline-block;
    background-color: var(--button-primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    #modalCaption {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #modalCaption h3 {
        font-size: 16px;
    }
    
    .gallery-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
