:root {
    /* Palette derived from provided logo (teal + amber) */
    --primary-color: #0C92A5;        /* teal */
    --secondary-color: #F59E0B;      /* amber accent */
    --dark-color: #0A3342;           /* deep teal/navy */
    --success-color: #0BA97F;        /* green teal */
    --info-color: #007A99;           /* darker teal for gradients */
    --light-bg: #f5f7fa;
    /* Light tones matching banner background for the left/right sides */
    --banner-side-bg-start: #F6FAEB;
    --banner-side-bg-end:   #EAF3D5;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: var(--light-bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #f5a018 0%, #f5a018 22%, #157a6e 22%, #157a6e 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.follow-text {
    font-weight: 700;
}

.top-social-link {
    color: white;
    text-decoration: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.16);
    transition: transform 0.25s, background 0.25s;
}

.top-social-link:hover {
    background: rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.top-bar-right span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.speech-card h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: #fff;
    line-height: 40px;
    padding: 5px 10px 6px;
    margin: -25px;
    margin-bottom: 60px;
    border-radius: 10px 10px 0 0;
}
/* Navigation Box */
.navbar {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 43, 66, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e6edf3;
}

.navbar .container {
    padding: 0 15px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.site-brand-logo {
    width: clamp(160px, 18vw, 230px);
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 30px 8px;
    color: #10263d;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-family: "Noto Sans Bengali", sans-serif;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #0b6d72;
    border-bottom-color: #f5a018;
}

.nav-menu > li > a i {
    font-size: 16px;
}

.nav-menu > li > a i.bi-chevron-down {
    font-size: 12px;
    margin-left: auto;
    color: #46617a;
}

.nav-actions {
    flex: 0 0 auto;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5a018;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.apply-btn:hover {
    background: #e28f08;
    box-shadow: 0 8px 18px rgba(245, 160, 24, 0.32);
    transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 100;
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    position: relative;
    font-family: "Noto Sans Bengali", sans-serif;
}

.dropdown li a:before {
    content: "▸";
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    color: white;
    padding-left: 25px;
}

.dropdown li a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #10263d;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Slider Box */
.slider-section {
    margin: 20px 0;
}

.slider-box {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.slider-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Notice Box */
.notice-box {
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin: 20px 0;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.notice-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.notice-content {
    padding: 15px 20px;
    background: #f9f9f9;
}

.notice-content marquee {
    color: #333;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin: 20px 0;
}

.main-content-area {
    min-width: 0;
}

/* Content Box */
.content-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.content-box:hover {
    box-shadow: var(--card-shadow-hover);
}

.box-title {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 15px 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 10px 10px 0 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-title i {
    font-size: 24px;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.info-card:nth-child(2) {
    border-top-color: var(--success-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.3s;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li:hover {
    padding-left: 10px;
}

.info-card ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ul li a:hover {
    color: var(--primary-color);
}

/* About Content */
.about-content {
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Speech Cards */
.speech-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.speech-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s;
}

.speech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.speech-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--primary-color);
}

.speech-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.speech-card blockquote {
    font-style: italic;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Sidebar Boxes */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.sidebar-box-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-box-content {
    padding: 20px;
}

.sidebar-box-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box-content ul li {
    border-bottom: 1px solid #eee;
}

.sidebar-box-content ul li:last-child {
    border-bottom: none;
}

.sidebar-box-content ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-box-content ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-box-content ul li a i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Notice Board Scrollable */
.notice-scroll {
    max-height: 250px;
    overflow-y: auto;
}

/* Founder Card */
.founder-card {
    text-align: center;
}

.founder-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.founder-card p {
    line-height: 1.8;
    color: #666;
}

.founder-card strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* Teacher Section */
.teacher-section {
    background: white;
    border-radius: 10px;
    padding: 40px 25px;
    box-shadow: var(--card-shadow);
    margin: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--info-color));
    border-radius: 2px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.teacher-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.teacher-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.teacher-card-body {
    padding: 20px;
    text-align: center;
}

.teacher-card-body h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.teacher-card-body h6 {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: var(--primary-color);
}

.footer-box p {
    color: #ccc;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--card-shadow-hover);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .top-bar {
        background: #157a6e;
    }

    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-right span {
        border-left: none;
        padding-left: 0;
    }

    .navbar-content {
        min-height: 76px;
        position: relative;
    }

    .site-brand-logo {
        width: clamp(148px, 24vw, 200px);
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-top: 1px solid #e5edf5;
        z-index: 1001;
        justify-content: flex-start;
    }

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

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #edf2f7;
    }

    .nav-menu > li > a {
        color: #10263d;
        padding: 14px 16px;
        border-bottom: none;
        justify-content: space-between;
    }

    .nav-menu > li > a i.bi-chevron-down {
        color: #56728a;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f6f9fc;
        display: none;
        border-radius: 0;
    }

    .nav-menu > li:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        color: #23415c;
        border-bottom: 1px solid #e6edf5;
        padding-left: 35px;
    }

    .dropdown li a:hover {
        background: #eaf2f8;
        color: #0f2f4a;
    }

    .dropdown li a:before {
        color: #2f5f85;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .speech-cards {
        grid-template-columns: 1fr;
    }
    
    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-brand-logo {
        width: clamp(140px, 45vw, 200px);
    }

    .top-bar {
        font-size: 13px;
    }

    .top-bar-right span:first-child {
        display: none;
    }
    
    .slider-box img {
        height: 300px;
    }
    
    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
    }
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.page-header h1 {
    font-size: 36px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

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

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table tbody tr:hover {
    background: #f9f9f9;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* Notice Item */
.notice-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.notice-item:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateX(5px);
}

.notice-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.notice-item h3 {
    color: var(--dark-color);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.notice-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Video toolbar small tweaks */
.video-toolbar .form-group label{font-weight:600; font-size:14px; color:#333;}
.video-toolbar .form-group input,.video-toolbar .form-group select{padding:10px 12px; border:2px solid #e5e7eb; border-radius:8px;}

.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.video-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.video-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Additional utility classes */
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

/* Single page pattern and hero */
.single-page {
    background-image: radial-gradient(circle at 25px 25px, rgba(0,0,0,0.02) 2%, transparent 2%),
                      radial-gradient(circle at 75px 75px, rgba(0,0,0,0.02) 2%, transparent 2%);
    background-size: 100px 100px;
    padding: 20px 0;
}

.single-hero {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    height: 420px;
    background:#eaeff3;
}
.single-hero img { width:100%; height:100%; object-fit:cover; display:block; }

.section-title-center {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 10px 0 28px 0;
    position: relative;
}
/* thin line under the title */
.section-title-center:before {
    content: "";
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.15), transparent);
}
/* center diamond */
.section-title-center:after {
    content: "";
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

/* Books Library */
.book-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.book-toolbar .filters { display: flex; gap: 15px; flex-wrap: wrap; }
.book-toolbar .sorts { display: flex; gap: 15px; }
.book-toolbar .form-group { min-width: 180px; }

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }

.book-cover { aspect-ratio: 3/4; background:#f6f8fa; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display:block; }

.book-info { padding: 15px; }
.book-info h3 { font-size: 16px; margin: 0 0 8px 0; color: var(--dark-color); }
.book-info .meta { font-size: 13px; color:#666; margin-bottom: 10px; }
.book-info .actions { display:flex; gap:10px; }

.btn-primary { background: var(--primary-color); color:#fff; }
.btn-primary:hover { filter: brightness(0.95); }

@media (max-width: 768px) {
  .book-toolbar { flex-direction: column; }
  .book-toolbar .filters, .book-toolbar .sorts { width: 100%; }
}

/* Book Preview */
.book-preview-grid {
  display: grid;
  grid-template-columns: 1.5fr 350px;
  gap: 20px;
}

.pdf-viewer {
  width: 100%;
  height: 70vh;
  background: #f6f8fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.pdf-viewer iframe { width: 100%; height: 100%; display:block; }

.bp-actions { display:flex; gap:10px; margin-top: 12px; }

/* New Book Details Card Design */
.book-details-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-cover-large {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
}

.book-cover-large img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.book-cover-large img:hover {
  transform: scale(1.05);
}

.book-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: #f8fafc;
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: #eef2f7;
  border-left-color: var(--secondary-color);
  transform: translateX(5px);
}

.info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-label i {
  color: var(--primary-color);
  font-size: 14px;
}

.info-value {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  padding-left: 22px;
}

.book-description {
  padding: 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  border: 1px solid #fbbf24;
}

.book-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #78350f;
  display: flex;
  gap: 10px;
}

.book-description i {
  color: #f59e0b;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Related Books List */
.related-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-book-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.related-book-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.related-book-cover {
  flex-shrink: 0;
  width: 60px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.related-book-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.related-book-info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.view-all-books {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.view-all-books:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 102, 112, 0.3);
}

.view-all-books i {
  font-size: 18px;
}

/* Old styles for backward compatibility */
.bp-meta { display:flex; gap:15px; align-items:flex-start; }
.bp-meta img { width: 90px; height: 120px; object-fit: cover; border-radius: 6px; box-shadow: var(--card-shadow); }
.bp-meta ul { margin:0; padding:0; list-style:none; font-size:14px; }
.bp-meta ul li { padding:10px 0; border-bottom:1px dashed #eee; }
.bp-meta ul li strong{display:inline-block; width:130px; color:#334155; font-weight:600;}
.bp-meta ul li span{color:#111827; font-weight:600;}
.bp-meta ul li:last-child{ border-bottom:none; }

/* Link style improvement in sidebar */
.sidebar-box ul { list-style: none; padding:0; margin:0; }
.sidebar-box ul li a{ display:inline-flex; align-items:center; gap:8px; color:var(--primary-color); font-weight:600; text-decoration:none; padding:8px 0; }
.sidebar-box ul li a:hover{ color:var(--secondary-color); }

@media (max-width: 992px) {
  .book-preview-grid { grid-template-columns: 1fr; }
  .pdf-viewer { height: 60vh; }
}

/* Tags/badges under related */
.bp-tags { display:flex; gap:8px; flex-wrap:wrap; }
.tag { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#eef2f7; color:#183b56; border:1px solid #e2e8f0; }
.tag i{ color:var(--primary-color);}

/* Custom Pagination Styles */
.pagination-wrapper {
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 102, 112, 0.3);
}

.pagination-btn.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-number:hover {
  background: #f1f5f9;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(2, 102, 112, 0.3);
  cursor: default;
}

.pagination-info {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  padding-top: 15px;
  border-top: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
  .pagination-nav {
    flex-direction: column;
  }
  
  .pagination-numbers {
    order: -1;
    margin-bottom: 10px;
  }
  
  .pagination-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Page Banner Styles */
.page-banner {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Noto Sans Bengali', sans-serif;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Banner */
@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 150px;
    }
    
    .page-banner h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Dynamic navigation (menu is generated from the pages table)
   Keeps a variable number of top-level items and long dropdowns usable.
   ========================================================================== */
/* ==========================================================================
   Dynamic navigation layout (desktop only - the mobile drawer above wins
   below 992px). The menu is generated from the pages table, so the number
   of top-level groups changes; giving it its own centred row keeps the bar
   tidy at any count instead of letting it break into ragged half-rows.
   ========================================================================== */
@media (min-width: 992px) {
    .navbar-content {
        flex-wrap: wrap;
        row-gap: 0;
        min-height: 0;
        padding-top: 10px;
    }

    .nav-menu {
        flex: 1 1 100%;
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid #eef2f5;
        margin-top: 10px;
    }

    .nav-menu > li > a {
        padding: 14px 9px;
        font-size: 14.5px;
        gap: 6px;
    }

    .nav-menu > li > a i {
        font-size: 14px;
    }

    /* Long dropdowns (the calendar group) scroll instead of overflowing */
    .nav-menu > li > .dropdown {
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Keep the dropdowns of the right-most items inside the viewport */
    .nav-menu > li:nth-last-child(-n+3) > .dropdown {
        left: auto;
        right: 0;
    }
}


.dropdown li a.active {
    color: #0b6d72;
    font-weight: 700;
}

