:root {
    --mdic-green: #005a43;
    --mdic-darker: #004231;
    --accent: #016A4E;
    --hero-slant: 85%;
    --mdic-gold: #c68a12;

}

/* 🔥 Hover Effect Library (Fixed) */
.hover-fill {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.hover-fill::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background: #EC9D2C;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
    z-index: -1;
}

.hover-fill:hover::before {
    width: 100%;
}

/* text white on hover */
.hover-fill:hover {
    color: #fff !important;
}

/* ========================= */

body {
    font-family: 'Poppins', sans-serif;
}

/* Topbar */
.top-notice-bar {
    background-color: var(--mdic-darker);
    color: white;
    font-size: 0.85rem;
}

.notice-label {
    background-color: var(--accent);
    padding: 5px 15px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600 !important;
}

/* Branding */
.branding-section {
    background-color: white;
    padding: 0 0;
}

@media (max-width: 768px) {
    .branding-section {
        padding: 0 0;
    }
    .school-logo {
        max-height: 70px !important;
        width: auto;
    }
}
@media (max-width: 480px) {
    .branding-section {
        padding: 0 0;
    }
    .school-logo {
        max-height: 70px !important;
        width: auto;
    }

    .img-main-top {
        position: relative;
        width: 100%;
    }
    .abt-j-c {
        margin-top: 36px;
        margin-left: -56px;
    }
}

.school-logo {
    max-height: 80px;
    width: auto;
}

.school-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    color: #000000;
    margin-left: 15px;
}

/* Navbar */
.main-nav {
    background-color: var(--mdic-green) !important;
}

.navbar-dark .nav-link {
    /*color: rgba(255,255,255,0.9) !important;*/
    font-weight: 500;
    padding: 15px !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* ✅ Active menu (hover এর সাথে conflict হবে না) */

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
	text-transform: uppercase !important;
}

.navbar-dark .nav-link.active {
    background-color: var(--accent);
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF !important;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

/* Login Button */
.login-btn {
    background-color: var(--accent);
    border-radius: 20px;
    padding: 12px 45px !important;
    text-decoration: none;
    display: inline-block;
}

/* Mobile */
@media (max-width: 991px) {
    .school-name {
        font-size: 1.2rem;
    }

    .navbar-dark .nav-link {
        padding: 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Notice Scroll */
.notice-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 12s linear infinite;
}

/*.top-notice-bar:hover .notice-scroll {*/
/*    animation-play-state: paused;*/
/*}*/

.notice-wrapper:hover .notice-scroll {
    animation-play-state: paused;
}

/* Animation */
@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Notice Link */
.notice-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14.05px;
}

.notice-link:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {

    /* Show dropdown on hover */
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: -6px;
        /*margin-left: -140px;*/
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        min-width: 350px;
    }

    /* Default hidden state */
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
        pointer-events: none;
    }

    /* Enable interaction on hover */
    .navbar .dropdown:hover > .dropdown-menu {
        pointer-events: auto;
    }

    /* Prevent Bootstrap click arrow issue */
    .navbar .dropdown-toggle::after {
        pointer-events: none;
    }
}

.login-btn.hover-fill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    color: #fff;
    background: #d39e00;
    padding: 12px 30px !important;
    border-radius: 20px;
    text-decoration: none;
}

/* PSEUDO ELEMENT */
.login-btn.hover-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--mdic-darker);
    transition: width 0.4s ease;
    z-index: -1;
}

/* HOVER EFFECT */
.login-btn.hover-fill:hover::before {
    width: 100%;
}

/* TEXT FIX */
.login-btn.hover-fill {
    color: #FFFFFF !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 150%;
    transition: color 0.3s ease;
}

/* ensure text always above layer */
.login-btn.hover-fill * {
    position: relative;
    z-index: 2;
}

h5.sec-title.th_fade_anim {
    font-family: poppins, serif;
    font-size: 39px;
    font-weight: 600;
    line-height: 100%;
}

p.sec-text.th_fade_anim {
    font-family: poppins, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    color: #4E4E4E;
}

h1.welcome-big-txt {
    font-family: Montserrat, sans-serif;
    font-size: 60px;
    font-weight: 500;
    color: rgb(239 153 31);
}


