:root {
    --theme_primary: #1e3a8a;
    --primary: #172554;
    --theme_primary_dark: #0f172a;
    --theme_red: #0b6b2e;
    --secondary: #0f8a3c;
    --light: #e0e7ff;
    --bs-dark: #0c1938;
    --dark: #09132b;
    --bs-smoke: #e3e3e3;
    --bangla_title_color: #0b6b2e;
    --top_title_color: #1e3a8a;
}

body {
    font-family: "Noto Sans Bengali", serif;
    font-weight: 500;
    background-color: #f3f6fc;
    background-image: radial-gradient(#1e3a8a16 1px, transparent 1px), radial-gradient(#0b6b2e12 1px, #f3f6fc 1px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
    color: #222;
    overflow-x: hidden;
}

/* Utility Classes */
.bg-theme-red {
    background-color: var(--theme_red) !important;
}
.bg-theme-primary {
    background-color: var(--theme_primary) !important;
}
.text-theme-primary {
    color: var(--theme_primary) !important;
}
.text-theme-dark {
    color: var(--theme_primary_dark) !important;
}
.text-theme-red {
    color: var(--theme_red) !important;
}
.text-theme-red-light {
    color: #f7c844 !important;
}
.text-smoke {
    color: var(--bs-smoke) !important;
}
.rounded-10 {
    border-radius: 10px !important;
}
.shadow-theme {
    box-shadow: 0 1px 7px -2px var(--theme_primary);
}
.btn-theme-primary {
    background-color: var(--theme_primary);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}
.btn-theme-primary:hover {
    background-color: var(--theme_red);
    color: #fff;
}
.btn-theme-red {
    background-color: var(--theme_red);
    color: #fff;
    border: none;
}
.btn-theme-red:hover {
    background-color: #8e171b;
    color: #fff;
}

/* ==================== 1. TOPBAR ==================== */
.topbar-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.topbar-link:hover {
    color: #ffdfdf;
}
.topbar-link:hover .spin-icon {
    animation: fa-spin 1s infinite linear;
}
.social-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--theme_primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.social-circle:hover {
    background: var(--theme_primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==================== 2. HEADER COVER BANNER (EXACT NOORANI BOARD PROPORTIONS) ==================== */
.header-cover {
    background: transparent;
    padding: 4px 0 !important;
}
.noorani-header-banner {
    width: 82%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2px 0;
}
.header-top-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 3px;
}
.header-side {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-end;
}
.header-svg-text {
    width: 100%;
    height: 48px;
    overflow: visible;
    display: block;
}
.header-svg-eng {
    height: 52px;
}
.svg-eng-text {
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 800;
    font-size: 62px;
    fill: var(--top_title_color, #061c3d);
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.14));
}
.svg-arabic-text {
    font-family: "Aref Ruqaa", "Amiri", serif;
    font-weight: 700;
    font-size: 62px;
    fill: var(--top_title_color, #061c3d);
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.16));
}
.header-center-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-bottom: 1px;
}
.board-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.header-bottom-row {
    width: 100%;
    margin-top: 0;
    text-align: center;
}
.header-svg-bangla {
    width: 100%;
    height: 42px;
    overflow: visible;
    display: block;
}
.svg-bangla-text {
    font-family: "Noto Sans Bengali", serif;
    font-weight: 800;
    font-size: 70px;
    fill: var(--bangla_title_color, #0c6329);
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.14));
}
.header-address-wrap {
    width: 56%;
    margin: 1px auto 0;
}
.header-svg-address {
    width: 100%;
    height: 20px;
    overflow: visible;
    display: block;
}
.svg-address-text {
    font-family: "Noto Sans Bengali", serif;
    font-weight: 700;
    font-size: 26px;
    fill: var(--top_title_color, #061c3d);
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .noorani-header-banner {
        width: 96%;
    }
    .header-svg-text {
        height: 28px;
    }
    .header-center-logo {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }
    .header-svg-bangla {
        height: 32px;
    }
    .header-address-wrap {
        width: 76%;
    }
    .header-svg-address {
        height: 16px;
    }
}

.mobile-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    object-fit: contain;
}
.slide-center-logo {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 185px;
    height: 185px;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.slide-center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.about-banner-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

/* ==================== 3. STICKY NAVBAR ==================== */
.nav-bar {
    background-color: var(--theme_primary);
    padding: 0 !important;
}
.mobile-logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--theme_red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-bar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 7px !important;
    border-radius: 0;
    margin: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.nav-bar .navbar-nav .nav-link:hover,
.nav-bar .navbar-nav .nav-link.active,
.nav-bar .navbar-nav .nav-link.show,
.nav-bar .nav-item.dropdown:hover > .nav-link {
    background-color: #fff;
    color: var(--theme_primary) !important;
}
.login-pill-btn {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 4px 14px !important;
    line-height: 1.3;
    transition: all 0.25s ease;
}
.nav-bar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(3, 5, 68, 0.16);
    padding: 0.5rem;
    margin-top: 0;
    transform-origin: top center;
    animation: flipDown 0.22s ease forwards;
}

