/* ============================================
   GOVERNMENT STYLE - BANGLADESH SCHOOL THEME
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --govt-green: #006a4e;
    --govt-red: #e0004d;
    --govt-gold: #f5a623;
    --govt-cream: #f8f4e8;
    --govt-dark: #1a1a2e;
    --govt-text: #2d2d2d;
    --govt-light: #f0ede8;
    --govt-footer: #0d2818;
    --govt-white: #ffffff;
}

body {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Siyam Rupali', 'Segoe UI', Arial, sans-serif;
    background: #f5f2ec;
    color: var(--govt-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* ============================================
   TOP PROMO BAR
   ============================================ */
.top-promo-bar {
    background: var(--govt-green);
    color: white;
    padding: 5px 0;
    font-size: 0.78rem;
    border-bottom: 2px solid var(--govt-gold);
}

.top-promo-bar .promo-text {
    color: rgba(255, 255, 255, 0.95);
}

.top-promo-bar .promo-text .divider {
    margin: 0 8px;
    opacity: 0.4;
}

.top-promo-bar .promo-text i {
    margin-right: 4px;
    color: var(--govt-gold);
}

.top-promo-bar .language-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.top-promo-bar .language-switcher a {
    padding: 1px 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.12);
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.top-promo-bar .language-switcher a.active {
    background: var(--govt-gold);
    color: var(--govt-dark) !important;
}

.top-promo-bar .language-switcher a:hover {
    background: rgba(255,255,255,0.25);
}

.top-bar-mobile {
    background: var(--govt-green);
    padding: 4px 0;
    display: none;
}

/* ============================================
   MAIN NAVBAR
   ============================================ */
.main-navbar {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 6px 0;
    border-bottom: 3px solid var(--govt-green);
}

.main-navbar .navbar-brand {
    padding: 0;
}

.main-navbar .navbar-brand img {
    max-height: 50px;
}

/* Brand - Horizontal Layout */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.brand-logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--govt-green, #006a4e);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.brand-text-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--govt-green, #006a4e);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-eiin {
    font-size: 0.7rem;
    color: var(--govt-dark, #1a1a2e);
    font-weight: 500;
    opacity: 0.8;
    white-space: nowrap;
    background: var(--govt-cream, #f8f4e8);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--govt-green, #006a4e);
}

.brand-eiin i {
    margin-right: 4px;
    color: var(--govt-gold, #f5a623);
}

.main-navbar .nav-link {
    color: var(--govt-dark) !important;
    font-weight: 600;
    padding: 6px 14px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.main-navbar .nav-link:hover {
    color: var(--govt-green) !important;
    background: rgba(0, 106, 78, 0.06);
}

.main-navbar .nav-link.btn-admin {
    color: white !important;
    background: var(--govt-red);
    padding: 4px 16px !important;
    border-radius: 4px;
}

.main-navbar .nav-link.btn-admin:hover {
    background: #c0003d;
    color: white !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 20px 0 10px;
    background: var(--govt-cream);
}

.hero-slider-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--govt-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 25, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 85%;
    max-width: 600px;
    z-index: 2;
    padding: 15px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--govt-red);
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 0, 77, 0.4);
    background: #c0003d;
}

.hero-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicators button.active {
    background: var(--govt-gold);
    border-color: var(--govt-gold);
    transform: scale(1.2);
}

.hero-indicators button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FEATURED POSTS SIDEBAR
   ============================================ */
.featured-posts-sidebar {
    background: white;
    height: 380px;
    padding: 15px 18px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 3px solid var(--govt-green);
}

.featured-posts-sidebar::-webkit-scrollbar {
    width: 4px;
}

.featured-posts-sidebar::-webkit-scrollbar-thumb {
    background: var(--govt-green);
    border-radius: 10px;
}

.featured-posts-header {
    border-bottom: 2px solid var(--govt-green);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.featured-posts-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--govt-green);
    margin: 0;
}

.featured-posts-header h3 i {
    margin-right: 6px;
    color: var(--govt-gold);
}

.featured-post-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--govt-light);
    transition: all 0.3s ease;
}

.featured-post-card:last-child {
    border-bottom: none;
}

.featured-post-card:hover {
    background: var(--govt-cream);
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: 6px;
}

.featured-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--govt-green);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar {
    width: 100%;
    height: 100%;
    background: var(--govt-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.featured-post-body {
    flex: 1;
    min-width: 0;
}

.featured-post-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--govt-dark);
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.post-meta {
    margin-bottom: 4px;
}

.designation-badge {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--govt-green);
    background: rgba(0, 106, 78, 0.08);
    padding: 1px 10px;
    border-radius: 20px;
    display: inline-block;
}