.mdic-img-container {
    position: relative;
    padding: 50px;
    display: block;
    min-height: 550px; /* Adjust based on your image sizes */
}

/* 1. The Large Top-Left Image */
.img-main-top {
    position: relative;
    width: 80%;
    z-index: 1;
}

.img-main-top img {
    width: 430px;
    height: 280px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 2. The Smaller Bottom-Right Image */
.img-sub-bottom {
    position: absolute;
    bottom: 35px;
    right: 0;
    width: 60%;
    z-index: 3;
}

.img-sub-bottom img {
    width: 60%;
    border-radius: 10px;
    border: 8px solid #fff; /* White border creates separation */
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* 3. Your Central Circle Logo */
.mdic-central-logo {
    position: absolute;
    top: 56%;
    left: 46%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 140px;
    z-index: 5;
}

.mdic-central-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}


.img-sub-bottom img {
    width: 330px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: 0.3s ease;
    margin-left: 55px;
}

/*.img-sub-bottom img:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);*/
/*}*/

.abt-j-c{
    margin-top: 36px;
}
.custom-c-divider {
    height: calc(100% - 4px);
    margin-top: 2px;
    margin-bottom: 2px;
}

.counter-wrap1 {
    height: 220px;
}



.media-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image styling */
.counter-icon {
    margin-bottom: 10px; /* number এর সাথে gap */
}

.counter-icon img {
    width: 50px; /* adjust size */
    height: auto;
}
.counter-icon {
    margin-bottom: 16px;
}

.box-number {
    position: relative;
    z-index: 2;
}


/* =========================
   CATEGORY SECTION
========================= */

.category-area {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* =========================
   BACKGROUND IMAGE LAYER
========================= */

.category-bg1-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-bg1-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1.2;
}

/* =========================
   DECORATIVE SHAPE
========================= */

.category-bg-shape1-1 {
    position: absolute;
    top: 20%;
    right: 6%;
    z-index: 1;
}

/* =========================
   CONTAINER LAYER
========================= */

.category-area .container {
    position: relative;
    z-index: 1.2;
}

/* =========================
   TITLE AREA
========================= */

.title-area {
    text-align: center;
    margin-bottom: 50px;
}

.sub-title img {
    margin-right: 8px;
}

/* =========================
   CHAIRMAN CARD
========================= */

.chairman-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* =========================
   LEFT PROFILE SECTION
========================= */

.chairman-profile {
    background-color: #005a43;
    color: #fff;
    padding: 30px;
}

.profile-img-box {
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
}

.profile-img-box img {
    width: 100%;
    height: 195px;
    display: block;
}

/* =========================
   RIGHT MESSAGE SECTION
========================= */

.chairman-message {
    background-color: rgba(255,255,255,0.9);
    padding: 40px;
    display: flex;
    align-items: center;
}

.greeting {
    font-weight: bold;
    color: #198754;
    margin-bottom: 15px;
}

.body-text {
    color: #6c757d;
    margin-bottom: 25px;
}

/* =========================
   BUTTON STYLE
========================= */

.view-details-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #005a43;
    color: #005a43;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.view-details-btn:hover {
    background: #005a43;
    color: #fff;
}

p.label.mb-0.small.opacity-75 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.custom-c-name{
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

.message-content {
    margin-bottom: 0px;
}

.c-b-t {
    margin: 0 25px 0 0;
}


/*update announce ment*/

/* Tab Styling */
#updateTabs .nav-link {
    color: #636e72;
    font-weight: 600;
    margin: 0 10px;
    background: transparent;
}
#updateTabs .nav-link.active {
    color: var(--theme-green);
    border-bottom: 2px solid var(--theme-green);
    border-radius: 0;
}

/* Card Styling */
.announcement-card {
    max-width: 1000px;
    background: white;
    border: 1px solid #ddd;
}

/* Notice List Scrollbar */
.notice-scroll-area {
    height: 400px;
    overflow-y: scroll;
    padding: 30px;
}

/* Custom Scrollbar Styling (Chrome/Safari) */
.notice-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.notice-scroll-area::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

