        :root {
            --primary-color: #5B4FA3;
            --secondary-color: #00C853;
            --dark-blue: #1E3A8A;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
        }

        /* Top Header */
        .top-header {
            background: var(--primary-color);
            color: white;
            padding: 10px 0;
        }

        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .College-branding {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .College-logo {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        .College-logo img {
            width: 50px;
            height: 50px;
            object-fit: contain;
        }

        .College-name h1 {
            font-size: 22px;
            margin: 0;
            font-weight: 600;
        }

        .College-name p {
            font-size: 14px;
            margin: 0;
        }

        .top-links a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
            font-size: 14px;
        }

        .top-links a:hover {
            text-decoration: underline;
        }

        /* Navigation */
        .navbar {
            background: #f8f9fa;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .navbar .container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .navbar-brand {
            display: none;
        }

        .navbar-collapse {
            flex-grow: 0;
        }

        .navbar-nav {
            display: flex;
            justify-content: center;
        }

        .navbar-nav .nav-item {
            position: relative;
        }

        .navbar-nav .nav-link {
            color: #333;
            font-weight: 500;
            padding: 8px 15px;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color);
        }

        .navbar-nav .nav-link i {
            font-size: 10px;
            transition: transform 0.3s;
        }

        /* Dropdown Menu */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            border: none;
            padding: 10px 0;
            margin-top: 0;
            /* remove gap so hover to dropdown doesn't lose focus */
            z-index: 1000;
            pointer-events: auto;
        }

        .nav-item:hover .dropdown-menu,
        .nav-item:focus-within .dropdown-menu,
        .nav-item.open .dropdown-menu {
            display: block;
            animation: slideDown 0.3s ease forwards;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }

        .dropdown-item {
            padding: 10px 20px;
            color: #333;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }

        .dropdown-item:hover {
            background: linear-gradient(to right, #f0f0f0, white);
            color: var(--primary-color);
            border-left-color: var(--primary-color);
            padding-left: 25px;
        }

        .dropdown-item i {
            color: var(--primary-color);
            font-size: 14px;
        }

        .nav-item:hover .nav-link i.fa-chevron-down {
            transform: rotate(180deg);
        }

        /* Mega Menu for larger dropdowns */
        .mega-menu {
            min-width: 600px;
            padding: 20px;
        }

        .mega-menu-content {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .mega-menu-column h6 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
        }

        /* Hero Section */
        .hero-section {
            position: relative;
            height: 600px;
            /* Increased height */
            overflow: hidden;
        }

        .carousel-item {
            height: 600px;
            position: relative;
        }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            animation: zoomEffect 20s ease-in-out infinite alternate;
        }

        @keyframes zoomEffect {
            0% {
                transform: scale(1);
            }

            100% {
                transform: scale(1.15);
            }
        }



        .carousel-caption {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            bottom: auto;
            /* Reset default bootstrap */
            text-align: center;
            z-index: 2;
        }

        .carousel-caption h2 {
            font-size: 3.5rem;
            font-weight: 800;
            color: white;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
            margin-bottom: 1rem;
            animation: slideUp 1s ease-out;
        }

        .carousel-caption p {
            font-size: 1.5rem;
            font-weight: 300;
            color: #f0f0f0;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
            margin-bottom: 2rem;
            animation: slideUp 1s ease-out 0.3s backwards;
        }

        .btn-hero {
            padding: 12px 35px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            background: var(--secondary-color);
            color: white;
            border: none;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
            animation: slideUp 1s ease-out 0.6s backwards;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .btn-hero:hover {
            background: white;
            color: var(--secondary-color);
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .carousel-control-prev,
        .carousel-control-next {
            z-index: 3;
            width: 5%;
        }

        .carousel-indicators {
            z-index: 3;
        }


        /* Notice Update Bar */
        .notice-update {
            background: #1E3A8A;
            color: white;
            padding: 10px 0;
            overflow: hidden;
        }

        .notice-scroll {
            display: flex;
            align-items: center;
            white-space: nowrap;
            animation: scroll 20s linear infinite;
        }

        .notice-scroll:hover {
            animation-play-state: paused;
        }

        @keyframes scroll {
            0% {
                transform: translateX(100%);
            }

            100% {
                transform: translateX(-100%);
            }
        }

        /* Quick Links */
        .quick-links {
            padding: 40px 0;
            background: #f8f9fa;
        }

        .quick-link-card {
            background: var(--dark-blue);
            color: white;
            padding: 20px;
            border-radius: 50px;
            text-align: center;
            margin: 10px;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .quick-link-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .quick-link-card i {
            font-size: 24px;
        }

        /* Messages Section */
        .messages-section {
            padding: 50px 0;
        }

        .message-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            margin-bottom: 20px;
            transition: transform 0.3s;
        }

        .message-card:hover {
            transform: translateY(-5px);
        }

        .message-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 15px;
            border: 5px solid var(--primary-color);
            overflow: hidden;
        }

        .message-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .message-title {
            background: var(--primary-color);
            color: white;
            padding: 10px;
            border-radius: 25px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .message-content {
            background: var(--secondary-color);
            color: white;
            padding: 20px;
            border-radius: 10px;
            min-height: 150px;
            transition: max-height 0.4s ease;
        }

        /* Collapsed preview for long messages */
        .message-content.collapsed {
            max-height: 120px;
            overflow: hidden;
            position: relative;
        }

        .message-content.collapsed::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 48px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.25));
            pointer-events: none;
            border-radius: 0 0 10px 10px;
        }

        .read-more-btn {
            display: inline-block;
            margin-top: 10px;
            background: #ffffff;
            /* high contrast button */
            color: var(--primary-color);
            border: none;
            padding: 8px 14px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }

        .read-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
        }

        /* Video Gallery */
        .video-card {
            background: var(--primary-color);
            color: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .video-thumbnail {
            position: relative;
            background: #000;
            border-radius: 10px;
            overflow: hidden;
            padding-top: 56.25%;
        }

        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: red;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .play-button:hover {
            transform: translate(-50%, -50%) scale(1.1);
        }

        /* Info Cards Grid */
        .info-cards {
            padding: 50px 0;
        }

        .info-card {
            background: white;
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            min-height: 250px;
            transition: transform 0.3s;
            border-left: 3px solid #5b4fa3;
        }

        .info-card:hover {
            transform: translateY(-5px);
        }

        .info-card-icon {
            width: 60px;
            height: 60px;
            /*margin: 0 auto 15px;*/
        }

        .info-card h4 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-weight: bold;
            font-size: 20px;
        }

        .info-card ul {
            list-style: none;
            padding: 0;
        }

        .info-card ul li {
            padding: 5px 0;
            color: #666;
        }

        .info-card ul li a {
            text-decoration: none;
        }

        .info-card ul li:before {
            content: "▸ ";
            color: var(--secondary-color);
            font-weight: bold;
        }

        /* right sidebar */
        .sidebar-item {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            margin-bottom: 20px;
            transition: transform 0.3s;
        }

        .sidebar-item:hover {
            transform: translateY(-5px);
        }

        .sidebar-item h5 {
            color: #5b4fa3;
            border-bottom: 2px solid #0d6efd;
            padding-bottom: 8px;
            margin-bottom: 14px;
            text-align: left;
        }

        .sidebar-item a {

            text-align: left;
        }

        /* Teachers Section */
        .teachers-section {
            padding: 50px 0;
            background: #f8f9fa;
        }

        .section-title {
            background: var(--primary-color);
            color: white;
            padding: 15px;
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 30px;
        }

        .teacher-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            transition: transform 0.3s;
        }

        .teacher-card:hover {
            transform: translateY(-5px);
        }

        .teacher-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 15px;
            border: 5px solid var(--primary-color);
            overflow: hidden;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .teacher-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }

        .teacher-dept {
            background: var(--secondary-color);
            color: white;
            padding: 8px;
            border-radius: 20px;
            font-size: 14px;
        }

        .teacher-slider-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .teacher-slider {
            overflow: hidden;
            flex: 1;
        }

        .teacher-track {
            display: flex;
            transition: transform .5s ease;
        }

        .teacher-slide {
            flex: 0 0 33.3333%;
            /* একসাথে ৩টা দেখানোর জন্য */
            max-width: 33.3333%;
            padding: 0 12px;
            box-sizing: border-box;
        }

        .slider-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid #ccc;
            background: #fff;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-btn:hover {
            background: #4CAF50;
            color: #fff;
            border-color: #4CAF50;
        }
        
        /* youtube video */
        .youtube-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
        
        /* map */
       .map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

        /* মোবাইলে ২টা / ছোট স্ক্রিনে ১টা দেখাতে চাইলে */
        @media (max-width: 991.98px) {
            .teacher-slide {
                flex: 0 0 50%;
                max-width: 50%;
            }
 
        }

        @media (max-width: 575.98px) {
            .teacher-slide {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .map-container {
        height: 300px;
    }
        }

        /* Notice Board */
        .notice-board {
            padding: 50px 0 0;
        }

        .notice-filters {
            margin-bottom: 30px;
            text-align: center;
        }

        .notice-filter-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            margin: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .notice-filter-btn:hover,
        .notice-filter-btn.active {
            background: var(--primary-color);
        }

        .notice-item {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            gap: 20px;
            transition: transform 0.3s;
        }

        .notice-item:hover {
            transform: translateX(5px);
        }

        .notice-date {
            background: var(--dark-blue);
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            min-width: 80px;
        }

        .notice-date .day {
            font-size: 28px;
            font-weight: bold;
            display: block;
        }

        .notice-date .month {
            font-size: 14px;
        }

        .notice-content {
            flex: 1;
        }

        .notice-badge {
            background: var(--secondary-color);
            color: white;
            padding: 3px 10px;
            border-radius: 15px;
            font-size: 12px;
            margin-top: 10px;
            display: inline-block;
        }

        /* Campus Gallery */
        .campus-gallery {
            padding: 50px 0;
            background: #f8f9fa;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            height: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 15px;
            transform: translateY(100%);
            transition: transform 0.3s;
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        /* Modal/Popup for Gallery */
        .gallery-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            overflow: auto;
        }

        .gallery-modal-content {
            position: relative;
            margin: 50px auto;
            max-width: 90%;
            max-height: 90vh;
            animation: zoomIn 0.3s ease;
        }

        @keyframes zoomIn {
            from {
                transform: scale(0.5);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .gallery-modal-content img {
            width: 100%;
            height: auto;
            border-radius: 10px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 40px;
            color: white;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            z-index: 10000;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: #ff0000;
        }

        .modal-prev,
        .modal-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            padding: 20px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            transition: background 0.3s;
            z-index: 10000;
        }

        .modal-prev {
            left: 20px;
        }

        .modal-next {
            right: 20px;
        }

        .modal-prev:hover,
        .modal-next:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .modal-caption {
            text-align: center;
            color: white;
            padding: 20px;
            font-size: 18px;
        }

        /* Contact Section */
        .contact-section {
            padding: 50px 0;
        }

        .contact-info {
            background: var(--secondary-color);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: transform 0.3s;
        }

        .contact-info:hover {
            transform: translateX(5px);
        }

        .contact-info i {
            font-size: 24px;
        }

        .map-container {
            border-radius: 15px;
            overflow: hidden;
            height: 400px;
            background: #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Footer */
        .footer {
            background: var(--dark-blue);
            color: white;
            padding: 30px 0;
            text-align: center;
        }

        .footer-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 15px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-section {
                height: 300px;
            }

            .carousel-item {
                height: 300px;
            }

            .carousel-caption h2 {
                font-size: 24px;
            }

            .carousel-caption p {
                font-size: 14px;
            }

            .building-windows {
                grid-template-columns: repeat(4, 1fr);
            }

            .quick-link-card {
                margin: 5px;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .modal-prev,
            .modal-next {
                font-size: 30px;
                padding: 10px;
            }

            .modal-close {
                font-size: 40px;
                right: 20px;
                top: 10px;
            }

            .College-branding {
                gap: 10px;
            }

            .College-logo {
                width: 50px;
                height: 50px;
            }

            .College-logo img {
                width: 40px;
                height: 40px;
            }

            .College-name h1 {
                font-size: 16px;
            }

            .College-name p {
                font-size: 12px;
            }

            .top-links a {
                margin-left: 10px;
                font-size: 12px;
            }

            .navbar-toggler {
                margin: 0 auto;
            }

            /* Mobile Dropdown */
            .navbar-collapse .dropdown-menu {
                position: static;
                box-shadow: none;
                border-left: 3px solid var(--primary-color);
                margin-left: 15px;
                margin-top: 5px;
            }

            .navbar-collapse .nav-item:hover .dropdown-menu {
                animation: none;
            }

            .mega-menu {
                min-width: 100%;
            }

            .mega-menu-content {
                grid-template-columns: 1fr;
            }
        }

        /* Scroll to top button */
        .scroll-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
            z-index: 1000;
        }

        .scroll-top:hover {
            transform: translateY(-5px);
        }

        .scroll-top.show {
            display: flex;
        }

       