/* Vars */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --tte-blue: #0696cf;
    --tte-orange: #cf9730;
    --btn-text: #000000;
}

body {
    font-family: "Arial", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h1, h2 {
    text-align: center;
}

/* Header CSS */
.navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
}

.navbar img {
    height: 80px;
    width: 240px;
    object-fit: cover;
}

.logo-link {
    display: block;
    line-height: 0;
}

.menu-items {
    display: flex;
    flex-direction: row;
    align-self: center;
}

.menu-items a, .dropdown-toggle {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    padding: 0 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-items a:hover, .menu-items a:focus, .dropdown-toggle:hover, .dropdown-toggle:focus {
    color: var(--tte-blue);
}

.hamburger {
    display: none;
}

.navbar label {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    background-color: var(--tte-blue);
    opacity: 0.9;
    z-index: 1;
}

.dropdown-content.dropdown-open {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 769px) {
    .dropdown-content a {
        color: var(--bg-color);
        background-color: var(--tte-blue);
        text-decoration: none;
        padding: 0.8em 1em;
        display: block;
    }

    .dropdown-content a:hover, .dropdown-content a:focus {
        background-color: var(--bg-color);
        color: var(--tte-blue);
        opacity: 1;
    }

    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .menu-items a, .dropdown-toggle {
        box-sizing: border-box;
        display: block;
        width: 100%;
        text-align: right;
        padding: 0.5em 20px;
    }

    .navbar label {
        display: inline-block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.8em;
        padding: 10px;
        cursor: pointer;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 4em;
    }

    .navbar input:checked ~ .menu-items {
        display: flex;
    }

    .dropdown-content {
        position: static;
        padding: 0;
        opacity: 1;
    }

    .dropdown-content a {
        padding: 0.5em 40px;
    }
}

.hamburger-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger-icon span {
    background: var(--text-color);
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }
.hamburger:checked ~ .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}
.hamburger:checked ~ .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.hamburger:checked ~ .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Main Banner CSS */
.main-banner {
    display: flex;
    align-items: center;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

.main-banner picture, .main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.main-banner-text-box {
    position: absolute;
    top: 20%;
    left: 0%;
    width: 30%;
    background-color: var(--tte-blue);
    box-shadow: 5px 5px var(--text-color);
    opacity: 0.9;
    padding: 20px;
    z-index: 2;
    color: var(--bg-color);
}

.main-banner-text-box * {
    color: var(--bg-color);
}

.main-banner-text-box h1 {
    font-size: 32px;
    margin: 0 0 10px;
    text-align: left;
    background-color: transparent;
    color: var(--bg-color);
    font-style: italic;
}

@media only screen and (max-width: 768px) {
    .main-banner {
        flex-direction: column;
        max-height: 300px;
        height: auto;
    }

    .main-banner picture, .main-banner img {
        width: 100%;
        height: 150px;
    }

    .main-banner-text-box {
        position: static;
        width: 90%;
        margin: 10px auto;
        padding: 10px;
    }
    .main-banner-text-box h1 {
        font-size: 28px;
    }
}

/* Program Buttons */
.program-btns {
    display: flex;
    background: var(--tte-blue);
    overflow-x: auto;
    scroll-behavior: smooth;
    justify-content: flex-start;
    padding: 10px;
}
.program-btns:focus {
    outline: 3px solid var(--tte-blue);
    outline-offset: 2px;
}
.program-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    width: 128px;
    background-color: var(--bg-color);
    border: 5px solid var(--tte-orange);
    color: var(--btn-text);
    border-radius: 2em;
    font-size: 20px;
    text-align: center;
    margin: 10px;
    padding: 10px;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}
.program-btn:hover, .program-btn:focus {
    background-color: var(--text-color);
    color: var(--tte-blue);
    cursor: pointer;
}

.program-btn:focus, .dropdown-toggle:focus, .social-icon:focus {
    outline: 3px solid var(--tte-orange);
    outline-offset: 2px;
}
@media screen and (max-width: 768px) {
    .program-btn {
        max-width: 100px;
        height: 48px;
        font-size: 16px;
        border: 3px solid var(--tte-orange);
    }
}

