/* ==================== BASE ==================== */
:root{
  --navy:#123a4d;
  --teal:#1aa87c;
  --teal-dark:#128a66;
  --blue:#2f7fbf;
  --muted:#5c7078;
  --line:#e6efee;
  --card-green:#eef9f1;
  --card-blue:#eef4fc;
  --radius:16px;
  --dark:#123d5c;
    --light-teal:#dff8f3;
    --border:#d7edf2;
    --text:#214f6e;
    --ease:cubic-bezier(.22,1,.36,1);    /* মসৃণ ease-out */
    --bounce:cubic-bezier(.34,1.56,.64,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  font-family: Arial, Helvetica, sans-serif;
  /* font-family:"Poppins","Segoe UI",Arial,sans-serif; */
  color:var(--navy);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

body::before,
body::after{
    content:"";
    position:fixed;
    border-radius:50%;
    filter:blur(70px);
    opacity:.55;
    z-index:0;
    pointer-events:none;
}
body::before{
    width:420px;height:420px;
    top:-140px;left:-120px;
    background:radial-gradient(circle,#9be7dd,transparent 70%);
    animation:blobDrift 20s ease-in-out infinite;
}
body::after{
    width:480px;height:480px;
    bottom:-180px;right:-140px;
    background:radial-gradient(circle,#b9dcff,transparent 70%);
    animation:blobDrift 24s ease-in-out infinite reverse;
}

a{text-decoration:none;color:inherit;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;}

:focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px;}

.page-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px 60px;
}

/* ==================== NAVBAR ==================== */
.navbar{
  min-height: 70px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.brand{display:flex;align-items:center;gap:15px;}
.brand-name{
  display:flex;flex-direction:column;line-height:1.05;
  font-weight:800;font-size:17px;letter-spacing:-0.2px;
}
.brand-top{color:var(--navy);}
.brand-bottom{color:var(--teal);}

.nav-menu{
  display:flex;align-items:center;gap:32px;margin-left:auto;
}

.nav-buttons{margin-left:auto;display:flex;gap:25px}

/* shared button base */
.login-nav,
.signup-btn{
  position:relative;
  overflow:hidden;
  border:none;
  border-radius:24px;
  padding:8px 26px;
  font-size:14px;
  font-weight:600;
  isolation:isolate;
}

.portal-section{
    scroll-margin-top: 90px; /* change navbar based on height  */
}

/* ==================== BUTTON 1: Explore Courses — border draw ==================== */
.login-nav{
  background:#fff;
  color:var(--navy);
  border:1.5px solid #dfe9e7;
  border-radius:8px;
  transition:color .3s ease;
}
.login-nav .line{
  position:absolute;
  background:var(--teal);
}
.login-nav .line-top{top:0;left:0;width:0;height:2px;transition:width .2s ease 0s;}
.login-nav .line-right{top:0;right:0;width:2px;height:0;transition:height .2s ease .2s;}
.login-nav .line-bottom{bottom:0;right:0;width:0;height:2px;transition:width .2s ease .4s;}
.login-nav .line-left{bottom:0;left:0;width:2px;height:0;transition:height .2s ease .6s;}

.login-nav:hover{color:var(--teal-dark);}
.login-nav:hover .line-top,
.login-nav:hover .line-bottom{width:100%;}
.login-nav:hover .line-right,
.login-nav:hover .line-left{height:100%;}

/* ==================== BUTTON 2: Login — glow lift ==================== */
.signup-btn{
  background:linear-gradient(135deg,#2aa87a,#3fbf7f 55%,#2f7fbf);
  background-size:180% 180%;
  background-position:0% 50%;
  color:#fff;
  box-shadow:0 6px 16px rgba(26,168,124,.25);
  transition:background-position .6s ease, transform .25s ease, box-shadow .25s ease;
}
.signup-btn:hover{
  background-position:100% 50%;
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 16px 30px rgba(26,168,124,.35);
}
.signup-btn:active{transform:translateY(-1px) scale(1);}

/* ==================== RESPONSIVE ==================== */
@media (max-width:768px){
  .navbar{padding:10px 20px;}
  .hamburger{display:flex;}

  .nav-menu{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:flex-start;gap:16px;
    padding:20px 24px 24px;background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 14px 26px rgba(18,58,77,.08);
    display:none;
  }
  .nav-menu.is-open{display:flex;}

  .nav-buttons{flex-direction:column;width:100%;gap:12px;}
  .login-nav,.signup-btn{width:100%;text-align:center;}
}

@media (prefers-reduced-motion:reduce){
  .login-nav,.signup-btn,.login-nav .line{transition-duration:.01ms !important;}
  .signup-btn:hover{transform:none;}
}

/* ==================== HAMBURGER ==================== */

.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:34px;height:34px;background:none;border:none;
}
.hamburger span{width:22px;height:2px;border-radius:2px;background:var(--navy);transition:transform .25s ease,opacity .2s ease;}
.hamburger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.is-open span:nth-child(2){opacity:0;}
.hamburger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ==================== BANNER ==================== */
.banner{
  background:linear-gradient(180deg,#ffffff 0%,#f4fbf8 70%,#eef9f4 100%);
  padding:44px 24px 40px;
  overflow:hidden;
}
.banner-inner{
  max-width:1000px;height:450px;margin:0 auto;
  display:grid;grid-template-columns: 2fr 1fr;align-items:center;gap:32px;
}
.banner-text{flex:1 1 380px;min-width:260px;}
.banner-title{
  font-size:clamp(32px,4.6vw,60px);
  font-weight:800;line-height:1.05;letter-spacing:.5px;margin-bottom:16px;
}
.title-dark{display:block;color:var(--navy);}
.title-teal{display:block;color:var(--teal);}
.banner-desc{font-size:15px;line-height:1.7;color:var(--muted);max-width:380px;}

.logo{
    width: 380px;
    height: auto;
}

/* ==================== NOTIFICATION ==================== */

.notification{width:min(1000px,88%);height:70px;margin:27px auto 24px;border-radius:14px;background:rgb(228 255 237);display:flex;align-items:center;padding:8px 20px;border:1px solid #d7f0eb;gap:10px}
.notification:hover{box-shadow:0 6px 18px rgba(18,58,77,.07);scale:1.05;transition-duration: 1s;cursor: pointer;}
.bell{width:42px;font-size:25px;color:#10a99e}
.notice-icon{width:26px;height:26px;flex-shrink:0;}
.notice-icon svg{width:100%;height:100%;}
.notification strong{display:block;color:#147b78;font-size:13px;margin-bottom:4px}
.notification p{font-size:11px;color:#75919d}
.arrow{margin-left:auto;color:#0aa69d;font-size:28px}


/* ==================== PORTAL SECTION ==================== */

.content-section{
    width:min(1000px,100%);
    margin:0 auto;
    position:relative;
    z-index:2;
}

.section-title{
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 6px;
    margin-top: 50px;
    margin-bottom:16px;
    animation:fadeUp .7s var(--ease) both;
}
.section-title h2{
    font-size:22px;
    letter-spacing:.3px;
    color:#173e5c;
}

.title-bar{
    width:6px;height:24px;
    background:linear-gradient(180deg,#18c3b0,#068f96);
    border-radius:4px;
    animation:barPulse 2.4s ease-in-out infinite;
}

.title-line{
    width:34px;height:3px;
    background:linear-gradient(90deg,#0aa99f,transparent);
    border-radius:5px;
    transition:width .5s var(--ease);
}
.section-title:hover .title-line{width:90px}

.stats-icon,.faq-icon{color:#0ba69f;font-size:24px;font-weight:bold}


.portal-section{margin-bottom:28px}

.portal{
    min-height:390px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:var(--radius);
    overflow:hidden;
    display:flex;
    position:relative;
    isolation:isolate;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,.82);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    box-shadow:
        0 18px 45px rgba(16,94,112,.14),
        0 3px 10px rgba(16,94,112,.06);

    animation:cardIn .9s var(--ease) both;
    transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.portal:hover{
    transform:translateY(-4px);
    box-shadow:0 26px 60px rgba(16,94,112,.18),0 4px 12px rgba(16,94,112,.07);
}

.portal::before{
    content:"";
    position:absolute;
    top:0;left:0;right:0;
    height:3px;
    background:linear-gradient(90deg,#18c3b0,#3fb6e0,#18c3b0);
    background-size:200% 100%;
    animation:lineFlow 4s linear infinite;
    z-index:6;
}


.portal-form{
    width:100%;
    max-width:600px;
    margin:0 auto;
    padding:34px 36px;
    position:relative;
    z-index:4;
}

.portal-form > *{animation:fadeUp .7s var(--ease) both}
.portal-form > .tabs       {animation-delay:.15s}
.portal-form > form        {animation-delay:.28s}
.portal-form > .signup-text{animation-delay:.42s}


.tabs{
    display:flex;
    gap:10px;
    margin-bottom:24px;
    position:relative;
    background:#f1f7fa;
    padding:6px;
    border-radius:16px;
    --tab-index:0;
}

.tabs::before{
    content:"";
    position:absolute;
    top:6px;
    left:6px;
    width:calc((100% - 12px - 20px) / 3);
    height:calc(100% - 12px);
    border-radius:12px;
    background:linear-gradient(135deg,#1ac2ae,#059a99);
    box-shadow:0 6px 16px rgba(4,163,154,.3);
    transform:translateX(calc((100% + 10px) * var(--tab-index)));
    transition:transform .45s var(--bounce);
    z-index:0;
}

.tab{
    flex:1;
    height:44px;
    border:0;
    border-radius:12px;
    background:transparent;
    color:#557a90;
    font-size:13px;
    font-weight:600;
    letter-spacing:.2px;
    font-family:inherit;
    cursor:pointer;
    position:relative;
    z-index:1;
    transition:color .35s var(--ease),transform .25s var(--ease);
}
.tab:hover{color:#0a8f8c}
.tab:active{transform:scale(.96)}
.tab.active{color:#fff}


.input-box{
    height:54px;
    border:1.5px solid #e0eef3;
    border-radius:14px;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    padding:0 16px;
    background:#fbfeff;
    position:relative;
    transition:border-color .3s var(--ease),box-shadow .3s var(--ease),background .3s;
}
.input-box:hover{border-color:#c2e3ec}


.input-box:focus-within{
    border-color:#16b8a8;
    background:#fff;
    box-shadow:0 0 0 4px rgba(22,184,168,.13);
}

.input-box span{
    color:#9dbccd;
    font-size:20px;
    margin-right:12px;
    transition:color .3s var(--ease),transform .3s var(--bounce);
}
.input-box:focus-within span{
    color:#0fae9f;
    transform:scale(1.18);
}

.input-box input{
    border:0;outline:0;
    width:100%;
    height:100%;
    background:transparent;
    font-size:13.5px;
    color:#2b5872;
    font-family:inherit;
    padding-top:12px;   
}

.input-box label{
    position:absolute;
    left:48px;
    top:50%;
    transform:translateY(-50%);
    font-size:13.5px;
    color:#9dbccd;
    pointer-events:none;
    transition:all .28s var(--ease);
}
.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label{
    top:14px;
    transform:none;
    font-size:10.5px;
    letter-spacing:.4px;
    text-transform:uppercase;
    color:#0fae9f;
    font-weight:700;
}

.input-box.error{
    border-color:#f08a8a;
    box-shadow:0 0 0 4px rgba(240,138,138,.14);
    animation:shake .45s ease;
}
.input-box.error span{color:#e87878}


.main-login{
    width:100%;
    height:52px;
    border:0;
    border-radius:14px;
    color:#fff;
    background:linear-gradient(135deg,#1bc3ae,#048f96);
    font-size:14.5px;
    font-weight:600;
    letter-spacing:.4px;
    font-family:inherit;
    cursor:pointer;
    margin-top:6px;
    position:relative;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,159,149,.28);
    transition:transform .3s var(--ease),box-shadow .3s var(--ease),filter .3s,background .4s;
}
.main-login:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(0,159,149,.36);
    filter:saturate(1.15);
}
.main-login:active{transform:translateY(0) scale(.985)}


.main-login span{
    display:inline-block;
    margin-left:10px;
    font-size:18px;
    transition:transform .35s var(--bounce);
}
.main-login:hover span{transform:translateX(6px)}

.main-login::before{
    content:"";
    position:absolute;
    top:0;left:-120%;
    width:60%;height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent);
    transform:skewX(-20deg);
    transition:left .7s var(--ease);
}
.main-login:hover::before{left:140%}

.main-login b.ripple{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    transform:scale(0);
    animation:ripple .6s ease-out forwards;
    pointer-events:none;
}

.main-login.loading{pointer-events:none;color:transparent}
.main-login.loading span{opacity:0}
.main-login.loading::after{
    content:"";
    position:absolute;
    top:50%;left:50%;
    width:20px;height:20px;
    margin:-10px 0 0 -10px;
    border:2.5px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .7s linear infinite;
}

.main-login.success{
    background:linear-gradient(135deg,#34c98d,#12a37a);
    pointer-events:none;
}

.signup-text{
    text-align:center;
    margin-top:18px;
    font-size:11.5px;
    color:#74909f;
}
.signup-text a{
    text-decoration:none;
    color:#079d96;
    font-weight:bold;
    margin-left:4px;
    position:relative;
}

.signup-text a::after{
    content:"";
    position:absolute;
    left:0;bottom:-3px;
    width:0;height:1.5px;
    background:#079d96;
    transition:width .35s var(--ease);
}
.signup-text a:hover::after{width:100%}


/* .portal-art{
    width:47%;
    height:100%;
    position:absolute;
    right:0;top:0;
    background:
        radial-gradient(circle at 70% 15%,#d5f3fb 0 80px,transparent 81px),
        linear-gradient(145deg,#eefbfb,#dcf6f1);
    clip-path:ellipse(75% 78% at 82% 45%);
    overflow:hidden;
    animation:fadeIn 1.1s var(--ease) .2s both;
}

.portal-art::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        radial-gradient(circle,rgba(255,255,255,.9) 2px,transparent 3px),
        radial-gradient(circle,rgba(255,255,255,.7) 2px,transparent 3px);
    background-size:90px 90px,140px 140px;
    background-position:0 0,40px 60px;
    animation:sparkle 9s linear infinite;
    opacity:.8;
}

 .quote{
    position:absolute;
    top:80px;left:95px;
    font-family:"Brush Script MT",cursive;
    font-size:34px;
    line-height:1.18;
    color:#245879;
    transform:rotate(-7deg);
    z-index:2;
    animation:float 5s ease-in-out infinite;
}
.quote em{
    background:linear-gradient(120deg,#1d6b8e,#0fa79b);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}
.quote-arrow{
    position:absolute;
    right:-38px;bottom:-16px;
    color:#3cae78;
    font-size:44px;
    transform:rotate(20deg);
    animation:arrowNudge 2.6s ease-in-out infinite;
}


.portal-plant{
    position:absolute;
    right:80px;bottom:82px;
    width:80px;height:110px;
    z-index:2;
    transform-origin:bottom center;
    animation:sway 4.5s ease-in-out infinite;
}
.portal-plant span{
    position:absolute;
    width:4px;height:92px;
    background:linear-gradient(180deg,#4fbd7f,#2f8f5c);
    border-radius:3px;
    bottom:0;left:36px;
    transform:rotate(10deg);
}
.portal-plant i{
    position:absolute;
    width:34px;height:20px;
    background:linear-gradient(135deg,#76d18d,#4da869);
    border-radius:100% 0 100% 0;
}
.portal-plant i:nth-child(2){left:6px;top:50px;transform:rotate(-35deg);animation:leafWave 3.2s ease-in-out infinite}
.portal-plant i:nth-child(3){left:38px;top:30px;transform:rotate(40deg);animation:leafWave 3.2s ease-in-out .4s infinite}
.portal-plant i:nth-child(4){left:2px;top:76px;transform:rotate(-25deg);animation:leafWave 3.2s ease-in-out .8s infinite}


.pot{
    position:absolute;
    right:75px;bottom:20px;
    width:55px;height:67px;
    z-index:3;
}
.pot-top{
    width:55px;height:12px;
    background:linear-gradient(90deg,#7bbdb6,#4f9a93);
    border-radius:50%;
    box-shadow:0 2px 6px rgba(20,90,90,.18);
}
.pot-body{
    width:47px;height:55px;
    margin:6px auto 0;
    background:linear-gradient(90deg,#d3f1f3,#5fb2ad);
    clip-path:polygon(7% 0,93% 0,78% 100%,22% 100%);
}

.pot::after{
    content:"";
    position:absolute;
    left:50%;bottom:-8px;
    width:70px;height:10px;
    transform:translateX(-50%);
    background:radial-gradient(ellipse,rgba(20,90,90,.18),transparent 70%);
    animation:shadowPulse 4.5s ease-in-out infinite;
}

@keyframes bgShift{
    0%,100%{background-position:0% 50%}
    50%{background-position:100% 50%}
}
@keyframes blobDrift{
    0%,100%{transform:translate(0,0) scale(1)}
    33%{transform:translate(40px,30px) scale(1.12)}
    66%{transform:translate(-30px,20px) scale(.94)}
}
@keyframes fadeUp{
    from{opacity:0;transform:translateY(22px)}
    to{opacity:1;transform:translateY(0)}
}
@keyframes fadeIn{
    from{opacity:0}
    to{opacity:1}
}
@keyframes cardIn{
    from{opacity:0;transform:translateY(38px) scale(.97)}
    to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes lineFlow{
    from{background-position:0% 0}
    to{background-position:200% 0}
}
@keyframes barPulse{
    0%,100%{transform:scaleY(1);opacity:1}
    50%{transform:scaleY(.72);opacity:.65}
}
@keyframes shake{
    0%,100%{transform:translateX(0)}
    20%{transform:translateX(-7px)}
    40%{transform:translateX(6px)}
    60%{transform:translateX(-4px)}
    80%{transform:translateX(3px)}
}
@keyframes ripple{
    to{transform:scale(3.2);opacity:0}
}
@keyframes spin{
    to{transform:rotate(360deg)}
}
@keyframes float{
    0%,100%{transform:rotate(-7deg) translateY(0)}
    50%{transform:rotate(-7deg) translateY(-12px)}
}
@keyframes arrowNudge{
    0%,100%{transform:rotate(20deg) translate(0,0)}
    50%{transform:rotate(20deg) translate(6px,-6px)}
}
@keyframes sway{
    0%,100%{transform:rotate(-2.5deg)}
    50%{transform:rotate(2.5deg)}
}
@keyframes leafWave{
    0%,100%{filter:brightness(1)}
    50%{filter:brightness(1.14)}
}
@keyframes sparkle{
    from{background-position:0 0,40px 60px}
    to{background-position:90px 90px,180px 200px}
}
@keyframes shadowPulse{
    0%,100%{opacity:.9;transform:translateX(-50%) scaleX(1)}
    50%{opacity:.55;transform:translateX(-50%) scaleX(.82)}
}


@media(max-width:860px){
    .portal-form{width:64%;padding:28px}
    .quote{font-size:26px;left:40px;top:46px}
    .portal-plant{right:52px}
    .pot{right:48px}
}

@media(max-width:600px){
    body{padding:26px 14px}
    .section-title h2{font-size:18px}

    .portal{min-height:auto}
    .portal-form{width:100%;padding:24px 20px}

    .portal-art{width:70%;opacity:.28;clip-path:ellipse(80% 80% at 90% 40%)}

    .tabs{gap:6px}
    .tabs::before{
        width:calc((100% - 12px - 12px)/3);
        transform:translateX(calc((100% + 6px) * var(--tab-index)));
    }
    .tab{font-size:11.5px;height:40px}
    .input-box{height:50px}
    .input-box label{left:44px}
    .main-login{height:48px}
}


@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
} */

/* ==================== STATICS SECTION  ==================== */

.section-title{
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 6px;
    margin-bottom:18px;
    animation:fadeUp .7s var(--ease) both;
}
.section-title h2{
    font-size:22px;
    letter-spacing:.3px;
    color:#173e5c;
}

.stats-icon,.faq-icon{
    color:#0ba69f;
    font-size:24px;
    font-weight:bold;
    animation:iconGlow 2.6s ease-in-out infinite;
}

.title-bar{
    width:6px;height:24px;
    background:linear-gradient(180deg,#18c3b0,#068f96);
    border-radius:4px;
    animation:barPulse 2.4s ease-in-out infinite;
}


.title-line{
    width:34px;height:3px;
    background:linear-gradient(90deg,#0aa99f,transparent);
    border-radius:5px;
    transition:width .5s var(--ease);
}
.section-title:hover .title-line{width:100px}


.statistics{margin-bottom:26px}

.stats-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    margin-top:8px;
}


.stat-card:nth-child(1){animation-delay:.05s}
.stat-card:nth-child(2){animation-delay:.16s}
.stat-card:nth-child(3){animation-delay:.27s}
.stat-card:nth-child(4){animation-delay:.38s}


.stat-card{
    min-height:105px;
    border-radius:20px;
    display:flex;
    align-items:center;
    padding:16px 20px;
    position:relative;
    overflow:hidden;
    isolation:isolate;
    cursor:pointer;

    border:1px solid rgba(255,255,255,.75);
    box-shadow:0 10px 26px rgba(20,90,110,.09);

    animation:cardIn .75s var(--ease) both;
    transition:transform .45s var(--ease),box-shadow .45s var(--ease);
}
.stat-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 44px rgba(20,90,110,.16);
}
.stat-card:active{transform:translateY(-3px) scale(.99)}


.stat-card::before{
    content:"";
    position:absolute;
    right:-40px;top:-40px;
    width:130px;height:130px;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    transition:transform .6s var(--ease),opacity .6s;
    z-index:-1;
}
.stat-card:hover::before{transform:scale(1.9);opacity:.75}


.stat-card::after{
    content:"";
    position:absolute;
    top:0;left:-130%;
    width:60%;height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,.65),transparent);
    transform:skewX(-20deg);
    transition:left .8s var(--ease);
    z-index:1;
    pointer-events:none;
}
.stat-card:hover::after{left:150%}


.green {background:linear-gradient(135deg,#f0fbe6,#dbf2d2)}
.blue  {background:linear-gradient(135deg,#e6f8ff,#d9ebfa)}
.cyan  {background:linear-gradient(135deg,#e2fbf6,#c2f1ea)}
.purple{background:linear-gradient(135deg,#ecf2ff,#d6e5ff)}


.stat-icon{
    width:64px;height:64px;
    border-radius:50%;
    background:rgba(255,255,255,.72);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-right:18px;
    flex-shrink:0;
    position:relative;
    box-shadow:0 6px 16px rgba(20,90,110,.1);
    animation:iconFloat 3.6s ease-in-out infinite;
    transition:transform .5s var(--bounce),box-shadow .4s;
}
.stat-card:hover .stat-icon{
    transform:scale(1.12) rotate(-8deg);
    box-shadow:0 10px 22px rgba(20,90,110,.18);
}

.stat-card:nth-child(2) .stat-icon{animation-delay:.5s}
.stat-card:nth-child(3) .stat-icon{animation-delay:1s}
.stat-card:nth-child(4) .stat-icon{animation-delay:1.5s}

.stat-icon::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px solid currentColor;
    opacity:0;
}
.stat-card:hover .stat-icon::after{animation:ringOut 1.2s ease-out infinite}

.green  .stat-icon{color:#56af70}
.blue   .stat-icon{color:#2898c1}
.cyan   .stat-icon{color:#11a99e}
.purple .stat-icon{color:#5888d8}


.stat-content{
    display:flex;
    flex-direction:column;
    position:relative;
    z-index:2;
}

.stat-content strong{
    font-size:30px;
    font-weight:800;
    letter-spacing:-.5px;
    line-height:1;
    color:#174768;
    font-variant-numeric:tabular-nums;   
    transition:transform .45s var(--bounce);
    transform-origin:left center;
}
.stat-card:hover .stat-content strong{transform:scale(1.07)}

.stat-content span{
    font-size:12.5px;
    letter-spacing:.4px;
    color:#5c8095;
    margin-top:8px;
    position:relative;
    padding-bottom:6px;
}

.stat-content span::after{
    content:"";
    position:absolute;
    left:0;bottom:0;
    width:0;height:2px;
    border-radius:2px;
    background:currentColor;
    opacity:.5;
    transition:width .5s var(--ease);
}
.stat-card:hover .stat-content span::after{width:42px}


.stat-card:hover .stat-arrow{
    transform:translateY(-50%) translateX(6px);
    opacity:1;
    background:#fff;
}

/* ==================== FAQ SECTION  ==================== */
/* =========================================================================
SECTION TITLE
   ========================================================================= */

.section-title{
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 6px;
    margin-bottom:20px;
    animation:fadeUp .7s var(--ease) both;
}
.section-title h2{
    font-size:22px;
    letter-spacing:.3px;
    color:#173e5c;
}

.faq-icon{
    width:30px;height:30px;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:16px;
    font-weight:800;
    background:linear-gradient(135deg,#1bc3ae,#068f96);
    box-shadow:0 6px 14px rgba(4,163,154,.28);
    animation:iconWobble 3.2s ease-in-out infinite;
}

.title-bar{
    width:6px;height:24px;
    background:linear-gradient(180deg,#18c3b0,#068f96);
    border-radius:4px;
    animation:barPulse 2.4s ease-in-out infinite;
}

.title-line{
    width:34px;height:3px;
    background:linear-gradient(90deg,#0aa99f,transparent);
    border-radius:5px;
    transition:width .5s var(--ease);
}
.section-title:hover .title-line{width:100px}


/* =========================================================================
   04. FAQ LIST 
   ========================================================================= */
.faq{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding-bottom:10px; 
}

.faq-item:nth-child(1){animation-delay:.05s}
.faq-item:nth-child(2){animation-delay:.16s}
.faq-item:nth-child(3){animation-delay:.27s}
.faq-item:nth-child(4){animation-delay:.38s}
.faq-item:nth-child(5){animation-delay:.49s}


/* =========================================================================
   05. FAQ ITEM 
   ========================================================================= */
.faq-item{
    border-radius:16px;
    overflow:hidden;
    position:relative;
    isolation:isolate;

    background:rgba(255,255,255,.85);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.8);
    box-shadow:0 8px 22px rgba(20,90,110,.08);

    animation:cardIn .7s var(--ease) both;
    transition:transform .4s var(--ease),box-shadow .4s var(--ease),border-color .4s;
}
.faq-item:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 34px rgba(20,90,110,.14);
}

.faq-item::before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:4px;
    background:linear-gradient(180deg,#1bc3ae,#068f96);
    transform:scaleY(0);
    transform-origin:top;
    transition:transform .45s var(--ease);
    z-index:2;
}
.faq-item.open{
    border-color:rgba(19,181,164,.35);
    box-shadow:0 18px 38px rgba(11,166,159,.16);
}
.faq-item.open::before{transform:scaleY(1)}


/* =========================================================================
   06. QUESTION ROW
   ========================================================================= */
.faq-question{
    width:100%;
    min-height:58px;
    border:0;
    background:transparent;
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 20px;
    color:#234f6b;
    font-size:14px;
    font-weight:600;
    font-family:inherit;
    cursor:pointer;
    text-align:left;
    position:relative;
    z-index:1;
    transition:color .3s var(--ease);
}
.faq-question:hover{color:#0a8f8c}

.faq-question b{
    flex-shrink:0;
    width:26px;height:26px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11.5px;
    font-weight:800;
    color:#0a9998;
    background:#e4f7f4;
    transition:background .4s var(--ease),color .4s var(--ease),transform .5s var(--bounce);
}
.faq-item.open .faq-question b{
    background:linear-gradient(135deg,#1bc3ae,#068f96);
    color:#fff;
    transform:rotate(360deg);
}

.faq-question span{flex:1}

.faq-question strong{
    flex-shrink:0;
    width:28px;height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#237093;
    font-size:20px;
    font-weight:normal;
    background:#f0f7fa;
    border-radius:50%;
    transition:transform .45s var(--bounce),background .4s,color .4s;
}
.faq-item.open .faq-question strong{
    transform:rotate(90deg);
    background:#dff5f2;
    color:#0a9998;
}


/* =========================================================================
   07. ANSWER 
   ========================================================================= */
.faq-answer-wrap{
    display:grid;
    grid-template-rows:0fr;     /* বন্ধ থাকলে উচ্চতা ০ */
    transition:grid-template-rows .5s var(--ease);
}
.faq-item.open .faq-answer-wrap{grid-template-rows:1fr}

.faq-answer{
    overflow:hidden;
    min-height:0;
}
.faq-answer p{
    padding:0 20px 18px 60px;   /* নম্বর ব্যাজের সাথে মিলিয়ে ইনডেন্ট */
    font-size:12.5px;
    line-height:1.7;
    color:#5f8296;

    opacity:0;
    transform:translateY(-6px);
    transition:opacity .35s ease .05s,transform .35s ease .05s;
}
.faq-item.open .faq-answer p{
    opacity:1;
    transform:translateY(0);
}


/* ==================== WAVE ==================== */

/* =========================================================================
   03. FOOTER WRAPPER
   ========================================================================= */
.wave{
    line-height:0;
    position:relative;
}


/* =========================================================================
   04. WAVE 
   ========================================================================= */
.wave svg{
    width:100%;
    height:190px;
    display:block;
}

.wave svg path{
    transform-origin:center bottom;
}
.wave svg path:nth-of-type(1){animation:waveDrift 9s ease-in-out infinite}
.wave svg path:nth-of-type(2){animation:waveDrift 7s ease-in-out infinite reverse}
.wave svg path:nth-of-type(3){animation:waveDrift 11s ease-in-out infinite}

.footer-body{
    background:linear-gradient(180deg,#4fbf92,#2fa87d);
    margin-top:-4px; 
    position:relative;
    overflow:hidden;
    padding:34px 24px 26px;
}


/* =========================================================================
   05. FLOATING PARTICLES
   ========================================================================= */
.bubble{
    position:absolute;
    bottom:-20px;
    border-radius:50%;
    background:rgba(255,255,255,.35);
    animation:bubbleRise linear infinite;
    pointer-events:none;
}
.bubble:nth-child(1){left:8%; width:10px;height:10px;animation-duration:7s; animation-delay:0s}
.bubble:nth-child(2){left:22%;width:6px; height:6px; animation-duration:5.5s;animation-delay:1.2s}
.bubble:nth-child(3){left:38%;width:13px;height:13px;animation-duration:8.5s;animation-delay:.4s}
.bubble:nth-child(4){left:55%;width:7px; height:7px; animation-duration:6s;  animation-delay:2s}
.bubble:nth-child(5){left:70%;width:11px;height:11px;animation-duration:7.5s;animation-delay:.9s}
.bubble:nth-child(6){left:86%;width:8px; height:8px; animation-duration:6.5s;animation-delay:1.6s}
.bubble:nth-child(7){left:94%;width:5px; height:5px; animation-duration:5s;  animation-delay:2.4s}


/* =========================================================================
   06. FOOTER PLANTS — বাম ও ডানে, হাওয়ায় দোলে
   ========================================================================= */
.footer-plant{
    position:absolute;
    bottom:0;
    width:64px;height:96px;
    z-index:3;
    transform-origin:bottom center;
    animation:plantSway 4.2s ease-in-out infinite;
}
.footer-plant.left{left:22px}
.footer-plant.right{right:22px;animation-delay:.6s}

.footer-plant .stem{
    position:absolute;
    width:4px;height:64px;
    background:linear-gradient(180deg,#e9fff3,#bdf1d6);
    border-radius:3px;
    bottom:0;left:28px;
}
.footer-plant i{
    position:absolute;
    width:32px;height:18px;
    background:linear-gradient(135deg,#eafff2,#c5f3d9);
    border-radius:100% 0 100% 0;
    opacity:.9;
}
.footer-plant i:nth-child(2){left:-2px;top:42px; transform:rotate(-28deg);animation:leafFlicker 3s ease-in-out infinite}
.footer-plant i:nth-child(3){left:28px;top:24px; transform:rotate(38deg); animation:leafFlicker 3s ease-in-out .4s infinite}
.footer-plant i:nth-child(4){left:2px; top:60px; transform:rotate(-22deg);animation:leafFlicker 3s ease-in-out .8s infinite}


/* =========================================================================
   07. FOOTER CONTENT — লোগো, লিংক, কপিরাইট
   ========================================================================= */
.footer-content{
    position:relative;
    z-index:4;
    max-width:760px;
    margin:0 auto;
    text-align:center;
    color:#fff;
}

.footer-copyright{
    font-size:15px;
    color:rgba(255,255,255,.85);
    letter-spacing:.3px;
    line-height:1.6;
    animation:fadeUp .7s var(--ease) .4s both;
}
/* .footer-copyright .heart{
    display:inline-block;
    color:#ffdce3;
    animation:heartBeat 1.6s ease-in-out infinite;
} */
.footer-copyright a{
    color:#fff;
    text-decoration:underline;
    text-underline-offset:2px;
} 


/* =========================================================================
   08. BACK-TO-TOP BUTTON — footer এর উপরে ভেসে থাকে
   ========================================================================= */
.back-to-top{
    position:absolute;
    right:26px;
    top:-26px;
    width:52px;height:52px;
    border-radius:50%;
    border:0;
    cursor:pointer;
    z-index:5;

    background:linear-gradient(135deg,#1bc3ae,#068f96);
    color:#fff;
    font-size:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 24px rgba(4,120,115,.35);

    animation:floatY 3s ease-in-out infinite;
    transition:transform .4s var(--bounce),box-shadow .35s;
}
.back-to-top:hover{
    transform:translateY(-6px) scale(1.06);
    box-shadow:0 16px 30px rgba(4,120,115,.42);
}
.back-to-top:active{transform:translateY(-2px) scale(.96)}

/* =========================================================================
   09. KEYFRAMES
   ========================================================================= */
@keyframes waveDrift{
    0%,100%{transform:translateX(0) scaleY(1)}
    50%{transform:translateX(-2.5%) scaleY(1.04)}
}
@keyframes bubbleRise{
    0%{transform:translateY(0) scale(.6);opacity:0}
    12%{opacity:.9}
    100%{transform:translateY(-230px) scale(1);opacity:0}
}
@keyframes plantSway{
    0%,100%{transform:rotate(-3deg)}
    50%{transform:rotate(3deg)}
}
@keyframes leafFlicker{
    0%,100%{filter:brightness(1)}
    50%{filter:brightness(1.15)}
}
@keyframes fadeUp{
    from{opacity:0;transform:translateY(18px)}
    to{opacity:1;transform:translateY(0)}
}
@keyframes logoGlow{
    0%,100%{box-shadow:0 0 0 rgba(255,255,255,0)}
    50%{box-shadow:0 0 16px rgba(255,255,255,.55)}
}
@keyframes heartBeat{
    0%,100%{transform:scale(1)}
    50%{transform:scale(1.25)}
}
@keyframes floatY{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-7px)}
}

/* =========================================================================
   10. RESPONSIVE
   ========================================================================= */
@media(max-width:700px){
    .wave svg{height:130px}
    .footer-body{padding:28px 18px 22px}
    .footer-plant{width:48px;height:72px}
    .footer-plant .stem{height:48px}
    .footer-links{gap:14px}
    .back-to-top{width:44px;height:44px;font-size:17px;right:16px;top:-22px}
}

@media(max-width:460px){
    .footer-plant{display:none}  
    .footer-links{gap:10px 16px}
    .footer-copyright{font-size:10.5px;padding:0 10px}
}


/* =========================================================================
   11. REDUCED MOTION
   ========================================================================= */
@media(prefers-reduced-motion:reduce){
    .wave svg path,.bubble,.footer-plant,.footer-plant i,
    .footer-logo span,.footer-copyright .heart,.back-to-top{animation:none}
    *{transition-duration:.01ms !important}
}

/* ==========================================================================
   [NEW] SIGNUP-MODAL : Sign Up popup (overlay + form styles)
   Ei ongsho puro notun add hoyeche. Shuru: overlay, tarpor form er CSS.
   ========================================================================== */

/* Overlay: full screen, background TRANSPARENT (form card baade). */
.signup-overlay{
  --signup-backdrop: transparent;      /* dim korte chaile: rgba(18,58,77,.35) */
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(16px, 4vw, 48px) 16px;
  overflow-y: auto;                    /* form lomba, tai overlay scroll hoy */
  overscroll-behavior: contain;
  background: #ffffff7a;

  /* form er font (age body te chilo, ekhon overlay te) */
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  /* bondho obosthay */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.signup-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s;
}

/* Card: khular somoy niche theke slide-up */
.signup-overlay .card{
  animation: none;
  transform: translateY(24px) scale(.98);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.signup-overlay.is-open .card{ transform: none; }

/* Popup khola thakle pichoner page scroll bondho */
body.modal-open{ overflow: hidden; }

/* [NEW] SIGNUP-MODAL: Submit confirm message bar (screen er upore) */
.confirm-bar{
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1100;                       /* overlay (1000) er upore */
  width: min(600px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 16px 14px 18px;
  background: #184e77;
  color: #f4fbe8;
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;

  /* bondho obosthay: upore lukano */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -140%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s linear .35s;
}
.confirm-bar.is-open{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s;
}
.confirm-actions{ display: flex; gap: 8px; margin-left: auto; }
.confirm-btn{
  height: 38px;
  min-width: 72px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.confirm-btn:active{ transform: translateY(1px); }
.confirm-btn:focus-visible{ outline: 2px solid #d9ed92; outline-offset: 2px; }
.confirm-yes{ background: #b5e48c; color: #0b2a3f; border-color: #b5e48c; }
.confirm-yes:hover{ background: #d9ed92; }
.confirm-no{ background: transparent; color: #f4fbe8; border-color: rgba(244, 251, 232, .45); }
.confirm-no:hover{ background: rgba(255, 255, 255, .12); }

@media (prefers-reduced-motion: reduce){
  .confirm-bar, .confirm-btn{ transition: none !important; }
}

/* [NEW] SIGNUP-MODAL: Submit successful message bar (screen er upore) */
.success-bar{
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1100;
  width: min(600px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  background: #1d6b47;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -140%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s linear .35s;
}
.success-bar.is-open{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s;
}
.success-icon{
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b5e48c;
  color: #0b2a3f;
  font-size: 17px;
  font-weight: 700;
}
.success-body{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.success-body strong{ font-size: 15.5px; font-weight: 600; }
.success-body span{ color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.success-close{
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.success-close:hover{ background: rgba(255, 255, 255, .15); }
.success-close:focus-visible{ outline: 2px solid #d9ed92; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .success-bar{ transition: none !important; }
}

/* [CHANGED] sudhu signup overlay er [hidden] element hide korbe */
.signup-overlay [hidden]{ display: none !important; }

/* --------------------------------------------------------------------------
   Card + theme tokens
   -------------------------------------------------------------------------- */
.card {
  /* white form (default) */
  --bg: #ffffff;
  --field: #e6ffec;
  --field-hover: #e4f2e6;
  --line: #d3e6d8;
  --line-strong: #a9cfc4;
  --text: #184e77;
  --muted: #4b7592;
  --accent: #1a759f;
  --accent-strong: #1e6091;
  --on-accent: #ffffff;
  --primary: #1a759f;
  --primary-hover: #1e6091;
  --on-primary: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --warn: #184e77;
  --warn-bg: #ecf6c4;
  --ok: #1d6b47;
  --ok-bg: #e3f4e0;
  --chip-bg: #d9ed92;
  --chip-text: #184e77;
  --shadow: 0 30px 60px -30px rgba(24, 78, 119, .3);
  /* header (same in every theme) */
  --head-bg: #184e77;
  --head-text: #f4fbe8;
  --head-muted: #bcdbe8;
  --iso: #99d98c;
  --radius: 12px;

  color-scheme: light;
  width: 100%;
  max-width: 880px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .55s cubic-bezier(.2, .7, .2, 1) both;
}

/* Optional dark version: set data-theme="night" on the <form> */
.card[data-theme="night"] {
  --bg: #0e2d45;            /* darker shade of #184e77 */
  --field: #123a59;
  --field-hover: #184e77;
  --line: #1c4a6d;
  --line-strong: #1e6091;
  --text: #eef7f2;
  --muted: #a3c4d6;
  --accent: #76c893;
  --accent-strong: #99d98c;
  --on-accent: #0b2a3f;
  --primary: #b5e48c;       /* main button */
  --primary-hover: #d9ed92;
  --on-primary: #0b2a3f;
  --danger: #ff9d92;
  --danger-bg: color-mix(in srgb, #ff8f86 13%, #0e2d45);
  --warn: #d9ed92;
  --warn-bg: color-mix(in srgb, #d9ed92 11%, #0e2d45);
  --ok: #99d98c;
  --ok-bg: color-mix(in srgb, #99d98c 13%, #0e2d45);
  --chip-bg: #1e6091;
  --chip-text: #d9ed92;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

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

/* --------------------------------------------------------------------------
   Header (isobar lines = weather-map contour lines)
   -------------------------------------------------------------------------- */
.card-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 36px);
  background: var(--head-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* The full palette as a thin strip across the top of the card */
.card-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(to right,
    #d9ed92 0 10%, #b5e48c 10% 20%, #99d98c 20% 30%, #76c893 30% 40%, #52b69a 40% 50%,
    #34a0a4 50% 60%, #168aad 60% 70%, #1a759f 70% 80%, #1e6091 80% 90%, #184e77 90% 100%);
}

.iso {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  color: var(--iso);
  opacity: .45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 65%);
          mask-image: linear-gradient(to right, transparent 0%, #000 65%);
}

/* ==========================================================================
   Back button (top-left of the form header)
   ========================================================================== */
.card-head { padding-top: 84px; }   /* makes room for the back button */

.back-btn {
  position: absolute;
  top: 22px;
  left: clamp(20px, 4vw, 36px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--head-text);
  text-decoration: none;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(244, 251, 232, .28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.back-btn .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  transition: transform .2s ease;
}
.back-btn:hover {
  color: #184e77;
  background: #b5e48c;
  border-color: #b5e48c;
}
.back-btn:hover .i { transform: translateX(-3px); }
.back-btn:active { transform: translateY(1px); }
.back-btn:focus-visible { outline: 2px solid #d9ed92; outline-offset: 3px; }

@media (max-width: 560px) {
  .back-btn { top: 20px; left: 18px; }
}

/* ==========================================================================
   ========================================================================== */

.mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #b5e48c;
  color: #184e77;
}
.mark .i { width: 24px; height: 24px; }

.head-text { position: relative; min-width: 0; }

.head-text h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-size: clamp(22px, 3.2vw, 29px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--head-text);
}

.head-text p {
  margin: 6px 0 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--head-muted);
}

.card-body { padding: clamp(20px, 4vw, 36px); }

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Layout: sections + grid
   -------------------------------------------------------------------------- */
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.role-section:not([hidden]),
#common:not([hidden]) {
  animation: reveal .25s ease-out;
}

.sec {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}
.sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px 16px;
}
.span-all { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */
.field { min-width: 0; }

.field > label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.req { color: var(--accent); }

.field :where(input:not([type="checkbox"], [type="file"], [type="hidden"]), select, textarea) {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.field :where(input, select, textarea):hover { border-color: var(--line-strong); }

.field :where(input:not([type="checkbox"], [type="file"]), select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* [CHANGED] sudhu signup form er placeholder e apply hobe (landing page e noy) */
.signup-overlay ::placeholder { color: var(--muted); opacity: .6; }

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Select with custom chevron */
.select-wrap { position: relative; }
.select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Password with show/hide */
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: var(--field-hover); }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }

/* OTP */
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1; min-width: 0; }
.otp-row .btn { flex: none; min-width: 112px; }

.hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ok);
}
.hint:empty { display: none; }

/* --------------------------------------------------------------------------
   Tag input (skills, interests, subjects)
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 7px 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.tags:hover { border-color: var(--line-strong); }
.tags:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}

.tags .tag-input {
  flex: 1 1 120px;
  min-width: 100px;
  height: 30px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.tags .tag-input:focus { border: 0; box-shadow: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--chip-text);
  background: var(--chip-bg);
  border-radius: 999px;
}
.chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: .75;
}
.chip button:hover { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent); }
.chip .i { width: 12px; height: 12px; stroke-width: 2.4; }

/* --------------------------------------------------------------------------
   File upload
   -------------------------------------------------------------------------- */
.upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background-color: beige;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .15s, color .15s, background-color .15s;
}
.upload:hover { color: var(--text); border-color: var(--accent); background: var(--field); }
.upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload.has-file {
  color: var(--text);
  border-style: solid;
  border-color: var(--accent);
  background: var(--field);
}

/* --------------------------------------------------------------------------
   Work experience blocks
   -------------------------------------------------------------------------- */
#expwrap { margin-top: 18px; }

.exp {
  padding: 18px;
  background: color-mix(in srgb, var(--field) 20%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.exp + .exp { margin-top: 12px; }
.exp .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .exp .grid { grid-template-columns: minmax(0, 1fr); }
}

.exp-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--field-hover); border-color: var(--accent); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-add { height: 42px; margin-top: 14px; font-size: 14px; }

.btn-ghost {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { color: var(--danger); border-color: transparent; background: var(--danger-bg); }

.btn-primary {
  width: 100%;
  height: 52px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn:focus-visible,
.pw-toggle:focus-visible,
.chip button:focus-visible,
.alt a:focus-visible,
.check a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Notices, messages, validation
   -------------------------------------------------------------------------- */
.notice {
  margin: 14px 0 0;
  padding: 11px 14px;
  font-size: 13.5px;
  border-radius: var(--radius);
  border-left: 3px solid currentColor;
}
.notice.warn    { color: var(--warn);   background: var(--warn-bg); }
.notice.danger  { color: var(--danger); background: var(--danger-bg); }
.notice.neutral { color: var(--muted);  background: var(--field); }
.notice:empty { display: none; }

.form-msg {
  margin: 0 0 14px;
  font-size: 14px;
  border-radius: var(--radius);
}
.form-msg:empty { display: none; }
.form-msg.err { padding: 11px 14px; color: var(--danger); background: var(--danger-bg); }
.form-msg.ok  { padding: 11px 14px; color: var(--ok);     background: var(--ok-bg); }

.field.invalid :where(input, select, textarea),
.field.invalid .tags,
.field.invalid .upload {
  border-color: var(--danger);
}
.field.invalid :where(input, select, textarea):focus,
.field.invalid .tags:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent);
}
.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Terms checkbox + footer link
   -------------------------------------------------------------------------- */
.check-field { margin: 30px 0 16px; }

.field > .check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.check a { color: var(--accent); text-decoration: none; }
.check a:hover { text-decoration: underline; }

.check input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check input::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .12s ease-out;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.invalid .check input { border-color: var(--danger); }

.alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.alt a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .card { border-radius: 18px; }
  .card-head { gap: 12px; padding: 22px 18px; }
  .mark { width: 42px; height: 42px; border-radius: 12px; }
  .iso { width: 100%; opacity: .25; }
  .otp-row { flex-direction: column; }
  .otp-row .btn { width: 100%; }
}

/* [CHANGED] global * silaye sudhu signup overlay er moddhe limited kora holo */
@media (prefers-reduced-motion: reduce) {
  .signup-overlay,
  .signup-overlay *,
  .signup-overlay *::before,
  .signup-overlay *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   [NEW] COMPETENCY-MAPPING : Trainee competency mapping section styles
   ========================================================================== */
.comp-help{
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.comp-help b{ color: var(--text); font-weight: 600; }

.comp-table{
  display: grid;
  gap: 12px;
  margin: 20px 0 22px;
}
.comp-row{
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 96px;
  gap: 10px 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--field) 35%, var(--bg));
}
/* name ar gap chip select er sathe vertically mile thakar jonno label height (27px) er niche */
.comp-name{
  margin: 27px 0 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.comp-gap{
  margin-top: 27px;
  height: 46px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}
.comp-gap.is-met{ color: var(--ok);   background: var(--ok-bg);   border: 1px solid transparent; }
.comp-gap.is-gap{ color: var(--warn); background: var(--warn-bg); border: 1px solid transparent; }
.comp-gap.is-big{ color: var(--on-accent); background: var(--accent); border: 1px solid transparent; }

@media (max-width: 640px){
  .comp-row{ grid-template-columns: 1fr 1fr; }
  .comp-name{ grid-column: 1 / -1; margin: 0; min-height: 0; }
  .comp-gap{ grid-column: 1 / -1; margin-top: 0; height: auto; padding: 6px 12px; justify-self: start; }
}
