/* =========================
   Root Variables
   ========================= */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #FFD700;
    --accent-color: #FF6B6B;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --sports-color: #e74c3c;
    --cultural-color: #9b59b6;
    --academic-color: #3498db;
    --social-color: #f39c12;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

/* =========================
   Reset & Base Styles
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

body, html {
    width: 100%;
    overflow-x: hidden;
}

.hero-slider,
.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    width: 100vw !important;
    max-width: 100vw !important;
}

.hero-slider {
    height: 80vh;
    min-height: 320px;
    max-height: 800px;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.carousel-item img {
    height: 80vh;
    min-height: 320px;
    max-height: 800px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .hero-slider, .carousel-item img {
        height: 50vh;
        min-height: 200px;
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-slider, .carousel-item img {
        height: 28vh;
        min-height: 100px;
        max-height: 180px;
    }
}

.carousel-caption {
    background: rgba(46, 139, 87, 0.7);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    color: #fff;
    left: 10%;
    right: 10%;
    bottom: 10%;
}

/* =========================
   Navbar
   ========================= */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--secondary-color);
    color: var(--text-dark) !important;
    transform: translateY(-2px);
}

/* =========================
   Dropdown Menu
   ========================= */
.dropdown-menu {
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
    border: none;
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* =========================
   Section & Container
   ========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

/* =========================
   Card
   ========================= */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 1.5rem;
    border: none;
}

/* =========================
   Buttons
   ========================= */
.btn-custom {
    background: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    border: none;
    transition: background 0.3s;
}

.btn-custom:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* =========================
   Animations
   ========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

/* =========================
   Notice Board
   ========================= */
.notice-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* =========================
   Principal Message
   ========================= */
.principal-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.principal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), #ffd54f);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(50px, -50px);
}
.principal-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid var(--secondary-color);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.principal-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.principal-info .designation {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =========================
   Stats Section
   ========================= */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #f8f9fa;
}

/* =========================
   Footer
   ========================= */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* =========================
   Contact Page Styles
   ========================= */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.page-header p {
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}
.contact-info {
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 2rem;
}
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
    outline: none;
}
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.3);
    background: linear-gradient(135deg, #1e6b47, var(--primary-color));
}

/* Map Section */
.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

/* Quick Contact Bar */
.quick-contact {
    background: var(--accent-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-weight: 600;
}
.quick-contact a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: all 0.3s ease;
}
.quick-contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Office Hours */
.office-hours {
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.hours-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 10px;
}
.hours-day {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.hours-time {
    font-size: 0.9rem;
}

/* Department Contacts */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.department-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}
.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.department-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.department-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.department-contact {
    color: var(--text-light);
    line-height: 1.6;
}

/* Location Info */
.location-info {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.location-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
}
.location-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.location-item h5 {
    margin-bottom: 1rem;
}

/* Social Media */
.social-section {
    text-align: center;
    padding: 3rem 0;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.social-link {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}
.faq-question {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}
.faq-question:hover {
    background: #e9ecef;
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-answer.show {
    max-height: 200px;
    padding: 1.5rem;
}

/* =========================
   Gallery Page Styles
   ========================= */

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.gallery-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gallery-category {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

/* Featured Gallery */
.featured-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 1rem;
    margin-bottom: 3rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-item:first-child {
    grid-row: span 2;
}

.featured-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.featured-item:hover .featured-image {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Gallery Statistics */
.gallery-stats {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-item {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
    background: white;
}

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Album Collections */
.album-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.album-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.album-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.album-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    width: 100%;
    height: 80vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
    color: var(--secondary-color);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
}

/* Responsive for Gallery */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    .featured-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 300px);
    }
    .featured-item:first-child {
        grid-row: span 1;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-nav {
        position: fixed;
        top: 50%;
    }
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
}

/* Animation Effects */
.zoom-in {
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Staff Page Styles
   ========================= */

/* Principal Card */
.principal-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.principal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), #ffd54f);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(50px, -50px);
}
.principal-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid var(--secondary-color);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.principal-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.principal-info .designation {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Staff Cards */
.staff-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}
.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.staff-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    object-fit: cover;
    margin: 2rem auto 1rem;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.staff-info {
    padding: 0 2rem 2rem;
    text-align: center;
}
.staff-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.staff-info .subject {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}
.staff-info .qualification {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Department Sections */
.department-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
}
.department-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.department-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-right: 1rem;
}
.department-title h3 {
    color: var(--primary-color);
    margin: 0;
}

