:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

.col-5 {
    flex: 0 0 auto;
    width: 20%;
}

.teacher-item.d-none-load-more {
    display: none;
}

@media (max-width: 1200px) {
    .col-5 {
        width: 25%;
    }
}

@media (max-width: 992px) {
    .col-5 {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .col-5 {
        width: 50%;
    }
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-800);
}

a {
    text-decoration: none;
}


/* Top Bar */
.top-bar {
    background-color: var(--slate-900);
    color: var(--slate-200);
    font-size: 0.85rem;
}

.top-bar .social-icons i {
    cursor: pointer;
    transition: color 0.3s;
}

.top-bar .social-icons i:hover {
    color: var(--teal-400);
}

/* Header */
.header-logo-box {
    width: 80px;
    height: 80px;
    background-color: var(--teal-50);
    color: var(--teal-600);
    border: 2px solid var(--teal-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    margin: 0 auto 15px auto;
}

/* Navbar */
.main-navbar {
    background-color: var(--teal-500);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-navbar .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    margin: 0 5px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--teal-50);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 450px;
    background-color: var(--slate-800);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* When hero-section is also a carousel */
.hero-section.carousel {
    display: block;
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 450px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.75), rgba(15, 118, 110, 0.55));
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Inside carousel-item the img is position:relative by bootstrap — override */
.carousel-item .hero-img {
    position: absolute !important;
}

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

/* Carousel controls on top of overlay */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
}

.hero-section .carousel-indicators {
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.hero-line {
    width: 120px;
    height: 6px;
    background-color: var(--teal-400);
    margin: 0 auto;
    border-radius: 5px;
}

/* Message Cards (Dribbble Soft Style) */
.message-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.message-card:hover {
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.1);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--teal-500);
}

.message-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal-100);
    padding: 2px;
    transition: border-color 0.3s;
}

.message-card:hover .message-avatar {
    border-color: var(--teal-400);
}

.read-more-btn {
    background: var(--teal-50);
    color: var(--teal-600);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: var(--teal-100);
    color: var(--teal-700);
}

/* Academic Calendar */
.calendar-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--slate-100);
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-header {
    background-color: var(--teal-500);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

.calendar-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

/* Custom Scrollbar */
.calendar-body::-webkit-scrollbar {
    width: 6px;
}

.calendar-body::-webkit-scrollbar-thumb {
    background-color: var(--slate-200);
    border-radius: 10px;
}

.calendar-body:hover::-webkit-scrollbar-thumb {
    background-color: var(--slate-300);
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--slate-100);
}

.calendar-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.date-box {
    background: var(--slate-50);
    color: var(--teal-600);
    border-radius: 12px;
    padding: 10px;
    min-width: 65px;
    text-align: center;
    border: 1px solid var(--slate-100);
    transition: all 0.3s;
}

.calendar-item:hover .date-box {
    background: var(--teal-50);
    border-color: var(--teal-200);
}

/* Digital Campus Services */
.campus-nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
}

.campus-nav-pills::-webkit-scrollbar {
    display: none;
}

.campus-tab {
    background: white;
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campus-tab:hover {
    background: var(--teal-50);
    color: var(--teal-600);
    border-color: var(--teal-200);
    transform: translateY(-2px);
}

.campus-tab.active {
    background: var(--teal-500);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.4);
    border-color: var(--teal-500);
    transform: translateY(-2px);
}

.campus-tab i {
    color: var(--teal-500);
}

.campus-tab.active i {
    color: white;
}

.module-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.module-card:hover {
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.12);
    border-color: var(--teal-200);
    transform: translateY(-5px);
}

.module-card-blob {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 120px;
    height: 120px;
    background: rgba(204, 251, 241, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.module-card:hover .module-card-blob {
    opacity: 1;
}

.module-icon {
    width: 56px;
    height: 56px;
    background: var(--teal-50);
    color: var(--teal-600);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.module-card:hover .module-icon {
    background: var(--teal-500);
    color: white;
    transform: scale(1.1);
}

.module-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.module-card:hover .module-card-title {
    color: var(--teal-600);
}

.module-enter {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-400);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.module-card:hover .module-enter {
    color: var(--teal-500);
}

.module-enter i {
    margin-left: 5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.module-card:hover .module-enter i {
    opacity: 1;
    transform: translateX(0);
}

/* Statistics Glassmorphism */
.stats-section {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600), var(--teal-800));
    border-radius: 2.5rem;
    padding: 5rem 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stats-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 24px 24px;
    pointer-events: none;
}

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Teachers Soft White Style */
.teacher-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--slate-50);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.teacher-card:hover {
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.12);
    transform: translateY(-8px);
    border-color: var(--teal-50);
}

.teacher-card-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--teal-300), var(--teal-500));
    opacity: 0;
    transition: opacity 0.5s;
}

.teacher-card:hover .teacher-card-line {
    opacity: 1;
}

.teacher-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem auto;
}

.teacher-avatar-glow {
    position: absolute;
    inset: 0;
    background: var(--teal-200);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.5s;
}

.teacher-card:hover .teacher-avatar-glow {
    opacity: 0.4;
}

.teacher-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--slate-50), var(--slate-100));
    border: 4px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--slate-300);
    z-index: 1;
    transition: all 0.5s;
}

.teacher-card:hover .teacher-avatar {
    color: var(--teal-500);
    transform: scale(1.05);
}

/* Skeleton Loaders */
.skeleton-line {
    height: 16px;
    background: var(--slate-100);
    border-radius: 50px;
    margin: 0 auto;
    transition: background 0.5s;
}

.teacher-card:hover .skeleton-line {
    background: var(--teal-50);
}

/* Footer */
.footer-section {
    background-color: var(--slate-900);
    color: var(--slate-300);
    border-top: 6px solid var(--teal-500);
    padding-top: 4rem;
}

.footer-link {
    color: var(--slate-400);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--teal-400);
    transform: translateX(5px);
}

.counter-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--teal-600), var(--blue-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-item {
    transition: transform 0.3s ease, shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: rotate(10deg) scale(1.1);
    background: var(--teal-500) !important;
    color: white !important;
}

.max-width-700 {
    max-width: 700px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        height: 300px;
    }

    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 300px;
    }

    .header-logo-box {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .campus-nav-pills {
        justify-content: flex-start;
    }
}