.designation-badge i {
    margin-right: 3px;
}

.post-excerpt {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 4px;
}

.read-more-btn {
    font-size: 0.72rem;
    color: var(--govt-red);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn:hover {
    color: var(--govt-green);
    text-decoration: underline;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   MARQUEE NOTICE
   ============================================ */
.marquee-notice {
    background: var(--govt-cream);
    padding: 6px 0;
    border-top: 2px solid var(--govt-gold);
    border-bottom: 2px solid var(--govt-gold);
}

.marquee-notice .notice-label {
    background: var(--govt-red);
    color: white;
    padding: 2px 14px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.marquee-notice marquee {
    display: inline-block;
    width: calc(100% - 10px);
    vertical-align: middle;
    color: var(--govt-dark);
    font-size: 0.85rem;
}

.marquee-notice .notice-item-inline {
    margin-right: 30px;
    white-space: nowrap;
}

.marquee-notice .notice-item-inline .badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
}

.marquee-notice .notice-date-inline {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Notice Links */
.notice-link {
    color: var(--govt-dark, #1a1a2e);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
}

.notice-link:hover {
    background: rgba(0, 106, 78, 0.1);
    text-decoration: none;
    color: var(--govt-green, #006a4e);
}

.notice-link .notice-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notice-link .notice-item-inline .fa-arrow-right {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.notice-link:hover .notice-item-inline .fa-arrow-right {
    opacity: 1;
    transform: translateX(3px);
    color: var(--govt-green, #006a4e);
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.main-content-section {
    padding: 30px 0 50px;
    background: #f5f2ec;
}

.content-block {
    background: white;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-top: 4px solid var(--govt-green);
}

.section-title {
    color: var(--govt-dark);
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--govt-gold);
    border-radius: 3px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   NOTICE ITEMS
   ============================================ */
.notice-item {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--govt-green);
    background: #faf8f5;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transform: translateX(3px);
}

.notice-item.urgent {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.notice-item.high {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.notice-item .notice-title {
    font-weight: 600;
    color: var(--govt-dark);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notice-item .notice-date {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ============================================
   FACULTY CARDS
   ============================================ */
.faculty-card {
    background: white;
    border-radius: 10px;
    text-align: center;
    padding: 22px 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--govt-light);
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--govt-green);
}

.faculty-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--govt-green);
}

.faculty-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--govt-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.faculty-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--govt-dark);
    margin-bottom: 3px;
}

.faculty-card .designation {
    color: var(--govt-red);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.faculty-card .department {
    color: #6b7280;
    font-size: 0.78rem;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-top: 3px solid var(--govt-green);
}

.widget-header {
    border-bottom: 2px solid var(--govt-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.widget-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--govt-dark);
    margin: 0;
}

.widget-header h4 i {
    color: var(--govt-gold);
    margin-right: 6px;
}

/* Important Links */
.important-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-links li {
    margin-bottom: 4px;
}

.important-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--govt-text);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    background: var(--govt-cream);
}

.important-links li a:hover {
    background: var(--govt-green);
    color: white;
    text-decoration: none;
    transform: translateX(3px);
}

.important-links li a i:first-child {
    color: var(--govt-gold);
    width: 18px;
    font-size: 0.8rem;
}

.important-links li a:hover i:first-child {
    color: white;
}

.important-links li a .external-icon {
    margin-left: auto;
    font-size: 0.6rem;
    opacity: 0.5;
}

.important-links li a:hover .external-icon {
    opacity: 1;
    color: white;
}

/* Quick Contact */
.quick-contact p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.quick-contact p i {
    color: var(--govt-green);
    width: 20px;
}

.quick-contact .btn {
    margin-top: 8px;
    background: var(--govt-green);
    border: none;
}

.quick-contact .btn:hover {
    background: var(--govt-red);
}

/* School Info */
.school-info p {
    margin-bottom: 4px;
    font-size: 0.85rem;
    padding: 3px 0;
    border-bottom: 1px dashed var(--govt-light);
}

.school-info p:last-child {
    border-bottom: none;
}

.school-info strong {
    color: var(--govt-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-outline-primary {
    color: var(--govt-green);
    border-color: var(--govt-green);
}

.btn-outline-primary:hover {
    background: var(--govt-green);
    border-color: var(--govt-green);
    color: white;
}

.btn-primary {
    background: var(--govt-green);
    border-color: var(--govt-green);
}

.btn-primary:hover {
    background: var(--govt-red);
    border-color: var(--govt-red);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--govt-footer);
    color: #d1d5db;
    margin-top: 40px;
}

.footer-top {
    padding: 40px 0 30px;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.main-footer h4 {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--govt-gold);
}

.main-footer h4 i {
    color: var(--govt-gold);
    margin-right: 8px;
}

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

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer ul li a {
    color: #b0b8c0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.main-footer ul li a i {
    font-size: 0.6rem;
    margin-right: 6px;
    color: var(--govt-gold);
}

.main-footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.main-footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.main-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.main-footer .social-links a:hover {
    background: var(--govt-gold);
    color: var(--govt-dark);
    transform: translateY(-3px);
}

.main-footer .footer-bottom {
    padding: 15px 0;
    background: rgba(0,0,0,0.2);
}

.main-footer .footer-bottom p {
    font-size: 0.85rem;
    color: #889299;
    margin: 0;
}

.main-footer .footer-bottom p i {
    color: var(--govt-red);
}

/* ============================================
   SMOOTH TRANSITION FOR AJAX LOADING
   ============================================ */
#mainContent {
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

#mainContent.fade-out {
    opacity: 0;
    transform: translateY(12px);
}

#mainContent.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .brand-wrapper {
        gap: 10px;
    }
    
    .brand-logo {
        max-height: 45px;
    }
    
    .brand-logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-eiin {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    
    .hero-slider-wrapper {
        height: 320px;
    }
    
    .featured-posts-sidebar {
        height: auto;
        max-height: 350px;
        border-left: none;
        border-top: 3px solid var(--govt-green);
        margin-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .top-promo-bar {
        display: none;
    }
    
    .top-bar-mobile {
        display: block;
    }
    
    .brand-wrapper {
        gap: 8px;
    }
    
    .brand-logo {
        max-height: 38px;
    }
    
    .brand-logo-placeholder {
        width: 35px;
        height: 35px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .brand-text-horizontal {
        gap: 8px;
    }
    
    .brand-name {
        font-size: 0.95rem;
    }
    
    .brand-eiin {
        font-size: 0.55rem;
        padding: 1px 8px;
    }
    
    .hero-slider-wrapper {
        height: 250px;
        border-radius: 8px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero-content .btn {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
    
    .content-block {
        padding: 15px 18px;
    }
    
    .featured-post-card {
        flex-direction: row;
        align-items: center;
    }
    
    .featured-post-image {
        width: 50px;
        height: 50px;
    }
    
    .featured-posts-sidebar {
        height: auto;
        max-height: 350px;
    }
    
    .marquee-notice .notice-label {
        display: inline-block;
        margin-bottom: 3px;
    }
    
    .marquee-notice marquee {
        width: 100%;
        display: block;
    }
    
    .footer-top {
        padding: 30px 0 20px;
    }
    
    .main-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-footer h4 {
        text-align: center;
    }
    
    .main-footer ul {
        text-align: center;
    }
    
    .main-footer .social-links {
        justify-content: center;
    }
    
    .faculty-card img,
    .faculty-avatar {
        width: 90px;
        height: 90px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .brand-wrapper {
        gap: 6px;
    }
    
    .brand-logo {
        max-height: 30px;
    }
    
    .brand-logo-placeholder {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .brand-text-horizontal {
        gap: 5px;
    }
    
    .brand-name {
        font-size: 0.8rem;
    }
    
    .brand-eiin {
        font-size: 0.45rem;
        padding: 1px 6px;
    }
    
    .hero-slider-wrapper {
        height: 200px;
        border-radius: 6px;
    }
    
    .hero-content h1 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .hero-content .btn {
        padding: 4px 14px;
        font-size: 0.7rem;
    }
    
    .sidebar-widget {
        padding: 12px 15px;
    }
    
    .important-links li a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .notice-item {
        padding: 10px 14px;
    }
    
    .notice-item .notice-title {
        font-size: 0.85rem;
    }
    
    .featured-post-image {
        width: 45px;
        height: 45px;
    }
    
    .featured-post-body h4 {
        font-size: 0.8rem;
    }
    
    .faculty-card {
        padding: 15px 10px;
    }
    
    .faculty-card img,
    .faculty-avatar {
        width: 75px;
        height: 75px;
        font-size: 24px;
    }
    
    .faculty-card h5 {
        font-size: 0.85rem;
    }
}