/* Home Page Text */
.home-page-text {
    max-width: 800px;
    margin: 1em auto;
    padding: 0 20px;
}
.home-page-text p {
    margin: 1em 0;
}

/* Section Boxes */
.section-boxes {
    background-color: var(--tte-blue); 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

.boxes {
    flex: 0 0 300px;
    border: 5px solid var(--tte-orange);
    border-radius: 1.2em;
    height: 300px;
    margin: 4%;
    text-align: center;
    position: relative;
}

.boxes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .9em;
}

.boxes a {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: var(--tte-blue);
    color: var(--bg-color);
    font-size: 20px;
    text-decoration: none;
    opacity: 0.9;
    box-shadow: 5px 5px var(--text-color);
}

.boxes a:hover, .boxes a:focus {
    opacity: 1;
    background-color: var(--bg-color);
    color: var(--tte-blue);
}




/* Program Pages CSS */
.program-banner {
    display: flex;
    position: relative;
    max-height: 300px;
    overflow: hidden;
}
.program-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: 50% 50%;
}
.program-banner-text-box {
    position: absolute;
    top: 25%;
    left: 2%;
    width: 30%;
    background-color: var(--tte-blue);
    opacity: .9;
    padding: 15px;
    box-shadow: 5px 5px var(--text-color);
    overflow-wrap: break-word;
}
.program-banner-text-box h2 {
    background: none;
    color: var(--bg-color);
    margin: 0;
    font-size: 1.6em;
}
.program-info {
    max-width: 640px; /* Narrow form for better focus */
    margin: 40px auto; /* Center with top/bottom spacing */
    padding: 20px; /* Inner padding */
    background-color: #fff; /* White background for contrast */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.program-info h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}
.program-info h3 {
    margin-top: 1.5em;
    padding-left: 10px;
    border-left: 3px solid var(--tte-blue);
}
.program-info ul {
    margin: 1em 0;
    padding-left: 30px;
    line-height: 1.6;
}
.program-info li {
    margin-bottom: .5em;
}


@media screen and (max-width: 768px) {
    .program-banner {
        flex-direction: column;
        max-height: none;
    }
    .program-banner img {
        max-height: 200px;
    }
    .program-banner-text-box {
        position: static;
        left:0%;
        width: 90%;
        max-width: none;
        margin: 10px auto;
        padding: 10px;
        min-height: 80px;
    }
    .program-banner-text-box h2 {
        color: var(--text-color);
    }
    .program-info {
        width: 90%;
        margin: 10px auto;
    }
}


/* Instructor Page CSS */
.instructor {
    display: flex;
    position: relative;
}
.instructor img {
    width: 300px;
    height: 300px;
    padding: 20px;
    object-fit: cover;
    object-position: 0 50%;
}
.instructor-name {
    position: absolute;
    top: 200px;
    left: 70px;
    padding: 10px;
}
.instructor h3 {
    font-size: 48px;
    color: var(--tte-blue);
    background: rgba(0,0,0, .7);
}
.instructor-text-box {
    display: flex;
    position: relative;
    width: 480px;
    height: 300px;
    align-items: center;
    margin: 1em;
    padding: 0em 2em;
    background: rgb(207, 151, 48, .8);
}

@media screen and (max-width: 768px) {
    .instructor {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2em;
        position: static;
    }
    .instructor img {
        width: 100%;
        max-width: 300px;
        height: auto;
        padding: 10px;
    }
    .instructor-name {
        position: static; 
        border-radius: 4px;
    }
    .instructor h3 {
        font-size: 32px;
        margin: 0;
        text-align: center;
        background: none;
    }
    .instructor-text-box {
        position: static;
        width: 90%;
        max-width: 480px;
        height: auto;
        padding: 1em;
        margin: 10px auto;
        opacity: 1;
    }
}


/* Authentication Pages (Register/Login) */
.auth-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.auth-form h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}
.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-form label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}
.auth-form input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--tte-orange);
    box-shadow: 0 0 5px rgba(207, 151, 48, 0.5);
}
.auth-form p {
    text-align: center;
}
.auth-btn-container {
    display: flex;
    justify-content: center;
}
.register-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}
.register-box p {
    margin: 0;
    font-size: 16px;
}

