:root {
    --primary: #F5362C;
    --light: #FFF8E1;
    --dark: #1A3C4A;
    --color1: #FF9F43;
    --color2: #4ECDC4;
    --color3: #FF6B6B;
    --color4: #96CE79;
    --color5: #F7B731;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Anek Bangla', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #FFE5E5, #E5F3FF);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating SVG decor */
.floating {
    position: absolute;
    opacity: .9;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.floating svg {
    width: 72px;
    height: 72px;
    display: block;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(8deg);
    }

    100% {
        transform: translateY(0) rotate(-6deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
    font-family: 'Anek Bangla', sans-serif;
}

.font-secondary {
    font-family: 'Anek Bangla', sans-serif;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 20px;
    margin: 0 8px;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Anek Bangla', sans-serif;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background: var(--color4);
    color: var(--dark);
    transform: scale(1.1) translateY(-3px);
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: menuHover 0.6s ease-in-out;
}

.navbar .navbar-nav .nav-link.active {
    background: var(--color5);
    color: var(--dark);
    border: 3px solid #FFFFFF;
    animation: activeMenuPulse 2s ease-in-out infinite;
}

@keyframes activeMenuPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(247, 183, 49, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(247, 183, 49, 0.8);
    }
}

@keyframes menuHover {

    0%,
    100% {
        transform: scale(1.1) translateY(-3px);
    }

    50% {
        transform: scale(1.15) translateY(-5px) rotate(2deg);
    }
}

.navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    opacity: 1;
    animation: starTwinkle 1s ease-in-out infinite;
}

@keyframes starTwinkle {

    0%,
    100% {
        transform: scale(0.8) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    transition: top 0.5s ease;
    z-index: 100;
}

@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
    }
}

.navbar.sticky-top {
    top: 0;
    position: sticky;
    z-index: 1030;
    transition: top 0.5s ease;
    padding: 0px !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.logo-img {
    height: 150px;
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease;
    animation: wave-float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

@keyframes balloonFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.logo-img:hover {
    animation: wave-float 1.8s ease-in-out infinite;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.2));
}

@keyframes wave-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(3deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

.nav-item.nav-link.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Anek Bangla', sans-serif;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    outline: none;
    margin-right: 15px;
}

.nav-item.nav-link.btn-lg-square:hover {
    background: var(--color4);
    color: var(--dark);
    transform: scale(1.1) translateY(-3px);
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: menuHover 0.6s ease-in-out;
}

.nav-item.nav-link.btn-lg-square.active {
    background: var(--color5);
    color: var(--dark);
    border: 3px solid #FFFFFF;
    animation: activeMenuPulse 2s ease-in-out infinite;
}

.nav-item.nav-link.btn-lg-square::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item.nav-link.btn-lg-square:hover::before,
.nav-item.nav-link.btn-lg-square.active::before {
    opacity: 1;
    animation: starTwinkle 1s ease-in-out infinite;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
        text-align: center;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }

    .logo-img {
        height: 120px;
    }

    .nav-item.nav-link.btn-lg-square {
        margin: 10px 0;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.loginstyle {
    background: var(--primary) !important;
    color: var(--light) !important;
    border: 3px solid #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    animation: menuHover 0.6s ease-in-out !important;
}

.loginstyle:hover {
    background: var(--color2) !important;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 100px;
    }

    .nav-item.nav-link.btn-lg-square {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x !important;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x !important;
}

.header-carousel .owl-carousel-item {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.header-carousel .owl-carousel-item .container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 20px;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 45%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        max-height: 400px;
        text-align: center;
    }

    .header-carousel .owl-carousel-item img {
        height: 400px;
        text-align: center;
        object-fit: cover;
        display: block;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .header-carousel .owl-carousel-item .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .header-carousel .owl-carousel-item .d-flex {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item h1 {
        font-size: 1.5rem;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 0.875rem;
    }

    .header-carousel .owl-carousel-item .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .header-carousel .owl-carousel-item .col-12 {
        padding: 0 1rem;
    }
}

.header-carousel .position-absolute {
    overflow: visible;
}

.header-carousel .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Anek Bangla', sans-serif;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.category-btn-art {
    background-color: #ff6b6b;
}

.category-btn-color {
    background-color: #4ecdc4;
}

.category-btn-athletic {
    background-color: #45b7d1;
}

.category-btn-language {
    background-color: #96ce79;
}

.category-btn-religion {
    background-color: #f7b731;
}

.category-btn-knowledge {
    background-color: #a77bd4;
}

.category-btn-all {
    background-color: #ff9f43;
}

@media (max-width: 768px) {
    .category-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.nav-item.nav-link.logo-container {
    width: auto;
    height: 150px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    font-family: 'Anek Bangla', sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    outline: none;
    margin: 0 8px;
}

.ulcol {
    column-count: 2;
    column-gap: 20px;
}

@media (max-width: 768px) {
    .ulcol {
        column-count: 1;
    }
}

.navbar.scrolled .logo-img {
    height: 90px;
}

.navbar.scrolled .nav-item.nav-link.logo-container {
    height: 90px;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 6px 20px;
}

@media (max-width: 991.98px) {
    .logo-img {
        height: 120px;
    }

    .navbar.scrolled .logo-img {
        height: 80px;
    }

    .nav-item.nav-link.logo-container {
        height: 120px;
    }

    .navbar.scrolled .nav-item.nav-link.logo-container {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 100px;
    }

    .navbar.scrolled .logo-img {
        height: 70px;
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
    border: 3px solid var(--color2);
    z-index: 10;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    text-align: center;
    color: var(--dark);
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.toggle-btns {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 20px 0 0 20px;
}

.toggle-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.toggle-btn.active {
    background: var(--color3);
    color: white;
}

.toggle-btn:not(.active) {
    background: var(--light);
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 44px;
    border: 2px solid var(--color1);
    border-radius: 20px;
    font-family: 'Anek Bangla', sans-serif;
    transition: border-color 0.3s ease;
    animation: inputPulse 2s infinite;
}

@keyframes inputPulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--color1);
    }

    50% {
        box-shadow: 0 0 10px var(--color2);
    }
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group .fg-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--dark);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: var(--dark);
    font-size: 16px;
    line-height: 1;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background: var(--color4);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: buttonHover 0.5s ease;
}

@keyframes buttonHover {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        transform: scale(1.05);
    }
}

.register-link {
    text-align: center;
    margin-top: 15px;
    color: var(--dark);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    color: var(--color5);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    color: var(--dark);
}

.forgot-password-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Anek Bangla', sans-serif;
}

.forgot-password-link:hover {
    color: var(--color5);
}

#phone-group {
    display: block;
}

#email-group {
    display: none;
}

.register-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
    border: 3px solid var(--color4);
}

.register-container h2 {
    text-align: center;
    color: var(--dark);
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    animation: bounceIn 1s ease;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    color: var(--dark);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    color: var(--color5);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}