/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
}

/* Body */
body {
    background-color: #f4f7fb;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
}

/* Link Styling */
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #004A7C;
    color: #fff;
    padding: 20px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.navbar .logo a {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-right: 40px;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links li {
    text-align: center;
    white-space: nowrap;
}
.nav-links li a {
    color: #fff;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
    background-color: #2c3e50;
}

/* Hero Section */
#hero {
    background: url('https://img.freepik.com/free-photo/front-view-kid-doing-homework_23-2149610742.jpg') no-repeat center center/cover;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    background-position: center;
    background-size: cover;
    background-color: #2d3b3f;
}
#hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}
#hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
}
#hero p {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 300;
    color: #fff;
}
.btn {
    background-color: #fff;
    color: #004A7C;
    font-weight: bold;
    border: 2px solid #004A7C;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    padding: 12px 25px;
    text-transform: uppercase;
    border-radius: 25px;
}
.btn:hover {
    background-color: #004A7C;
    color: #fff;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #004A7C;
    font-weight: 700;
}
.about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background-color: #f7f7f7;
}
.services h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #004A7C;
    font-weight: 700;
}
.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.card {
    background: #fff;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 280px;
    height: 350px;
    border: 2px solid #004A7C;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #004A7C;
    font-weight: 700;
}
.card p {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
}

/* Become a Tutor Page */
.become-tutor-page {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.become-tutor-page h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
}
.become-tutor-page p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}
.tutor-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
    text-align: left;
}
.tutor-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.tutor-form input,
.tutor-form select,
.tutor-form textarea,
.tutor-form button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
}
.tutor-form textarea {
    height: 180px;
}
.tutor-form button {
    background-color: #fff;
    color: #004A7C;
    font-weight: bold;
    border: 2px solid #004A7C;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.tutor-form button:hover {
    background-color: #004A7C;
    color: #fff;
}

/* Get Help Sign Up Page */
.get-help-page {
    padding: 80px 20px;
    background-color: #fff;
    text-align: left;
}
.get-help-page h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}
.get-help-page p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}
.help-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}
.help-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.help-form input,
.help-form select,
.help-form textarea,
.help-form button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
}
.help-form textarea {
    height: 180px;
}
.help-form button {
    background-color: #fff;
    color: #004A7C;
    font-weight: bold;
    border: 2px solid #004A7C;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.help-form button:hover {
    background-color: #004A7C;
    color: #fff;
}

/* Gallery Section */
.gallery {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.gallery h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
}
.gallery p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.gallery-item img:hover {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.faq h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
}
.faq p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}
.accordion {
    background-color: #fff;
    border: 1px solid #004A7C;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.accordion-item {
    border-bottom: 1px solid #e1e1e1;
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    background-color: #004A7C;
    color: #fff;
    padding: 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px 8px 0 0;
}
.accordion-header:hover {
    background-color: #2c3e50;
}
.accordion-body {
    padding: 15px;
    font-size: 16px;
    color: #333;
    display: none;
    background-color: #f7f7f7;
    border-radius: 0 0 8px 8px;
}
.accordion-item.active .accordion-body {
    display: block;
}

/* Our Team Section */
.team-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.team-section h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 50px;
}
.team-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.team-card {
    background: #fff;
    border: 2px solid #004A7C;
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.team-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #004A7C;
}
.team-card h3 {
    font-size: 24px;
    color: #004A7C;
    margin-bottom: 15px;
    font-weight: 700;
}
.team-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact-page {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.contact-page h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}
.contact-page p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #004A7C;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
footer p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}
footer .contact-info {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}
footer .contact-info a {
    color: #fff;
    text-decoration: none;
}
footer .contact-info a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background-color: #fff;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.contact-section h2 {
    font-size: 40px;
    color: #004A7C;
    font-weight: 700;
    margin-bottom: 40px;
}
.contact-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.contact-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
    font-family: 'Times New Roman', serif;
    resize: vertical;
}
.contact-form textarea {
    height: 160px;
}
.contact-form button {
    background-color: #fff;
    color: #004A7C;
    font-weight: bold;
    border: 2px solid #004A7C;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 18px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-form button:hover {
    background-color: #004A7C;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 15px;
    }
    .contact-form {
        padding: 30px 20px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .team-cards {
        flex-direction: column;
        align-items: center;
    }
    .team-card {
        width: 90%;
        max-width: 400px;
        margin-bottom: 30px;
    }
}
