/* =========================================================
   Multi-School CMS Professional Frontend
========================================================= */

:root {
    /*
    |--------------------------------------------------------------------------
    | Dynamic School Theme
    |--------------------------------------------------------------------------
    |
    | These variables are set dynamically from:
    | resources/views/frontend/layouts/app.blade.php
    |
    */

    --school-primary: #2563eb;
    --school-secondary: #102451;
    --school-accent: #f59e0b;
    --school-header: #ffffff;
    --school-topbar: #102451;
    --school-menu: #2563eb;
    --school-button: #1d4ed8;
    --school-footer: #0f172a;

    /*
    |--------------------------------------------------------------------------
    | Backward-Compatible Variables
    |--------------------------------------------------------------------------
    */

    --primary-color: var(--school-primary);
    --secondary-color: var(--school-accent);
    --dark-color: var(--school-secondary);
    --heading-color: var(--school-secondary);
    --text-color: #475569;
    --muted-color: #64748b;
    --light-color: #f4f7fb;
    --white-color: #ffffff;
    --border-color: #e2e8f0;

    --header-color: var(--school-header);
    --topbar-color: var(--school-topbar);
    --menu-color: var(--school-menu);
    --button-color: var(--school-button);
    --footer-color: var(--school-footer);
    --accent-color: var(--school-accent);

    --shadow-small: 0 5px 15px rgba(15, 23, 42, 0.07);
    --shadow-medium: 0 12px 35px rgba(15, 23, 42, 0.10);
    --shadow-large: 0 20px 55px rgba(15, 23, 42, 0.14);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --transition: all 0.25s ease;
}

/* =========================================================
   Reset
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text-color);
    background: var(--light-color);
    font-family: Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    margin-top: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
   Layout
========================================================= */

.container {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.page-wrapper {
    min-height: 500px;
    padding: 50px 0 70px;
}

.home-page {
    min-height: 500px;
}

/* =========================================================
   Topbar
========================================================= */

.topbar {
    width: 100%;
    color: #dbeafe;
    background: var(--topbar-color);
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.topbar a,
.topbar span {
    color: #dbeafe;
}

.topbar a:hover,
.topbar a:focus {
    color: var(--secondary-color);
}

/* =========================================================
   Header and School Branding
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--header-color);
    box-shadow: var(--shadow-small);
}

.school-branding {
    padding: 20px 0;
    background: var(--header-color);
}

.school-branding-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.school-identity {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.school-name-wrapper,
.school-identity > div:last-child {
    min-width: 0;
}

.school-logo,
.school-logo-placeholder {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
}

.school-logo {
    padding: 4px;
    object-fit: contain;
    background: var(--white-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.school-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: var(--primary-color);
    border: 3px solid var(--primary-color);
    font-size: 30px;
    font-weight: 700;
    box-shadow: var(--shadow-small);
}

.school-title {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--primary-color);
    font-size: clamp(25px, 4vw, 40px);
    line-height: 1.15;
}

.school-title-bn {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--muted-color);
    font-size: clamp(16px, 2.2vw, 21px);
}

.school-address {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.45;
}

.school-contact-box {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.school-contact-icon {
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(35, 71, 148, 0.18);
}

.school-contact-text {
    line-height: 1.35;
}

.school-contact-text small {
    display: block;
    color: var(--muted-color);
}

.school-contact-text strong {
    display: block;
    margin-top: 2px;
    color: var(--heading-color);
    font-size: 17px;
}

/* =========================================================
   Main Navigation
========================================================= */

.main-navigation {
    width: 100%;
    background: var(--menu-color);
}

.navigation-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    margin: 8px 0;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    font-size: 23px;
}

.main-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    color: var(--white-color);
    font-weight: 600;
}

.main-menu > li > a:hover,
.main-menu > li > a:focus,
.main-menu > li.active > a,
.main-menu > li.current-menu-item > a,
.main-menu > li > a[aria-current="page"] {
    color: var(--white-color);
    background: var(--dark-color);
}

/* Dropdown */

.main-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    visibility: hidden;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    background: var(--white-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 var(--radius-small) var(--radius-small);
    box-shadow: var(--shadow-medium);
    transform: translateY(10px);
    transition: var(--transition);
}

.main-menu li:hover > ul,
.main-menu li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.main-menu ul li {
    width: 100%;
}

.main-menu ul a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 17px;
    color: var(--text-color);
    background: var(--white-color);
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.main-menu ul a:hover,
.main-menu ul a:focus {
    padding-left: 22px;
    color: var(--primary-color);
    background: #f8fafc;
}

