/* =========================================
   1. GLOBAL STYLES & RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f4f5f7;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. TOP BAR & HEADER STYLES
   ========================================= */
.top-bar {
    background-color: #a02c2d;
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info i {
    color: #ffca28;
    margin-right: 5px;
    margin-left: 15px;
}
.contact-info i:first-child {
    margin-left: 0;
}

.top-social a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 1.1rem;
}

.top-social a:hover {
    color: #ffca28;
}

.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
    margin-left: 20px;
}

.main-nav ul li a {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    padding: 10px 0;
    text-transform: uppercase;
}

.main-nav ul li a:hover {
    color: #a02c2d;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #a02c2d;
    z-index: 999;
}

.main-nav li.dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    text-transform: capitalize !important;
}

.dropdown-menu li a:hover {
    background: #fdf8e4;
    padding-left: 25px !important;
}

/* =========================================
   3. COMMON PAGE HEADER
   ========================================= */
.page-header {
    background: #a02c2d;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}
.page-header p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* =========================================
   4. INDEX (HOME) PAGE STYLES (WITH SLIDER ARROWS & DOTS)
   ========================================= */
.hero-slider-section { width: 100%; overflow: hidden; position: relative; }
.hero-slider-item { display: none; width: 100%; height: 60vh; object-fit: cover; }
.hero-slider-item.active { display: block; animation: fade 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* Prev & Next Arrows */
.prev-arrow, .next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 15px 20px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}
.next-arrow { right: 0; border-radius: 4px 0 0 4px; }
.prev-arrow:hover, .next-arrow:hover { background-color: #a02c2d; }

/* Navigation Dots */
.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 25px;
    width: 100%;
}
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0.6;
}
.dot.active, .dot:hover {
    background-color: #a02c2d;
    opacity: 1;
    transform: scale(1.3);
}

