/* =========================================
   Global & Base Styles
   ========================================= */
* {
    box-sizing: border-box;
}

/* Fonts */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    background-color: #ffffff;
    overflow-x: hidden;
    /* ডানে-বামে অপ্রয়োজনীয় স্ক্রল বন্ধ করবে */
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Header Top Section
   ========================================= */
.header-top {
    background-color: #117039;
    padding: 4px 0;
}

.header-top-content {
    color: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-top-content p {
    padding: 0.25rem 0;
    margin: 0;
    font-size: 0.9rem;
}

.header-top-content i {
    color: yellow;
    margin-right: 0.35rem;
    font-weight: bold;
}

.header-top-content a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.header-top-content a:hover {
    color: yellow;
}

/* =========================================
   Header Middle Section
   ========================================= */
.header-middle {
    background-color: wheat;
    padding: 0.8rem 0;
}

.header-middle .row {
    align-items: center;
}

.header-middle .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-middle .logo img {
    height: 5rem;
    width: 5rem;
    object-fit: contain;
}

.header-middle .header-content {
    background-origin: padding-box;
    transition: transform 0.4s ease;
}

.header-middle .header-content:hover {
    transform: translateX(6px);
}

.header-middle .header-content h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #117039;
}

.header-middle .header-content p {
    margin: 0.3rem 0 !important;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.header-content .institute-code {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.institute-code span {
    padding: 0.2rem 0.9rem;
    background-color: #555;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.header-admision {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    transition: transform 0.4s ease;
}

.header-admision i {
    padding: 0 0.4rem;
}

.header-admision a {
    background: yellow;
    padding: 0.6rem 1.1rem;
    border-radius: 1.5rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.header-admision:hover {
    transform: translateY(-4px);
}

/* =========================================
   Hero / Latest Notice Marquee Section
   ========================================= */
section.hero-area {
    margin-top: 1rem;
}

.notice-area {
    border: 2px solid green;
    overflow: hidden;
    background-color: #fff;
}

.notice-area .row {
    align-items: center;
    margin: 0;
}

.notice-area .col-md-2 {
    padding: 0;
}

.notice-area .col-md-10 {
    padding: 0 10px;
}

section.hero-area p {
    background: green;
    padding: 0.7rem 1rem;
    border-radius: 0 25px 25px 0px;
    color: white;
    font-weight: bold;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

section.hero-area marquee {
    padding: 0.5rem 0.5rem;
    color: red;
    font-weight: bold;
    display: block;
    font-size: 1.2rem;
}

/* =========================================
   Main Slider & Notice Sidebar Section
   ========================================= */
section.main-section {
    margin: 1rem 0;
}

.carousel-inner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.main-sidebar {
    border: 1px solid rgb(188, 188, 188);
    padding: 0.8rem;
    height: 100%;
    background-color: #fafafa;
}

.main-sidebar h3 {
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.main-sidebar h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: green;
}

.main-sidebar ul {
    width: 100%;
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.main-sidebar ul li {
    text-align: center;
    border: 1px solid wheat;
    margin: 0.5rem 0;
    background-color: #fff;
}

.main-sidebar ul li a {
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    color: #555;
    width: 100%;
    padding: 0.75rem 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

.main-sidebar ul li a:hover {
    background-color: wheat;
    color: black;
    transform: translateX(5px);
}

/* =========================================
   School Cards & Facebook Page Section
   ========================================= */
.school-main {
    margin: 2rem 0;
}
.school-main .school-card {
    width: 100% !important;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.school-main .school-card .card-body h5 {
    font-weight: 700;
    font-size: 1.6rem;
}

.school-main .school-card .card-body {
    font-size: 1.2rem;
}

.school-main .school-card:hover {
    transform: translateY(-4px);
}

.school-main .school-card img {
    height: 6.5rem;
    width: 6.5rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #117039;
}

.fb-page-sidebar {
    padding: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fb-page-sidebar iframe {
    width: 100% !important;
    max-width: 100%;
}

/* =========================================
   About Us Section
   ========================================= */
section.about-us-section {
    margin-bottom: 3rem;
}
.about-us-main {
    border: 1px solid rgb(197, 197, 197);
    padding: 2rem;
    box-shadow: 0px 0px 10px 0px rgb(197, 197, 197);
    background-color: #fff;
}

.about-us-main h2,
.news-main h2 {
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.about-us-main h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: green;
}

.about-us-main p {
    padding-top: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #333;
}

.about-us-main .about-us-content img {
    max-height: 18rem;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}
/* =========================================
    Teacher Section
   ========================================= */
.slider-container {
    overflow: hidden;
    position: relative;
    padding: 15px 0;
}

.slider-container span {
    font-size: 1rem;
}

.slider-track {
    display: inline-flex;
    flex-wrap: nowrap;
    animation: scrollLeft 40s linear infinite;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.teacher-card {
    width: 260px;
    margin-right: 20px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.teacher-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #007bff;
}


/* =========================================
   News & Events Section
   ========================================= */
.news-main-section {
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.news-main-section .news-main h2 {
    margin-bottom: 1.7rem;
    margin-left: 1.5rem;
}

.news-main-section .news-main h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: green;
}

.news-main-section .card {
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-main-section .card .card-body h5 {
    font-weight: 600;
    font-size: 1.6rem;
}

.news-main-section .card .card-body p {
    font-size: 1.2rem;
}

.news-main-section .card:hover {
    transform: translateY(-4px);
}

.news-main-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* =========================================
   Footer Section
   ========================================= */
section.footer-area {
    background-color: #179d4f;
    color: white;
    padding-bottom: 1.5rem;
}

section.footer-area .footer h2 {
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.footer-main .footer ul {
    list-style: none;
    margin: 0;
    padding: 0;

}

.footer-main .footer ul li {
    padding: .5rem 0;
}

.footer-main .footer ul li i {
    margin-right: .5rem;
}

.footer-bottom {
    background-color: #117039;
    color: white;
}

.footer-main .footer .footer-right ul li a {
    color: white;
}

.footer-main .footer .footer-right ul li a:hover {
    color: yellow;
    transition: .5s ease;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 0;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0;
    padding: 0 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom-content a {
    text-decoration: none;
    color: yellow;
    font-weight: bold;
}

/* =========================================
   Sign Up From Section
   ========================================= */
section.sign-up {
    background: linear-gradient(45deg, #c5a00f, transparent);
    color: rgb(0, 0, 0);
}

section.sign-up .sign-up-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
}

section.sign-up .sign-up-form span {
    color: red;
}

.sign-up .sign-up-form form {
    padding: 2rem;
    box-shadow:
        rgba(103, 231, 218, 0.25) 0px 13px 27px -5px,
        /* বাইরের ছড়ানো শ্যাডো */
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px,
        /* কাছের গাঢ় শ্যাডো */
        rgba(0, 0, 0, 0.15) 0px -2px 0px inset;
    /* ভেতরের শ্যাডো (inset) যা থিকনেস বা গভীরতা বোঝায় */
    transition: all 0.3s ease;
    /* অ্যানিমেশন স্মুথ করার জন্য */
    cursor: pointer;
}

.sign-up .sign-up-form form:hover {
    transform: translateY(-5px);
    /* বক্সটি ৫ পিক্সেল উপরে উঠবে */
    box-shadow:
        rgba(50, 50, 93, 0.35) 0px 20px 35px -5px,
        rgba(0, 0, 0, 0.4) 0px 12px 20px -8px,
        rgba(0, 0, 0, 0.15) 0px -5px 0px inset;
}

/* =========================================
   Login Form Section
   ========================================= */
section.sign-in {
    background: linear-gradient(45deg, #000000, transparent);
    color: rgb(255, 255, 255);
}

section.sign-in .login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
}

.sign-in .login-form form {
    padding: 2rem;
    box-shadow:
        rgba(216, 216, 232, 0.25) 0px 13px 27px -5px,
        /* বাইরের ছড়ানো শ্যাডো */
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px,
        /* কাছের গাঢ় শ্যাডো */
        rgba(0, 0, 0, 0.15) 0px -2px 0px inset;
    /* ভেতরের শ্যাডো (inset) যা থিকনেস বা গভীরতা বোঝায় */
    transition: all 0.3s ease;
    /* অ্যানিমেশন স্মুথ করার জন্য */
    cursor: pointer;
}

.sign-in .login-form form:hover {
    transform: translateY(-5px);
    /* বক্সটি ৫ পিক্সেল উপরে উঠবে */
    box-shadow:
        rgba(50, 50, 93, 0.35) 0px 20px 35px -5px,
        rgba(0, 0, 0, 0.4) 0px 12px 20px -8px,
        rgba(0, 0, 0, 0.15) 0px -5px 0px inset;
}

/* =========================================
   Dashboard Area Section
   ========================================= */
section.dashboard-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-menu {
    background: gray;
    height: 200vh;
}

.dashboard-menu i {
    color: white;
    padding: .5rem;

}

.dashboard-menu p {
    color: white;
    font-weight: bold;
    border-bottom: 1.5px dotted white;
    margin: 0;
}

.dashboard-menu ul {
    list-style: none;
    padding: 0;
}

.dashboard-menu ul li ul {
    display: none;
}

.dashboard-menu .menu-item {
    display: flex;
    flex-direction: column;

}

.dashboard-menu .menu-item a {
    padding: .3rem;
    color: white;
    display: block;
    text-decoration: none;
    text-align: left;
}

.dashbord-ad p {
    padding: .3rem .5rem;
    color: wheat;
    font-weight: bold;
}

section.dashboard-main-area {
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

section.dashboard-main-area img {
    width: 20rem;
    height: 20rem;
}

/* =========================================
   Subjection Area Section
   ========================================= */

section.subject-area,
section.class-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 30rem;
    margin: 0 auto;
    height: 100vh;
}

form.class-form,
form.subject-form {
    padding: 2rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

section.subject-are .subject-form {
    display: flex;
}


/* বাম দিকে স্মুথ স্লাইডিং অ্যানিমেশন */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* ট্যাবলেট ও মাঝারি স্ক্রিন (৯৯১ পিক্সেল পর্যন্ত) */
@media (max-width: 991.98px) {
    .header-middle .header-content h2 {
        font-size: 1.4rem;
    }

    .header-admision a {
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }

    .carousel-inner img {
        height: 300px;
    }

    section.hero-area p {
        font-size: 0.9rem;
        padding: 0.7rem 0.5rem;
    }
}

/* মোবাইল ও ছোট ট্যাবলেট (৭৬৭ পিক্সেল পর্যন্ত) */
@media (max-width: 767.98px) {

    /* Header Top */
    .header-top-content {
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    /* Header Middle */
    .header-middle {
        text-align: center;
        padding: 1rem 0;
    }

    .header-middle .logo {
        margin-bottom: 0.5rem;
    }

    .header-middle .header-content:hover {
        transform: none;
    }

    .header-middle .header-content h2 {
        font-size: 1.35rem;
    }

    .header-content .institute-code {
        justify-content: center;
    }

    .header-admision {
        justify-content: center;
        margin-top: 1rem;
        height: auto;
    }

    /* Notice Bar */
    section.hero-area p {
        border-radius: 0;
        padding: 0.5rem;
    }

    /* Main Slider & Sidebar */
    .carousel-inner img {
        height: 230px;
    }

    .main-sidebar {
        margin-top: 1.2rem;
    }

    /* School Cards */
    .school-main .col-md-4 {
        margin-bottom: 1.25rem;
    }

    .school-main .col-md-4:last-child {
        margin-bottom: 0;
    }

    /* About Us */
    .about-us-main {
        padding: 1.25rem;
    }

    .about-us-main h2,
    .news-main h2 {
        font-size: 1.45rem;
    }

    .about-us-main p {
        font-size: 1.2rem;
        text-align: left !important;
        /* মোবাইলে justify টেক্সটে ফাঁকা জায়গা তৈরি হওয়া রোধ করবে */
    }

    /* News Cards */
    .news-main-section .col-md-4 {
        margin-bottom: 1.25rem;
    }

    .news-main-section .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* একদম ছোট মোবাইল স্ক্রিন (৪৮০ পিক্সেল পর্যন্ত) */
@media (max-width: 480px) {
    .header-top-content p {
        font-size: 0.8rem;
    }

    .header-middle .logo img {
        height: 4rem;
        width: 4rem;
    }

    .header-middle .header-content h2 {
        font-size: 1.5rem;
    }

    .institute-code span {
        font-size: 0.78rem;
        padding: 0.2rem 0.7rem;
    }

    .carousel-inner img {
        height: 190px;
    }

    .footer-bottom-content p {
        font-size: 0.82rem;
    }
}