/*==============================================
  1. Global Variables & Dark Mode Overrides
===============================================*/
:root {
    --primary-color: #198754;
    --secondary-color: #eafaf1;
    --base-text-color: #333333;
    --nav-link-color: #ffffff;
    --img-base-size: 120px;
    --footer-bg-color: #2f2f2f;
    --footer-text-color: #ffffff;
}

.dark-theme {
    --primary-color: #295a3a;
    --secondary-color: #1e1e1e;
    --base-text-color: #ffffff;
    --nav-link-color: #ffffff;
    --footer-bg-color: #1a1a1a;
    --footer-text-color: #ffffff;
}

/*==============================================
    2. Reset & Base Styles
  ===============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    background-color: var(--secondary-color);
    color: var(--base-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/*==============================================
    3. Navigation
  ===============================================*/
nav {
    padding: 1rem 0;
    background-color: var(--primary-color);
    position: relative;
}

.navigation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo,
.logo-text {
    color: var(--nav-link-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo {
    font-size: 100px;
    font-weight: 700;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

#navigation-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

#navigation-menu li a,
#navigation-menu li button {
    font-size: 1.3rem;
    background: none;
    border: none;
    color: var(--nav-link-color);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
    position: relative;
}

#navigation-menu li a::after,
#navigation-menu li button::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--nav-link-color);
    transition: width 0.3s ease;
}

#navigation-menu li a:hover::after,
#navigation-menu li button:hover::after {
    width: 100%;
}

#navigation-menu li a:hover,
#navigation-menu li button:hover {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nav-link-color);
    font-size: 2rem;
    cursor: pointer;
}

/*==============================================
    4. Dark Mode Toggle
  ===============================================*/
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--nav-link-color);
    cursor: pointer;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/*==============================================
    6. Sections
  ===============================================*/