/* Admin Staff */
.admin-card {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.admin-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Teaching Excellence */
.excellence-box {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.excellence-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* =========================
   Index Page Only Styles
   ========================= */

/* Hero Slider - Enhanced with Background Images */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
    display: flex;
    align-items: stretch;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
    min-height: 300px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Prevent image stretching on small screens */
    min-height: 250px;
    max-height: 800px;
}

@media (max-width: 992px) {
    .hero-slider, .carousel-item img {
        height: 50vh;
        min-height: 200px;
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-slider, .carousel-item img {
        height: 28vh;
        min-height: 100px;
        max-height: 180px;
    }
}

.carousel-caption {
    background: rgba(46, 139, 87, 0.7);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    color: #fff;
    left: 10%;
    right: 10%;
    bottom: 10%;
}

/* --- Responsive Fix for Hero Slider Images --- */
.hero-slider {
    height: 80vh;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
    display: flex;
    align-items: stretch;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
    min-height: 300px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Prevent image stretching on small screens */
    min-height: 250px;
    max-height: 800px;
}

@media (max-width: 992px) {
    .hero-slider {
        height: 60vh;
        max-height: 500px;
    }
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
        min-height: 200px;
    }
    .carousel-item img {
        min-height: 180px;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 40vh;
        max-height: 320px;
    }
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
        min-height: 120px;
    }
    .carousel-item img {
        min-height: 120px;
        max-height: 320px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 28vh;
        max-height: 180px;
    }
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
        min-height: 80px;
    }
    .carousel-item img {
        min-height: 80px;
        max-height: 180px;
    }
}

/* =========================
   About Page Only Styles
   ========================= */


/* Feature Box */
.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/* =========================
   Courses Page Only Styles
   ========================= */

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.course-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--primary-color);
}

.course-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.course-body {
    padding: 2rem;
}

.course-feature {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.course-feature h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 0;
}

.result-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.result-year {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-percentage {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Curriculum Section */
.curriculum-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    transform: translateX(5px);
    background: #f8f9fa;
}

.curriculum-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Program Highlights */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* =========================
   Admission Page Only Styles
   ========================= */

/* Process Steps */
.process-step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Document List */
.document-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.document-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Application Form */
.application-form {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

/* Important Dates */
.date-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.date-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.date-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Eligibility Criteria */
.criteria-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.criteria-item:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.criteria-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Fee Structure */
.fee-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fee-table table {
    margin-bottom: 0;
}

.fee-table th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
}

.fee-table td {
    padding: 1rem;
    border-color: #e9ecef;
}

/* Alert Box */
.alert-custom {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-custom i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* =========================
   Facilities Page Only Styles
   ========================= */

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.facility-header {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.facility-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.facility-body {
    padding: 2rem;
}

.facility-features {
    list-style: none;
    padding: 0;
}

.facility-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 2rem;
}

.facility-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.facility-features li:last-child {
    border-bottom: none;
}

/* Detailed Facility Sections */
.facility-detail {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
}

.facility-detail h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.facility-detail .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    float: right;
    margin-left: 1rem;
}

/* Image Gallery for Facilities */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 139, 87, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: bold;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Special Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Stats Section */
.stats-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.stats-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-box h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Responsive for Facilities Page */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .facility-detail .icon {
        float: none;
        display: block;
        text-align: center;
        margin: 0 0 1rem 0;
    }
}

/* =========================
   Rules Page Only Styles
   ========================= */

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    border-radius: 15px;
    padding: 2rem 2rem 1.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.important-notice i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.pulse-warning {
    animation: pulse-warning 1s infinite;
}
@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);}
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);}
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);}
}

/* Schedule Timeline */
.schedule-timeline {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}
.schedule-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    cursor: pointer;
}
.schedule-item:last-child {
    margin-bottom: 0;
}
.schedule-time {
    position: absolute;
    left: -4.5rem;
    top: 0;
    font-weight: bold;
    color: var(--primary-color);
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.schedule-content {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.3s, border-left 0.3s;
}

/* General Rules Section */
.rules-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.rules-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rules-list li {
    background: white;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}
.rules-list li:hover {
    background: #fffbe6;
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}
.rules-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 1rem;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}
.rules-note {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
    text-align: center;
}

/* Attendance Card */
.attendance-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.attendance-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.13);
    transform: translateY(-5px);
}
.attendance-requirement {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}
.attendance-requirement:last-child {
    margin-bottom: 0;
}

