/*MAIN*/
:root { --primary-blue: #0984e3; --primary-red: #d63031; --primary-yellow: #FFD700; --text-dark: #2d3436; --bg-light: #f4f7f6; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }

/*HEADER*/
.banner { background: linear-gradient(135deg, #0056b3, #2d8bc9); color: white; padding: 30px 20px; display: flex; align-items: center; justify-content: center; gap: 20px; border-bottom: 5px solid var(--primary-yellow); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.banner.media-bg { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.banner.art-bg { background: linear-gradient(135deg, #e84393, #fd79a8); }
.banner.sport-bg { background: linear-gradient(135deg, #d63031, #e17055); }

.logo { width: 100px; height: 100px; background: white; border-radius: 50%; border: 3px solid var(--primary-yellow); object-fit: contain; }

.school-info { text-align: center; }
.school-info h1 { font-size: 1.8rem; font-weight: 800; text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0,0,0,0.2); margin-bottom: 5px; }
.school-info .slogan { font-size: 1.2rem; color: var(--primary-yellow); font-weight: bold; letter-spacing: 2px; }

/*MENU*/
.main-menu { background-color: #8B0000; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.main-menu ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.main-menu ul li a { display: block; color: white; text-decoration: none; padding: 15px 25px; font-weight: bold; transition: 0.3s; }
.main-menu ul li a:hover { background-color: var(--primary-yellow); color: #8B0000; }

/*CONTAINER&LAYOUT*/
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.sub-page-container { display: flex; gap: 30px; }

/*HOME*/
.section-box { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; border-left: 5px solid #0056b3; }
.section-box h2 { color: #8B0000; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.intro-image img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-top: 15px; }
.section-title { text-align: center; color: #0056b3; margin: 40px 0 20px; text-transform: uppercase; font-size: 1.8rem; font-weight: bold; }

.departments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

a.dept-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-decoration: none; color: var(--text-dark); display: flex; flex-direction: column; transition: transform 0.3s ease; }
a.dept-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.card-header { padding: 15px; color: white; text-align: center; }
.card-header h3 { margin: 0; font-size: 1.3rem; }
.media .card-header { background-color: var(--primary-blue); }
.art .card-header { background-color: #e84393; }
.sport .card-header { background-color: var(--primary-red); }

.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
a.dept-card:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 20px; flex-grow: 1; }
.click-hint { margin-top: 15px; font-size: 0.9rem; font-weight: bold; color: #0056b3; text-align: right; font-style: italic; }

/*SUBPAGES*/
.sidebar { flex: 1; min-width: 250px; background: white; padding: 25px; border-radius: 10px; height: fit-content; border-top: 5px solid #333; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sidebar h3 { margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; font-size: 1.2rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 1rem; line-height: 1.5; }
.sidebar ul li::before { content: "•"; position: absolute; left: 0; line-height: 1.5; top: 0; font-size: 1.5rem; color: inherit; transform: translateY(-2px); }

.main-content { flex: 3; }
.info-card { background: white; padding: 30px; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.info-card h2 { color: var(--text-dark); margin-bottom: 20px; border-left: 5px solid #333; padding-left: 15px; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; transition: 0.3s; }
.gallery-grid img:hover { transform: scale(1.02); }

.activity-box { display: flex; gap: 20px; margin-bottom: 25px; border-bottom: 1px dashed #eee; padding-bottom: 20px; }
.activity-box img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.activity-box h4 { font-size: 1.2rem; margin-bottom: 8px; font-weight: bold; }

/*FOOTER*/
footer { background: #333; color: white; text-align: center; padding: 20px; margin-top: 50px; border-top: 4px solid var(--primary-yellow); }

@media (max-width: 768px) {
    .sub-page-container, .activity-box { flex-direction: column; }
    .activity-box img { width: 100%; height: 200px; }
}