/* ======================================================
   GENERAL
   ====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    line-height: 1.6;
}


/* ======================================================
   HEADER
   ====================================================== */

header {
    background: green;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

header h1 {
    margin: 0 0 10px;
    font-size: 42px;
}

header h2 {
    margin: 8px 0;
}

.header-link {
    color: blue;
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}


/* ======================================================
   LOGO SECTION
   ====================================================== */

.logo-section {
    position: relative;
    height: 120px;
    margin: 0;
    padding: 0;
}

/* Map Your Mind logo */
.map-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    max-width: 100px;
    height: auto;
}

/* Mum picture */
.mum-picture {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 90px;
    max-width: 90px;
    height: auto;
}


/* ======================================================
   NAVIGATION
   ====================================================== */

nav {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    padding: 14px 18px;
    display: block;
    text-decoration: none;
}

nav ul li a:hover {
    background: #da020e;
}


/* ======================================================
   HERO / ABOUT ME
   ====================================================== */

.hero {
    background: url("assets/images/page_background.jpg")
                center/cover no-repeat;
    color: black;
    padding: 70px 30px;
    text-align: center;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero h3 {
    font-size: 22px;
    margin-top: 30px;
}

.hero p {
    max-width: 850px;
    margin: 0 auto 15px;
}

.hero ul {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

.hero button {
    background: #da020e;
    border: none;
    padding: 13px 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    margin: 8px;
}

.hero button:hover {
    opacity: 0.9;
}


/* ======================================================
   GENERAL SECTIONS
   ====================================================== */

.section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 45px 30px;
    text-align: center;
    background: white;
    border-radius: 12px;
}

.section h2,
.extra-section h2,
.service-information h2,
.feedback-section h2 {
    font-size: 30px;
    margin-top: 0;
}

.section.dark {
    background: #222;
    color: white;
}


/* ======================================================
   HELPFUL INFORMATION CARDS
   ====================================================== */

.cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: white;
    padding: 25px;
    width: 280px;
    border-radius: 10px;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1);
}


/* ======================================================
   SERVICE LINKS
   ====================================================== */

.service-links {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    text-align: center;
}

.service-links ul {
    list-style: none;
    padding: 0;
    margin: 25px auto 0;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(220px, 1fr));
    gap: 15px;
    max-width: 800px;
}

.service-links li {
    margin: 0;
}

.service-links a {
    display: block;
    padding: 14px 18px;
    color: blue;
    font-size: 18px;
    text-decoration: none;
    background: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.service-links a:hover {
    background: #d9f2d9;
    text-decoration: underline;
}


/* ======================================================
   OUR COUNSELLING SERVICES
   ====================================================== */

.service-information {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #d9f2d9;
    border-radius: 12px;
}

.service-information > p {
    max-width: 850px;
    margin: 0 auto 25px;
    text-align: center;
}


/* ======================================================
   SERVICE SELECTION MESSAGE
   ====================================================== */

.service-selection-message {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    margin: 25px auto;
    max-width: 700px;
    text-align: center;
}


/* ======================================================
   SERVICE DETAILS
   ====================================================== */

.service-cards {
    margin-top: 25px;
}

/* Services are hidden until selected */
.service-detail {
    display: none;
}

/* Only selected service is shown */
.service-detail.active {
    display: block;
}


/* ======================================================
   SERVICE IMAGES
   ====================================================== */

.service-image {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 10px;
}


/* ======================================================
   SERVICE INFORMATION CARD
   ====================================================== */

.info-card {
    border: 1px solid #ddd;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    background: white;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-card h2 {
    margin-top: 0;
}


/* ======================================================
   HOW COUNSELLING CAN HELP
   ====================================================== */

#how-counselling-helps {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #d9f2d9;
    border-radius: 12px;
}


/* ======================================================
   HOW IT WORKS
   ====================================================== */

#how-it-works {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #d9f2d9;
    border-radius: 12px;
}