.welcome-section { padding: 60px 20px; background: #fff; }
.welcome-section h2 { color: #a02c2d; font-family: 'Montserrat', sans-serif; text-align: center; margin-bottom: 25px; }
.welcome-content { max-width: 1100px; margin: 0 auto; line-height: 1.8; color: #444; text-align: justify; font-size: 1.05rem; }

.info-section { background: #fdf8e4; padding: 50px 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; }

.info-box { background: #fff; padding: 30px; border-top: 4px solid #a02c2d; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.info-box h3 { color: #a02c2d; margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.timing-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.timing-table th, .timing-table td { border: 1px solid #ddd; padding: 8px; text-align: left; font-size: 0.9rem; }
.timing-table th { background: #a02c2d; color: #fff; }
.timing-notes { font-size: 0.9rem; color: #555; }
.timing-notes strong { color: #a02c2d; }

.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #ddd; font-size: 0.95rem; }
.event-list li:last-child { border: none; margin: 0; padding: 0; }
.event-date { color: #a02c2d; font-weight: bold; font-size: 0.85rem; display: block; margin-bottom: 5px; }

.form-section { padding: 50px 20px; background: #fff; }
.form-wrapper { max-width: 700px; margin: 0 auto; background: #f9f9f9; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.form-wrapper h3 { text-align: center; color: #a02c2d; margin-top: 0; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Lato', sans-serif; }
.submit-btn { background: #a02c2d; color: #fff; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; width: 100%; }
.submit-btn:hover { background: #7a1a1a; }

.gallery-section { padding: 50px 20px; background: #fdf8e4; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-header h2 { color: #a02c2d; font-family: 'Montserrat', sans-serif; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; max-width: 1200px; margin: 0 auto; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); }

/* =========================================
   5. HOUSE SYSTEM PAGE STYLES
   ========================================= */
.house-section { padding: 50px 20px; max-width: 1000px; margin: 40px auto; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #a02c2d; border-radius: 8px; }
.house-intro { text-align: center; margin-bottom: 40px; font-size: 1.1rem; color: #444; line-height: 1.8; padding: 0 20px; }
.house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; text-align: center; margin-top: 30px; }
.house-card { padding: 40px 20px; border-radius: 8px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.house-card:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.house-card i { font-size: 3.5rem; margin-bottom: 20px; }
.house-card h3 { margin: 0 0 10px 0; font-size: 1.6rem; color: #fff; font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.house-card p { margin: 0; font-size: 1rem; opacity: 0.9; font-weight: bold; }
.house-earth { background: linear-gradient(135deg, #43a047, #2e7d32); }
.house-water { background: linear-gradient(135deg, #1e88e5, #1565c0); }
.house-fire  { background: linear-gradient(135deg, #e53935, #c62828); }
.house-air   { background: linear-gradient(135deg, #fbc02d, #f9a825); color: #333; }
.house-air h3, .house-air p, .house-air i { color: #333; }

/* =========================================
   6. RULES & REGULATION STYLES
   ========================================= */
.rules-section-wrapper { padding: 50px 20px; max-width: 1100px; margin: 0 auto; }
.rule-block { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; margin-bottom: 30px; overflow: hidden; border-top: 4px solid #a02c2d; }
.rule-header { background: #f9f9f9; padding: 15px 25px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.rule-header h3 { margin: 0; color: #a02c2d; font-family: 'Montserrat', sans-serif; font-size: 1.4rem; }
.rule-header i { font-size: 1.5rem; color: #ffca28; }
.rule-content { padding: 25px; color: #444; line-height: 1.7; }
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { position: relative; padding-left: 25px; margin-bottom: 12px; text-align: justify; }
.rule-list li::before { content: "\f0da"; font-family: FontAwesome; position: absolute; left: 0; color: #a02c2d; }
.sub-list { list-style-type: lower-alpha; padding-left: 20px; margin-top: 10px; }
.sub-list li::before { content: none; }
.highlight-box { background: #fdf8e4; border-left: 4px solid #ffca28; padding: 15px; margin-top: 15px; }

/* =========================================
   7. EVENTS PAGE STYLES (RECENT EVENTS)
   ========================================= */
.events-container { padding: 50px 20px; max-width: 900px; margin: 0 auto; }
.event-card { background: #fff; border-left: 5px solid #a02c2d; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; padding: 30px; margin-bottom: 30px; }
.event-card-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.event-card-header h2 { color: #a02c2d; margin: 0 0 10px 0; font-size: 1.5rem; }
.event-meta { font-size: 0.9rem; color: #666; display: flex; gap: 15px; font-weight: bold; }
.event-meta i { color: #ffca28; margin-right: 5px; }
.event-body { color: #444; line-height: 1.8; text-align: justify; }
.event-tags { margin-top: 20px; font-size: 0.85rem; color: #1e88e5; font-weight: bold; }

/* =========================================
   8. VIDEO GALLERY STYLES
   ========================================= */
.video-gallery-container { padding: 50px 20px; max-width: 1100px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.video-card { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; border-bottom: 4px solid #a02c2d; transition: transform 0.3s ease; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.video-iframe-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 20px; }
.video-info h3 { color: #a02c2d; font-family: 'Montserrat', sans-serif; margin-top: 0; font-size: 1.2rem; margin-bottom: 10px; }
.video-info p { font-size: 0.95rem; color: #555; line-height: 1.6; text-align: justify; margin: 0; }

/* =========================================
   9. EVENT IMAGE GALLERY & FILTER
   ========================================= */
.event-gallery-wrapper { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.filter-section { background: #fdf8e4; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 40px; border-top: 4px solid #a02c2d; }
.filter-form { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.filter-group { flex: 1; min-width: 200px; }
.filter-group label { display: block; font-weight: bold; color: #a02c2d; margin-bottom: 8px; font-size: 0.95rem; }
.filter-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Lato', sans-serif; }
.filter-btn { background: #a02c2d; color: #fff; padding: 10px 25px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; height: 40px; font-weight: bold; transition: background 0.3s ease; }
.filter-btn:hover { background: #7a1a1a; }
.event-data-list { display: flex; flex-direction: column; gap: 30px; }
.event-data-card { display: flex; flex-wrap: wrap; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; border-left: 5px solid #a02c2d; }
.event-data-img { flex: 1; min-width: 300px; max-width: 400px; }
.event-data-img img { width: 100%; height: 100%; object-fit: cover; min-height: 250px; }
.event-data-content { flex: 2; padding: 30px; min-width: 300px; }
.event-data-content h3 { color: #a02c2d; margin-top: 0; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; margin-bottom: 15px; }
.event-data-content p { color: #444; line-height: 1.8; text-align: justify; margin-bottom: 15px; }
.event-data-tags { font-size: 0.85rem; color: #1e88e5; font-weight: bold; }

/* =========================================
   10. FOOTER STYLES
   ========================================= */
.footer {
    background-color: #222222;
    color: #cccccc;
    padding-top: 50px;
    margin-top: auto;
}

.footer-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-widget h2 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #a02c2d;
}

.footer-widget p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-widget ul.menu {
    list-style: none;
}

.footer-widget ul.menu li {
    margin-bottom: 10px;
}

.footer-widget ul.menu li a {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-widget ul.menu li a:hover {
    color: #ffca28;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-item .icon-box {
    margin-right: 15px;
    color: #a02c2d;
    font-size: 1.2rem;
}

.contact-text h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-text p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social {
    margin-top: 20px;
}

.footer-social span {
    display: block;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #333333;
    color: #ffffff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.footer-social a:hover {
    background: #a02c2d;
}

.footer-bottom {
    background-color: #111111;
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.developer-credit a {
    color: #ffca28;
    font-weight: bold;
}

.developer-credit a:hover {
    color: #ffffff;
}

/* =========================================
   11. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; }
    .main-nav ul { flex-direction: column; width: 100%; text-align: center; }
    .main-nav ul li { margin-left: 0; margin-bottom: 10px; }
    .top-bar-flex, .footer-bottom-flex { flex-direction: column; text-align: center; gap: 10px; }
    .dropdown-menu { position: static; box-shadow: none; border-top: none; background: #f9f9f9; }
    .event-data-img { max-width: 100%; }
}
/* =========================================
   12. CONTACT PAGE STYLES
   ========================================= */
.contact-page-wrapper { padding: 60px 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.contact-info-boxes h2 { color: #a02c2d; font-family: 'Montserrat', sans-serif; margin-bottom: 10px; font-size: 2rem; }
.contact-info-boxes > p { margin-bottom: 30px; color: #555; line-height: 1.6; font-size: 1rem; }

.contact-info-box { display: flex; align-items: center; margin-bottom: 20px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-left: 4px solid #a02c2d; transition: transform 0.3s ease; }
.contact-info-box:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
.contact-info-box i { font-size: 20px; color: #ffca28; background: #a02c2d; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 20px; flex-shrink: 0; }
.contact-info-box h4 { margin: 0 0 5px 0; color: #333; font-size: 1.1rem; }
.contact-info-box p { margin: 0; color: #666; font-size: 0.95rem; line-height: 1.5; }

.contact-form-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #a02c2d; }
.contact-form-box h3 { margin: 0 0 25px 0; color: #a02c2d; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; }

.map-section { width: 100%; height: 450px; display: block; margin-top: 20px; background: #eee; }
.map-section iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-box { padding: 25px; }
}
/* =========================================
   13. MANDATORY PUBLIC DISCLOSURE (MPD) STYLES
   ========================================= */
.mpd-wrapper { padding: 50px 20px; max-width: 1100px; margin: 0 auto; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; margin-top: 40px; margin-bottom: 40px; }
.mpd-section { margin-bottom: 40px; }
.mpd-section h3 { background: #a02c2d; color: #fff; padding: 12px 20px; margin: 0 0 20px 0; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; border-radius: 4px; }
.mpd-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95rem; }
.mpd-table th, .mpd-table td { border: 1px solid #ddd; padding: 12px 15px; text-align: left; }
.mpd-table th { background: #fdf8e4; color: #a02c2d; font-weight: bold; width: 60%; }
.mpd-table td.sno { width: 8%; text-align: center; font-weight: bold; }
.mpd-table td:first-child { font-weight: bold; }
.mpd-table tr:hover { background-color: #f9f9f9; }

.mpd-btn { display: inline-flex; align-items: center; background: #1e88e5; color: #fff; padding: 6px 15px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; transition: background 0.3s ease; }
.mpd-btn i { margin-right: 8px; }
.mpd-btn:hover { background: #1565c0; color: #fff; }

@media (max-width: 768px) {
    .mpd-table th, .mpd-table td { padding: 10px; font-size: 0.85rem; }
    .mpd-table th { width: 50%; }
}
/* =========================================
   14. STAFF PAGE STYLES
   ========================================= */
.staff-wrapper { padding: 60px 20px; background: #f4f5f7; }
.staff-header-text { text-align: center; max-width: 800px; margin: 0 auto 40px auto; color: #555; font-size: 1.1rem; line-height: 1.8; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.staff-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; padding: 30px 20px; border-bottom: 4px solid #a02c2d; transition: transform 0.3s ease; }
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.staff-icon { width: 80px; height: 80px; margin: 0 auto 15px auto; background: #fdf8e4; color: #a02c2d; display: flex; align-items: center; justify-content: center; font-size: 35px; border-radius: 50%; box-shadow: 0 4px 10px rgba(160, 44, 45, 0.1); }
.staff-icon.male { background: #e3f2fd; color: #1565c0; box-shadow: 0 4px 10px rgba(21, 101, 192, 0.1); }

.staff-card h3 { font-family: 'Montserrat', sans-serif; color: #333; font-size: 1.2rem; margin-bottom: 8px; text-transform: capitalize; }
.staff-card p.designation { color: #a02c2d; font-weight: bold; font-size: 0.9rem; margin: 0; text-transform: uppercase; }

.staff-download-section { text-align: center; margin-top: 50px; }
.staff-btn { display: inline-block; background: #a02c2d; color: #fff; padding: 12px 25px; border-radius: 4px; font-size: 1rem; font-weight: bold; transition: background 0.3s ease; }
.staff-btn:hover { background: #7a1a1a; color: #fff; }
.staff-btn i { margin-right: 8px; }
/* =========================================
   15. DESK PAGES (PRESIDENT & PRINCIPAL)
   ========================================= */
.desk-wrapper { padding: 50px 30px; max-width: 1000px; margin: 40px auto; display: flex; gap: 40px; align-items: flex-start; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; border-top: 5px solid #a02c2d; }
.desk-image { flex: 1; max-width: 300px; }
.desk-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 3px solid #eee; }
.desk-content { flex: 2; }
.desk-content h2 { color: #a02c2d; font-family: 'Montserrat', sans-serif; margin-bottom: 5px; font-size: 1.8rem; }
.desk-content h4 { color: #555; margin-bottom: 20px; font-weight: bold; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.desk-content p { color: #444; line-height: 1.8; text-align: justify; margin-bottom: 15px; }

/* =========================================
   16. TRANSFER CERTIFICATE (TC) GALLERY & MODAL
   ========================================= */
.tc-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.tc-item { cursor: pointer; border: 2px solid #ddd; border-radius: 4px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; background: #fff; padding: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tc-item img { width: 100%; height: 260px; object-fit: cover; transition: opacity 0.3s ease; }
.tc-item:hover { transform: translateY(-5px); border-color: #a02c2d; }
.tc-item:hover img { opacity: 0.8; }
/* Add this under your existing TC Gallery styles */
.tc-name {
    padding: 12px 5px;
    text-align: center;
    font-weight: bold;
    color: #a02c2d;
    font-size: 0.9rem;
    background: #fdf8e4;
    border-top: 2px solid #ddd;
    text-transform: capitalize;
}

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; z-index: 2000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border: 3px solid #fff; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus { color: #a02c2d; text-decoration: none; }

/* =========================================
   17. FEE STRUCTURE STYLES
   ========================================= */
.fee-wrapper { max-width: 1000px; margin: 50px auto; padding: 0 20px; text-align: center; }

/* Grid for 3 side-by-side images */
.fee-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.fee-thumb { cursor: pointer; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background: #fff; padding: 5px; }
.fee-thumb img { width: 100%; height: auto; display: block; transition: opacity 0.3s ease; border-radius: 4px; }
.fee-thumb:hover { transform: translateY(-5px); border-color: #a02c2d; }
.fee-thumb:hover img { opacity: 0.8; }
.fee-thumb-title { padding: 10px; font-weight: bold; color: #a02c2d; font-size: 0.9rem; background: #fdf8e4; margin-top: 5px; }

.fee-data-section { text-align: left; margin-top: 40px; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #a02c2d; }
.fee-data-section h3 { color: #a02c2d; font-family: 'Montserrat', sans-serif; margin-bottom: 20px; border-bottom: 2px solid #fdf8e4; padding-bottom: 10px; }

/* Reusing mpd-table design for Fees */
.fee-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 0.95rem; }
.fee-table th, .fee-table td { border: 1px solid #ddd; padding: 12px; text-align: center; }
.fee-table th { background: #fdf8e4; color: #a02c2d; font-weight: bold; }
.fee-table tr:hover { background-color: #f9f9f9; }
.fee-table td:first-child { text-align: left; font-weight: bold; }

@media (max-width: 768px) {
    .fee-gallery-grid { grid-template-columns: 1fr; }
    .fee-table th, .fee-table td { padding: 8px; font-size: 0.85rem; }
}
/* =========================================
   18. LABS & LIBRARY (FACILITIES) STYLES
   ========================================= */
.facility-wrapper { padding: 60px 20px; background: #fff; }
.facility-intro { text-align: center; max-width: 800px; margin: 0 auto 40px auto; color: #555; line-height: 1.8; font-size: 1.1rem; }
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }

.facility-card { background: #f9f9f9; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-bottom: 4px solid #a02c2d; transition: transform 0.3s ease; }
.facility-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.facility-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 2px solid #ddd; }
.facility-content { padding: 20px; }
.facility-content h3 { color: #a02c2d; font-family: 'Montserrat', sans-serif; margin-bottom: 10px; font-size: 1.3rem; }
.facility-content p { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

/* Specific to Library Page */
.library-features { max-width: 1100px; margin: 50px auto 0; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.lib-feature-box { background: #fdf8e4; padding: 25px 20px; border-radius: 8px; width: calc(33.333% - 20px); text-align: center; min-width: 280px; box-shadow: 0 3px 8px rgba(0,0,0,0.03); transition: transform 0.3s; }
.lib-feature-box:hover { transform: translateY(-3px); }
.lib-feature-box i { font-size: 35px; color: #a02c2d; margin-bottom: 15px; }
.lib-feature-box h4 { color: #333; margin-bottom: 10px; font-size: 1.1rem; }
.lib-feature-box p { font-size: 0.9rem; color: #555; margin: 0; }

@media (max-width: 768px) {
    .lib-feature-box { width: 100%; }
}
/* =========================================
   19. INFRASTRUCTURE GALLERY STYLES
   ========================================= */
.infra-wrapper { padding: 60px 20px; background: #fff; text-align: center; }
.infra-text { max-width: 800px; margin: 0 auto 40px auto; color: #555; line-height: 1.8; font-size: 1.1rem; }

.infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.infra-item { cursor: pointer; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease; border: 2px solid #eee; background: #fff; }
.infra-item img { width: 100%; height: 220px; object-fit: cover; transition: opacity 0.3s ease, transform 0.3s ease; display: block; }

.infra-item:hover { transform: translateY(-5px); border-color: #a02c2d; box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.infra-item:hover img { opacity: 0.9; transform: scale(1.05); }
/* =========================================
   20. EVENTS PAGE STYLES
   ========================================= */
.events-wrapper { padding: 60px 20px; background: #f4f5f7; }
.events-intro { text-align: center; max-width: 800px; margin: 0 auto 40px auto; color: #555; line-height: 1.8; font-size: 1.1rem; }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.event-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-bottom: 4px solid #a02c2d; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }

.event-img { width: 100%; height: 240px; object-fit: cover; cursor: pointer; transition: opacity 0.3s ease; display: block; border-bottom: 1px solid #eee; }
.event-card:hover .event-img { opacity: 0.9; }

.event-info { padding: 25px 20px; }
.event-date { color: #a02c2d; font-size: 0.85rem; font-weight: bold; margin-bottom: 10px; display: inline-flex; align-items: center; background: #fdf8e4; padding: 5px 10px; border-radius: 4px; }
.event-date i { margin-right: 6px; }
.event-title { color: #333; font-family: 'Montserrat', sans-serif; font-size: 1.25rem; margin-bottom: 10px; }
.event-desc { color: #666; font-size: 0.95rem; line-height: 1.6; margin: 0; }