:root {
    --primary-color: #00a651;
    --secondary-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    line-height: 1.6;
    background: #f5f6fa;
}

/* Header */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 20px 0;
    position: relative;
    overflow: visible;
    margin-bottom: 50px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 5px;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -50px;
    z-index: 10;
}

.logo-left, .logo-right {
    width: 120px;
    height: 120px;
}

.logo-left img, .logo-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.college-title {
    text-align: center;
    color: #fff;
}

.college-title h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.college-title h2 {
    font-size: 2rem;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: -50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu > li > a:hover {
    background: var(--primary-color);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    display: block !important;
    white-space: normal !important;
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu a:hover {
    background: var(--primary-color);
    padding-left: 25px !important;
}

/* Page Content */
.page-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-content-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.container-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.main-content-area {
    min-height: 60vh;
}

.page-sidebar {
    position: sticky;
    top: 20px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00c853 100%);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,166,81,0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.content-section p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #00a651;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #00a651;
    padding-left: 10px;
}

.footer-logo {
    text-align: left;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 100px;
    height: 100px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

.footer-bottom a {
    color: #00a651;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #00c853;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .container-with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
        margin-top: 30px;
    }

    .featured-image {
        height: 250px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--secondary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .submenu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.2);
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .college-title h1 {
        font-size: 1.5rem;
    }

    .college-title h2 {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 20px;
    }
}
