﻿/* --- CORE PAGE SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    box-sizing: border-box;
    font-family: sans-serif;
    /* This is the crucial fix for scrolling */
    overflow-x: hidden !important;
    overflow-y: scroll !important;
}

/* --- NAVIGATION BAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #050D1A, #101F3E);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: nowrap;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
}

    nav .logo {
        display: none;
    }

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

    .nav-links a,
    .dropdown-btn {
        color: #fff;
        text-decoration: none;
        padding: 8px 12px;
        display: block;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        white-space: nowrap;
        font-size: 15px;
    }

        .nav-links a:hover,
        .dropdown-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

nav .nav-links .dropdown .dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-links .dropdown-btn.active-click-state {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-links a,
.dropdown-btn {
    color: #fff;
}

    .nav-links a.active-page {
        background: rgba(255, 255, 255, 0.25);
        color: #FFF;
        font-weight: bold;
        border-radius: 2px;
    }

    .nav-links a:hover,
    .dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 0px;
    }

.nav-links .dropdown-btn {
    background-color: transparent;
    color: #ffffff;
    font-weight: normal;
    border-bottom: 0px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .nav-links .dropdown-btn.active-click-state:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .nav-links .dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

@media screen and (max-width: 900px) {
    .nav-links a,
    .dropdown-btn {
        font-size: 14px;
        padding: 8px 10px;
    }

    nav {
        flex-wrap: nowrap;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    width: auto;
    border-radius: 0 0 0 0;
    z-index: 1000;
    background: linear-gradient(to right, rgba(5, 13, 26, 2.95), rgba(16, 31, 62, 0.5));
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 0px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

    .dropdown-menu a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
        white-space: nowrap;
    }

.dropdown.open .dropdown-menu {
    display: block;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    padding: 5px;
}

    .hamburger .bar {
        height: 4px;
        width: 30px;
        background-color: white;
        margin: 1px 0;
        border-radius: 2px;
        transition: 0.4s;
    }

    .hamburger.active .top {
        transform: rotate(45deg) translate(10px, 10px);
        background-color: #e63946;
    }

    .hamburger.active .middle {
        opacity: 0;
    }

    .hamburger.active .bottom {
        transform: rotate(-45deg) translate(4px, -6px);
        background-color: #e63946;
    }

/* Close Button styles */
.close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #e63946;
    font-size: 25px;
    cursor: pointer;
    z-index: 1003;
    padding: 5px;
}

    .close-btn.show {
        display: block;
    }

    .close-btn:hover {
        color: #cc2936;
    }

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 57px;
        right: -100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1.95), rgba(255, 255, 255, 0.1));
        width: 225px;
        height: 550px;
        padding: 20px 15px 15px 15px;
        transition: right 0.3s ease-in-out;
        gap: 8px;
        overflow-y: auto;
        z-index: 1002;
    }

        .nav-links.active {
            right: 0;
        }

    .close-btn {
        display: block;
    }

    .dropdown-menu {
        position: relative;
        background-color: #111;
        width: 100%;
        min-width: 100%;
        left: 0;
        top: auto;
    }

    .nav-links a, .dropdown-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links {
        height: 550px;
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

    #overlay.show {
        display: block;
    }

body.light-theme {
    background-color: #f0f0f0;
    color: #222;
}

    body.light-theme nav {
        background-color: #eee;
        color: #000;
    }

    body.light-theme .nav-links a,
    body.light-theme .dropdown-btn,
    body.light-theme .theme-toggle {
        color: #000;
    }

    body.light-theme .dropdown-menu {
        background-color: #ddd;
    }

.containertwo {
    border-radius: 5px;
    background-color: transparent;
    padding: 10px;
    width: 100%;
    margin-top: 175px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 15px;
}

@media (max-width: 576px) {
    .responsive-image {
        /* Your specific styles for extra small devices */
    }
}

/* FAQ and Scroll Button Styles */
.container {
    margin: 0 auto;
    padding: 2rem;
    max-width: 768px;
    width: 100%;
}

    /* CORRECTED: Targets the h2 specifically inside the .container */
    .container h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 0.5em;
        font-family: 'Montserrat', sans-serif; /* NEW: A clean, bold font for the title */
        font-weight: 700;
    }

.accordion .accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1em 0;
    color: #7288a2;
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    background: none;
    outline: none;
}

    .accordion button:hover,
    .accordion button:focus {
        cursor: pointer;
        color: #03b5d2;
    }

    .accordion button .accordion-title {
        padding: 1em 1.5em 1em 0;
    }

    .accordion button .icon {
        display: inline-block;
        position: absolute;
        top: 18px;
        right: 0;
        width: 22px;
        height: 22px;
        border: 1px solid;
        border-radius: 22px;
    }

        .accordion button .icon::before {
            content: '';
            position: absolute;
            top: 9px;
            left: 5px;
            width: 10px;
            height: 2px;
            background: currentColor;
        }

        .accordion button .icon::after {
            content: '';
            position: absolute;
            top: 5px;
            left: 9px;
            width: 2px;
            height: 10px;
            background: currentColor;
        }

    .accordion button[aria-expanded='true'] {
        color: #03b5d2;
    }

        .accordion button[aria-expanded='true'] .icon::after {
            width: 0;
        }

        .accordion button[aria-expanded='true'] + .accordion-content {
            opacity: 1;
            /* Sets a fixed height for a scrollbar to appear after about two lines of text */
            max-height: 125px;
            overflow-y: auto; /* Adds a vertical scrollbar when content exceeds max-height */
            transition: all 200ms linear;
        }

.accordion .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden; /* Keeps content hidden when collapsed */
    transition: opacity 200ms linear, max-height 200ms linear;
    text-align: justify;
}

    .accordion .accordion-content p {
        font-size: 1rem;
        font-weight: 300;
        margin: 1em 0;
        margin-top: 2px;
        text-align: justify;
    }

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .accordion button {
        font-size: 1rem;
    }
}


/* NEW: Styles for the active question */
.accordion button[aria-expanded='true'] .accordion-title {
    font-weight: bold; /* Makes the question text bold */
}
/* NEW: Styles for the answer text */
.accordion button[aria-expanded='true'] + .accordion-content p {
    font-family: 'Roboto', sans-serif;
    color: #444; /* A slightly darker color for readability */
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2px; /* This is the updated line */
}

/* CORRECTED: Styles for bold, lowercase list markers */
.accordion .accordion-content ol.bullet-list {
    font-family: 'Roboto', sans-serif;
    color: #444; /* A slightly darker color for readability */
    font-size: 1rem;
    font-weight: 300;
    margin: 1em 0;
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
}

    .accordion .accordion-content ol.bullet-list li {
        counter-increment: item;
        margin-bottom: 8px;
        display: flex;
        gap: 10px;
        font-family: 'Roboto', sans-serif;
        color: #444; /* A slightly darker color for readability */
        font-size: 16px;
        color: #444;
    }

        .accordion .accordion-content ol.bullet-list li::before {
            content: counter(item, lower-alpha) ".";
            font-weight: bold;
        }
/* End of corrected rules for bold lowercase list */

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #03b5d2;
    color: white;
    font-size: 1.5rem;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

    #scrollToTopBtn:hover {
        background-color: #028bb0;
        transform: scale(1.05);
    }
