:root {
    --main-bg:#FFF;
    --sub-bg:#F1F2F8;
    /* --primary:#012333;
    --primary2:#024a6b;
    --secondary:#3F4059;
    --secondary2:#585a7a;
    --tertiary:#02FF85; */
    --tertiary-dark:#015A47;
    --tertiary-dark2:#027e63;
    --danger: #bb2124;
    --danger2: #ffc7c7;

    --secondary: #009245;
    --secondary2: #11ca68;
    --tertiary: #c4a103;
    --tertiary2: #ffe881;
    --primary: #4a4646;
    --primary2: #918585;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins-Regular, sans-serif;
}

a {
	font-size: 14px;
	line-height: 1.7;
	color: var(--secondary);
	margin: 0px;
	transition: all 0.4s;
}

.container {
    width: 100vw;
    /* min-height: 90vh;
    max-height: 110vh; */
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;

    /* background:
      radial-gradient(50% 50% at 100% 0,#ffffff 0%  5% ,#f4f4f4 6%  15%,#ffffff 16% 25%,#f4f4f4 26% 35%,#ffffff 36% 45%,
       #f4f4f4 46% 55%,#ffffff 56% 65%,#f4f4f4 66% 75%,#ffffff 76% 85%,#f4f4f4 86% 95%,
       #0000 96%),
      radial-gradient(50% 50% at 0 100%,#ffffff 0%  5% ,#f4f4f4 6%  15%,#ffffff 16% 25%,#f4f4f4 26% 35%,#ffffff 36% 45%,
       #f4f4f4 46% 55%,#ffffff 56% 65%,#f4f4f4 66% 75%,#ffffff 76% 85%,#f4f4f4 86% 95%,
       #0000 96%),
      radial-gradient(50% 50%,#ffffff 0%  5% ,#f4f4f4 6%  15%,#ffffff 16% 25%,#f4f4f4 26% 35%,#ffffff 36% 45%,
       #f4f4f4 46% 55%,#ffffff 56% 65%,#f4f4f4 66% 75%,#ffffff 76% 85%,#f4f4f4 86% 95%,
       #0000 96%),
      radial-gradient(50% 50%,#ffffff 0%  5% ,#f4f4f4 6%  15%,#ffffff 16% 25%,#f4f4f4 26% 35%,#ffffff 36% 45%,
       #f4f4f4 46% 55%,#ffffff 56% 65%,#f4f4f4 66% 75%,#ffffff 76% 85%,#f4f4f4 86% 95%,
       #0000 96%) 35px 35px;
    background-size: 70px 70px;
    background-color: #ffffff; */
    background-image: url("../images/bg-islamic-gold1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ------------------ Shapes -------------------------- */
.ornament {
    justify-content: center;
    /* background: red; */
    align-items: center;
}

.ornament.img {
    justify-content: center;
    width: 14vw;
    height: 7vw;
    overflow: hidden;
    white-space: nowrap; 
    object-fit: cover; 
    text-align: center;
    border: none;
    border-radius: .5rem;
}

.doughnut {
    width: 200px;
    height: 200px;
    background: var(--main-bg);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: .5;
    right: -5rem;
    
}

.doughnut::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge {
    background-color: var(--danger);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    width: 1rem;
    height: 1rem;
}
.badge.active {
    display: flex;
}

/* ------------------ Swiper -------------------------- */

swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    min-height: 10vh;
    text-align: center;
    display: flex;
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: flex-start;
    gap: .5rem;
}

swiper-slide img {
    /* display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; */
}

/* width */
::-webkit-scrollbar {
    width: .5rem;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 1rem;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: grey; 
    border-radius: 5rem;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary); 
  }

/* ------------------ Alert --------------------------- */

.alert {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: .6rem;
    color: var(--primary);
    border: var(--primary) dashed .2rem; 
    background-color: var(--primary3);
}

.alert p {
    font-size: smaller;
    text-align: justify;
}

/* ------------------ Login Page ---------------------- */

