:root {
    --primary-color: #012959;
    --secondary-color: #334561;
    --accent-color: #5f7791;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --header-height: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-padding {
    padding: 40px 0;
}

/* Header Styles */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: var(--white);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--accent-color);
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.header-middle {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-middle .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 60px;
}

.election-banner {
    max-width: 200px;
}

.election-banner img {
    width: 100%;
}

/* Navigation */
.main-nav {
    background: var(--white);
    border-bottom: 3px solid var(--primary-color);
}

.main-nav .container {
    display: flex;
    align-items: center;
    position: relative;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu > li:hover > a {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-menu > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.dropdown li a:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 22px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* Mega Menu */
.has-mega-menu {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 99;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 25px 0;
}

.mega-menu-column h4 {
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 25px 0;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

.hero-main .hero-card {
    display: block;
    position: relative;
}

.hero-main .hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    border-radius: 0 0 8px 8px;
}

.category-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hero-content .date {
    font-size: 13px;
    opacity: 0.9;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.sidebar-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-item a {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.sidebar-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-item h3 {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item .date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

/* Latest News Section */
.latest-news-section {
    padding: 25px 0;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.latest-news-main .news-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.latest-news-main .news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.latest-news-main .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.latest-news-main .news-content h3 {
    font-size: 18px;
    line-height: 1.4;
}

.news-card .category-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.news-content .date {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 8px;
    display: block;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-info h4 {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info .date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 22px;
    color: var(--text-dark);
}

.section-header h2 a {
    color: var(--text-dark);
    transition: color 0.3s;
}

.section-header h2 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
}

/* News Grid 4 Columns */
.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.news-card .news-content {
    padding: 15px;
}

.news-card .news-content h3 {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-card .date {
    font-size: 12px;
    color: var(--text-light);
}

/* Three Column Section */
.three-column-section {
    background: var(--white);
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.column-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.column-title a {
    color: var(--primary-color);
}

.featured-news {
    display: block;
    margin-bottom: 15px;
}

.featured-news img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.featured-news h4 {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news .date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.news-list li a:hover {
    color: var(--primary-color);
}

/* My Campus Section */
.my-campus-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.my-campus-wrapper h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.campus-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.campus-select {
    padding: 12px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    min-width: 250px;
    cursor: pointer;
}

.campus-content {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    min-height: 200px;
}

.campus-content .loading {
    text-align: center;
    font-size: 16px;
    opacity: 0.8;
}

.campus-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Video Section */
.video-carousel,
.photo-carousel {
    position: relative;
}

.video-track,
.photo-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.video-track::-webkit-scrollbar,
.photo-track::-webkit-scrollbar {
    display: none;
}

.video-item,
.photo-item {
    flex: 0 0 280px;
    text-decoration: none;
}

.video-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.video-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s;
}

.video-item:hover .play-icon {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item h4 {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    opacity: 0;
    transition: all 0.3s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* Footer */
.main-footer {
    background: #012959;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #888;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main .hero-card img {
        height: 350px;
    }
    
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .three-column-grid {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .campus-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        overflow-y: auto;
        transition: left 0.3s;
        z-index: 1001;
        padding-top: 60px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li > a {
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .nav-menu > li:hover > .dropdown {
        display: block;
    }
    
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .has-mega-menu:hover .mega-menu {
        display: block;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .campus-filter {
        flex-direction: column;
    }
    
    .campus-select {
        width: 100%;
    }
    
    .campus-news-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .video-item,
    .photo-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }
    
    .election-banner {
        display: none;
    }
    
    .hero-main .hero-card img {
        height: 250px;
    }
    
    .hero-content h2 {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .my-campus-wrapper h2 {
        font-size: 22px;
    }
}