/* Date Box Styles */
.date-box {
    min-width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.bg-theme { background: var(--mdic-green); color: white; }
.border-theme { border: 2px solid var(--accent); color: var(--accent); }

.date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.date-box .month { font-size: 0.9rem; font-weight: 500; }

/* Notice Text & Links */
.notice-text h6 { color: var(--accent); font-size: 0.95rem; }
.read-more {
    color: #d39e00;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Right Side Image */
.notice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
}
.notice-count { color: var(--accent); }

/* Responsive adjustments */
@media (max-width: 991px) {
    .notice-scroll-area { height: auto; }
    .notice-img { height: 250px; }
}


calender
.events-section {
    background: linear-gradient(var(--mdic-overlay), var(--mdic-overlay)),
    url('assets/img/bg/school-building.jpg'); /* Replace with your school image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
}

.events-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Calendar Styles */
.calendar-wrapper {
    max-width: 350px;
}

/* Event Detail Styles */
.event-highlight {
    background-color: var(--mdic-green);
    position: relative;
}

.event-date-badge {
    min-width: 80px;
    line-height: 1;
}

/* Form Styling */
.form-select-sm {
    font-size: 0.75rem;
    border-color: #eee;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--mdic-green);
}

/* Responsive fixes */
@media (max-width: 991px) {
    .events-section {
        background-attachment: scroll;
    }
    .event-highlight {
        padding: 40px 25px !important;
    }
    .border-end {
        border-end: none !important;
        border-bottom: 1px solid #eee;
    }
}


/*upcoming events*/

.upcoming-events-section {
    position: relative;
    background-size: cover;
    background: url('assets/img/banner2.jpg') fixed center;
    padding-bottom: 100px;
}

/* Tab Navigation Styling */
#eventTab .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
}
#eventTab .nav-link.active {
    color: var(--mdic-green);
    border-bottom: 2px solid var(--mdic-green);
    background: transparent;
}

/* Card Styling */
.event-hero-card {
    max-width: 1100px;
    margin: 0 auto;
    z-index: 5;
}

.event-details-panel {
    background-color: var(--mdic-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Event Badge (Top Right) */
.event-badge {
    min-width: 80px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form and UI tweaks */
.form-select-sm {
    font-size: 0.75rem;
}

.calendar-grid-static img {
    border-radius: 4px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .upcoming-events-section {
        background-attachment: scroll;
    }
    .event-details-panel {
        min-height: 400px;
    }
    .border-end {
        border-end: none !important;
        border-bottom: 1px solid #dee2e6;
    }
}

.events-title {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 700;
}

span.d-block.h2.fw-bold.mb-0.events-date-r {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    color: #FFFFFF;
    font-weight: 700;
}

.custom-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 29px;
    font-weight: 700;
    color: #FFFFFF;
}


/*recent news*/
.section-title {
    color: var(--mdic-green);
}

/* Tab Styling */
#newsTabs .nav-link {
    color: #666;
    font-weight: 600;
    margin: 0 10px;
    background: transparent;
}
#newsTabs .nav-link.active {
    color: var(--mdic-green);
    border-bottom: 2px solid var(--mdic-green);
    border-radius: 0;
}

/* News Card Area */
.news-container {
    max-width: 1100px;
    margin: 0 auto;
}

.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Date Overlay (Top Right) */
.date-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--mdic-green);
    color: white;
    padding: 10px 15px;
    line-height: 1.2;
    z-index: 5;
}

.date-overlay .day {
    font-size: 1.5rem;
    font-weight: 800;
}

.date-overlay .month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* News Caption (Bottom) */
.news-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--mdic-green);
    color: white;
    padding: 12px;
    text-align: center;
}

.news-caption p {
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .news-container {
        padding: 20px !important;
    }
}

.c-recent-img{
    height: 300px !important;
}

/*important date*/

/* Tab Active State */
#dateTabs .nav-link.active {
    color: var(--mdic-green) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--mdic-green);
    border-radius: 0;
    font-weight: bold;
}

/* Container for the 3-column grid */
.dates-container {
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 4px;
}

