html{
    scroll-behavior: smooth;
    scroll-padding: 200px;
}
body{

    
    margin: 0;
    font-family: century gothic;
    
    
}


nav{
    width: 100vw;
    top: 0;
    left: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    height: 70px;
    font-weight: bold;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    position: fixed;
    border-bottom: 2px solid black;
    z-index: 9999;
}
nav ul{
    display: flex;
    flex-direction: row;
    
    width: 100%;
    height: 70px;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    z-index: 5;

    
    
}
.navSec a{
    text-decoration: none;
    color: black;
}
.signIn{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    background: rgb(0, 0, 0);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}
.searchBar{
 
    height: 50%;
    width: 150px;
    margin: 10px;
    margin-right: 30px;
    border-radius: 30px;
    border: 2px solid black;
    padding: 5px 20px;
    font-size: 1rem;
    
}
.searchContainer{
    position: relative;
    margin: 0;
    padding: 0;
}
.searchContainer i{
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    color: black;
    cursor: pointer;
}

.navSec{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 40px;

    
}
.navSec .subsec{
    position: relative;
    
}
.navSec .subsec:hover::after{
    height: 100%;
    width: 100%;
    content: "";
    
    border: 2px solid black;
    border-radius: 30px;
    padding: 5px 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.subsec.dropdownOpen:hover::after {
  display: none;
  content: none;
}
.logo{
    height: 4em;
    padding: 0 10px;
}
.dropdown{
    position: relative;
    cursor: pointer;
    
    
    
}

.subTutoMenu{
    display: none;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    
    border-right: 2px solid rgb(0, 0, 0);
    border-bottom: 2px solid rgb(0, 0, 0);
    border-left: 2px solid rgb(0, 0, 0);
    position: absolute;
    top: 2.8em;
    left: 50%;
    transform: translateX(-50%);

    width: 100px;
    
    padding:0;
    margin: 0;
    z-index: 14;
    
    border-radius: 0 0 20px 20px;
}

.tutoh{
    height: auto;
}
.mgh{
    height: auto;
}
/* .dropdown:hover .subTutoMenu{
    display: block;
} */
.subTutoMenu li{
    list-style: none;
    padding: 0;
    margin: 0;
}
.subTutoMenu li a{
    display: block;
    text-decoration: none;
    text-align: center;
    
    padding: 10px 5px;
}
.hidden{
    display: none;
}
.showdropdown{
    display: block;
}


.selectedSec{
    height: 100%;
    width: 100%;
    position: relative;
    color: white !important;
    
}
   
.selectedSec::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    height: 30px;
    width: 70px;
    background-color: rgb(0, 0, 0);
    z-index: -1;

    padding: 2px 10px;
    border-radius: 20px;

    transform: translate(-50%, -50% );
}
hr {
    width: 90%;
    border: 1px solid rgb(170, 170, 170);
    margin: 0 auto;  /* Centers the HR horizontally */
    padding: 0;
}
footer{
    
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    
    
}
footer p{
    text-align: center;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* SIDENAV FIX */
.sidenav {
    position: fixed;
    top: 70px;  /* Start below the nav bar */
    right: -120%;
    height: calc(100vh - 70px);  /* Span the rest of the screen */
    width: 80vw;
    background-color: white;
    box-shadow: -10px 0 10px rgba(0,0,0,0.2);
    padding-top: 20px;  /* Optional: small top padding for aesthetics; adjust or remove */
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center items horizontally (column-wise) */
    justify-content: flex-start;  /* Stack items from the top vertically (not centered row-wise) */
    gap: 20px;
    /* Removed padding-left: 20px to enable horizontal centering */
}
.sidenav img.logo {
    height: 60px;
    margin-bottom: 20px;
}
.sidenav li {
    list-style: none;
    width: 100%;
    margin: 10px 0;
}
.sidenav .subTutoMenu li a {
    text-align: left;  /* Left-align the text in submenu links */
}
.sidenav li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: block;
    width: 100%;
}

.sidenav .subTutoMenu {
    position: relative; /* no absolute positioning */
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border: none;
    background: #f2f2f2;
    padding-left: 20px;
    display: none; /* hidden by default */
    flex-direction: column;
}

.sidenav .dropdown.open .subTutoMenu {
    display: flex; /* show submenu */
}

/* When active */
.sidenav.open {
    right: 0;
}
/* When active */
.sidenav.open {
    right: 0;
}
.section a{
    text-decoration: none;
    color: white;
}
.signIn button{
    border-radius: 25px;
    border: none;
    padding: 5px 10px;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {

    /* Hide desktop nav items */
    nav .navSec:nth-child(1) li:not(.hamburger),
    nav .navSec:nth-child(1) .searchContainer,
    nav .navSec:nth-child(2) {
        display: none;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: block;
    }

}

.modal {
    display: none; 
    position: fixed;
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  
    animation: fadeIn 0.3s ease;  
}


.modal-content {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    margin: 15% auto;  
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;  
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}


.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal button:hover {
    background-color: #0056b3;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


@media (max-width: 900px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
