@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100;200;300;400;500;600;700;800&display=swap');

/* 
    Font Size Tips:
    ============================================
    font-size: 100%; in most browsers, this 100% = 16px = 1rem
    font-size: 112.5%; In most browsers this 112.5% = 18px = 1.125rem

    //Another option to set font-size-
    //In order to seamlessly convert pixels to rem, we can set the root sizing to 62.5%. That means 1rem = 10px:
    font-size: 62.5%;  (62.5/100) * 16px = 10px  

*/

:root {
    --color: #36415b;
    --background-color: rgba(248, 249, 250, 1.0);  /* for entire viewport within the body tag  */
    --white : #fff;

    --fallback-font: sans-serif;
    --font-family-english: 'Inter', var(--fallback-font); 
    --font-family-bangla: 'Anek Bangla', var(--fallback-font);

    --font-size: 16px;
    --font-weight: 300;
    --line-height : 1.3;
    --border: 1px solid #dadce0;
    --border-color: #dadce0;
    --border-radius: 2px;

    --box-shadow : 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: baseline;
}



/* Applicable for all childs */
[lang="en"] * {
    font-family: var(--font-family-english);
}

[lang="bn"] * {
    font-family: var(--font-family-bangla);
}


/* Specific elements (override)*/
[lang="en"] {
    font-family: var(--font-family-english);
}

[lang="bn"] {
    font-family: var(--font-family-bangla);
}

body {
    /* overflow-x: hidden; */
    color: var(--color);
    background: var(--background-color);
    font-size: var(--font-size);
    line-height: var(--line-height);
    font-weight: var(--font-weight);
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
    -ms-font-feature-settings: "lnum" 1;
    -o-font-feature-settings: "lnum" 1;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
}

/* prevent body scrolling when left/right aside menu is open */
body.menu-open {
    overflow: hidden;
    /* position: fixed; */
    width: 100%;
}

.layout {  
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    /* grid-template-rows: 60px minmax(calc(100vh - 160px), auto) 100px; */
    /* grid-template-rows: 60px minmax(0, 1fr) auto; */
    grid-template-rows: 60px 1fr auto;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
                "header"
                "main"
                "footer";
}

header{
    grid-area: header;
}

main{
    grid-area: main;
    margin-bottom: 40px;
}
@media only screen and (max-width: 999px) {
    main{
        margin-bottom: 10px;
    }
}

footer{
    grid-area: footer;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    -webkit-box-shadow: 0 3px 6px 0 rgba(50, 50, 50, .3);
    box-shadow: 0 3px 3px 0 rgba(50, 50, 50, .3);
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    transition: top 0.8s ease-in-out;
}

nav{
    display: flex;
}

nav .logout-btn {
    text-decoration: none;
    background-color: #FF5A5F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
}
.logout-btn:hover {
    background: #E74C4C; /* Slightly deeper on hover */
}


@media only screen and (max-width: 999px) {
    nav .logout-btn {
        padding: 4px 8px;
    }
}

nav .login-btn {
    text-decoration: none;
    background-color: #6DBF73;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #58a25d; /* Slightly deeper on hover */
}


@media only screen and (max-width: 999px) {
    nav .login-btn {
        padding: 4px 8px;
    }
}

.brand a{
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--color);
    font-weight: 800;
    font-size: 1.7rem;
}
@media only screen and (max-width: 999px) {
    .brand>a>span {
        display: none;
    }
}

.brand img{
    height: 30px;
    margin-right: 10px;
}

@media only screen and (max-width: 999px) {
    .brand img{
        height: 26px;
    }
}

.nav-links{
    margin: 0 24px;
    display: flex;
    align-items: center;
}

@media only screen and (max-width: 999px) {
    .nav-links{
        margin: 0 12px;
        display: flex;
        align-items: center;
    }
    .nav-links>a>span {
        display: none;
    }
}
.nav-links a{
    margin: 0 24px;
    text-decoration: none;
    color:#161616;
    line-height: 1;
}

@media only screen and (max-width: 999px) {
    .nav-links>a {
        margin: 0 7px;
    }
}

.nav-links a>span {
    margin-left: 5px;
}

.nav-links a:hover{
    color:#3eaf30;
}

/* common for both left and right aside menu */
.aside-menu {
    position: fixed;
    top: 0;
    width: 250px;
    /* width: 100%; */
    height: 100%;
    background: #222;
    color: white;
    padding: 1rem;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    max-height: 100vh;
    font-family: var(--font-family-english);
}

.aside-menu ul {
    list-style: none;
    margin-top: 31px;
    margin-left: 10px;
    color: #f5f5fa;
}

.aside-menu ul>li {
    border-top: 1px solid #57585a;
}
.aside-menu ul>li:last-child {
    border-bottom: 1px solid #57585a;
}

.aside-menu ul li a {
    color: #c1c8c0;
    text-decoration: none;
    padding: 10px 0px;
    display: inline-block;
}

.aside-menu ul li a:hover {
    color: #ffffff;
}

/* only for left side */
.aside-menu.left {
    left: 0;
    transform: translateX(-100%);
}

/* only for right side */
.aside-menu.right {
    right: 0;
    transform: translateX(100%);
}