/* Small Date Box Styles */
.date-box-mini {
    min-width: 55px;
    height: 60px;
    background-color: var(--mdic-green);
    color: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.date-box-mini.border-only {
    background-color: transparent;
    border: 2px solid var(--mdic-green);
    color: var(--mdic-green);
}

.date-box-mini .day {
    font-size: 1.25rem;
    font-weight: 800;
}

.date-box-mini .month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Content Area */
.date-content h6 {
    font-size: 0.9rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.date-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.read-more-link:hover {
    color: var(--mdic-green);
}

/* Responsive Grid Adjustments */
@media (max-width: 991px) {
    .dates-container {
        padding: 30px 20px !important;
    }
}


.tab-content-area {
    display: block;
}




/* hide system */
.tab-content-area.d-none {
    display: none !important;
}

/* custom tab button */
.th-tab-btn{
    background: transparent;
    border: 0;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: 0.3s;
}

.th-tab-btn:hover{
    color: #016A4E;
}

.th-tab-btn.active{
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #016A4E;
    font-weight: 600;
    border-bottom: 2px solid #016A4E;
}
.event-hero-card{
    transform: translateY(40px);
}

.custom-u-s-t{
    font-size: 24px;
    font-weight: 700;
    margin-left: 98px;
    color: #FFFFFF;
}

/* Activities Section Styles */
.btn-filter {
    background-color: #212529; /* Dark buttons from image */
    border: none;
    font-size: 0.85rem;
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: #2d3436;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.activity-card {
    border-radius: 20px; /* Highly rounded corners from image */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
}

.activity-card .image-wrapper {
    height: 350px; /* Tall images as seen in design */
    overflow: hidden;
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title Color matching MDIC theme */
.activity-title {
    color: #005A43; /* The specific teal/green color in the text */
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-text {
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .activity-card .image-wrapper {
        height: 250px;
    }
}


/*gallery*/
.gallery-section {
    background-color: #F2E8E6;
}

/* Rounded corners matching the image */
.rounded-4 {
    border-radius: 20px !important;
}

.gallery-item {
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.gallery-item img {
    transition: filter 0.3s ease;
}

/* Ensure images fill their containers nicely */
.object-fit-cover {
    object-fit: cover;
}

/* Tab/Header Styles */
.text-success {
    color: #1abc9c !important; /* MDIC Theme Green */
}

.gallery-section h2 {
    font-size: 2.2rem;
}

/* Responsive adjustment for the tall middle image */
@media (max-width: 991px) {
    .gallery-item.h-100 {
        height: 400px !important;
    }
}



.gallery-item{
    position: relative;
    overflow: hidden;
}

/* image smooth zoom + slight rotate */
.gallery-item img{
    transition: all 0.6s ease;
}

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

/* dark cinematic overlay */
.gallery-item::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.4) 40%,
            rgba(0,0,0,0) 100%
    );
    opacity: 0;
    transition: 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::before{
    opacity: 1;
}

/* overlay text animation */
.gallery-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
}

/* title style premium */
.gallery-title{
    color: #EF991F;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: left;
}

/* hover text animation */
.gallery-item:hover .gallery-overlay{
    opacity: 1;
    transform: translateY(0);
}

/* subtle shine effect */
.gallery-item::after{
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            120deg,
            transparent 40%,
            rgba(255,255,255,0.2),
            transparent 60%
    );
    transform: rotate(25deg);
    transition: 0.7s;
    z-index: 2;
    opacity: 0;
}

.gallery-item:hover::after{
    top: 0;
    left: 0;
    opacity: 1;
}

.th-gallery-tab{
    transition: 0.3s;
}

.th-gallery-tab.active{
    color: #FFFFFF !important;
    opacity: 1 !important;
    border-bottom: 1px solid #24A33E;
}

.achievement-list-container{
    max-height: 580px;
    overflow-y: auto;

    /* BORDER STYLE */
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;

    /* optional premium look */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* optional: smooth scrollbar look */
.achievement-list-container::-webkit-scrollbar{
    width: 6px;
}

.achievement-list-container::-webkit-scrollbar-thumb{
    background: #24A33E;
    border-radius: 10px;
}

.achievement-list-container::-webkit-scrollbar-track{
    background: #f1f1f1;
}


.mdic-academic-section {
    background-color: #f0f2f5;
}

.mdic-section-title {
    color: #2c3e50;
    font-weight: 700;
}

/* Left Info Boxes */
.mdic-icon-wrap {
    color: var(--mdic-gold);
    font-size: 1.5rem;
}

.mdic-info-box h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--mdic-darker);
    font-size: 18px;
    font-weight: 500;
}

