/* --- VARIABLES & RESET --- */
:root {
    --bg-body: #f1f5f9;      /* Light gray background */
    --bg-card: #ffffff;      /* White cards */
    --text-dark: #0f172a;    /* Navy/Black for headings */
    --text-body: #475569;    /* Slate for text */
    --accent: #2563eb;       /* Professional Blue */
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --container-width: 1100px; /* Perfect for 13" screens */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION (Glassmorphism) --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active { color: var(--text-dark); }

/* Underline effect for links */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    background: var(--gradient-dark);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1; /* Light gray text on dark bg */
    max-width: 600px;
    margin: 0 auto;
}

/* --- MAIN LAYOUT --- */
main {
    flex: 1;
    width: 100%;
    padding: 2rem;
}

/* --- IMAGE GRID (Modern) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 Grid */
    gap: 2rem;
}

.card {

    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
    position: relative;
}



.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- TEXT CONTENT SECTIONS --- */
.content-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.content-section h1 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    display: inline-block;
}

.content-section p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* --- FOOTER --- */
footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- RESPONSIVE MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1.5rem; font-size: 0.9rem; }
    
    .hero { padding: 2.5rem 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack images on phone */
        gap: 1.5rem;
    }
    
    .content-section { padding: 2rem 1.5rem; }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- ANNOUNCEMENTS SECTION (New) --- */

/* Sub-header specific styling */
.sub-header {
    font-size: 1.5rem;
    color: var(--accent); /* Professional Blue */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* The scrollable container */
.announcements-window {
    /* Maximum height before scrolling starts. 
       Adjust this value (e.g., 80vh or 500px) based on preference. */
    overflow-y: auto; /* Enables vertical scrolling */
    

}

/* Individual Announcement Card */
.announcement-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-item:hover {
    box-shadow: var(--shadow-md);
}

/* Date Title styling */
.announcement-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent); /* Blue accent line on left */
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
}

/* Body text inside announcement */
.announcement-body p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 1rem;
    text-align: justify; /* Looks cleaner for long blocks of text */
}

.announcement-body p:last-child {
    margin-bottom: 0;
}

/* --- SCROLLBAR STYLING (Webkit only - Chrome/Safari/Edge) --- */
/* Makes the scrollbar look nicer than the default system one */
.announcements-window::-webkit-scrollbar {
    width: 8px;
}

.announcements-window::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.announcements-window::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.announcements-window::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}