/* General Body Styling */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: white; 
    color: #333; 
}

.school-logo {
    width: 120px;
    height: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    background-color: #c8102e; 
    padding: 20px 20px; 
    border-radius: 20px 0 0 20px; 
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffcccb; 
}

/* Main Content Styling */
main {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}

/* Section Styling */
section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
}

/* Hero Section */
.hero-section {
    background-color: #e0f2f7;
    color: #333;
    padding: 40px 20px; 
}

.hero-content {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
}

.hero-text {
    text-align: left; 
}

.hero-image {
    max-width: 300px; 
    height: auto;
    border-radius: 10px; 
}


/* Features Section */
.features-section {
    display: flex;
    justify-content: space-around;
    gap: 40px; 
    padding: 20px;
}

.feature {
    border: 1px solid #ddd; 
    padding: 20px; 
    border-radius: 10px; 
    background-color: white; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.feature-image {
    max-width: 100%; 
    height: auto;
    margin-bottom: 10px; 
}

/* About Section */
.about-content {
    display: flex;
    gap: 30px;
    max-width: 800px; 
}

.about-text {
    text-align: left; 
}

.teacher-photo {
    max-width: 200px; 
    height: auto;
    border-radius: 10px; 
}


/* Footer Styling */
.footer {
    background-color: black; 
    color: white;
    padding: 30px 0;
}

.footer a {
    color: #ffcccb;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
        border-radius: 20px; 
    }

    .nav-links li a {
        display: block; 
        text-align: center; 
    }

    .school-logo {
        width: 100px;
    }

    .hero-content {
        flex-direction: column; 
    }

    .hero-image {
        max-width: 90%; 
        margin-top: 20px; 
    }

    .features-section {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column; 
        align-items: center; 
    }

    .teacher-photo {
        max-width: 70%; 
        margin-bottom: 20px; 
    }
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 0 auto; 
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 60%; 
    max-width: 600px; 
}

.close-button { 
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Form Styling */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; 
}

/* Button Styles */
.button {
    background-color: #c8102e;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #a91228;
}

/* Popup Styles */
.popup {
    display: block; 
    position: fixed; 
    z-index: 100; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%; 
    max-width: 500px; 
    background-color: white;
    border: 5px solid black; 
    padding: 20px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5); 
}

.dismiss-button {
    background-color: #c8102e; 
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px; 
    display: block; 
    width: 100%; 
}

/* General Image Styling */
.resource img {
    width: 50%; /* Default size for all images */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Specific Image Resizing */
.resource img[src="images/pbskids.png"],
.resource img[src="images/khan.png"],
.resource img[src="images/counseling.png"] {
    width: 75%; /* Increase these images by 50% */
}