.mdic-btn-apply {
    background-color: var(--mdic-darker);
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.mdic-btn-apply:hover {
    background-color: #004432;
    color: white;
}

/* Tabs Header */
.mdic-tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    color: #999;
    position: relative;
}

.mdic-tab-btn.active {
    color: var(--mdic-darker);
}

.mdic-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--mdic-darker);
}

/* Program Grid Panels */
.mdic-program-list {
    background-color: var(--mdic-darker);
    border-radius: 4px;
}

.mdic-program-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    transition: 0.2s;
}

.mdic-program-link i:first-child {
    font-size: 1.2rem;
    margin-right: 12px;
}

.mdic-program-link:hover {
    color: var(--mdic-gold);
    background-color: rgba(255,255,255,0.05);
}

/* Bottom Bar */
.mdic-read-more-bar {
    background-color: var(--mdic-darker);
}

@media (max-width: 991px) {
    .mdic-academic-section .row {
        text-align: center;
    }
    .mdic-program-link {
        text-align: left;
    }
}

.custom-featur-txt{
    color: #2B3039 !important;
    font-size: 12px;
    font-weight: 400;
}


.mdic-tab-pane{
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mdic-tab-pane.active{
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* tab button */
.mdic-tab-btn{
    background: none;
    border: none;
    font-weight: 600;
    padding: 10px 15px;
    cursor: pointer;
}

.mdic-tab-btn.active{
    color: #24A33E;
    border-bottom: 2px solid #24A33E;
}


/* Prefix: mdic- */
.mdic-scholarship-section {
    position: relative;
    /* Replace with your actual background image path */
    /*background: url('assets/img/admission-banner.jpg') center/cover no-repeat;*/
    min-height: 450px;
    display: flex;
    align-items: center;
}

.mdic-scholarship-overlay {
    width: 100%;
    min-height: 450px;
    padding: 80px 0;
    background: rgba(0, 90, 67, 0.40);
}

.mdic-scholarship-title {
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0;
}

.mdic-scholarship-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF;
}

.mdic-btn-details {
    background-color: #D89324;
    color: #FFFFFF;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #D89324;
}

.mdic-btn-apply {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    margin-right: 16px;
	margin-left: 20px;
    margin-top: 12px;
}

.mdic-btn-details:hover {
    background-color: transparent;
    color: #ffffff;

}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mdic-scholarship-title {
        font-size: 1.8rem;
    }
    .mdic-scholarship-text {
        font-size: 0.95rem;
    }
    .mdic-scholarship-overlay {
        padding: 60px 20px;
    }
}



.chairman-card {
    position: relative;
    overflow: hidden;
}

/* Base slide */
.chairman-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Active slide */
.chairman-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}



/*.chairman-card {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.chairman-slide {*/
/*    display: none;*/
/*    opacity: 0;*/
/*    transition: all 0.6s ease;*/
/*}*/

/*.chairman-slide.active {*/
/*    display: flex;*/
/*    opacity: 1;*/
/*}*/


.p-message-l {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
}

.p-message {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.c-message-d{
font-size: 18px;
font-weight: 400;
color: #4D4D4DE5;
}


.sub-achievement-card.bg-white.rounded-4.shadow-sm.p-3.mb-3.border-start.border-success.border-4 {
    border: 2px solid var(--accent);
}

.chairman-slide {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    z-index: 0;
}

.chairman-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.chairman-card {
    min-height: 350px; /* fixed height to prevent jump */
}


.custom-dropdown .dropdown-item {
    position: relative;
    /*padding-left: 15px;*/
    transition: all 0.3s ease;
}

/* Icon absolute => no space reserved */
.menu-icon {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translate(10px, -50%); /* right theke start */
    opacity: 0;
    transition: all 0.3s ease;
}

/* Text */
.custom-dropdown .dropdown-item span {
    transition: all 0.3s ease;
}

/* Hover effect */
.custom-dropdown .dropdown-item:hover .menu-icon {
    opacity: 1;
    transform: translate(0, -50%); /* left e asbe */
}


.custom-dropdown .dropdown-item:hover span {
    margin-left: 5px;
}


.hero-title span {
    display: inline-block;
    max-width: 13ch;
    word-break: break-word;
    white-space: normal;
}

.breadcumb-wrapper{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
	max-height 470px;
}
/* Black overlay */
.breadcumb-wrapper::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* adjust darkness */
    z-index: 1;
}

