/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    color: #FFF;
}

h2, h3 {
    text-align: center;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
    z-index: 9999; /* Above all other content */
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex; /* Show when active */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff0000;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background: url('../images/slider.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero .cta {
    background: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero .cta:hover {
    background: #e6b800;
}

/* Features Section */
.features {
    padding: 50px 20px;
    background: white;
}

.features-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1 1 calc(25% - 20px);
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Gallery Section */
.gallery {
    padding: 40px 20px;
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Admissions Open Popup Styles */
#admission-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's above other content */
    justify-content: center;
    align-items: center;
}

.admission-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.admission-close-btn:hover {
    color: #ff0000;
}

#admission-popup .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
}

#admission-popup h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

#admission-popup p {
    color: #555;
    margin-bottom: 20px;
}

#admission-popup .cta {
    background: #00509e;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

#admission-popup .cta:hover {
    background: #003f7e;
}

/* Enquiry Form Section */
.enquiry-form {
    padding: 50px 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.enquiry-form .form-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.enquiry-form .form-left,
.enquiry-form .form-right {
    flex: 1;
    max-width: 48%;
}

.enquiry-form h2 {
    text-align: center;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.enquiry-form form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.enquiry-form .form-group {
    margin-bottom: 20px;
}

.enquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.enquiry-form input, 
.enquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.enquiry-form input:focus, 
.enquiry-form textarea:focus {
    border-color: #00509e;
    outline: none;
}

.enquiry-form button {
    width: 100%;
    padding: 12px;
    background: #00509e;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.enquiry-form button:hover {
    background: #003f7e;
}

.enquiry-form .form-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.enquiry-form .form-right h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00509e;
}

.enquiry-form .form-right p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enquiry-form .form-container {
        flex-direction: column;
        gap: 20px;
    }

    .enquiry-form .form-left,
    .enquiry-form .form-right {
        max-width: 100%;
    }

    .hero {
        height: 300px;
    }
    .hero h1 {
        font-size: 24px;
    }
}