.alert.alert-danger {
    padding: 1rem;
    margin-top: .5rem;
    border-radius: .6rem;
    color: var(--danger);
    border: var(--danger) dashed .2rem; 
    background-color: var(--danger2);
}

.card {
    margin: auto;
    width: 60vw;
    min-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 1vh 3vw;
    background: var(--main-bg);

    -webkit-box-shadow: 0px 10px 37px -1px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 10px 37px -1px rgba(0,0,0,0.25);
    box-shadow: 0px 10px 37px -1px rgba(0,0,0,0.25)
}

.card .left.login, .card .right.login {
    /* height: 60vh; */
    padding: 0 2vw;
}

.left {
    width: 50%;
}

.right {
    width: 50%;
}

.left.login {
    min-width: 300px;
    border-radius: 10px;
    background: var(--sub-bg);
}

.right.login {
    min-width: 300px;
}

.left .logo {
    display: flex;
    margin-top: 2vh;
}

.left .logo.fasttrack img{
    width: 12rem;
    margin: auto;
}

.left .logo img{
    width: 6rem;
    margin: auto;
}

.left .illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.left .illustration img {
    height: 50vh;
    margin: auto;
    align-items: center;
}

.right.login .login-title img {
    width: 15rem;
}

h1, h2, h3, h4, h5, p {
    color: var(--primary);
}

h1 {
    font-size: 1.8vw;
    font-style: italic;
    font-weight: 850;
}

h2 {
    font-size: 1.5vw;
}

h5 {
    font-size: 1vw;
}

.line {
    border-top: 5px solid var(--primary);
    border-radius: 10px;
    margin: 1rem 0 0 0;
}

.login-form .username, .login-form .password {
    margin: 3.5vh 0 0 0 ;
}

.login-form h5 {
    margin: 0 0 .7vh 0;
}

.login-form input {
    padding: 0 1vw;
    width: 100%;
    height: 6.5vh;
    border: none;
    border-radius: 7px;
    background: var(--sub-bg);
}

.login-form .password {
    position: relative;
}

.login-form .password input {
    box-sizing: border-box;
}

.login-form .password i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.under-password {
    display: flex;
    justify-content: space-between;
    height: 1rem;
    margin-top: 1vh;
    padding: 0 .5rem;
}

.under-password .left.remember-me {
    display: flex;
    align-items: center;
}

.under-password .left.remember-me input#remember_me {
    margin: 0 1vh 0 0;  
}

.under-password .left.remember-me label.label {
    width: 80%;
    font-size: 2vh;
    font-size: smaller;
}

.under-password .right.forgot {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.under-password .right.forgot a {
	color: var(--secondary);
    text-decoration: none;
}    

.login-form button.submit {
    display: inline;
    width: 100%;
    margin: 4vh auto 0;
    border: none;
    border-radius: .5rem;
    padding: 2vh 2vw;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--main-bg);
    background: var(--primary);
    transition: 1s ease;
}
button.submit:hover {
    background: var(--primary2);
}

button.reset {
    display: inline;
    width: 100%;
    margin: 4vh auto 0;
    border: none;
    border-radius: .5rem;
    padding: 2vh 2vw;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--main-bg);
    background: var(--primary);
    transition: 1s ease;
    font-size: smaller;
}
button.reset:hover {
    background: var(--primary2);
}

button.close {
    width: 100%;
    border-radius: .5rem;
    border: none;
    padding: .5rem;
    background: var(--secondary);
    color: var(--main-bg);
    cursor: pointer;
}

button.close:hover {
        background: var(--secondary2);
}

.mt-1 {
    margin-top: .5rem;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .5rem 0;
}

.copyright p {
    font-size: smaller;
}

.copyright img {
    height: 1rem;
    margin: 0 .5rem;
}

/* --------------- Menu Page ---------------*/

.container.menu {
    gap: 1vh;
}

.hero {
    display: flex;
    width: 80vw;
}

.hero .left {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}

.hero .left .menu-title{
    margin: 0;
    padding: .5rem 0;
}

.hero .left .menu-title h1, h2{
    margin: 0;
}

.hero .left .menu-title .line{
    margin: 0;
}