/* Content above overlay */
.breadcumb-wrapper .container{
    position: relative;
    z-index: 2;
}


.breadcumb-title{
    color: #FFBF00;
}

.custom-w-text {
    text-align: left !important;
}

.notice-card.d-flex.shadow-sm.p-3 {
    border: 1px solid darkseagreen;
    height: 190px;
    border-radius: 8px;
}

.active-achievement {
    transform: scale(1.02);
    border-left: 4px solid #28a745 !important;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.page-c-achievement .card {
    border: 1px solid #e9e9e9 !important;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-c-achievement .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    border-color: var(--theme-color) !important;
}


/*events*/

iframe[data-tec-events-ece-iframe="true"] {
    width: 100%;
    height: calc(100vw + 100px);
    max-width: 100%;
}

@media screen and (min-width: 600px) {
    iframe[data-tec-events-ece-iframe="true"] {
        height: 100vw;
    }
}

@media screen and (min-width: 853px) {
    iframe[data-tec-events-ece-iframe="true"] {
        height: 250px;
    }
}

iframe[data-tec-events-ece-iframe="true"] {
    width: 100% !important;
    height: 250px !important;
    max-width: 100% !important;
}


.read-more-gold{
    color: #005A43 ;
}


/*gallery*/

.gallery-grid-flex {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

/* LEFT */
.left-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bottom-row {
    display: flex;
    gap: 15px;
}

/* MIDDLE */
.middle-column {
    flex: 1;
    display: flex;
}

/* RIGHT */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ITEMS */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* HEIGHT CONTROL */
.large-item {
    height: 250px;
}

.small-item {
    flex: 1;
    height: 250px;
}

.tall-item {
    height: 100%;
    min-height: 520px;
}

.half-item {
    height: 250px;
}

/* OVERLAY */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
}



.gallery-item {
    position: relative;
}

.gallery-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-decoration: none;
}

.gallery-overlay {
    position: absolute;
    z-index: 3;
}

.video-thumb{
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    min-height: 200px;

    transform: scale(1);
    transition: transform 0.3s ease;
}

