@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/*scroll bar color */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: #f1eaff;
}

html::-webkit-scrollbar-thumb {
    background: #392467;
    border-radius: 5rem;
}

body {
    background: #f1eaff;
    color: #392467;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    height: 100%;
}

/*navi bar */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(241,234,255, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 20px; 
    color: #392467;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #f1eaff;
    animation: showRight 1s ease forwards;
    animation-delay: 0.4s;
}

.navibar a {
    font-size: 16px; 
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px; 
    transition: 0.3s;
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .navibar a {
        font-size: 14px;
        margin-left: 15px;
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/* Add a media query for larger screens */
@media only screen and (min-width: 768px) {

    .navibar a {
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/*side-bar*/

.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 78px;
    background: #392467;
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
  }

  .sidebar.open{
    width: 250px;
  }

  .sidebar .logo-details{
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
  }

  .sidebar .logo-details .icon{
    opacity: 0;
    transition: all 0.5s ease;
  }

  .sidebar .logo-details .logo-name{
    color: #ead5ff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
  }

  .sidebar.open .logo-details .icon,
  .sidebar.open .logo-details .logo-name{
    opacity: 1;
  }
  .sidebar .logo-details #btn{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
  }

  .sidebar.open .logo-details #btn{
    text-align: right;
  }

  .sidebar i{
    color: #ead5ff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
  }

  .sidebar .nav-list{
    margin-top: 20px;
    height: 100%;
  }

  .sidebar li{
    position: relative;
    margin: 8px 0;
    list-style: none;
  }

  .sidebar li .tooltip{
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #ead5ff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
  }

  .sidebar li:hover .tooltip{
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
  }

  .sidebar.open li .tooltip{
    display: none;
  }

  .sidebar li a{
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #392467;
  }

  .sidebar li a:hover{
    background: #ead5ff;
  }

  .sidebar li a .links-name{
    color: #ead5ff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
  }

  .sidebar.open li a .links-name{
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar li a:hover .links-name,
  .sidebar li a:hover i{
    transition: all 0.5s ease;
    color: #392467;
  }

  .sidebar li i{
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
  }

/* SCROLL UP BUTTON */

.to-top {
    background: #F1EAFF;
    position: fixed;
    bottom: 16px;
    right:32px;
    width:50px;
    height:50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:32px;
    color:#392467;
    text-decoration: none;
    opacity:0;
    pointer-events: none;
    transition: all .4s;
  }
  
.to-top.active {
    bottom:32px;
    pointer-events: auto;
    opacity:1;
}

  /* TOS CONTENT */

.tos-content {
    position: relative;
    margin-left: 75px;
    min-height: 100vh;
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open + .tos-content {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.header {
    position: sticky;
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open + .header {
    margin-left: 250px;
    width: calc(100% - 250px);
}

  @media (max-width: 420px) {
    .sidebar li .tooltip{
      display: none;
    }
  }

.tos-heading {
    position: relative;
    width: 100%; 
    text-align: center;
    padding-bottom: 50px;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.tos-heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #F1EAFF;
    animation: showRight 1s ease forwards;
    animation-delay: 1.2s;
}

.tos-heading h3 {
    padding-top: 3%;
    font-size: 3em; 
    font-weight: bolder;
    border-bottom: 2px solid purple; 
}

.btns {
    text-align: center;
  }
  
.btn-box {
    display: inline-block;
    text-align: left;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    margin-right: 5px;
    background: #392467;
    border: 2px solid #392467;
    border-radius: 8px;
    font-size: 19px;
    color:#FDBF60;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
}

.btn-box a:hover {
    color:#02265B;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #FDBF60;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

.policy1, .policy2, .policy3, .policy4 {
    padding: 20px 5%;
}

.policy1 h2, .policy2 h2, .policy3 h2, .policy4 h2{
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 10px;
}

.policy-content {
    max-height: 600px; 
    margin: 20px 0 20px;
    margin-left: 5%;
    margin-right: 5%;
    overflow-y: auto;
    padding: 20px;
    background-color: #F1EAFF; 
    border: 4px solid black; 
    border-radius: 10px;
}

.policy-content h4{
    text-align: left;
    font-size: 2rem;
    font-weight: bolder;
    margin: 20px 0 20px;
}

.policy-content li{
    text-align: left;
    margin-top: 10px;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 10px;
    font-weight: 400;
}

.table-inner {
    display:inline-block;
    max-width: 100%;
    margin-top: 20px;
    margin-left: 60px;
    margin-bottom: 20px;
}

#table th, #table td {
    padding: 1rem 0.6875rem;
}

#table th {
    padding: 0.5rem;
    text-align: center;
}

#table td {
    text-align: center;
}
.policy .swiper{
    width: 100%;
    height: 100%;
}

.policy .swiper-slide {
    font-size: 18px;
    height: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px;
    background: var(--color3);
}

.policy-content::-webkit-scrollbar {
    width: 0.5rem;
    background: #F1EAFF;
}

.policy-content::-webkit-scrollbar-thumb {
    background: #392467;
    border-radius: 5rem;
}

/* Footer */

.footer {
    align-items: center;
    flex-shrink: 0;
    padding: 2rem 9%;
    background: #392467;
    margin-top: auto;
}

.footer-text p {
    font-size: 1rem;
    color:#f1eaff;
    text-align: center;
}

@keyframes showRight {
    100% {
        width: 0;
    }
}