.hero .right {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.hero .right .upper {
    display: flex;
    flex-direction:row-reverse;
    align-items: center;
    padding: .3rem;
    gap: 1rem;
}

.hero .right .upper .profile-img {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    white-space: nowrap;    
    text-align: center;
    border: solid .2rem var(--primary);
    border-radius: 1rem;
}    
.hero .right .upper .profile-img img {
    vertical-align: middle;
    max-width: 100%;
}

.hero .right .upper .welcome{
    text-align: right;
}

.hero .right .lower {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: .7rem;
}

.hero .right .lower button {
    width: 10vw;
    min-height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3rem .1rem;
    border: none;
    border-radius: .3rem;
    gap: .3rem;
    color: var(--main-bg);
    background: var(--primary);
    cursor: pointer;
    transition: 1s ease;
}

.hero .right .lower button:hover {
    background-color: var(--primary2);
}

.message {
    width: 80vw;
}

.tab {
    display: flex;
}

.tab-button {
    position: relative;
    border: none;
    border-radius: .6rem .6rem 0 0;
    padding: .7rem;
    width: 12vw;
    font-family: Poppins-Regular, sans-serif;
    font-weight: 600;
    font-size: smaller;
    color: var(--main-bg);
    background: var(--secondary);
    cursor: pointer;
    transition: 1s ease;
}

.tab-button:nth-child(2) {
    background: var(--tertiary);
}

.tab-button:nth-child(3) {
    background: var(--primary);
}

.tab-button:hover {
    background: var(--secondary2);
}

.tab-button:nth-child(2):hover {
    background-color: var(--tertiary2);
}

.tab-button:nth-child(3):hover {
    background-color: var(--primary2);
}

.tab-button.module {
    background: var(--secondary);
  
}

.tab-button.module:nth-child(2) {
    background: var(--tertiary);
}

.tab-button.module:nth-child(3) {
    background: var(--primary);
}

.tab-button.module:hover {
    background: var(--secondary2);
}

.tab-button.module:nth-child(2):hover {
    background-color: var(--tertiary2);
}

.tab-button.module:nth-child(3):hover {
    background-color: var(--primary2);
}

.tab-content .message-content {
    min-height: 20vh;
    padding: 1.5rem;
    border: none;
    border-radius: 0 .7rem .7rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    overflow: hidden;
    border: solid .3rem var(--secondary);
    background-color: rgba(255, 255, 255, 0.5);
    /* background-color: rgba(168, 252, 207, 0.5); */
    backdrop-filter: blur(5px); /* Efek blur */
    -webkit-backdrop-filter: blur(5px); /* Untuk dukungan di Safari */
}

.tab-content .message-content:nth-child(2) {
    border: solid .3rem var(--tertiary);
    /* background-color: rgba(228, 206, 111, 0.5); */
}

.tab-content .message-content:nth-child(3) {
    border: solid .3rem var(--primary);
}

.tab-content .message-content .left {
    width: 75%;
}
.tab-content .message-content .right {
    width: 25%;
}

.tab-content .message-content h3 {
    overflow: hidden;
    width: 80%;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2; 
    -webkit-box-orient: vertical;}

.tab-content .message-content p {
    overflow: hidden;
    width: 80%;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2; 
    -webkit-box-orient: vertical;}

.tab-content .more {
    margin-top: 1rem;
    min-width: 12vw;
    max-width: 14vw;
    padding: .3rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;  
    color: var(--main-bg);
    background: var(--secondary);
    cursor: pointer;
    transition: 1s ease;
}
.more:hover {
    background: var(--secondary2);
}

.tab-content .message-content h2, .tab-content .message-content p {
    color: var(--primary);
}

.modules {
    width: 80vw;
}

.modules .tab-content .module-content{
    min-height: 30vh;
    background-color: rgba(255, 255, 255, 0.5); /* Putih dengan transparansi */
    backdrop-filter: blur(4px); /* Efek blur */
    -webkit-backdrop-filter: blur(4px); /* Untuk dukungan di Safari */
    border: solid .3rem var(--secondary); 
    border-radius: 0 .7rem .7rem .7rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding: 1rem 0;
}

.modules .tab-content .module-content:nth-child(2) {
    border-color: var(--tertiary);
}

.modules .tab-content .module-content:nth-child(3) {
    border-color: var(--primary);
}

.modules button.app {
    background: none;
    border: none;
    cursor: pointer;
}

.modules button.app .img-icon img{
    padding: .5rem;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--primary);
    padding: .5rem;
    border-radius: 1rem;
    margin-bottom: .3rem;
    box-shadow: .3rem .3rem 1rem .1rem rgba(0,0,0,0.25);
    transition: 1s ease;
}

