
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f8fb;
    color: #222;
}

nav {
    background-color: #12355b;
    padding: 18px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    text-decoration: none;
    background-color: #1f4e79;
    padding: 8px 12px;
    border-radius: 6px;
}
.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(to bottom, #ffffff, #e8f1f8);
}

.hero h1 {
    font-size: 52px;
    margin: 10px 0 15px;
    font-weight: 700;
    color: #12355b;
    letter-spacing: 1px;
}

.hero p {
    font-size: 21px;
    line-height: 1.6;
    margin: 8px auto;
}

.hero p:last-child {
    font-size: 17px;
    color: #555;
    margin-top: 15px;
}
h1 {
    text-align: center;
    font-size: 40px;
    margin-top: 50px;
}

h2 {
    color: #12355b;
    margin-top: 35px;
    text-align: center;
}

p, ul {
    font-size: 18px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

li {
    margin-bottom: 8px;
}
.about {
    text-align: center;
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about p {
    font-size: 18px;
    line-height: 1.6;
}
.subjects {
    text-align: center;
    padding: 50px 20px;
}

.subjects h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.subject-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.subject-list div {
    padding: 20px 30px;
    background-color: #e8f1f8;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    min-width: 120px;
    margin: auto;
}
.why-us {
    text-align: center;
    padding: 50px 20px;
}

.why-us h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.why-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.why-list div {
    max-width: 280px;
    padding: 25px;
    background-color: #f4f8fb;
    border-radius: 10px;
}

.why-list h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.why-list p {
    font-size: 16px;
    line-height: 1.5;
}
.levels {
    text-align: center;
    padding: 50px 20px;
}

.levels h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.level-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.level-list div {
    max-width: 280px;
    padding: 25px;
    background-color: #e8f1f8;
    border-radius: 10px;
}

.level-list h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.level-list p {
    font-size: 16px;
    line-height: 1.5;
}
.cta {
    text-align: center;
    padding: 60px 20px;
    background-color: #e8f1f8;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #163a5c;
    transform: scale(1.05);
}
.contact {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f8fb;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.about-tutor {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

.about-tutor h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-tutor p {
    font-size: 18px;
    line-height: 1.7;
}
.contact-options {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-card {
    width: 250px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    text-align: center;
}

.contact-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.contact-card a {
    display: block;
    margin: 8px 0;
    color: #1f4e79;
    text-decoration: none;
    font-weight: bold;
}

.contact-card a:hover {
    text-decoration: underline;
}
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 14px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #163a5c;
}
@media (max-width: 768px) {
   .hero-content {
    flex-direction: column;
    gap: 30px;
}

.hero-text,
.hero-image {
    width: 100%;
}

.hero-image img {
    max-width: 400px;
}

    .hero-text {
        width: 100%;
    }

    .hero-button {
        width: auto;
    }
nav a {
    display: inline-block;
    margin: 5px;
}
.why-list,
.level-list,
.contact-options {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .subject-list div,
    .why-list div,
    .level-list div,
    .contact-card {
        width: 90%;
        max-width: 350px;
    }

    .hero h1 {
    font-size: 40px;
    color: #12355b;
    margin-bottom: 10px;
}

    .hero p {
        font-size: 18px;
    }

}
.teach-subjects {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 900px;
}

.teach-subjects div {
    width: 150px;
    padding: 20px;
    background-color: #e8f1f8;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
}

#subjects {
    text-align: center;
    margin-top: 40px;
}

#levels {
    text-align: center;
    margin-top: 40px;
}

.teach-levels {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto;
}

.teach-levels div {
    width: 120px;
    padding: 15px;
    background-color: #e8f1f8;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
}
.diagnostic {
    text-align: center;
    padding: 60px 20px;
    background: #e8f1f8;
}

.diagnostic h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.diagnostic p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 750px;
    margin: 10px auto;
}

.diagnostic-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.diagnostic-button:hover {
    background-color: #163a5c;
    transform: scale(1.05);
}
.diagnostic-intro {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 800px;
    margin: auto;
}

.diagnostic-intro h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.diagnostic-intro p {
    font-size: 18px;
    line-height: 1.6;
}

.diagnostic-form {
    max-width: 600px;
    margin: 20px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.diagnostic-form h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.diagnostic-form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.diagnostic-form input,
.diagnostic-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
}
.math-test {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.math-test h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.math-test > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f4f8fb;
    border-radius: 8px;
}

.question h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.question label {
    display: block;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}

.question input {
    margin-right: 8px;
}

.math-test button {
    display: block;
    margin: 30px auto 0;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.math-test button:hover {
    background-color: #163a5c;
    transform: scale(1.05);
}
#result {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f1f8;
    border-radius: 10px;
    text-align: center;
}

#result h3 {
    font-size: 24px;
    color: #12355b;
    margin-bottom: 10px;
}

#result p {
    font-size: 17px;
    line-height: 1.6;
}
.english-test {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.english-test h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.english-test > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.english-test button {
    display: block;
    margin: 30px auto 0;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
.chemistry-test {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.chemistry-test h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.chemistry-test > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.chemistry-test button {
    display: block;
    margin: 30px auto 0;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
.biology-test {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.biology-test h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.biology-test > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.biology-test button {
    display: block;
    margin: 30px auto 0;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
.physics-test {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
}

.physics-test h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.physics-test > p {
    font-size: 17px;
    margin-bottom: 30px;
}

.physics-test button {
    display: block;
    margin: 30px auto 0;
    padding: 14px 30px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
/* Diagnostic test improvements */

.diagnostic-form {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.math-test,
.english-test,
.chemistry-test,
.biology-test,
.physics-test {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.diagnostic-form input:focus,
.diagnostic-form select:focus {
    outline: none;
    border-color: #1f4e79;
    box-shadow: 0 0 5px rgba(31, 78, 121, 0.3);
}
.back-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.back-button:hover {
    background-color: #163a5c;
}
.result-button {
    display: inline-block;
    margin: 15px 8px 5px;
    padding: 12px 22px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.result-button:hover {
    background-color: #163a5c;
    transform: scale(1.03);
}
#result,
#english-result,
#chemistry-result,
#biology-result,
#physics-result,
#early-math-result,
#primary-math-result,
#upper-math-result,
#secondary-math-result,
#gcse-math-result,
#alevel-math-result {
    margin-top: 30px;
    padding: 30px;
    background-color: #e8f1f8;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#result h3,
#english-result h3,
#chemistry-result h3,
#biology-result h3,
#physics-result h3,
#early-math-result h3,
#primary-math-result h3,
#upper-math-result h3,
#secondary-math-result h3,
#gcse-math-result h3,
#alevel-math-result h3 {
    font-size: 26px;
    color: #12355b;
    margin-bottom: 20px;
}

#result p,
#english-result p,
#chemistry-result p,
#biology-result p,
#physics-result p,
#early-math-result p,
#primary-math-result p,
#upper-math-result p,
#secondary-math-result p,
#gcse-math-result p,
#alevel-math-result p {
    font-size: 17px;
    line-height: 1.6;
}
.math-test,
.english-test,
.chemistry-test,
.biology-test,
.physics-test {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.math-test label,
.english-test label,
.chemistry-test label,
.biology-test label,
.physics-test label {
    display: block;
    margin: 12px 0;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.math-test label:hover,
.english-test label:hover,
.chemistry-test label:hover,
.biology-test label:hover,
.physics-test label:hover {
    background-color: #f4f8fb;
}
.math-test h2,
.english-test h2,
.chemistry-test h2,
.biology-test h2,
.physics-test h2 {
    text-align: center;
    color: #12355b;
    font-size: 28px;
    margin-bottom: 25px;
}
.math-test button,
.english-test button,
.chemistry-test button,
.biology-test button,
.physics-test button {
    display: block;
    margin: 25px auto 10px;
    padding: 13px 28px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.math-test button:hover,
.english-test button:hover,
.chemistry-test button:hover,
.biology-test button:hover,
.physics-test button:hover {
    background-color: #163a5c;
    transform: scale(1.03);
}
.test-instruction {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin: -10px 0 25px;
}
.diagnostic-header {
    text-align: center;
    padding: 30px 20px 35px;
    background-color: #12355b;
    color: white;
}

.diagnostic-header h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.diagnostic-header p {
    font-size: 18px;
    margin: 5px 0;
}
.back-button {
    margin: 20px auto;
    transition: 0.2s ease;
}

.back-button:hover {
    transform: scale(1.03);
}
.diagnostic-footer {
    text-align: center;
    padding: 35px 20px;
    background-color: #12355b;
    color: white;
    margin-top: 40px;
}

.diagnostic-footer h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.diagnostic-footer p {
    font-size: 15px;
    margin: 6px 0;
    line-height: 1.5;
}
.logo {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
}
.levels-group {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 30px auto;
}

.level-card {
    width: 220px;
    padding: 25px;
    background-color: #e8f1f8;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
}

.level-card h3 {
    font-size: 20px;
    color: #12355b;
    margin-bottom: 12px;
}

.level-card p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}
.levels-note {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px;
    font-size: 17px;
    line-height: 1.6;
}
.curriculum {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f8fb;
}

.curriculum h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.curriculum-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.curriculum-card {
    width: 260px;
    padding: 25px;
    background-color: #e8f1f8;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.curriculum-card h3 {
    color: #12355b;
    font-size: 20px;
    margin-bottom: 12px;
}

.curriculum-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.curriculum-note {
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 16px;
    line-height: 1.6;
}
.support {
    text-align: center;
    padding: 60px 20px;
}

.support h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.support-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.support-card {
    width: 240px;
    padding: 25px;
    background-color: #e8f1f8;
    border-radius: 10px;
    box-sizing: border-box;
}

.support-card h3 {
    color: #12355b;
    font-size: 20px;
    margin-bottom: 12px;
}

.support-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.booking-info {
    text-align: center;
    padding: 60px 20px;
    background-color: #12355b;
    color: white;
}

.booking-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.booking-info p {
    max-width: 750px;
    margin: 0 auto 25px;
    font-size: 18px;
    line-height: 1.6;
}

.booking-info .cta-button {
    background-color: white;
    color: #12355b;
}

.booking-info .cta-button:hover {
    background-color: #e8f1f8;
}
.faq {
    text-align: center;
    padding: 60px 20px;
}

.faq h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.faq-list {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background-color: #f4f8fb;
    margin-bottom: 18px;
    border-radius: 10px;
    text-align: left;
    overflow: hidden;
}

.faq-item summary {
    color: #12355b;
    font-size: 20px;
    font-weight: bold;
    padding: 25px;
    cursor: pointer;
    list-style-position: inside;
}

.faq-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0 25px 25px;
}
.site-footer {
    text-align: center;
    padding: 45px 20px;
    background-color: #12355b;
    color: white;
}

.site-footer h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.site-footer p {
    font-size: 15px;
    margin: 6px 0;
}

.site-footer .footer-copy {
    margin-top: 20px;
    font-size: 14px;
}
.site-footer a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.site-footer a:hover {
    color: #e8f1f8;
}
.back-to-top {
    display: block;
    width: fit-content;
    margin: 25px auto;
    padding: 10px 20px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.back-to-top:hover {
    background-color: #163a5c;
}
.booking-form {
    max-width: 650px;
    margin: 30px auto 0;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #12355b;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.booking-form textarea {
    resize: vertical;
}

.booking-submit {
    display: block;
    margin: 25px auto 0;
    padding: 14px 28px;
    background-color: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.booking-submit:hover {
    background-color: #163a5c;
    transform: scale(1.03);
}
.booking-form-title {
    font-size: 26px;
    color: white;
    margin: 30px auto 8px;
}

.booking-form-intro {
    max-width: 650px;
    margin: 0 auto 20px;
    font-size: 17px;
    line-height: 1.6;
}
.booking-note {
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.booking-benefit-title {
    font-size: 26px;
    color: white;
    margin: 0 auto 8px;
}

.booking-benefit-text {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 17px;
    line-height: 1.6;
}
.testimonials {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f8fb;
}

.testimonials h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.testimonials-intro {
    max-width: 750px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.6;
}

.testimonial-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
}

.testimonial-card {
    width: 280px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card h3 {
    color: #12355b;
    font-size: 17px;
}
.approach {
    text-align: center;
    padding: 60px 20px;
}

.approach h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.approach-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.approach-card {
    width: 240px;
    padding: 25px;
    background-color: #e8f1f8;
    border-radius: 10px;
    box-sizing: border-box;
}

.approach-card h3 {
    color: #12355b;
    font-size: 20px;
    margin-bottom: 12px;
}

.approach-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.nav-book {
    background-color: white;
    color: #12355b !important;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: bold;
}

.nav-book:hover {
    background-color: #e8f1f8;
    color: #12355b !important;
}
.booking-button {
    display: block;
    width: fit-content;
    background-color: #12355b;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 15px auto 0;
}

.booking-button:hover {
    background-color: #0d2945;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

.hero-text {
    width: 50%;
}

.hero-image {
    display: block;
    width: 45%;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.hero-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
}
.hero-button:hover {
    background-color: #12355b;
}
.about {
    max-width: 900px;
    margin: 50px auto;
    padding: 35px 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about h2 {
    color: #12355b;
    margin-top: 0;
}

.about p {
    text-align: center;
}
.subjects {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.subjects h2 {
    margin-bottom: 30px;
}

.subjects > p {
    text-align: center;
    margin-bottom: 30px;
}
.subject-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.subject-list > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-list > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


.why-us {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #e8f1f8;
    border-radius: 15px;
}

.why-us h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.levels {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.levels h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.level-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.level-list > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-list > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.booking-info {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.booking-info h2 {
    color: #12355b;
    margin-top: 0;
    margin-bottom: 15px;
}
.booking-info input,
.booking-info select,
.booking-info textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.booking-info input:focus,
.booking-info select:focus,
.booking-info textarea:focus {
    border-color: #1f4e79;
    outline: none;
}
.booking-submit {
    display: block;
    margin: 10px auto 0;
    padding: 14px 30px;
    background-color: #12355b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.booking-submit:hover {
    background-color: #1f4e79;
}
.contact {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: #e8f1f8;
    border-radius: 15px;
}

.contact h2 {
    margin-top: 0;
    margin-bottom: 25px;
}
.contact a {
    color: #12355b;
    font-weight: bold;
    text-decoration: none;
}

.contact a:hover {
    color: #1f4e79;
    text-decoration: underline;
}
.faq {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.testimonials {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: #e8f1f8;
    border-radius: 15px;
}

.testimonials h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.testimonial-card {
    background-color: white;
    padding: 25px;
    margin: 20px auto;
    max-width: 750px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.approach {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.approach h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.about-tutor {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 25px;
    background-color: #e8f1f8;
    border-radius: 15px;
}

.about-tutor h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

.about-tutor p {
    text-align: center;
}
.site-footer {
    background-color: #12355b;
    color: white;
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
}
.site-footer p {
    max-width: 650px;
    margin: 8px auto;
    text-align: left;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}
.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}
.why-list div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-list div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.why-list div {
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
}
.personalised-assessment {
    max-width: 750px;
    margin: 25px auto;
    padding: 25px;
    background: #e8f1f8;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.personalised-assessment h2 {
    margin-bottom: 10px;
}
.about-tutor {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-tutor:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.curriculum-card {
    background: #f4f8fb;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.booking-info {
    background: #e8f1f8;
    border-radius: 18px;
    padding: 35px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.booking-info h2,
.booking-info h3,
.booking-info p {
    color: #222;
}
.support-image {
    text-align: center;
    margin-top: 30px;
}

.support-image img {
    width: 100%;
    max-width: 750px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.tutor-photo {
    text-align: center;
}

.tutor-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
}
.tutor-card {
    text-align: center;
}
.tutors-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.tutor-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
}
.tutor-card {
    min-height: 520px;
}
section {
    scroll-margin-top: 90px;
}
.careers-section {
    background: #e8f1f8;
    border-radius: 18px;
    padding: 40px 25px;
    margin-top: 40px;
    text-align: center;
}

.careers-section h2 {
    margin-bottom: 15px;
}

.careers-intro {
    max-width: 800px;
    margin: 0 auto 30px;
}

.careers-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.career-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 20px;
    flex: 1;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.career-card h3 {
    margin-bottom: 12px;
}

.career-apply {
    margin-top: 35px;
}

.career-apply h3 {
    margin-bottom: 10px;
}
.tutor-application {
    max-width: 750px;
    margin: 40px auto;
    padding: 35px 25px;
    background: #f4f8fb;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tutor-application h2 {
    text-align: center;
    margin-bottom: 15px;
}

.tutor-application > p {
    text-align: center;
    margin-bottom: 30px;
}

.tutor-application form {
    display: flex;
    flex-direction: column;
}

.tutor-application label {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 6px;
}

.tutor-application input,
.tutor-application textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

.tutor-application textarea {
    resize: vertical;
}

.tutor-application button {
    margin-top: 25px;
    border: none;
    cursor: pointer;
}
.enrol-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 25px;
    background: #e8f1f8;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.enrol-section h2 {
    margin-bottom: 15px;
}

.enrol-section > p {
    max-width: 750px;
    margin: 0 auto 30px;
}

.jotform-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
}/* TEAM AIG Jotform Display */

.jotform-container {
    min-height: 900px;
}
/* TEAM AIG Hero Polish */

.hero {
    padding: 80px 20px;
}

.hero-content {
    max-width: 1150px;
    gap: 60px;
}

.hero-text {
    text-align: center;
}

.hero-text .logo {
    width: 150px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 56px;
    margin: 5px 0 12px;
}

.hero-text p:first-of-type {
    font-size: 24px;
    font-weight: bold;
    color: #12355b;
}

.hero-text p:nth-of-type(2) {
    font-size: 18px;
    font-weight: 600;
}

.hero-text p:last-of-type {
    font-size: 16px;
    color: #555;
}

.hero-button {
    margin-top: 25px;
    padding: 15px 32px;
    font-size: 18px;
    transition: 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-image img {
    max-width: 520px;
}
 /* TEAM AIG Welcome Section */

.about {
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 25px;
    text-align: center;
    background: #e8f1f8;
}

.about h2 {
    font-size: 34px;
    color: #12355b;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}
/* TEAM AIG Subjects Section */

.subjects {
    padding: 65px 25px;
    text-align: center;
}

.subjects h2 {
    font-size: 34px;
    color: #12355b;
    margin-bottom: 35px;
}

.subject-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.subject-list div {
    background: #e8f1f8;
    padding: 22px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 18px;
    font-weight: 600;
    color: #12355b;
    min-width: 150px;
    transition: 0.2s ease;
}

.subject-list div:hover {
    transform: translateY(-4px);
}
 /* TEAM AIG Learning Message */

.learning-message {
    max-width: 900px;
    margin: 20px auto 50px;
    padding: 55px 25px;
    text-align: center;
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.learning-message h2 {
    font-size: 36px;
    color: #12355b;
    margin: 15px 0 20px;
}

.learning-message p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

.learning-message p:first-child {
    font-weight: 600;
    color: #1f4e79;
}
 /* TEAM AIG Subjects Available */

.subjects-available {
    max-width: 1100px;
    margin: 20px auto 60px;
    padding: 55px 25px;
    text-align: center;
}

.subjects-available h2 {
    font-size: 34px;
    color: #12355b;
    margin-bottom: 35px;
}

.teach-subjects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.teach-subjects div {
    background: #e8f1f8;
    color: #12355b;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    min-width: 150px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}


/* Other Subjects card - Subjects Available section only */
.teach-subjects > .other-subjects-card {
    flex: 0 1 700px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    text-align: center;
}
 /* TEAM AIG Levels Available */

.levels-available {
    max-width: 1100px;
    margin: 20px auto 60px;
    padding: 55px 25px;
    text-align: center;
}

.levels-available h2 {
    font-size: 34px;
    color: #12355b;
    margin-bottom: 35px;
}

.levels-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.level-card {
    background: #e8f1f8;
    padding: 28px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-card h3 {
    color: #12355b;
    font-size: 19px;
    margin-bottom: 12px;
}

.level-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.curriculum h2 {
    color: #12355b;
    font-size: 34px;
    margin-bottom: 35px;
}
.support {
    text-align: center;
    padding: 65px 25px;
}

.support h2 {
    color: #12355b;
    font-size: 34px;
    margin-bottom: 35px;
}
.support-image {
    max-width: 850px;
    margin: 40px auto 0;
    text-align: center;
}

.support-image img {
    width: 100%;
    max-width: 850px;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
 /* TEAM AIG Collapsible Booking */

.booking-collapse {
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
}

.booking-collapse summary {
    background: #1f4e79;
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.booking-collapse summary::-webkit-details-marker {
    display: none;
}

.booking-collapse summary::after {
    content: " ▾";
    font-size: 18px;
}

.booking-collapse[open] summary::after {
    content: " ▴";
}

.booking-collapse summary:hover {
    transform: translateY(-2px);
}

.booking-collapse .booking-form-intro,
.booking-collapse .booking-form {
    margin-top: 20px;
}
 /* TEAM AIG Collapsible Enrolment */

.enrol-collapse {
    max-width: 800px;
    margin: 25px auto;
    text-align: left;
}

.enrol-collapse summary {
    background: #1f4e79;
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.enrol-collapse summary::-webkit-details-marker {
    display: none;
}

.enrol-collapse summary::after {
    content: " ▾";
    font-size: 18px;
}

.enrol-collapse[open] summary::after {
    content: " ▴";
}

.enrol-collapse summary:hover {
    transform: translateY(-2px);
}

.enrol-collapse p {
    text-align: center;
    margin: 20px auto;
    max-width: 700px;
}
 /* TEAM AIG Collapsible Tutor Application */

.tutor-apply-collapse {
    max-width: 800px;
    margin: 25px auto;
    text-align: left;
}

.tutor-apply-collapse summary {
    background: #1f4e79;
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.tutor-apply-collapse summary::-webkit-details-marker {
    display: none;
}

.tutor-apply-collapse summary::after {
    content: " ▾";
    font-size: 18px;
}

.tutor-apply-collapse[open] summary::after {
    content: " ▴";
}

.tutor-apply-collapse summary:hover {
    transform: translateY(-2px);
}

.tutor-apply-collapse p {
    text-align: center;
    margin: 20px auto;
    max-width: 700px;
}
/* TEAM AIG Year / Grade Information Box */

.levels-note {
    max-width: 850px;
    margin: 25px auto 40px;
    padding: 25px 30px;
    background: #e8f1f8;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
}

.levels-note p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}
/* TEAM AIG Assessment Information Box */

.assessment-info {
    max-width: 800px;
    margin: 25px auto;
    padding: 25px 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
}

.assessment-info p {
    margin: 0 0 15px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.assessment-info p:last-child {
    margin-bottom: 0;
}
/* TEAM AIG Curriculum Cards - Light Blue */

.curriculum .curriculum-card {
    background-color: #e8f1f8 !important;
}
/* TEAM AIG Jotform Height */

.jotform-container iframe {
    width: 100% !important;
    min-height: 1800px !important;
    border: none !important;
}
/* TEAM AIG Footer Logo */

.footer-logo {
    width: 90px;
    height: auto;
    margin-bottom: 12px;
}
.site-footer {
    text-align: center;
    padding: 45px 20px;
}

.site-footer h3 {
    font-size: 28px;
    margin: 10px 0 12px;
}

.site-footer p {
    margin: 8px 0;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .levels-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .levels-group {
        grid-template-columns: 1fr;
    }
}

/* Science Diagnostic Test */
.science-test {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #e8f1f8;
    border-radius: 15px;
    box-sizing: border-box;
}

.science-test h2 {
    text-align: center;
    margin-bottom: 20px;
}

.science-test p {
    text-align: center;
}

.science-test label {
    display: block;
    margin: 10px 0;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.science-test label:hover {
    background: #f4f8fb;
}
/* Science Diagnostic Submit Button */
.science-test button {
    display: block;
    margin: 25px auto 0;
    padding: 12px 25px;
    background: #1f4e79;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.science-test button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    nav a {
        font-size: 17px;
    }
}
@media (max-width: 768px) {
    h2 {
        font-size: 30px;
    }
}
@media (max-width: 768px) {
    p {
        font-size: 18px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    button,
    .hero-button,
    .booking-button,
    .nav-book {
        font-size: 17px;
        padding: 12px 20px;
    }
}
@media (max-width: 768px) {
    .subject-list div,
    .why-list div,
    .level-list div,
    .teach-subjects div,
    .teach-levels div,
    .contact-card {
        font-size: 17px;
    }
}
@media (max-width: 768px) {
    .subject-list,
    .why-list,
    .level-list,
    .teach-subjects,
    .teach-levels,
    .contact-options {
        gap: 18px;
    }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 44px;
    }
}
@media (max-width: 768px) {
    .hero p {
        font-size: 20px;
        line-height: 1.5;
    }
}
@media (max-width: 768px) {
    .hero-button {
        font-size: 18px;
        padding: 14px 24px;
    }
}
@media (max-width: 768px) {
    .site-footer {
        font-size: 17px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .contact-card {
        font-size: 18px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        font-size: 17px;
        padding: 12px;
    }
}
@media (max-width: 768px) {
    .booking-form label {
        font-size: 17px;
        margin-bottom: 6px;
    }
}
@media (max-width: 768px) {
    .booking-form button {
        font-size: 18px;
        padding: 14px 22px;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .about {
        margin: 30px 12px;
        padding: 25px 18px;
    }
}
@media (max-width: 768px) {
    .faq {
        padding: 25px 18px;
    }

    .faq p {
        font-size: 17px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .testimonials {
        padding: 25px 18px;
    }

    .testimonials p {
        font-size: 17px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .approach {
        padding: 25px 18px;
    }

    .approach p {
        font-size: 17px;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .support {
        padding: 25px 18px;
    }

    .support p {
        font-size: 17px;
        line-height: 1.6;
    }
}
/* ================================
   MOBILE POLISH - FINAL
   ================================ */

@media (max-width: 768px) {

    /* Support section */
    .support {
        padding: 25px 18px;
    }

    .support p {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Booking information */
    .booking-info {
        padding: 25px 18px;
    }

    .booking-info p {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Curriculum section */
    .curriculum {
        padding: 25px 18px;
    }

    .curriculum p {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Diagnostic section */
    .diagnostic {
        padding: 25px 18px;
    }

    .diagnostic p {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Diagnostic form fields */
    .diagnostic-form input,
    .diagnostic-form select,
    .diagnostic-form textarea {
        font-size: 17px;
        padding: 12px;
    }

    /* Diagnostic buttons */
    .diagnostic-form button {
        font-size: 18px;
        padding: 14px 22px;
        width: 100%;
    }

    /* Levels section */
    .levels-group {
        padding: 25px 18px;
    }

    .levels-group p {
        font-size: 17px;
        line-height: 1.6;
    }

    /* Hero image */
    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    /* General mobile section spacing */
    section {
        margin-bottom: 30px;
    }

    /* Prevent text from touching screen edges */
    .hero,
    .subjects,
    .levels,
    .about,
    .contact,
    .booking,
    .faq {
        box-sizing: border-box;
    }

    /* Footer headings */
    .site-footer h3 {
        font-size: 24px;
    }

    /* Footer links/text */
    .site-footer a {
        font-size: 17px;
    }
}

/* TEAM AIG Curricula page design */
.curricula-page {
    margin: 0;
    background-color: #f4f8fb;
    color: #263746;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.curricula-page header {
    background-color: #12355b;
    color: white;
    text-align: center;
    padding: 25px 20px;
}

.curricula-page header h1 {
    margin: 0 0 5px;
    font-size: 32px;
}

.curricula-page header p {
    margin: 0 0 20px;
    font-size: 17px;
}


.curricula-page header > p {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.curricula-page nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.curricula-page nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
}

.curricula-page nav a:hover {
    text-decoration: underline;
}

.curricula-page nav a.nav-book {
    background-color: #ffffff;
    color: #12355b;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.curricula-page nav a.nav-book:hover {
    background-color: #e8f1f8;
    text-decoration: none;
}

.curricula-page nav .nav-book,
.curricula-page main .nav-book {
    display: inline-block;
    background-color: #1f4e79;
    color: white;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: bold;
}

.curricula-page main {
    padding: 30px 20px 50px;
}

.curricula-page main section {
    max-width: 1100px;
    margin: 0 auto 35px;
    padding: 35px 20px;
    text-align: center;
    box-sizing: border-box;
}

.curricula-page main section h2 {
    color: #12355b;
    font-size: 30px;
    margin: 0 0 20px;
}

.curricula-page main section > p {
    max-width: 850px;
    margin: 0 auto 18px;
    line-height: 1.7;
    font-size: 16px;
}

.curricula-page .curriculum-list {
    margin-top: 30px;
    align-items: stretch;
}

.curricula-page .curriculum-card {
    text-align: left;
    width: 260px;
    max-width: 100%;
}

.curricula-page .curriculum-card p + p {
    margin-top: 12px;
}

.curricula-page .curriculum-note {
    margin-top: 30px;
}

.curricula-page footer {
    background-color: #12355b;
    color: white;
    text-align: center;
    padding: 25px 15px;
}

.curricula-page footer p {
    margin: 5px 0;
}

.curricula-page footer a {
    color: white;
}

@media (max-width: 600px) {
    .curricula-page header h1 {
        font-size: 27px;
    }

    .curricula-page nav {
        flex-direction: column;
        gap: 4px;
    }

    .curricula-page nav a {
        font-size: 16px;
    }

    .curricula-page main {
        padding: 15px 12px 30px;
    }

    .curricula-page main section {
        padding: 25px 5px;
    }

    .curricula-page main section h2 {
        font-size: 25px;
    }

    .curricula-page .curriculum-card {
        width: 100%;
    }
}