/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
header {
    background-color: #003366;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-right: 1rem;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation Styles */
nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff9900;
}

/* Main Content Styles */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background-image: url('images/school-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #ff9900;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e68a00;
}

/* Preview & General Section Styles */
.about-preview, .academics-preview, .quick-links, .admissions-form-section, .contact-section, .notice-board-section, .about-section, .academics-section, .gallery-section {
    padding: 2rem;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #003366;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Academics Preview */
.programs {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.program {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.program h3 {
    color: #003366;
}

/* Quick Links */
.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    line-height: 1.8;
    transition: color 0.3s;
}

.quick-links li a:hover {
    color: #ff9900;
}

/* Admissions & Contact Form Styles */
.admission-form fieldset, .contact-form {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admission-form legend {
    font-weight: bold;
    color: #003366;
    padding: 0 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-group {
    text-align: center;
}

/* Notice Board Styles */
.notice-list {
    display: grid;
    gap: 1.5rem;
}

.notice-item {
    background-color: #f9f9f9;
    border-left: 5px solid #003366;
    padding: 1rem;
    border-radius: 5px;
}

.notice-item h3 {
    color: #003366;
    margin-top: 0;
}

.notice-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 51, 102, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}


/* Footer Styles */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