/* Prohibited Items */
.violation-warning {
    background: linear-gradient(135deg, var(--danger-color), #ff5252);
    color: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.violation-warning i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.prohibited-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.prohibited-item i {
    font-size: 2.5rem;
    color: var(--danger-color);
    margin-bottom: 0.5rem;
}
.prohibited-item h6 {
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
    color: var(--primary-color);
}
.prohibited-item p {
    color: var(--text-dark);
    font-size: 1rem;
}
.prohibited-item:hover {
    box-shadow: 0 8px 32px rgba(231,76,60,0.15);
    transform: translateY(-5px) scale(1.03);
    background: #fff3f3;
}

/* Uniform Cards */
.uniform-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.uniform-header {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.uniform-body {
    padding: 1.5rem;
}
.uniform-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.uniform-item:last-child {
    margin-bottom: 0;
}
.uniform-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 2.5rem;
}
.uniform-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

/* Authority Card */
.authority-card {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.authority-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.authority-card h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}
.authority-card .row > div {
    margin-top: 1.5rem;
}
.authority-card h6 {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Additional Guidelines - Rules Card */
.rules-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.rules-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}
.rules-card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}
.rules-card-body {
    padding: 1.5rem;
}
.rules-card-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.rules-card-body li {
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}
.rules-card-body li:last-child {
    margin-bottom: 0;
}

/* Animation for shake effect on rule-item */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.shake {
    animation: shake 0.5s;
}

/* Responsive for Rules Page */
@media (max-width: 991px) {
    .rules-section {
        padding: 2rem 0.5rem;
    }
    .rules-title {
        font-size: 1.5rem;
    }
    .rules-list li {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 2.5rem;
    }
    .prohibited-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .schedule-timeline {
        padding-left: 1rem;
    }
    .schedule-time {
        left: -3.5rem;
        font-size: 0.9rem;
    }
    .prohibited-grid {
        grid-template-columns: 1fr;
    }
    .uniform-header {
        font-size: 1rem;
        padding: 1rem;
    }
    .uniform-body {
        padding: 1rem;
    }
    .rules-card-header {
        font-size: 1rem;
        padding: 1rem;
    }
    .rules-card-body {
        padding: 1rem;
    }
}

/* =========================
   Events Page Only Styles
   ========================= */

/* Event Cards */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}
.event-card.sports::before { background: var(--sports-color); }
.event-card.cultural::before { background: var(--cultural-color); }
.event-card.academic::before { background: var(--academic-color); }
.event-card.social::before { background: var(--social-color); }

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.event-content {
    padding: 2rem;
}
.event-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}
.event-category.sports { background: var(--sports-color); }
.event-category.cultural { background: var(--cultural-color); }
.event-category.academic { background: var(--academic-color); }
.event-category.social { background: var(--social-color); }
.event-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.event-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.event-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.event-meta-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Annual Calendar */
.annual-calendar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.calendar-month {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.calendar-month:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.month-header {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}
.month-events {
    list-style: none;
    padding: 0;
}
.month-events li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.month-events li:last-child {
    border-bottom: none;
}
.event-date {
    font-weight: 600;
    color: var(--primary-color);
}

/* Featured Events */
.featured-event {
    background: linear-gradient(135deg, var(--primary-color), #1e6b47);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.featured-event::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}
.featured-event h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.featured-event p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.countdown-item {
    text-align: center;
}
.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}
.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Activity Gallery */
.activity-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.activity-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}
.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 139, 87, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 3rem;
}
.activity-item:hover .activity-overlay {
    opacity: 1;
}
.activity-info {
    padding: 1.5rem;
}
.activity-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.activity-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Achievement Showcase */
.achievement-card {
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.achievement-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-year {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Participation Stats */
.stats-container {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}
.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}


/* =========================
   Notice Page Only Styles
   ========================= */

/* Notice Cards */
.notice-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}
.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.notice-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}
.notice-priority {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 10px;
}
.notice-urgent { background: #e74c3c; }
.notice-important { background: #f39c12; }
.notice-info { background: #3498db; }
.notice-general { background: #7F8C8D; }

.notice-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.notice-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.notice-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}
.notice-body {
    padding: 1.5rem;
}
.notice-content {
    line-height: 1.7;
    margin-bottom: 1rem;
}
.notice-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notice-author {
    color: var(--text-light);
    font-size: 0.9rem;
}
.notice-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-notice {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: none;
    transition: all 0.3s ease;
}

/* Latest Notices Ticker */
.ticker-container {
    background: #e74c3c;
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}
.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #c0392b;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 2;
}
.ticker-content {
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    padding-left: 12rem;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}
.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Archive Section */
.archive-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}
.archive-item {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.archive-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}
.archive-date {
    color: var(--text-light);
    font-size: 0.9rem;
    width: 120px;
}
.archive-title {
    flex: 1;
    margin: 0 1rem;
}
.archive-category {
    background: var(--text-light);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Calendar Widget */
.calendar-widget {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}
.calendar-header {
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}
.calendar-day {
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}
.calendar-day.has-notice {
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: bold;
}

/* Pinned Notices */
.pinned-notice {
    background: linear-gradient(135deg, var(--secondary-color), #f39c12);
    color: var(--text-dark);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.pinned-notice::before {
    content: '\f276';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.notice-new {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive for Notice Page */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    .ticker-content {
        padding-left: 8rem;
    }
    .ticker-label {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    .calendar-widget {
        position: static;
    }
}