.steps-container {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.step-card {
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    text-align: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    background: green;
    color: white;
}


/* ======================================================
   BUTTONS
   ====================================================== */

.contact-button {
    display: inline-block;
    padding: 12px 20px;
    margin: 8px;
    border-radius: 6px;
    text-decoration: none;
    background: #eeeeee;
    color: #0000ee;
    border: 1px solid #ccc;
}

.contact-button:hover {
    background: #d9f2d9;
}


/* ======================================================
   FAQ
   ====================================================== */

.faq-question {
    cursor: pointer;
    padding: 15px;
    background: #eeeeee;
    margin-top: 10px;
}

.faq-answer {
    padding: 15px;
    background: white;
}


/* ======================================================
   EMERGENCY SUPPORT
   ====================================================== */

.emergency-box {
    border: 2px solid #cc0000;
    padding: 25px;
    margin: 40px auto;
    max-width: 1000px;
    background: #fff5f5;
    border-radius: 10px;
}


/* ======================================================
   CONTACT US
   ====================================================== */

#contact-us {
    max-width: 1000px;
    margin: 40px auto;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin: 12px 0;
}

.contact-link {
    color: blue;
}


/* ======================================================
   LIVE CHAT
   ====================================================== */

.live-chat {
    border: 1px solid #ccc;
    padding: 20px;
    max-width: 500px;
    margin: 30px auto;
    background: #f9f9f9;
    border-radius: 10px;
}

.live-chat input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.live-chat button {
    margin-top: 10px;
    padding: 10px 18px;
    cursor: pointer;
}


/* ======================================================
   FEEDBACK IMAGE
   ====================================================== */

.feedback-image {
    display: block;
    width: 600px;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 10px;
}


/* ======================================================
   FEEDBACK SECTIONS
   ====================================================== */

.feedback-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #d9f2d9;
    border-radius: 12px;
    text-align: center;
}

.feedback-section > p {
    max-width: 800px;
    margin: 0 auto 20px;
}


/* ======================================================
   FEEDBACK FORMS
   ====================================================== */

.feedback-form {
    max-width: 700px;
    margin: 25px auto;
    text-align: left;
}

.feedback-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

.feedback-form textarea {
    resize: vertical;
}

.feedback-form button,
.feedback-section > button {
    margin-top: 15px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: green;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.feedback-form button:hover,
.feedback-section > button:hover {
    opacity: 0.9;
}


/* ======================================================
   COMMENTS
   ====================================================== */

#comment-list {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: left;
}

.comment {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.comment strong {
    display: block;
    margin-bottom: 5px;
}


/* ======================================================
   USEFULNESS OPTIONS
   ====================================================== */

.usefulness-options {
    max-width: 500px;
    margin: 25px auto;
    text-align: left;
}

.usefulness-options label {
    display: block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    cursor: pointer;
}

.usefulness-options label:hover {
    background: #f4f4f4;
}


/* ======================================================
   HELPFUL INFORMATION
   ====================================================== */

.resource-list {
    max-width: 800px;
    margin: 20px auto;
    padding-left: 25px;
    text-align: left;
}

.resource-list li {
    margin-bottom: 12px;
}


/* ======================================================
   QUICK LINKS
   ====================================================== */

.quick-link {
    color: blue;
    text-decoration: none;
}

.quick-link:hover {
    text-decoration: underline;
}


/* ======================================================
   BACK TO TOP
   ====================================================== */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    z-index: 999;
}


/* ======================================================
   FOOTER
   ====================================================== */

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 768px) {

    header h1 {
        font-size: 32px;
    }

    header h2 {
        font-size: 20px;
    }


    /* ----------------------------------------------
       MOBILE NAVIGATION
       ---------------------------------------------- */

    nav {
        position: static;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }


    /* ----------------------------------------------
       KEEP TOP IMAGES IN THEIR OWN AREA
       ---------------------------------------------- */

    .logo-section {
        position: relative;
        height: 100px;
    }

    .map-logo {
        top: 8px;
        left: 8px;
        width: 65px;
        max-width: 65px;
    }

    .mum-picture {
        top: 8px;
        right: 8px;
        width: 65px;
        max-width: 65px;
    }


    /* ----------------------------------------------
       MOBILE CONTENT
       ---------------------------------------------- */

    .service-links ul {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .section,
    .service-links,
    .service-information,
    #how-counselling-helps,
    #how-it-works,
    .feedback-section {
        margin: 20px 10px;
        padding: 30px 20px;
    }


    .hero {
        padding: 50px 20px;
    }


    .service-image {
        width: 100%;
        max-width: 500px;
    }


    .feedback-image {
        width: 100%;
        max-width: 600px;
    }

}