.modules button.app .img-icon img:hover {
    border-radius: 5rem;
    background: var(--primary2);
}

.modules button.app p {
    font-family: Poppins-Regular, sans-serif;
    font-weight: 600;
    font-size: smaller;
    color: var(--primary) ;
}

.blur-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 9998; 
    opacity: 0; 
    transition: opacity 1s;
    backdrop-filter: blur(5px);
}
  
.blur-overlay.active {
    display: block;
    opacity: 1; 
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translatetime(-50%, -50%) scale(0.8); 
    min-width: 30vw;
    /* min-height: 40vh; */
    max-height: 90vh;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup#popupmessage {
    overflow-y: scroll;
    padding-bottom: 2rem;
}

.popup#popupmessage button.close {
    /* background: red; */
}

.popup.active {
    display: flex;
    justify-content: center;
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.popup button {
    padding: .5rem 1rem;
    border: none;
    cursor: pointer;
    transition: 1s ease;
}

.popup button.role {
    min-width: 20vw;
    width: 100%;
    border-radius: .5rem;
    background: var(--primary);
}
.popup button.role:hover {
    background: var(--primary2);
}

.popup button.role.change {
    min-width: 10vw;
    margin-bottom: 1vh;
}

.popup button.close {
    width: 40%;
    border-radius: 3rem;
    background: var(--secondary);
}
.popup button.close:hover {
    background: var(--secondary2);
}

.popup button h5, .popup button p {
    color: var(--main-bg);
}

.popup .form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
}

.popup h4 {
    margin: none;
}

.popup input.form {
    margin: 0;
    border: none;
    border-radius: .5rem;
    padding: .5rem 1rem;
    background: var(--sub-bg);
}

.popup-content.message {
    text-align: left;
    gap: 1rem;
}


@media only screen and (max-width: 1100px) {

    /* ------------------ Shapes -------------------------- */
    .ornament {
      
    }

    .doughnut {
        width: 180px;
        height: 180px;
        top: 8rem;
        right: -5rem;
        
    }

    .doughnut::before {
        width: 80px;
        height: 80px;
    }

     /* --------------- Login Page Tablet -------------------- */
     .card {
        margin: 1vh auto;
        width: 90vw;
        min-height: 100vh;
        flex-direction: column;
        overflow: visible;
        gap: 1rem;
        justify-content:flex-start;
        padding: 3vw 3vw;
    }

    .left.login {
        width: 100%;
        height: 50vh;
        margin: 0 0 0 0 ;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: 0;
    }

    .left.login .logo img {
        width: 15vh;
    }

    .left.login .illustration img {
        height: 30vh;
        margin: 0;
        padding: 0;
    }
    
    .right.login {
        width: 100%;
        height: 40%;
    }
    
    .right.login .login-title {
        display: flex;
    }

    .right.login .login-title img {
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }

    h1 {
        font-size: 3vh;
        font-style: italic;
        font-weight: 850;
    }
    
    h2 {
        font-size: 2vh;
    }
    
    h5 {
        font-size: 2vh;
    }

    .line {
        border-top: 5px solid var(--primary);
        border-radius: 10px;
        margin: .5rem 0 0 0;
    }

    .login-form {
        margin-top: 0;
    }

    .login-form .username, .login-form .password {
        margin: 1.2vh 0 0 0 ;
    }

    .login-form input {
        padding: 0 2vh;
    }

    .login-form .left.remember-me {
        font-size: 2vh;
    }

    .under-password #remember_me {
        margin: 0 1vh 0 0;
        width: 4vw;
        border: none;
        border-radius: 1rem;
        color: var(--sub-bg);
        font-size: 10rem;
    }
  
    .login-form .left.remember-me input{
        width: 100rem;
    }

    .login-form button.submit {
        display: inline;
        width: 100%;
        margin: 2.6vh auto 0;
        padding: 2vh 2vw;
        font-size: 1rem;
        font-weight: 800;
    }

    .under-password .left.remember-me label.label {
        width: 100%;
        font-size: smaller;
    }

    .tab-content .message-content h3 {
        font-size: 1rem;
    }

    /* ----------------- Menu Tablet ----------------------- */
    
    .hero .left .menu-title * {
        font-size: large;
    }

    .hero .right .upper h5 { 
        font-size: smaller;
    }

    

    .hero .right .lower button {
        width: 6rem ;
        min-height: 5vh;
        padding: .1rem .5rem;
        border: none;
        border-radius: .3rem;
        gap: .3rem;
        color: var(--main-bg);
        background: var(--primary);
        cursor: pointer;
        transition: 1s ease;
    }

    .tab-button {
        width: 20vw;
    }

    .tab-content .message-content .left {
        width: 70%;
    }
    .tab-content .message-content .right {
        width: 30%;
    }

    .modules .tab-content .module-content{
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }

    
    .tab-content .more {
        margin-top: 1rem;
        min-width: 30vw;
    }

}

