/* General Settings */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    scroll-behavior: smooth; 
}

body { background: #fff; color: #333; overflow-x: hidden; }

/* Top Registration Bar */
.top-bar { 
    background: #34495e; 
    color: white; 
    font-size: 0.75rem; 
    padding: 8px 15px; 
    text-align: center; 
    letter-spacing: 0.5px; 
}

/* Header Section */
.main-header { 
    background: #fff; 
    padding: 15px; 
    border-bottom: 4px solid #00c2e0; 
}

.logo-area { 
    display: flex; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.logo { 
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    border: 2px solid #00c2e0; 
    margin-right: 15px; 
    object-fit: cover; 
}

.school-name h1 { 
    color: #0056b3; 
    font-size: 1.5rem; 
    line-height: 1.2; 
}

.school-name p { 
    font-size: 0.75rem; 
    font-weight: bold; 
    color: #333; 
}

.slogan { 
    font-size: 0.9rem; 
    color: #d9534f; 
    font-style: italic; 
    font-weight: 500; 
}

/* News Ticker */
.news-ticker { 
    display: flex; 
    background: #fff9e6; 
    border-bottom: 1px solid #ddd; 
    align-items: center; 
}

.ticker-label { 
    background: #ffcc00; 
    color: #000; 
    padding: 8px 15px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    white-space: nowrap; 
}

marquee { 
    font-size: 0.9rem; 
    color: #333; 
    padding: 8px; 
    font-weight: 500; 
}

/* Sticky Navigation Menu */
.navbar { 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #eee; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap;
}

.navbar a { 
    display: block; 
    padding: 15px 20px; 
    color: #333; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: all 0.3s ease; 
}

.navbar a:hover { 
    color: #00c2e0; 
    background: #f8f9fa; 
}

/* Hero Banner */
.main-banner { 
    width: 100%; 
    overflow: hidden; 
    border-bottom: 2px solid #eee;
}

.hero-img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* Common Section Styling */
.section { 
    padding: 60px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.section-title { 
    text-align: center; 
    color: #0056b3; 
    margin-bottom: 45px; 
    font-size: 1.8rem; 
    position: relative; 
    padding-bottom: 10px; 
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 70px; 
    height: 4px; 
    background: #ffcc00; 
}

/* Leadership Cards - Updated for New Content */
.leader-card { 
    display: flex; 
    align-items: flex-start; /* Changed to start for long text */
    gap: 30px; 
    background: #fdfdfd; 
    padding: 30px; 
    border-radius: 15px; 
    margin-bottom: 30px; 
    border: 1px solid #eee; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.leader-card.alt { 
    flex-direction: row-reverse; 
    background: #fff9e6; 
}

.leader-card img { 
    width: 160px; 
    height: 160px; 
    border-radius: 15px; /* Rounded corners instead of circle for better fit */
    border: 4px solid #00c2e0; 
    object-fit: cover; 
    position: sticky;
    top: 100px;
}

.leader-text {
    flex: 1;
}

.leader-text h3 { 
    color: #0056b3; 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.leader-text h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 15px 0 10px;
}

.leader-text p { 
    line-height: 1.7; 
    color: #444; 
    font-size: 1rem; 
    margin-bottom: 15px;
}

.leader-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.leader-text li {
    margin-bottom: 5px;
    color: #555;
}

/* Badge Styles */
.badge { 
    font-size: 0.75rem; 
    padding: 4px 10px; 
    border-radius: 4px; 
    color: #fff; 
    vertical-align: middle; 
}
.director-badge { background-color: #d9534f; }
.principal-badge { background-color: #0b3d6d; }
.vp-badge { background-color: #9b59b6; }

/* Gallery Section */
.gray-bg { background: #f8f9fa; max-width: 100%; }

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.gallery-item { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #ddd; 
    text-align: center; 
    transition: all 0.4s ease; 
}

.gallery-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.gallery-item img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    display: block;
}

.gallery-item p { 
    padding: 12px; 
    font-weight: bold; 
    color: #444; 
    font-size: 0.9rem; 
    background: #fff; 
    border-top: 1px solid #eee; 
}

/* Stats Bar */
.stats-bar { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    background: #34495e; 
    color: white; 
    padding: 40px 20px; 
    text-align: center; 
    gap: 15px;
}

.stat-item i { 
    font-size: 2.2rem; 
    color: #ffcc00; 
    margin-bottom: 12px; 
    display: block; 
}

.stat-item span { 
    font-weight: bold; 
    font-size: 1rem; 
}

/* Footer Section */
.school-footer { 
    background-color: #2c3e50; 
    color: white; 
    padding: 60px 20px 20px; 
}

.footer-container { 
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto 40px; 
}

.footer-col { 
    flex: 1; 
    min-width: 250px; 
}

.footer-col h3 { 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #ffcc00; 
    display: inline-block; 
    padding-bottom: 5px; 
    color: #ffcc00; 
}

.footer-col p { 
    margin-bottom: 12px; 
    line-height: 1.6; 
}

.yt-link { 
    display: inline-block; 
    background: #ff0000; 
    color: white; 
    padding: 12px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 10px; 
    transition: 0.3s; 
}

.yt-link:hover { background: #cc0000; }

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 25px; 
    font-size: 0.85rem; 
    color: #bdc3c7; 
    text-align: center; 
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .logo-area { flex-direction: column; text-align: center; gap: 12px; }
    .logo { margin-right: 0; }
    .navbar a { padding: 12px 10px; font-size: 0.8rem; }
    .leader-card, .leader-card.alt { flex-direction: column; text-align: left; gap: 20px; padding: 20px; }
    .leader-card img { width: 140px; height: 140px; position: static; margin: 0 auto; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
}