.main-menu ul ul {
    top: 0;
    left: 100%;
    border-radius: var(--radius-small);
}

.main-menu .has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-label {
    flex: 1;
}

.menu-icon {
    flex-shrink: 0;
    margin-right: 4px;
}

.submenu-arrow {
    display: inline-block;
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 12px;
    line-height: 1;
}

/* =========================================================
   Dynamic Homepage Slider
========================================================= */

.dynamic-slider,
.home-slider,
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dark-color);
}

.dynamic-slider-track,
.home-slider-track,
.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 36vw, 700px);
}

.dynamic-slide,
.home-slide,
.hero-slide {
    position: relative;
    display: none;
    width: 100%;
    min-height: clamp(420px, 36vw, 700px);
    overflow: hidden;
}

.dynamic-slide.active,
.home-slide.active,
.hero-slide.active {
    display: block;
}

.dynamic-slide picture,
.dynamic-slide-image,
.home-slide picture,
.home-slide-image,
.hero-slide picture,
.hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
}

.dynamic-slide img,
.dynamic-slide-image img,
.home-slide img,
.home-slide-image img,
.hero-slide img,
.hero-slide-image img {
    width: 100%;
    height: clamp(420px, 36vw, 700px);
    object-fit: cover;
    object-position: center;
}

.dynamic-slide-overlay,
.home-slide-overlay,
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(15, 36, 81, 0.92) 0%,
            rgba(37, 99, 235, 0.65) 45%,
            rgba(15, 23, 42, 0.15) 100%
        );
}

.dynamic-slide-content,
.home-slide-content,
.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(1180px, calc(100% - 64px));
    color: var(--white-color);
    transform: translate(-50%, -50%);
}

.dynamic-slide-content-inner,
.home-slide-content-inner,
.hero-slide-content-inner {
    max-width: 720px;
}

.dynamic-slide-subtitle,
.home-slide-subtitle,
.hero-slide-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 800;
}

.dynamic-slide-title,
.home-slide-title,
.hero-slide-title {
    margin: 0 0 12px;
    color: var(--white-color);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.dynamic-slide-description,
.home-slide-description,
.hero-slide-description {
    max-width: 680px;
    margin-bottom: 26px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.dynamic-slide-button,
.home-slide-button,
.hero-slide-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    color: var(--white-color);
    background: var(--button-color);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: var(--shadow-medium);
}

.dynamic-slide-button:hover,
.dynamic-slide-button:focus,
.home-slide-button:hover,
.home-slide-button:focus,
.hero-slide-button:hover,
.hero-slide-button:focus {
    color: var(--white-color);
    background: var(--dark-color);
    transform: translateY(-2px);
}

.dynamic-slider-control,
.home-slider-control,
.hero-slider-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.dynamic-slider-control:hover,
.dynamic-slider-control:focus,
.home-slider-control:hover,
.home-slider-control:focus,
.hero-slider-control:hover,
.hero-slider-control:focus {
    color: var(--white-color);
    background: var(--button-color);
}

.dynamic-slider-control.prev,
.home-slider-control.prev,
.hero-slider-control.prev,
.slider-prev {
    left: 28px;
}

.dynamic-slider-control.next,
.home-slider-control.next,
.hero-slider-control.next,
.slider-next {
    right: 28px;
}

.dynamic-slider-indicators,
.home-slider-indicators,
.hero-slider-indicators {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.dynamic-slider-indicators button,
.home-slider-indicators button,
.hero-slider-indicators button {
    width: 11px;
    height: 11px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 50%;
}

.dynamic-slider-indicators button.active,
.home-slider-indicators button.active,
.hero-slider-indicators button.active {
    width: 28px;
    background: var(--accent-color);
    border-radius: 999px;
}

/* =========================================================
   Buttons
========================================================= */

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    color: var(--white-color);
    background: var(--button-color);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white-color);
    background: var(--dark-color);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--dark-color);
    background: var(--secondary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--dark-color);
    background: #ffbd45;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--white-color);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.80);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--dark-color);
    background: var(--white-color);
}

/* =========================================================
   General Page
========================================================= */

.page-card {
    padding: 40px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.page-title {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 15px;
    color: var(--primary-color);
    font-size: clamp(30px, 4vw, 44px);
}

.page-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 78px;
    height: 4px;
    content: "";
    background: var(--secondary-color);
    border-radius: 20px;
}

.page-content {
    color: var(--text-color);
    font-size: 17px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 28px;
}