@media only screen and (max-width: 600px) {

       /* Menu Page Mobile */

    .ornament.img {
        width: 7rem;
        height: 3.5rem;
        border-radius: .2rem;
        justify-content: center;
        align-items: end;
    }
    

    .container.menu {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center ;
        gap: 1.5vh;
    }

    .hero {
        margin: 0;
        flex-direction: column;
        width: 90vw;
    }

    .hero .left .logo:nth-child(1) {
        display: none;
    }
    

    .hero .left {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .hero .left .menu-title {
        text-align: center;
    }

    .hero .left .menu-title h1 {
        font-style: normal;
    }

    .hero .right {
        width: 100%;
    }

    .hero .right .upper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 2rem;
        gap: 1rem;
        margin: 0 0 1vh 0;
    }

    .hero .right .upper .welcome {
        text-align: left;
    }

    .hero .right .upper .welcome h5 {
        font-size: 1rem;
    }
    .hero .right .lower {
        justify-content: center;
        align-items: center;
    }

    .hero .right .lower button.hero {
        width: 45vw;
        flex-direction: row;
        padding: 1vh 0;
        border-radius: .7rem;
    }

    .message {
        width: 90vw;
    }

    .tab-button {
        padding: .7rem 0;
        width: 90vw;
        font-family: Poppins-Regular, sans-serif;
        font-weight: 600;
        font-size: smaller;
    }

    .tab-content .message-content {
        border-radius: 0 0 .7rem .7rem;
        min-height: 10vh;
    }

    .tab-content .message-content .left {
        width: 60%;
    }
    .tab-content .message-content .right {
        width: 40%;
        display: flex;
        justify-content: center;
        align-items:  center;
    }

    .tab-content .message-content h3, .tab-content .message-content p {
        font-size: .7rem;
    }

    .tab-content .message-content h3 {
        overflow: hidden;
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* number of lines to show */
        -webkit-box-orient: vertical;}

    .tab-content .more {
        margin-top: .5rem;
        min-width: 30vw;
        font-size: .7rem;
        font-weight: 300;
        padding: .2rem 0.1rem;
    }

      .modules {
        width: 90vw;
        margin-bottom: 2vh;
    }

    .modules .tab-content .module-content{
        border-radius: 0 0 .7rem .7rem;
        min-height: 30vh;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        padding: 1rem 0;
    }

    .popup {
        min-width: 60vw;
        max-width: 90vw;
        max-height: 90vh;
    }
    
    .under-password #remember_me {
        
        width: 100vw;
        background: red;
        
    }

    .under-password .left.remember-me label.label {
        width: 100%;
       font-size: smaller;
    }
}