/* Base and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}
:root {
    --primary-dark: #002147; 
    --primary-light: #003366; 
    --accent: #f4a261; 
    --bg-gray: #f4f5f7;
    --text-dark: #333;
    --text-muted: #666;
    --white: #ffffff;
}
body { background-color: var(--bg-gray); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

/* Top Bar & Header */
.top-bar {
    background-color: var(--primary-dark); color: var(--white);
    padding: 8px 20px; font-size: 0.85rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center;
}
.social-link {
    background-color: #1877F2; color: white; padding: 3px 8px; border-radius: 3px; font-weight: bold; margin-left: 10px;
}
.header {
    background-color: var(--white); padding: 15px 30px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000;
}
.logo-box { display: flex; align-items: center; gap: 15px; }
.logo-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.school-info h1 { color: var(--primary-dark); font-size: 2rem; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.school-info p { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }

/* Navigation */
.nav-menu { display: flex; gap: 2px; background-color: var(--primary-light); flex-wrap: wrap; }
.nav-menu a {
    display: block; padding: 12px 20px; color: var(--white); font-weight: 600;
    font-size: 0.9rem; text-transform: uppercase; transition: background 0.3s;
}
.nav-menu a:hover { background-color: var(--accent); color: var(--primary-dark); }

/* Banners & Notices */
.hero-banner {
    width: 100%; height: 500px; background: url('FRONT VIEW.jpeg') center/cover no-repeat;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 33, 71, 0.5); }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--white); padding: 20px; }
.hero-content h2 { font-size: 3rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); }
.notice-bar { background-color: #e9ecef; padding: 10px 20px; display: flex; align-items: center; border-bottom: 2px solid var(--accent); }
.notice-title { background-color: var(--accent); color: var(--primary-dark); padding: 5px 15px; font-weight: bold; margin-right: 15px; border-radius: 3px; white-space: nowrap; }
.page-header { background: var(--primary-dark); color: white; padding: 40px 20px; text-align: center; }
.page-header h1 { font-size: 2.5rem; }

/* Layouts & Cards */
.main-container { max-width: 1300px; margin: 30px auto; padding: 0 15px; display: grid; grid-template-columns: 1fr 300px; gap: 25px; }
.content-grid { max-width: 1300px; margin: 40px auto; padding: 0 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.single-col { grid-template-columns: 1fr; max-width: 900px; }
.card { background: var(--white); padding: 25px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); border-top: 3px solid var(--primary-dark); display: flex; flex-direction: column; }
.card h3 { color: var(--primary-dark); border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 15px; font-size: 1.3rem; }
.card-signature { margin-top: auto; padding-top: 15px; font-weight: bold; color: var(--primary-dark); border-top: 1px dashed #ccc; }

/* Notice Board inside Main Container */
.notice-board { background: var(--white); border: 1px solid #ddd; border-top: 4px solid var(--accent); border-radius: 5px; overflow: hidden; }
.notice-header { background: var(--primary-light); color: var(--white); padding: 12px 20px; font-size: 1.2rem; font-weight: bold; }
.notice-list { height: 300px; overflow-y: auto; padding: 15px; }
.notice-item { padding: 12px 0; border-bottom: 1px dashed #ccc; display: flex; align-items: flex-start; gap: 10px; }
.notice-date { background: var(--accent); color: var(--primary-dark); padding: 5px 8px; font-size: 0.8rem; font-weight: bold; border-radius: 3px; min-width: 80px; text-align: center; }
.notice-item a { color: var(--text-dark); font-weight: 500; transition: color 0.2s; }
.notice-item a:hover { color: var(--primary-light); }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: 1fr; gap: 15px; }
.action-btn { background: var(--white); border: 1px solid #ddd; border-left: 5px solid var(--primary-light); padding: 15px 20px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; font-weight: bold; color: var(--primary-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s; }
.action-btn:hover { transform: translateX(5px); background: var(--primary-light); color: var(--white); border-left-color: var(--accent); }

/* Forms & Buttons */
.form-input { padding: 10px; border: 1px solid #ccc; border-radius: 5px; width: 100%; margin-bottom: 15px; }
.btn-primary { background: var(--primary-light); color: white; padding: 12px 25px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; display: inline-block; }
.btn-accent { background: var(--accent); color: var(--primary-dark); padding: 12px 25px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; display: inline-block; }

/* Gallery */
.gallery-container { max-width: 1300px; margin: 40px auto; padding: 0 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item img:hover { transform: scale(1.1); }

/* Footer */
.footer { background-color: var(--primary-dark); color: #d1d5db; padding: 50px 20px 20px; margin-top: 50px; }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-col p, .footer-col ul li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a { color: #d1d5db; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1300px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .main-container, .content-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; gap: 15px; }
    .nav-menu { justify-content: center; }
}