.page-content img {
    margin: 25px 0;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

/* =========================================================
   Common Homepage Sections
========================================================= */

.section {
    padding: 70px 0;
}

.section-light {
    background: var(--light-color);
}

.section-white {
    background: var(--white-color);
}

.section-title {
    margin-bottom: 38px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    padding-bottom: 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.section-title h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 75px;
    height: 4px;
    content: "";
    background: var(--secondary-color);
    border-radius: 10px;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted-color);
}

/* =========================================================
   Homepage Hero
========================================================= */

.home-hero {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    overflow: hidden;
    color: var(--white-color);
    background:
        linear-gradient(
            120deg,
            var(--dark-color) 0%,
            var(--primary-color) 68%,
            #3b82f6 100%
        );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.35),
            rgba(15, 23, 42, 0.04)
        );
}

.home-hero::after {
    position: absolute;
    top: -190px;
    right: -150px;
    width: 520px;
    height: 520px;
    content: "";
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
}

.home-hero-content {
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    color: var(--dark-color);
    background: var(--secondary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
}

.home-hero-title {
    margin-bottom: 10px;
    color: var(--white-color);
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.08;
}

.home-hero-title-bn {
    margin-bottom: 14px;
    color: #dbeafe;
    font-size: clamp(23px, 3vw, 34px);
}

.home-hero-address {
    margin-bottom: 16px;
    color: #bfdbfe;
    font-size: 16px;
}

.home-hero-description {
    max-width: 680px;
    margin-bottom: 30px;
    color: #e2e8f0;
    font-size: 18px;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-logo img {
    width: 270px;
    height: 270px;
    padding: 10px;
    object-fit: contain;
    background: var(--white-color);
    border: 8px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Homepage Quick Services
========================================================= */

.home-services-section {
    position: relative;
    z-index: 10;
    margin-top: -55px;
    padding-bottom: 20px;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-service-card {
    display: flex;
    min-height: 135px;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.home-service-card:hover,
.home-service-card:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

.home-service-icon {
    display: flex;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 50%;
    font-size: 27px;
}

.home-service-card h3 {
    margin-bottom: 5px;
    font-size: 19px;
}

.home-service-card p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}

/* =========================================================
   Dynamic Homepage Content
========================================================= */

.home-content-card {
    padding: 40px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.home-content-title {
    margin-bottom: 30px;
}

.home-page-content {
    font-size: 17px;
}

.home-page-content img {
    margin: 25px 0;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

/* =========================================================
   Empty State
========================================================= */

.empty-state {
    padding: 45px 25px;
    text-align: center;
    background: var(--white-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-medium);
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted-color);
}

/* =========================================================
   Homepage Statistics
========================================================= */

.home-statistics {
    padding: 65px 0;
    color: var(--white-color);
    background:
        linear-gradient(
            110deg,
            var(--dark-color),
            var(--primary-color)
        );
}

.home-statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.statistic-item {
    padding: 22px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.20);
}

.statistic-item:last-child {
    border-right: 0;
}

.statistic-item strong {
    display: block;
    color: var(--secondary-color);
    font-size: clamp(35px, 5vw, 52px);
    line-height: 1;
}

.statistic-item span {
    display: block;
    margin-top: 10px;
    color: #dbeafe;
    font-size: 16px;
}

/* =========================================================
   Homepage CTA
========================================================= */

.home-cta {
    padding: 60px 0;
    color: var(--white-color);
    background: var(--primary-color);
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.home-cta h2 {
    margin-bottom: 10px;
    color: var(--white-color);
    font-size: clamp(27px, 4vw, 40px);
}

.home-cta p {
    max-width: 750px;
    margin: 0;
    color: #dbeafe;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
    color: #cbd5e1;
    background: var(--footer-color);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 35px;
}

.footer-widget h3 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 10px;
    color: var(--white-color);
    font-size: 21px;
}

.footer-widget h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    content: "";
    background: var(--secondary-color);
    border-radius: 10px;
}

.footer-widget p {
    color: #cbd5e1;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a:hover,
.footer-links a:focus {
    padding-left: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 17px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* =========================================================
   Responsive: Tablet
========================================================= */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .home-hero-logo img {
        width: 220px;
        height: 220px;
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .school-contact-box {
        display: none;
    }
}

/* =========================================================
   Responsive: Mobile
========================================================= */

@media (max-width: 768px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .topbar-inner {
        padding: 8px 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        text-align: center;
    }

    .topbar-left,
    .topbar-right {
        justify-content: center;
        gap: 10px;
    }

    .school-branding {
        padding: 14px 0;
    }

    .school-branding-inner {
        align-items: flex-start;
    }

    .school-identity {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .school-logo,
    .school-logo-placeholder {
        width: 68px;
        height: 68px;
    }

    .school-title {
        font-size: 24px;
    }

    .school-title-bn {
        font-size: 16px;
    }

    .school-address {
        margin-top: 5px;
        font-size: 13px;
    }

    .navigation-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-menu {
        display: none;
        width: 100%;
        padding-bottom: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu.menu-open {
        display: flex;
    }

    .main-menu > li {
        width: 100%;
    }

    .main-menu > li > a {
        width: 100%;
        min-height: auto;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-menu ul {
        position: static;
        visibility: visible;
        display: block;
        width: 100%;
        min-width: 100%;
        padding: 0 0 0 15px;
        opacity: 1;
        background: rgba(255, 255, 255, 0.07);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .main-menu ul ul {
        left: auto;
        padding-left: 15px;
    }

    .main-menu ul a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--white-color);
        background: transparent;
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }

    .main-menu ul a:hover,
    .main-menu ul a:focus {
        padding-left: 18px;
        color: var(--white-color);
        background: rgba(255, 255, 255, 0.10);
    }

    .submenu-arrow {
        margin-left: auto;
    }

    .page-wrapper {
        padding: 28px 0 45px;
    }

    .page-card {
        padding: 25px 20px;
        border-radius: var(--radius-medium);
    }

    .section {
        padding: 50px 0;
    }

    .dynamic-slider-track,
    .home-slider-track,
    .hero-slider-track,
    .dynamic-slide,
    .home-slide,
    .hero-slide,
    .dynamic-slide img,
    .home-slide img,
    .hero-slide img {
        min-height: 500px;
        height: 500px;
    }

    .dynamic-slide-content,
    .home-slide-content,
    .hero-slide-content {
        width: calc(100% - 42px);
        text-align: center;
    }

    .dynamic-slide-content-inner,
    .home-slide-content-inner,
    .hero-slide-content-inner {
        max-width: 100%;
        margin: 0 auto;
    }

    .dynamic-slide-title,
    .home-slide-title,
    .hero-slide-title {
        font-size: 38px;
    }

    .dynamic-slide-description,
    .home-slide-description,
    .hero-slide-description {
        font-size: 16px;
    }

    .dynamic-slider-control,
    .home-slider-control,
    .hero-slider-control {
        width: 40px;
        height: 40px;
    }

    .dynamic-slider-control.prev,
    .home-slider-control.prev,
    .hero-slider-control.prev,
    .slider-prev {
        left: 10px;
    }

    .dynamic-slider-control.next,
    .home-slider-control.next,
    .hero-slider-control.next,
    .slider-next {
        right: 10px;
    }

    .home-hero {
        min-height: auto;
        text-align: center;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        padding: 65px 0 100px;
    }

    .home-hero-logo {
        display: none;
    }

    .home-hero-buttons {
        justify-content: center;
    }

    .home-services-section {
        margin-top: -55px;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-content-card {
        padding: 28px 20px;
    }

    .home-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistic-item:nth-child(2) {
        border-right: 0;
    }

    .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* =========================================================
   Responsive: Small Mobile
========================================================= */

@media (max-width: 480px) {
    .school-identity {
        gap: 10px;
    }

    .school-logo,
    .school-logo-placeholder {
        width: 60px;
        height: 60px;
    }

    .school-title {
        font-size: 21px;
    }

    .school-title-bn {
        font-size: 14px;
    }

    .school-address {
        font-size: 12px;
    }

    .home-hero-title {
        font-size: 37px;
    }

    .home-hero-title-bn {
        font-size: 23px;
    }

    .home-statistics-grid {
        grid-template-columns: 1fr;
    }

    .statistic-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    }

    .statistic-item:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   Accessibility and Theme Utilities
========================================================= */

::selection {
    color: var(--white-color);
    background: var(--primary-color);
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.theme-text-primary {
    color: var(--primary-color) !important;
}

.theme-text-secondary {
    color: var(--dark-color) !important;
}

.theme-text-accent {
    color: var(--accent-color) !important;
}

.theme-bg-primary {
    color: var(--white-color) !important;
    background: var(--primary-color) !important;
}

.theme-bg-secondary {
    color: var(--white-color) !important;
    background: var(--dark-color) !important;
}

.theme-bg-accent {
    color: var(--dark-color) !important;
    background: var(--accent-color) !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