/* dark overlay */
.video-thumb::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* IMPORTANT: force bottom positioning */
.video-thumb .gallery-overlay{
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    top: auto !important;

    z-index: 2;
    padding: 12px 15px;

    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

/* hover effect ONLY scale */
.video-thumb:hover{
    transform: scale(1.02);
}

/* keep text stable */
.video-thumb .gallery-title{
    margin: 0;
    color: #fff;
}



/*custop popup*/

.video-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.video-modal-content{
    width: 80%;
    max-width: 900px;
    position: relative;
}

.video-wrapper{
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

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

.video-close{
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.video-modal{
    display: none;
}

.video-wrapper iframe{
    width: 100%;
    height: 100%;
    border: 0;
}

.th-subtitle-custom {
    gap: 3px;
}

.th-subtitle-custom img {
    /*width: 24px;*/
    /*height: 24px;*/
    object-fit: contain;
}



/*mega menu*/


/* Mega menu container */
.nav-item.mega-menu {
    /*position: static;*/
}

/* FULL WIDTH + GRID */
.nav-item.mega-menu .dropdown-menu {
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 4px;
    padding: 40px 60px;
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Items */
.nav-item.mega-menu .dropdown-menu > li {
    list-style: none;
	width: 160px;
}

/* Links */
.nav-item.mega-menu .dropdown-menu li a {
    display: block;
    padding: 6px 0;
    /*color: #FFFFFF !important;*/
    font-weight: 500;
    transition: 0.3s;
}

/* Show on hover */
.navbar .dropdown:hover > .dropdown-menu {
    display: grid;
}


@media (min-width: 992px) {

    /* Show dropdown on hover */
    .navbar .dropdown:hover > .dropdown-menu .mega-menu {
        display: block;
        margin-top: -6px;
        /*margin-left: -140px;*/
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        min-width: 850px;
    }

    /* Default hidden state */
    .navbar .dropdown-menu .mega-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
        pointer-events: none;
    }

    /* Enable interaction on hover */
    .navbar .dropdown:hover > .dropdown-menu .mega-menu {
        pointer-events: auto;
    }

    /* Prevent Bootstrap click arrow issue */
    .navbar .dropdown-toggle::after {
        pointer-events: none;
    }
}

.navbar.main-nav {
    position: sticky;
    top: 36px !important;
    z-index: 1050;
}

.top-notice-bar {
    position: sticky;
    top: 0;
    z-index: 1051;
}


/*gallery*/
.gallery-card {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 250px; /* সব image same height */
    object-fit: cover;
    transition: 0.4s ease;
    border-radius: 12px;
}

/* Hover zoom effect */
.gallery-card:hover img {
    transform: scale(1.1);
}

/* Overlay */
.gallery-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: 0.4s;
    border-radius: 12px;
}

.gallery-card:hover .gallery-img::after {
    opacity: 1;
}

/* Eye button */
.icon-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    background: #fff;
    color: #000;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    transition: 0.4s;
    z-index: 2;
}

.gallery-card:hover .icon-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* gallery responsive */


@media (max-width: 767px) {
    .mdic-mobile-slider .gallery-grid-flex {
        display: flex;
        overflow: hidden;
    }

    .mdic-mobile-slider .left-column,
    .mdic-mobile-slider .middle-column,
    .mdic-mobile-slider .right-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mdic-mobile-slider .gallery-item {
        margin-bottom: 15px;
    }
}



/* topbar responsive */

media (max-width: 767px) {

    .top-notice-bar {
        font-size: 12px;
        padding: 5px 10px;
    }

    .navbar.main-nav {
        top: 30px !important; /* adjust for mobile notice height */
    }

    .branding-section {
        position: relative;
        z-index: 1040;
        background: #fff; /* prevents overlap issue */
    }
}





/*max mega override*/
/* =========================
   DESKTOP MENU STYLE
========================= */

/* Main UL */
#mega-menu-wrap-primary #mega-menu-primary {
    display: flex;
    align-items: center;
}

/* LI */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
    margin: 0 5px;
}

/* A */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    color: #fff;
    padding: 0px 15px;
    font-weight: 500;
}

/* Hover */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Dropdown */
#mega-menu-wrap-primary .mega-sub-menu {
    border-radius: 10px;
}

/* Remove full width issue */
#mega-menu-wrap-primary {
    background: transparent !important;
    width: auto !important;
    flex: 1;
}

/* Navbar layout */
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Push login right */
.navbar-collapse > .d-flex {
    margin-left: auto;
}


/* =========================
   MOBILE MENU STYLE
========================= */

@media (max-width: 991px) {

    /* Stack layout */
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mega menu full width */
    #mega-menu-wrap-primary {
        width: 100% !important;
    }

    /* UL alignment */
    #mega-menu-wrap-primary #mega-menu-primary {
        flex-direction: column;
        align-items: flex-start !important;
        margin-top: 70px;
    }

    /* LI full width */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
        width: 100%;
        margin: 0;
    }

    /* Link left align */
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        display: flex;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100%;
        padding: 12px 20px;
    }

    /* Toggle button clean */
    #mega-menu-wrap-primary .mega-menu-toggle {
        background-color: transparent !important;
    }

    /* =========================
       LOGIN BUTTON (MOBILE)
    ========================= */

    /* Header login hide */
    .navbar-collapse > .d-flex {
        display: none !important;
    }

    /* Menu login show */
    .menu-login-btn {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }

    .menu-login-btn a {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* Default hide menu login (desktop) */
/* =========================
   DESKTOP
========================= */

/* menu login hide (desktop) */
.menu-login-btn {
    display: none;
}

/* header login show (desktop) */
.header-login {
    display: flex;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 991px) {

    /* header login hide */
    .header-login {
        display: none !important;
    }

    /* menu login show */
    .menu-login-btn {
        display: block;
        width: 100%;
    }

    .menu-login-btn a {
        display: block;
        width: 100%;
        text-align: left;
    }
}


/* ===== Desktop default ===== */
.menu-login-btn {
    display: none !important;
}

/* header login show (desktop only) */
.header-login {
    display: flex !important;
}

/* ===== Mobile ===== */
@media (max-width: 991px) {

    /* header login hide */
    .header-login {
        display: none !important;
    }

    /* menu login show */
    .menu-login-btn {
        display: block !important;
        width: 100%;
    }

    .menu-login-btn a {
        display: block;
        width: 100%;
        text-align: left;
    }
    #mega-menu-wrap-primary #mega-menu-primary {
        background: rgba(0, 66, 49, 0.9) !important;
    }
}