/* -- Section 1: Hero Section -- */
.section1 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.section1 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section1 h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section1 p {
    max-width: 600px;
    line-height: 1.6;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.section1 a.btn {
    padding: 1.2rem 2.2rem;
    background-color: var(--primary-color);
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.3rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.section1 a.btn:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* -- Section 2 -- */
.section2 {
    background-color: var(--primary-color);
    color: var(--nav-link-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.section2 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section2 h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section2 p {
    max-width: 800px;
    line-height: 1.6;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.section2 a {
    color: #1e1e1e;
    text-decoration: none;
}

.section2 a:hover {
    color: #eca869;
}

/* -- Section 3 -- */
.section3 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.section3 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section3 h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 6rem;
}

.team-member {
    text-align: center;
    max-width: 220px;
}

.team-member img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.section3 a {
    padding-top: 50px;
    color: var(--primary-color);
    text-decoration: none;
}

.section3 a:hover {
    color: #eca869;
}

/*==============================================
    7. Footer
  ===============================================*/
footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 6rem 0;
    text-align: center;
}

.footer-header {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
}

.footer-logo {
    max-width: 75px;
}

.footer-title {
    font-size: 1.5em;
    color: var(--footer-text-color);
}


.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1 1 170px;
    min-width: 170px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-column ul {
    list-style-type: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    font-size: 1.2rem;
    color: var(--footer-text-color);
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-connect-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-connect-icons a {
    color: var(--footer-text-color);
    font-size: 1.6rem;
    text-decoration: none;
}

.footer-connect-icons a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.email-container {
    position: relative;
    display: inline-block;
}

.email-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.email-container:hover .email-tooltip {
    opacity: 1;
}

.email-copied {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    z-index: 100;
}

/*==============================================
    8. Background Animation
  ===============================================*/
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.background {
    position: fixed;
    z-index: -2;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: animate 19s linear infinite;
}

.background li:nth-child(1) {
    left: 20%;
    bottom: calc(-1 * var(--img-base-size));
    width: var(--img-base-size);
    height: var(--img-base-size);
    background-image: url("images/image1.jpg");
    animation-delay: 1s;
    animation-duration: 15s;
    opacity: 0.9;
}

.background li:nth-child(2) {
    left: 50%;
    bottom: calc(-1 * var(--img-base-size));
    width: calc(var(--img-base-size) + 10px);
    height: calc(var(--img-base-size) + 10px);
    background-image: url("images/image2.jpg");
    animation-delay: 4s;
    animation-duration: 18s;
    opacity: 0.6;
}

.background li:nth-child(3) {
    left: 75%;
    bottom: calc(-1 * var(--img-base-size));
    width: calc(var(--img-base-size) + 20px);
    height: calc(var(--img-base-size) + 20px);
    background-image: url("images/image3.jpg");
    animation-delay: 7s;
    animation-duration: 14s;
    opacity: 0.7;
}

.background li:nth-child(4) {
    left: 10%;
    bottom: calc(-1 * var(--img-base-size));
    width: calc(var(--img-base-size) + 30px);
    height: calc(var(--img-base-size) + 30px);
    background-image: url("images/image4.jpg");
    animation-delay: 15s;
    animation-duration: 20s;
    opacity: 0.8;
}

.background li:nth-child(5) {
    left: 40%;
    bottom: calc(-1 * var(--img-base-size));
    width: calc(var(--img-base-size) + 40px);
    height: calc(var(--img-base-size) + 40px);
    background-image: url("images/image5.jpg");
    animation-delay: 9s;
    animation-duration: 22s;
    opacity: 0.75;
}

/*==============================================
    9. Faculty & Team Components
  ===============================================*/
.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.faculty-grid.row-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
}

.faculty-grid.row-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
}

.faculty-member {
    width: 450px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.faculty-member:hover {
    transform: scale(1.03);
}

.faculty-member img {
    width: 50%;
    height: auto;
    border-radius: 6px;
}

.faculty-member h3 {
    font-size: 0.8em;
}

.faculty-member p {
    font-size: 0.8em;
}

.faculty-description {
    display: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--base-text-color);
}

.faculty-description.active-desc {
    display: block;
}

.the-team {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.team-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 1200px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.team-modal-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 2rem;
}

.team-modal-left img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.team-modal-right {
    flex: 2;
    padding: 2rem;
    text-align: left;
}

.team-modal-right h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-modal-right p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/*==============================================
    10. Contact Section
  ===============================================*/
.contact-section {
    min-height: 70vh;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-card {
    min-width: 700px;
    background-color: #fff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 2rem;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#name::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#email::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#message::placeholder {
    font-family: 'Montserrat', sans-serif;
}

.contact-form label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form .btn {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--nav-link-color);
    border: none;
    border-radius: 4px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form .btn:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.social-media {
    text-align: center;
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.social-media a {
    font-size: 2em;
    margin-left: 20px;
    margin-right: 20px;
    text-decoration: none;
    color: var(--base-text-color);
    transition: transform 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/*==============================================
    11. Donate Section
  ===============================================*/
.donate-section {
    min-height: 70vh;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donate-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.donate-card {
    background-color: #fff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: left;
}

.donate-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.donate-form label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.donate-form select,
.donate-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.payment-methods label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.payment-details {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.donate-submit {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--nav-link-color);
    border: none;
    border-radius: 4px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-submit:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

/*==============================================
    12. Apply Section
  ===============================================*/
.apply-section {
    min-height: 70vh;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.apply-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.apply-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.apply-card {
    background-color: #fff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: left;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#parent-name::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#student-name::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#student-grade::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#student-need::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#tutoring-times::placeholder {
    font-family: 'Montserrat', sans-serif;
}

#questions::placeholder {
    font-family: 'Montserrat', sans-serif;
}

.apply-form label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.apply-form input,
.apply-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.apply-submit {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--nav-link-color);
    border: none;
    border-radius: 4px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply-submit:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

/*==============================================
    15. FAQ Accordion
  ===============================================*/
.faq-accordion {
    margin-top: 2rem;
    text-align: left;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

.faq-question {
    background: none;
    color: var(--base-text-color);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.faq-question i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    margin-top: 0.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

/*==============================================
    16. Responsive / Mobile Styles
  ===============================================*/
@media (max-width: 768px) {

    /* Navigation adjustments */
    #navigation-menu {
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        right: 0;
        padding: 1rem;
        gap: 1rem;
    }

    #navigation-menu li a,
    #navigation-menu li button {
        font-size: 1.4rem;
    }

    #navigation-menu.show-menu {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    /* Card adjustments */
    .contact-card,
    .donate-card,
    .apply-card {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    /* Donate section payment methods */
    .payment-methods {
        flex-direction: column;
    }
}