/* ============================================
   PHIR SHIKSHA - COMPLETE CSS STYLESHEET
   Font: Plus Jakarta Sans
   Container: 1170px
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --primary-purple: #9473B3;
    --primary-green: #C4F0AA;
    --primary-blue: #AEC0F2;
    --primary-light-blue: #BEE8FF;
    --primary-orange: #FFE4B6;
    --primary-light-green: #D2F5D9;
    --black: #000000;
    --white: #FFFFFF;
    --bg-light: #FFFBF6;
    --gray-light: #f5f5f5;
    --gray-dark: #999999;
    --gray-border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--black);
    padding-top: 20px;
    line-height: 1.6;
}

body img {
    max-width: 100%;
}

body a {
    text-decoration: none;
    display: inline-block;
}

body h3 {
    font-size: 30px;
    line-height: 38px;
    font-weight: 600;
}

body input.form-control, body textarea.form-control, body select.form-control, body input, body textarea, body select {
    padding: 20px 20px 20px 64px;
    border: 0;
    background-color: #F9F9F9;
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    color: #000;
    outline: 1px solid #F9F9F9;
    background-repeat: no-repeat;
    background-position: top 19px left 20px;
    height: unset;
    border-radius: 0;
    letter-spacing: unset;
    font-weight: unset;
}

body button:focus, a:focus, body input:focus, body textarea:focus, body select:focus {
    outline: 1px solid #9473B3;
    outline-offset: 1px;
}

body input[type="password"]::-ms-reveal { display: none; } 

body input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
body input:-internal-autofill-selected,
body input:autofill   {
 background-color: #F9F9F9!important;
}

main.container {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.form-wrapper {
    padding: 30px;
    background-color: var(--white);
    border: solid 1px #E0E0E0;
    margin: 50px 0 0;
}

.form-wrapper h4 {
    font-size: 21px;
    line-height: 26px;
    font-weight: 400;
    margin: 0 0 30px;
    color: #000000;
}

.form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    position: relative;
}

.field-icon {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    cursor: pointer;
}
body .phone-input-wrapper .iti {
    border: 0;
    border-radius: 0;
}

body .phone-input-wrapper {
    margin: 0;
}
body .phone-input-wrapper #mobile_no {
    background-color: #f9f9f9;
    border: 0;
    color: #000;
    padding: 20px 20px;
    height: unset;
}
body .iti__flag-container {
    padding: 0;
    background-color: #f9f9f9;
    border-radius: 0 !important;
}
body .iti--separate-dial-code .iti__selected-flag {
    padding: 0 10px 0 20px !important;
}
.btn-theme {
    padding: 20px;
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    text-transform: capitalize;
    transition: all ease 0.5s;
}

body .btn-theme-purple {
    background-color: var(--primary-purple);
    color: var(--white);
}

.forget-password {
    font-size: 16px;
    line-height: 20px;
    width: fit-content;
    margin-left: auto;
    color: var(--black);
    text-decoration: underline;
}

.btn-text {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

.btn-text-purple {
    color: var(--primary-purple);
    text-decoration: underline;
}

.btn-text-black {
    color: var(--black);
}

/* ============ CONTAINER ============ */
.site-container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-light);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between ;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    width: 100px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-weight: bold;
    font-size: 18px;
    color: var(--black);
}

/* Navigation */
.nav-desktop ul {
    display: flex;
    gap: 50px;
    align-items: center;
    list-style: none;
}

.nav-desktop ul ul {
    position: absolute;
    padding: 12px;
    border-radius: 16px;
    background-color: #fff;
    transition: all ease 0.2s;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
    min-width: 174px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
}

.nav-desktop ul ul li {
    padding-bottom: 6px;
    border-bottom: solid 1px #D1D1D1;
    width: 100%;
}

.nav-desktop ul li:hover ul {
    transition: all ease 0.2s;
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 20px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link svg {
    width: 10px;
    position: relative;
    top: 3px;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login {
    color: var(--black);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 20px;
    width: 100%;
}

.btn-login:hover {
    color: var(--primary-purple);
}

.btn-signup {
    background-color:var(--primary-purple) ;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    transition: background-color 0.3s ease;
    line-height: 18px;
}

.btn-signup:hover {
    background-color: #8563a3;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-border);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-link {
    display: block;
}

.btn-signup-mobile {
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s ease;
    line-height: 20px;
}

.btn-primary:hover {
    background-color: #8563a3;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    padding: 15px 20px;
    border: 1px solid var(--black);
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 20px;
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-dark {
    background-color: var(--black);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s ease;
    line-height: 20px;
}

.btn-dark:hover {
    background-color: var(--primary-purple);
}

.btn-video {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 20px;
}

/* ============ FOOTER ============ */
.site-footer, footer {
    background-color: var(--white);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 90px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 50px;
}

.footer-logo img {
    width: 170px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-weight: bold;
    font-size: 16px;
}

.footer-description {
    font-size: 14px;
    color: var(--gray-dark);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--black);
    line-height: 23px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links li {
    display: flex;
}

.footer-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    line-height: 20px;
}

.footer-bottom {
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    font-size: 16px;
    color: var(--black);
    line-height: 20px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    transition: color 0.3s ease;
    display: flex;
}
main.container {
    margin: 0 !important;
    padding: 0;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    body {
        padding-top: 10px;
    }

    .site-container {
        padding: 0 20px;
    }

    .nav-desktop {
        display: none;
    }

    /* .btn-login {
        display: none;
    }

    .btn-signup {
        display: none;
    } */

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .logo {
    width: 80px;
}

.btn-text {
    font-size: 14px;
    line-height: 18px;
}

body h3 {
    font-size: 24px;
    line-height: 30px;
}

body input, body textarea, body select {
    padding: 14px;
    font-size: 14px;
    line-height: 18px;
}

.form-wrapper form {
    gap: 14px;
}

.btn-submit {
    margin: 10px 0;
}

.btn-theme {
    padding: 14px;
    font-size: 14px;
    line-height: 18px;
}

.forget-password {
    font-size: 14px;
    line-height: 18px;
}

.dont-have-ac {
    font-size: 14px;
    line-height: 18px;
}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .site-container {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 16px;
    }
}

/* ============ PASSWORD SHOW / HIDE ICON ============ */
/* Icon position comes from .field-icon (right:20px, vertically centered).
   Below: keep text from running under the icon, and style the icon. */
body .form-group input.has-pw-toggle,
body .form-group:has(> .pw-toggle) > input {
    padding-right: 56px;
}

.pw-toggle {
    z-index: 5;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    user-select: none;
    -webkit-user-select: none;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
    color: var(--primary-purple);
}

@media (max-width: 768px) {
    .pw-toggle {
        right: 14px;
        font-size: 16px;
    }

    body .form-group input.has-pw-toggle,
    body .form-group:has(> .pw-toggle) > input {
        padding-right: 46px;
    }
}