/* Auto open dropdown menu on mouse hover without clicking (Noorani Board style) */
@media (min-width: 992px) {
    .nav-bar .nav-item.dropdown:hover > .dropdown-menu:not(.d-none) {
        display: block;
    }
    .nav-bar .nav-item.dropdown > .dropdown-mega {
        left: 0;
        right: 0;
    }
}
@keyframes flipDown {
    0% {
        opacity: 0;
        transform: rotateX(-60deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0);
    }
}
.nav-bar .dropdown-item {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    border-radius: 6px;
    padding: 0.48rem 0.85rem;
    transition: all 0.2s;
}
.nav-bar .dropdown-item:hover {
    background-color: var(--theme_primary);
    color: #fff;
}
.mega-title {
    color: var(--theme_red);
    font-weight: 700;
    border-bottom: 2px solid var(--light);
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.mega-list li {
    margin-bottom: 6px;
}
.mega-list a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}
.mega-list a:hover {
    color: var(--theme_red);
}
.login-pill-btn {
    transition: all 0.25s ease;
}
.login-pill-btn:hover {
    background-color: var(--theme_red) !important;
    color: #fff !important;
}

/* ==================== 4. HERO SECTION & NOTICE BOARD ==================== */
.hero-slide {
    height: 465px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}
.slide-1 {
    background: linear-gradient(135deg, #10254c 0%, #2b2f99 55%, #1c5d4b 100%);
}
.slide-2 {
    background: linear-gradient(135deg, #2D2C71 0%, #7d192e 60%, #030544 100%);
}
.slide-3 {
    background: linear-gradient(135deg, #0d3b3e 0%, #2b2f99 65%, #181d38 100%);
}
.slide-illustration {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8.5rem;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}
.carousel-caption-box {
    position: relative;
    z-index: 2;
    background: #000000b3;
    border-radius: 10px;
    padding: 18px 24px;
    width: 100%;
    text-align: center;
    border-left: 4px solid var(--secondary);
}
.carousel-caption-box h1 {
    color: #fff;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
}
.custom-carousel-nav {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.carousel-nav-btn:hover {
    background: var(--theme_primary);
    border-color: #fff;
    color: #fff;
}

/* Vertical Notice Board */
.notice-heading {
    color: var(--theme_primary_dark);
    font-weight: 800;
}
.all-notice-link {
    color: var(--theme_red);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}
.all-notice-link:hover {
    text-decoration: underline;
}
.notice_card {
    min-height: 82px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 7px -2px var(--theme_primary);
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.notice_card.important {
    border-left: 3.5px solid var(--secondary);
}
.notice_card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px -2px rgba(43, 47, 153, 0.35);
}
.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding-right: 12px;
    border-right: 1px dashed #cbd5e1;
    font-family: cursive, sans-serif;
    color: var(--primary);
    line-height: 1.15;
}
.notice-date .day {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--theme_red);
}
.notice-date .month {
    font-size: 0.82rem;
    font-weight: 700;
}
.notice-date .year {
    font-size: 0.75rem;
}
.notice-title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.38;
    transition: color 0.2s;
}
.notice_card:hover .notice-title {
    color: var(--secondary);
}

/* ==================== 5. QUICK-LINK FEATURE GRID (8 CARDS) ==================== */
.feature-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 0 20px 24px 20px;
    box-shadow: 0 1px 7px -2px var(--theme_primary);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.feature-icon {
    width: 100px;
    height: 95px;
    background: var(--light);
    color: var(--theme_primary);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.35s ease;
}
.feature-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--theme_red);
    z-index: -1;
    transition: height 0.35s ease;
}
.feature-item h4 {
    color: var(--theme_primary_dark);
    font-size: 1.25rem;
    transition: color 0.35s;
}
.feature-item p {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.35s;
}
.feature-btn {
    background: var(--theme_primary);
    color: #fff;
    font-weight: 600;
    transition: all 0.35s;
}
.feature-item:hover {
    background: var(--theme_primary);
    transform: translateY(-4px);
}
.feature-item:hover .feature-icon {
    color: #fff;
}
.feature-item:hover .feature-icon::before {
    height: 100%;
}
.feature-item:hover h4,
.feature-item:hover p {
    color: #fff;
}
.feature-item:hover .feature-btn {
    background: var(--theme_red);
    color: #fff;
}

/* ==================== 6. ABOUT, TRAINING & LEADERSHIP ==================== */
.white-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 7px -2px var(--theme_primary);
}
.building-facade-banner {
    height: 210px;
    background: linear-gradient(135deg, #1b285e 0%, #2b2f99 55%, #ad1f24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.office-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.info-row i {
    margin-top: 4px;
    width: 18px;
}

/* Training Batch Cards */
.blog-item {
    border: 1px solid #e1e8f5;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}
.half-circle-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--theme_red);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px dashed #fff;
}
.training-course-title {
    color: #0e6b3d;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.35;
}
.training-bottom {
    background: #e9e9e9ab;
}
.training-nav-pill {
    background: var(--theme_primary);
    color: #fff;
    border-radius: 50px;
    padding: 6px 20px;
    transition: background 0.25s;
}
.training-nav-pill:hover {
    background: var(--theme_red);
    color: #fff;
}

/* Leadership Avatar */
.leader-avatar {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 50%;
    background: var(--light);
    color: var(--theme_primary);
    border: 2px solid var(--theme_primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.35s ease;
}
.leader-avatar:hover {
    transform: scale(1.18);
    background: var(--theme_primary);
    color: #fff;
}

/* ==================== 7. FOOTER & COPYRIGHT ==================== */
.footer {
    background-color: var(--bs-dark);
}
.footer-title {
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
}
.copyright {
    background-color: var(--theme_primary_dark);
}

/* Floating Fixed Social Buttons (Bottom-Right All Time) */
.floating-social-dock {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}
.floating-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.floating-social-btn.fb-float {
    background: #1877F2;
}
.floating-social-btn.wa-float {
    background: #25D366;
}
.floating-social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