/* both left and right */
.aside-menu.show {
    transform: translateX(0);
}

aside>.close-btn {
    /* background: #5e89db; */
    /* color: white; */
    border: none;
    border-radius: 7px;
    /* padding: 0.5rem 1rem; */
    cursor: pointer;
    /* font-size: 1rem; */
    background-color: transparent;
    outline: none;
}

aside>.close-btn>.bi{
    color: #e1dfdf;
    font-size: 50px;
    padding-left: 9px;
}


/* 3-lines menu*/
#hamburgerMenu{
    cursor: pointer;
    font-size: 39px;
    display: flex;
    align-items: center;
    color: black;
    margin-right: 10px;
}

#hamburgerMenu img{
    height: 100%;
    margin-right: 10px;
}

@media only screen and (max-width: 999px) {
    #hamburgerMenu {
        display: flex;
        font-size: 33px;
    }
}

/* 9-dots */
#candyMenu{
    height: 22px;
    cursor: pointer;
}

footer{
    background-color: rgb(240, 240, 240);    
    border-top: 1px solid rgb(216, 216, 216);
    color: rgb(80, 80, 80);
    font-size: 0.8rem;
    padding:20px 0px;
}
@media only screen and (max-width: 999px) {
    footer {
        padding-bottom: 50px;
    }
}

footer>div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

footer img{
    height: 30px;
    width: auto;
}

@media only screen and (max-width: 999px) {
    footer>div {
        flex-direction: column;
        gap:10px;
    }
}

footer a{
    text-decoration: none;
    color: inherit;
};
footer a:hover{
    text-decoration: underline;
};



/* Override sweet-modal color */
.sweet-modal-content{
    color: black;
}

.sweet-modal-overlay {
     background: radial-gradient(at center, rgba(34, 39, 46, 0.6) 0%, rgba(34, 39, 46, 0.7) 100%)  !important;
}

@media only screen and (max-width: 575.98px) {
    .sweet-modal-box, .sweet-modal-box.alert {
        position: relative;
        left:0 !important;
        margin-top: 0px;
        margin-bottom: 0px;
        width: 100% !important;
        height: 100%;
        max-height: 100%; 
    }
}

@media only screen and (max-width: 479.98px) {
    .sweet-modal-box, .sweet-modal-box.prompt, .sweet-modal-box.alert {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* width: 100%;
        height: 100%;
        max-height: 100%; */
    }

    .sweet-modal-close {
        position: relative !important;
        top:0px !important;
        right: 0px !important;
    }

    .sweet-modal-close a.sweet-modal-close-link {
        background-size: 45px !important;
    }
}



.container{
    width: 92%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-info{
    font-size: 0.8rem;
}

label.required::after {
    content: " *";
    color: red;
}

form .field label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: inline-block;
}




.button.next:hover {
    transform: translateX(4px); /* Slide right */
}
.button.prev:hover {
    transform: translateX(-4px); /* Slide left */
}

.button-pair{
    text-align: center;
    margin-top: 30px;
}

@media only screen and (max-width: 575.98px) {
    .button-pair{
        margin-bottom: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 14px; /* unified padding */
    background: #0d5287;
    color: white;
    font-size: 14px;
    text-decoration: none; /* for <a> */
    border: none; /* for <button> */
    cursor: pointer;
    overflow: visible;
    line-height: 1; /* 👈 important */
    width: 150px;
    height: 40px;
    font-family: var(--font-family-english);
  }
  
  .button::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    left: 150px;
  }
  
  .button:hover {
    background: #0585e8;
  }
  
  /* Arrow Buttons */
  .next::after,
  .prev::after {
    border-style: solid;
  }
  
  /* Next Button */
  .next::after {
    right: -23px;
    border-width: 26px;
    border-color: transparent transparent transparent #0d5287;
  }
  
  .next:hover::after {
    border-left-color: #0585e8;
  }
  
  /* Prev Button */
  .prev::after {
    left: -49px;
    border-width: 26px;
    border-color: transparent #0d5287 transparent transparent;
  }
  
  .prev:hover::after {
    border-right-color: #0585e8;
  }

.next.red::after {
    right: -23px;
    border-width: 26px;
    border-color: transparent transparent transparent #FF5A5F;
}

.next.red:hover::after {
    border-left-color: #FF5A5F;
}

@media only screen and (max-width: 479.98px) {
    .button {
        width: 115px;
        height: 34px;
    }

    .button::after {
        left: 113px;
      }

      .prev::after {
        left: -42px;
        border-width: 22px;

      }

      .next::after {
        right: -23px;
        border-width: 22px;
      }

      .next.red::after {
        right: -23px;
        border-width: 22px;
        border-color: transparent transparent transparent #FF5A5F;
    }
  }


.smart-notice {
    display: none;
}

.smart-notice .dismiss {
    background-color: transparent;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-color: inherit;
    margin-left: 10px;
    padding: 0px 7px;
    border-radius: 4px;
    cursor: pointer;
}

.smart-notice {
    display: none;
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.smart-notice.show {
    display: block;
}

.smart-notice.hide {
    opacity: 0;
    /* transform: translateY(20px); */
}