/* Rampur High School - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f5132;       /* Curated Deep Emerald */
    --primary-light: #198754;      /* Vibrant Green */
    --primary-dark: #0a3622;
    --accent-color: #f59e0b;       /* Premium Gold/Amber */
    --accent-light: #fbbf24;
    --bg-site: #f3f4f6;            /* Soft Modern Gray */
    --bg-card: #ffffff;
    --border-color: #e5e7eb;       /* Tailwind Slate 200 */
    --text-color: #1f2937;         /* Deep Gray 800 */
    --text-muted: #4b5563;         /* Medium Gray 600 */
    --font-primary: 'Inter', 'Noto Sans Bengali', sans-serif;
    --radius-lg: 14px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 36px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-site);
    font-family: var(--font-primary);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Site container wrapper */
.site-main {
    background-color: var(--bg-card);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(15, 81, 50, 0.08);
    position: relative;
    overflow: hidden;
}

/* Top accent color bar */
.site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-light));
    z-index: 10;
}

/* Header & Banner Area */
.logo-area {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.school-logo {
    width: 85px;
    height: 85px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
    transition: var(--transition);
}
.school-logo:hover {
    transform: scale(1.08) rotate(6deg);
}
.school-title {
    font-size: 2.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.school-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* Navbar */
.navbar-content-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 2px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
}
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.navbar-nav .nav-link i {
    font-size: 1.05rem;
    color: var(--accent-light);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}
.navbar-nav .nav-link:hover i {
    transform: translateY(-2px);
    color: #ffffff;
}

.dropdown-menu {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 8px 0;
}
.dropdown-item {
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    transition: var(--transition);
}
.dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding-left: 24px;
}
.highlight-login {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: #000000 !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.highlight-login i {
    color: #000000 !important;
}
.highlight-login:hover {
    background: var(--accent-light) !important;
    color: #000000 !important;
}

/* Slider */
.banner-area-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.carousel-img {
    height: 420px;
    object-fit: cover;
    filter: brightness(0.9);
}
.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 25px;
    text-align: left;
}
.carousel-caption h5 {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #ffffff;
}

/* Marquee Banner */
.latest-announcement-sec {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.latest-announcement-title {
    background: var(--accent-color);
    color: #000000 !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.latest-announcement-desc a {
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition);
}
.latest-announcement-desc a:hover {
    color: var(--accent-light);
}

/* Common Panels / Cards */
.notice-area-wrapper, 
.institution-sec-wrap,
.speech-box,
.info-card-wrap,
.teachers-panel,
.notices-panel,
.notice-detail-panel,
.gallery-panel,
.admission-panel,
.admission-form-panel,
.admit-panel,
.routine-panel,
.results-panel,
.attendance-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.notice-area-wrapper:hover, 
.institution-sec-wrap:hover,
.speech-box:hover,
.info-card-wrap:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(15, 81, 50, 0.15);
}

/* Panel Header Titles */
.notice-board-title,
.institution-title,
.speech-title,
.info-card-title,
.teachers-panel-title,
.notices-panel-title,
.notice-detail-title,
.gallery-panel-title,
.admission-title,
.form-title,
.admit-title,
.routine-title,
.results-title,
.attendance-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    padding: 14px 20px !important;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.15rem;
}
.notice-board-title i,
.institution-title i,
.speech-title i,
.info-card-title i,
.teachers-panel-title i,
.notices-panel-title i,
.notice-detail-title i,
.gallery-panel-title i,
.admission-title i,
.form-title i,
.admit-title i,
.routine-title i,
.results-title i,
.attendance-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Notice Board Box */
.notice-board-box {
    background-color: var(--bg-card);
}
.notice-list li {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: var(--transition);
}
.notice-list li:hover {
    background-color: rgba(15, 81, 50, 0.03);
    padding-left: 20px !important;
}
.notice-list a {
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}
.notice-list a:hover {
    color: var(--primary-color);
}

/* Speeches Block */
.speech-photo {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.speech-box:hover .speech-photo {
    border-color: var(--primary-color);
}
.speech-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* History Box */
.history-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--border-color);
    transition: var(--transition);
}
.institution-sec-wrap:hover .history-img {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

/* Portal resource cards */
.info-card-wrap ul li {
    padding: 10px 0;
}
.info-card-wrap ul li a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.info-card-wrap ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
}
.info-card-wrap ul li a i {
    color: var(--primary-light);
    font-size: 0.9rem;
    transition: var(--transition);
}
.info-card-wrap ul li a:hover i {
    color: var(--accent-color);
}

/* Sidebar Styles */
.sidebar-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 20px;
    color: #ffffff;
    border-bottom: 3px solid var(--accent-color);
}
.academy-info-wrap ul li a {
    background-color: #1e293b; /* Slate 800 */
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
}
.academy-info-wrap ul li a:hover {
    background-color: #0f172a;
    color: var(--accent-light) !important;
    padding-left: 24px !important;
}

/* Teacher Grid */
.teacher-card {
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.teacher-card img {
    border: 3px solid var(--border-color);
    transition: var(--transition);
}
.teacher-card:hover img {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

/* Gallery popup Lightbox */
.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* Back to Top Widget */
.backtotop a {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}
.backtotop a:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
}

/* Footer layout */
.footer-area-sec .footer-area-wrap {
    background-color: var(--dark-bg) !important;
    border-top: 4px solid var(--accent-color) !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.social-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.social-icon:hover {
    background-color: var(--accent-color) !important;
    color: #000000 !important;
    transform: translateY(-3px) scale(1.08);
}

/* Mobile Responsive Navbar & Header Overrides */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-dark);
        border-radius: var(--radius-md);
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
    }
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.25) !important;
        border: none;
        border-left: 3px solid var(--accent-color);
        border-radius: 0;
        margin-left: 15px;
        padding: 5px 0;
        box-shadow: none;
    }
    .dropdown-item {
        padding: 8px 20px !important;
    }
    .highlight-login {
        border-radius: var(--radius-md) !important;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .school-title {
        font-size: 1.5rem !important;
    }
    .school-sub {
        font-size: 0.85rem !important;
    }
    .school-logo {
        width: 75px !important;
        height: 75px !important;
    }
}
