/* Make all sections full width */
section {
    box-sizing: border-box;
    width: 100%;
    padding: 3rem 5%; /* vertical padding 3rem, horizontal 5% */
    margin: 20px 0;
    background-color: white;
    border-radius: 12px;
    border: 2px solid transparent; /* Default transparent border for consistent sizing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 350px; /* optional: consistent height, adjust as desired */
}

/* ----------- About Section (from earlier) ----------- */
#about {
    border-color: #ff6347;
    background-color: #fffdfa;
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.15);
}

#about:hover {
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.3);
}

#about h2 {
    font-size: 2.8rem;
    color: #ff6347;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.5rem;
}

#about h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: #ff6347;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

#about p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1rem;
    text-align: justify;
}

/* ----------- Services Section ----------- */
#services {
    border-color: #4A90E2;
    background-color: #f9fafb; /* very light cool gray */
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.15);
    }

#services:hover {
    box-shadow: 0 10px 35px rgba(74, 144, 226, 0.3);
}

#services h2 {
    font-size: 2.8rem;
    color: #4A90E2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.5rem;
}

#services h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: #4A90E2;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

#services .service-item {
    margin-bottom: 1.8rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.1);
    transition: box-shadow 0.3s ease;
}

#services .service-item:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
}

#services .service-item h3 {
    color: #2C3E50;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

#services .service-item p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ----------- Portfolio Section ----------- */
#portfolio {
    border-color: #D35400;
    background-color: #fffaf6;
    box-shadow: 0 6px 25px rgba(211, 84, 0, 0.15);
    min-height: 400px; /* Slightly taller if needed */
}

#portfolio:hover {
    box-shadow: 0 10px 35px rgba(211, 84, 0, 0.3);
}

#portfolio h2 {
    font-size: 2.8rem;
    color: #D35400;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.5rem;
}

#portfolio h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: #D35400;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.slider-container {
    margin-top: 1.5rem;
}

/* Portfolio images styling */
.slider-images img {
    max-width: 300px;       /* Limit max width */
    width: 100%;            /* Make image responsive */
    height: auto;           /* Maintain aspect ratio */
    border-radius: 10px;
    object-fit: cover;      /* Crop if necessary to fill box */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Optional hover zoom effect */
.slider-images img:hover {
    transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .slider-images {
        justify-content: center;
        gap: 0.75rem;
    }

    .slider-images img {
        max-width: 90vw;  /* almost full width on small screens */
    }
}

/* ----------- Testimonials Section ----------- */
#testimonials {
    border-color: #3498db;
    background-color: #f0f7ff;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
    min-height: 300px;
}

#testimonials:hover {
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

#testimonials h2 {
    font-size: 2.8rem;
    color: #2980b9;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

#testimonials h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: #2980b9;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.testimonial {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* ----------- Contact Section ----------- */
#contact {
    border-color: #27ae60;
    background-color: #fdfcf9;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.15);
    min-height: 300px;
}

#contact:hover {
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

#contact h2 {
    font-size: 2.8rem;
    color: #27ae60;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.5rem;
}

#contact h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: #27ae60;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

#contact p, #contact strong {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1rem;
}

/* Inner container to constrain content width */
.section-container, .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings, paragraphs, and other styles remain similar... */
section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background-color: currentColor; /* match text color */
    border-radius: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

section p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1rem;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Buttons */
.service-btn {
    background-color: #ff6347;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
    user-select: none;
}

.service-btn:hover,
.service-btn:focus {
    background-color: #e5533e;
    outline: none;
}

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5);
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    position: relative;
}

/* Close button */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #ff6347;
    outline: none;
}

/* Large Enrollment Modal Background */
.modal-large {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

/* Modal Content Box */
.modal-large-content {
    background-color: #fff;
    max-width: 650px;
    margin: 40px auto;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    outline: none;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    user-select: none;
}

.modal-close:hover,
.modal-close:focus {
    color: #ff6347;
    outline: none;
}

/* Modal Heading */
.modal-large-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ff6347;
    font-size: 2.8rem;
    font-weight: 700;
}

/* Description Paragraph */
.modal-large-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #444;
}

/* Form Styles */
form#enrollForm .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

form#enrollForm label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

form#enrollForm input,
form#enrollForm textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

form#enrollForm input:focus,
form#enrollForm textarea:focus {
    border-color: #ff6347;
    outline: none;
}

/* Submit Button */
.submit-btn {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover,
.submit-btn:focus {
    background-color: #e5533e;
    outline: none;
}

/* Responsive for small screens */
@media (max-width: 720px) {
    .modal-large-content {
        width: 100%;
        margin: 20px auto;
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }

    .modal-large {
        padding: 1.5rem 1rem;
    }
}