#mega-menu-wrap-primary .menu-login-btn {
    display: none !important;
}

@media (max-width: 991px) {
    #mega-menu-wrap-primary .menu-login-btn {
        display: block !important;
    }
}

#mega-menu-wrap-primary {
    background: transparent !important;
}

#mega-menu-wrap-primary #mega-menu-primary {
    background: transparent !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    background: transparent !important;
    transition: 0.3s ease;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff;
    transition: all 0.3s ease;
	
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.12);
    transition: all 0.4s ease;
    z-index: -1;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover::before {
    left: 0;
}

#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link,
#mega-menu-wrap-primary .mega-sub-menu a.mega-menu-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}


/* footer scroll */

/* =========================
   FOOTER MENU BASE
========================= */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;

    width: 100%;

    max-height: 160px; /* 5 items height */
    overflow: hidden;  /* default hidden */
    transition: max-height 0.4s ease;
}

/* menu items */
.footer-menu li {
    display: block;
    padding: 5px 0;
}

/* links */
.footer-menu li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

/* hover */
.footer-menu li a:hover {
    color: #004231;
}

/* =========================
   EXPANDED STATE (IMPORTANT FIX)
========================= */

.footer-menu.expanded {
    max-height: 160px;   /* same height */
    overflow-y: auto;    /* scroll only */
}

/* =========================
   BUTTON
========================= */

.footer-see-more {
    margin-top: 20px;
    background: #004231;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================
   FOOTER WIDTH
========================= */

.footer-widget {
    min-width: 220px;
}

/* =========================
   SCROLLBAR STYLE
========================= */

.footer-menu::-webkit-scrollbar {
    width: 6px;
}

.footer-menu::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.footer-menu::-webkit-scrollbar-thumb {
    background: #004231;
    border-radius: 10px;
}

.footer-menu::-webkit-scrollbar-thumb:hover {
    background: #006b4a;
}

/* Firefox */
.footer-menu {
    scrollbar-width: thin;
    scrollbar-color: #004231 rgba(0,0,0,0.1);
}

/* =========================
   MEGA MENU FOOTER SAFETY FIX
========================= */

/* ONLY target header mega menu (not footer) */
#mega-menu-wrap-primary,
#mega-menu-wrap-primary * {
    box-sizing: border-box;
}


.custom-logo-img {
    height: 70px !important;
}

/*department css*/

.custom-dep {
    height: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.custom-dep .box-content {
    height: 100%;
    overflow-y: auto;
}

.notice-scrol {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.notice-scrol::-webkit-scrollbar {
    width: 6px;
}

.notice-scrol::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.notice-scrol::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.team-card3 .box-img img {

    height: 300px !important;
}

.teacher-mem {
    font-size: 22px;
    margin: 0 !important;
}

.team-details-about-info {

 padding: 0 0 0 !important;
}

/* .f-cam-txt{
	color: #ffffff
}

.cam-logo{
    width: 100%;
    height: 30px;
} */

.cam-logo {
    width: 100%;
    height: 35px;
}

.fotter-c-txt {
    color: #ffffff;
}

.info-box .box-link {
    color: #ffffff !important;
}

.f-box-link:hover {
    color: #D39E00 !important;
}

.aalo-f-logo {
    height: 60px !important;
}



/* animation  */



