/* Main CSS file for School Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #3367d6;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo h1 {
    color: #4285f4;
    font-size: 24px;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    padding: 5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4285f4;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Highlights Section */
.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px 20px;
    background-color: white;
}

.highlight-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    margin: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-card h3 {
    color: #4285f4;
    margin-bottom: 10px;
}

/* News & Events Section */
.news-events {
    padding: 50px 20px;
    text-align: center;
}

.news-events h2 {
    margin-bottom: 30px;
    color: #333;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.news-item h3 {
    color: #4285f4;
    margin-bottom: 10px;
}

.news-card {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0 10px 20px;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-card h3, .news-item h3 {
    color: #4285f4;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #4285f4;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4285f4;
}

.social-links a {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .highlights, .news-container, .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-card, .news-item, .footer-section {
        width: 100%;
        max-width: 100%;
    }
}