/* ==========================================================================
   দেব'স সেন্টার (Dev's Center Coaching) - Official Web Portal Stylesheet
   Crafted with standard Bangladeshi Academic Portal architecture (ssaac.edu.bd pattern)
   Brand Colors:
   - Primary Purple: #6B016F
   - Accent Green: #009245
   - Navy Blue: #1E3A8A
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #F8F9FA;
    font-family: 'Hind Siliguri', 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    color: #212529;
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a {
    color: #6B016F;
    text-decoration: none;
}

a:hover {
    color: #009245;
    text-decoration: none;
}

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

/* ---------------- 1. Top Announcement Bar ---------------- */
.top-bar {
    background-color: #F3E8FF;
    border-bottom: 1px solid #E9D5FF;
    padding: 6px 0;
    font-size: 13px;
}

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

.top-bar-notice {
    color: #6B016F;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-badge {
    background-color: #6B016F;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admit-card-btn {
    background-color: #009245;
    color: #FFFFFF !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.admit-card-btn:hover {
    background-color: #007336;
}

.top-helpline {
    color: #6B016F;
    font-weight: 600;
    font-size: 12.5px;
}

/* ---------------- 2. Site Masthead (Brand Left, Contact Right) ---------------- */
.site-masthead {
    background-color: #FFFFFF;
    padding: 18px 0;
    border-bottom: 1px solid #E5E7EB;
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.masthead-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.masthead-logo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.masthead-logo img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.masthead-title {
    font-size: 32px;
    font-weight: 700;
    color: #6B016F;
    line-height: 1.2;
    margin: 0 0 2px;
    font-family: 'Hind Siliguri', sans-serif;
}

.masthead-title .title-accent {
    color: #009245;
}

.masthead-motto {
    font-size: 15px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 4px;
}

.masthead-motto i {
    margin-right: 4px;
}

.masthead-meta {
    font-size: 12.5px;
    color: #6B7280;
}

.masthead-meta span {
    margin-right: 5px;
}

.masthead-meta span + span {
    margin-left: 5px;
}

.masthead-contact {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.masthead-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.masthead-contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #212529;
}

.masthead-contact-item small {
    display: block;
    font-size: 12px;
    color: #6B7280;
}

.masthead-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.masthead-contact-icon.icon-purple {
    background-color: #F3E8FF;
    color: #6B016F;
}

.masthead-contact-icon.icon-green {
    background-color: #E6F4EC;
    color: #009245;
}

@media (max-width: 991px) {
    .masthead-inner {
        flex-direction: column;
        text-align: center;
    }
    .masthead-brand {
        flex-direction: column;
        gap: 10px;
    }
    .masthead-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .masthead-title {
        font-size: 26px;
    }
    .masthead-contact {
        display: none;
    }
}

/* ---------------- 3. Sticky Main Navigation ---------------- */
#main-navbar {
    background-color: #6B016F;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.15);
}

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

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 13px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none !important;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover, .nav-item.active .nav-link {
    background-color: #520055;
    color: #FEF08A;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    min-width: 220px;
    border-top: 3px solid #6B016F;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

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

.dropdown-menu li a {
    display: block;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none !important;
    background-color: #FFFFFF;
    transition: padding-left 0.2s, background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #F3E8FF;
    color: #6B016F !important;
    padding-left: 20px;
}

.portal-login-link {
    background-color: #009245;
    color: #FFFFFF !important;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.portal-login-link:hover {
    background-color: #007336;
}

/* ---------------- 4. Hero Section (Slider + Notice Board) ---------------- */
.hero-section {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.hero-slider-wrap {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.hero-notice-wrap {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.carousel-container {
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    height: 380px;
    background-color: #111827;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #FFFFFF;
    padding: 30px 20px 15px;
}

.carousel-caption h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #FFFFFF;
}

.carousel-caption p {
    margin: 0;
    font-size: 12.5px;
    color: #E5E7EB;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #FFFFFF;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 5;
}

.carousel-arrow:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Notice Board (Exact ssaac layout) */
.notice-box {
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    height: 380px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
}

.notice-box-head {
    padding: 10px 14px;
    font-size: 15px;
    color: #6B016F;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-box-head strong {
    color: #6B016F;
    font-size: 15px;
}

.notice-box-head a {
    font-size: 12px;
    color: #009245;
    font-weight: 600;
}

.two-tone-bar {
    display: flex;
    width: 100%;
}

.two-tone-color {
    width: 25%;
    height: 4px;
    background-color: #6B016F;
}

.two-tone-gray {
    width: 75%;
    height: 4px;
    background-color: #E5E7EB;
}

.notice-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px;
}

.notice-list-scroll::-webkit-scrollbar {
    width: 5px;
}
.notice-list-scroll::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 3px;
}

.notice-entry {
    padding: 9px 4px;
    border-bottom: 1px dashed #E5E7EB;
    transition: background-color 0.15s;
}

.notice-entry:hover {
    background-color: #F9FAFB;
}

.notice-entry-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.notice-entry-badge {
    background-color: #F3E8FF;
    color: #6B016F;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #E9D5FF;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-entry-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
    display: block;
}

.notice-entry-title:hover {
    color: #6B016F;
}

.notice-entry-date {
    font-size: 11px;
    color: #6B7280;
    margin-top: 3px;
}

/* ---------------- 5. Four Feature Highlights Box ---------------- */
.features-table {
    width: 100%;
    margin: 15px 0 20px;
    border-collapse: separate;
    border-spacing: 12px 0;
}

.feature-cell {
    width: 25%;
    text-align: center;
    vertical-align: top;
}

.feature-card {
    border-radius: 6px;
    padding: 16px 10px;
    text-align: center;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.feature-card i {
    font-size: 32px;
    margin-bottom: 8px;
    display: inline-block;
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0 3px;
    font-family: 'Hind Siliguri', sans-serif;
}

.feature-card p {
    font-size: 12px;
    color: #4B5563;
    margin: 0;
    line-height: 1.35;
}

/* ---------------- 6. Institutional Section Boxes (ssaac pattern) ---------------- */
.section-panel {
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background-color: #FFFFFF;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-panel-header {
    background-color: #FFFFFF;
    color: #6B016F;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-panel-header strong {
    color: #6B016F;
    display: flex;
    align-items: center;
    gap: 7px;
}

.section-panel-body {
    padding: 15px;
}

.welcome-layout {
    display: flex;
    gap: 20px;
    align-items: center;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 6px;
    background-color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.welcome-text p {
    text-align: justify;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 8px;
}

.panel-read-more {
    text-align: right;
    margin-top: 8px;
}

.panel-read-more a {
    font-size: 12px;
    font-weight: 700;
    color: #6B016F;
}

.panel-read-more a:hover {
    color: #009245;
}

/* ---------------- 7. Three Columns Info Section ---------------- */
.three-cols-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.three-cols-item {
    flex: 1;
}

.three-cols-item .section-panel-header {
    font-size: 14.5px;
    background-color: #F9FAFB;
}

.person-badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.person-badge-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6B016F;
}

/* ---------------- 8. Main 2-Column Split (Galleries & Sidebar) ---------------- */
.main-split-layout {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.main-left-area {
    flex: 0 0 75%;
    max-width: 75%;
}

.main-sidebar-area {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Gallery Grids */
.gallery-grid-2col {
    display: flex;
    gap: 14px;
}

.gallery-card {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.gallery-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-card-title {
    padding: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
    text-align: center;
}

.video-frame-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

/* Sidebar Widgets */
.sidebar-panel {
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background-color: #FFFFFF;
    margin-bottom: 15px;
    overflow: hidden;
}

.sidebar-panel-head {
    background-color: #F9FAFB;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #6B016F;
    border-bottom: 1px solid #E5E7EB;
    text-align: center;
}

.sidebar-panel-body {
    padding: 12px;
}

.download-row {
    padding: 8px 0;
    border-bottom: 1px dashed #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.download-row:last-child {
    border-bottom: none;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-weight: 500;
}

.download-link:hover {
    color: #6B016F;
}

.download-tag {
    background-color: #F3F4F6;
    color: #4B5563;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 10.5px;
}

.useful-links-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.useful-link-item {
    display: block;
    padding: 7px 10px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.15s, color 0.15s;
}

.useful-link-item:hover {
    background-color: #6B016F;
    color: #FFFFFF !important;
}

.counter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #009245;
    text-align: center;
    padding: 8px 0 2px;
}

.counter-timestamp {
    text-align: center;
    font-size: 11px;
    color: #6B7280;
    font-style: italic;
}

/* ---------------- 9. Institutional Footer (Real Bangladeshi Style) ---------------- */
.site-footer {
    background-color: #450048;
    color: #FFFFFF;
    padding: 30px 0 20px;
    border-top: 4px solid #6B016F;
}

.site-footer a {
    color: #F3E8FF;
}

.site-footer a:hover {
    color: #FEF08A;
    text-decoration: underline;
}

.footer-two-col {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-col-info {
    flex: 1;
}

.footer-col-info img {
    height: 70px;
    background-color: #FFFFFF;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.footer-contact-line {
    font-size: 13px;
    color: #F3E8FF;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col-apps {
    flex: 1;
    text-align: center;
}

.footer-copyright {
    background-color: #2E0030;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #E5E7EB;
}

.footer-copyright a {
    color: #FEF08A;
    font-weight: 600;
}

/* ---------------- 10. Responsive Breakpoints ---------------- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-slider-wrap, .hero-notice-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .main-split-layout {
        flex-direction: column;
    }
    .main-left-area, .main-sidebar-area {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .features-table {
        display: block;
    }
    .features-table tr, .features-table td {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .three-cols-grid {
        flex-direction: column;
    }
    .gallery-grid-2col {
        flex-direction: column;
    }
    .footer-two-col {
        flex-direction: column;
        text-align: center;
    }
    .footer-contact-line {
        justify-content: center;
    }
}