.register-box .social-icon {
    margin-right: 10px;
}
.error, .success {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}
.error {
    background-color: #ffe6e6;
    color: #d32f2f;
}
.success {
    background-color: #e6ffe6;
    color: #2e7d32;
}
@media screen and (max-width: 768px) {
    .auth-form {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
    .auth-form h1 {
        font-size: 20px;
    }
    .auth-form input {
        font-size: 14px;
        padding: 8px;
    }
    .register-box {
        max-width: 90%;
        padding: 8px;
    }
}

/* SAT Self-Paced Course */
.course-section {
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
}
.course-section h2 {
    font-size: 28px;
    margin-bottom: 1em;
}
.unit {
    margin-bottom: 2em;
}
.unit h3 {
    font-size: 24px;
    color: var(--tte-blue);
}
.unit p {
    font-size: 16px;
    margin-top: -1em;
    margin-bottom: 1em;
}
.video-container {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

    
@media screen and (max-width: 768px) {
    .course-section {
        max-width: 90%;
        padding: 10px;
    }
    .course-section h1 {
        font-size: 28px;
    }
    .unit h3 {
        font-size: 20px;
    }
    .unit p {
        font-size: 14px;
    }
}




/* SAT Practice Page CSS */
.passage {
    margin-bottom: 20px;
    padding: 10px;
}
.vert-line {
    border-left: 1px solid var(--text-color);
    height: 100px;
    margin: 0 20px;
}

.question-box {
    padding: 10px;
}
.number-bar {
    font-weight: bold;
    margin-bottom: 10px;
}
.answers {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
.ans-letter {
    width: 20px;
    font-weight: bold;
    margin-right: 10px;
}
.practice-test {
    display: flex;
}
.passage {
    width: 40%;
    border: 2px solid black;
    margin: 5%;
}
.vert-line {
    border: 2px solid gray;
    height: 100%;
    width: 5px;
    margin: 0em 0em 1em 0em;
}
.question-box {
    display: flex;
    flex-direction: column;
    overflow: scroll;
    width: 40%;
    margin: 5%;
}

.number-bar {
    width: 100%;
    background: gray;
    padding: 0em;
}
.number-bar span {
    background: black;
    color: white;
}
.answers {
    display: flex;
    max-width: 100%;
    border: 1px solid black;
    padding: 1em;
    margin: 1em 0em;
    border-radius: 1em;
}

.ans-letter {
    max-width: 1.2em;
    max-height: 1.2em;
    border: 1.5px solid black;
    padding: .1em .3em .1em .3em;
    margin: 0em 1em 0em 0em;
    border-radius: 2em;
    align-items: flex-start;
}
.subpassage {
    padding-left: 5em;
}
.practice-btns {
    display: flex;
    background: var(--tte-orange);
    overflow: scroll;
    justify-content: center;
    padding: 1em;
    margin: 2em;
    border: .2em solid var(--tte-blue);
    border-radius: 2em;
    vertical-align: text-bottom;
}
.practice-btns h3 {
    position: absolute;
    left: 5em;
    top: 15em;
    background-color: var(--tte-orange);
}
.practice-btns button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 240px;
    background-color: var(--tte-blue);
    border: .2em solid black;
    color: var(--bg-color);
    border-radius: 2em;
    font-size: 20px;
    text-align: center;
    margin: 2em;
    padding: 1em;
}
.practice-btns button:hover {
    background-color: var(--text-color);
    color: var(--tte-blue);
}


/* Footer CSS */
.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    padding: 20px;
    align-items: flex-start;
}
.footer-bar img {
    height: 180px;
    width: 180px;
    object-fit: cover;
}
.legal, .social, .tte-info {
    width: calc(33% - 2em);
    max-width: 300px;
    margin: 1em;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .legal, .social, .tte-info {
        width: 100%;
        margin: 0.5em 1em;
    }
}

.social-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin: 0.5em;
}
.social-icon:hover, .social-icon:focus {
    transform: scale(1.1);
    opacity: 0.7;
}
.facebook {background-image: url('/media/icons8-facebook.svg');}
.instagram {background-image: url('/media/icons8-instagram.svg');}
.twitter {background-image: url('/media/icons8-x.svg');}
.youtube {background-image: url('/media/icons8-youtube.svg');}
.google {background-image: url('/media/icons8-google.svg');}