@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital@0;1&family=Barlow:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Gilda+Display&display=swap");

:root {
    --light-blue: #e6f2ff;
    --dark-blue: #0077cc;
    --white: #ffffff;
    --black: #333333;
    --gray: #f5f5f5;
    --nav-box-border: #ffffff;
    --hover-orange: #fd7e14;
    --university-maroon: #A4243B;
    --header-bg: #A4243B;
    --nav-bg: #8a1e33;
    --sidebar-btn-color: #084561;
    --sidebar-btn-hover: #0a5a7a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Barlow", sans-serif;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    background-color: var(--header-bg);
}

/* University Logo Section */
.university-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(to right, rgb(233, 233, 240), rgb(121, 149, 192));
    padding: 15px 5%;
    border-bottom: 1px solid #ddd;
}

/* News Marquee Section */
.news-marquee-container {
    background-color: #084561;
    color: white;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.marquee-label {
    background-color: var(--university-maroon);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-label i {
    margin-right: 8px;
}

.marquee-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: marquee 30s linear infinite;
}

.marquee.paused {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee-item {
    display: inline-block;
    margin-right: 30px;
    color: white;
}

.marquee-item i {
    margin-right: 8px;
    color: #A4243B;
    font-size: 0.8em;
}

.marquee-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.marquee-item a:hover {
    color: #fd7e14;
    text-decoration: underline;
}

.marquee-control {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    margin-left: 15px;
    padding: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.marquee-control:hover {
    color: #fd7e14;
}

.logo-container {
    display: flex;
    align-items: center;
}

.university-logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.university-name {
    display: flex;
    flex-direction: column;
}

.university-name-bengali {
    font-size: 24px;
    font-weight: bold;
    color: #151E3F;
    margin-bottom: 5px;
}

.university-line {
    height: 2px;
    background-color: #000000;
    margin-bottom: 5px;
    width: 100%;
}

.university-name-english {
    font-size: 20px;
    font-weight: bold;
    color: var(--university-maroon);
    text-transform: uppercase;
}

.university-establishment {
    font-size: 14px;
    color: #151E3F;
    font-style: italic;
    margin-top: 5px;
}

/* Search and Webmail Section */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #151E3F;
    font-size: 14px;
}

.contact-info a {
    color: #151E3F;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--university-maroon);
}

.contact-info i {
    margin-right: 5px;
    color: var(--university-maroon);
}

.search-webmail-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    width: 250px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #e9ecef;
}

.webmail-btn {
    background-color: var(--university-maroon);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.webmail-btn:hover {
    background-color: #8a1e33;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
    font-size: 13px;
}

.language-btn {
    background-color: var(--white);
    color: var(--black);
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: inherit;
}

.language-btn:hover {
    background-color: #f1f1f1;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    font-size: 13px;
}

.language-dropdown a {
    color: var(--black);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
}

.language-dropdown a:hover {
    background-color: #f1f1f1;
}

.language-selector:hover .language-dropdown {
    display: block;
}

/* Main Navigation - Desktop */
.nav-container {
    background-color: var(--nav-bg);
    border: 2px solid var(--nav-box-border);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-item:not(:last-child) {
    border-right: 2px solid var(--nav-box-border);
}

.nav-item:hover {
    background-color: var(--hover-orange);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    display: block;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    padding: 0 5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.has-children::after,
.dropdown-link.has-children::after {
    content: "▾";
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    list-style: none;
    left: 0;
    top: 100%;
    border: 2px solid var(--nav-box-border);
    font-size: 13px;
}

.dropdown-menu.right {
    left: 100%;
    top: 0;
}

.nav-item:hover > .dropdown-menu,
.dropdown-item:hover > .dropdown-menu {
    display: block;
}

.dropdown-item {
    position: relative;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

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

.dropdown-item:hover {
    background-color: var(--hover-orange);
}

.dropdown-link {
    color: var(--black);
    text-decoration: none;
    display: block;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: var(--white);
}

.mobile-menu-container {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--black);
    padding: 8px 0;
}

.mobile-menu-btn .menu-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Profile Page Specific Styles */
.profile-page-container {
    display: flex;
    min-height: calc(100vh - 210px);
    max-width: 1400px;
    margin: 20px auto;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.profile-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    padding: 30px 20px;
    flex-shrink: 0;
    border-right: 1px solid #e9ecef;
}

.profile-sidebar h3 {
    color: var(--university-maroon);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--university-maroon);
    font-size: 1.3rem;
    text-align: center;
}

.profile-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-sidebar-nav li {
    margin-bottom: 10px;
}

.profile-sidebar-nav a {
    display: block;
    padding: 12px 15px;
    background-color: var(--sidebar-btn-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.profile-sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.profile-sidebar-nav a:hover::before,
.profile-sidebar-nav a.active::before {
    left: 100%;
}

.profile-sidebar-nav a:hover,
.profile-sidebar-nav a.active {
    background-color: var(--sidebar-btn-hover);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.profile-content {
    flex: 1;
    padding: 40px;
    background-color: white;
    overflow-y: auto;
}

.profile-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--university-maroon);
    padding-bottom: 20px;
}

.profile-header h1 {
    color: var(--university-maroon);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.profile-header p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
}

.profile-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.profile-section h2 {
    color: var(--university-maroon);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.profile-section p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05rem;
}

.profile-section ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.profile-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
    font-size: 1.05rem;
}

.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--university-maroon);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.profile-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--university-maroon);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.profile-card h3 {
    color: var(--university-maroon);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.profile-card p {
    color: #555;
    line-height: 1.6;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--university-maroon);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* External Links Section */
.external-links-horizontal-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px 20px;
    margin: 0;
    border-top: 3px solid var(--university-maroon);
    border-bottom: 3px solid var(--university-maroon);
}

.external-links-horizontal-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.external-links-horizontal-section .section-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.external-links-horizontal-section .section-header i {
    font-size: 1.8rem;
    color: var(--university-maroon);
    background-color: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(164, 36, 59, 0.2);
}

.external-links-horizontal-section .section-header h3 {
    color: var(--university-maroon);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.horizontal-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.horizontal-link {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.horizontal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--university-maroon), var(--sidebar-btn-color));
    transition: left 0.3s ease;
}

.horizontal-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(164, 36, 59, 0.15);
    border-color: var(--university-maroon);
    color: var(--university-maroon);
}

.horizontal-link:hover::before {
    left: 0;
}

.horizontal-link i {
    margin-right: 8px;
    font-size: 1rem;
    color: var(--university-maroon);
    transition: all 0.3s ease;
}

.horizontal-link:hover i {
    transform: scale(1.2);
    color: var(--sidebar-btn-color);
}

/* VC Page Specific Styles */
.vc-page-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.vc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--university-maroon);
}

.vc-header h1 {
    color: var(--university-maroon);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.vc-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.vc-photo {
    width: 250px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 4px solid var(--university-maroon);
}

.vc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-details {
    text-align: center;
}

.vc-details h2 {
    color: var(--university-maroon);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.vc-details h3 {
    color: #555;
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.vc-details p {
    color: #777;
    font-size: 1.1rem;
    font-style: italic;
}

.vc-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.vc-content h2 {
    color: var(--university-maroon);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.vc-content p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05rem;
    text-align: justify;
}

.vc-content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.vc-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
    font-size: 1.05rem;
}

.highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--university-maroon);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--university-maroon);
}

.contact-info-box p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info-box i {
    margin-right: 10px;
    color: var(--university-maroon);
    width: 20px;
}

.contact-info-box a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-box a:hover {
    color: var(--university-maroon);
}

/* Responsive styles for VC page */
@media (max-width: 992px) {
    .vc-header h1 {
        font-size: 2.2rem;
    }
    
    .vc-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .vc-page-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .vc-header h1 {
        font-size: 2rem;
    }
    
    .vc-content {
        padding: 25px;
    }
    
    .vc-details h2 {
        font-size: 1.6rem;
    }
    
    .vc-details h3 {
        font-size: 1.3rem;
    }
    
    .vc-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .vc-page-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .vc-header h1 {
        font-size: 1.8rem;
    }
    
    .vc-content {
        padding: 20px;
    }
    
    .vc-details h2 {
        font-size: 1.5rem;
    }
    
    .vc-details h3 {
        font-size: 1.2rem;
    }
    
    .vc-content h2 {
        font-size: 1.5rem;
    }
    
    .vc-photo {
        width: 200px;
        height: 250px;
    }
    
    .highlight-box {
        padding: 20px;
    }
    
    .contact-info-box {
        padding: 20px;
    }
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 30px 20px 20px 20px;
    color: #e0e0e0;
    border-top: 3px solid var(--university-maroon);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.copyright-info p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-link:hover {
    color: var(--university-maroon);
    transform: translateY(-1px);
}

.separator {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
}

.developed-by {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.developer-name {
    color: var(--university-maroon);
    font-weight: 600;
    transition: color 0.3s ease;
}

.developed-by:hover .developer-name {
    color: var(--sidebar-btn-color);
}

/* ========== RESPONSIVE STYLES ========== */

/* Large devices (desktops, 1200px and up) */
@media (max-width: 1200px) {
    .header-container {
        padding: 15px 3%;
    }
    
    .university-header {
        padding: 15px 3%;
    }
    
    .profile-page-container {
        margin: 20px;
    }
    
    .profile-sidebar {
        width: 250px;
    }
    
    .profile-content {
        padding: 30px;
    }
}

/* Medium devices (tablets, 992px to 1199px) */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .university-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .university-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .right-section {
        align-items: center;
        width: 100%;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .profile-page-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-bottom: 0;
        padding: 20px;
    }
    
    .profile-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .profile-sidebar-nav li {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .profile-content {
        padding: 25px;
    }
    
    .profile-header h1 {
        font-size: 2.2rem;
    }
    
    .profile-section h2 {
        font-size: 1.6rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }
}

/* Small devices (landscape phones, 768px to 991px) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 5%;
        gap: 15px;
    }
    
    .university-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .university-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .right-section {
        align-items: center;
        width: 100%;
        margin-top: 15px;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .search-webmail-container {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .language-selector {
        width: 100%;
    }
    
    .language-btn {
        width: 100%;
    }
    
    .language-dropdown {
        width: 100%;
    }
    
    .nav-container {
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background-color: var(--white);
        border: 2px solid var(--nav-box-border);
        border-radius: 4px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        padding: 10px 0;
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .nav-link {
        color: var(--black);
        padding: 10px 15px;
        font-weight: 600;
    }
    
    .nav-item:hover {
        background-color: var(--hover-orange);
    }
    
    .nav-link:hover {
        color: var(--white);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        padding-left: 20px;
        border-left: 3px solid var(--dark-blue);
        border: none;
    }
    
    .dropdown-menu.right {
        left: 0;
    }
    
    .dropdown-item:hover {
        background-color: var(--hover-orange);
    }
    
    .dropdown-link:hover {
        color: var(--white);
    }
    
    .mobile-menu-container {
        display: flex;
        background-color: var(--white);
        border: 2px solid var(--nav-box-border);
        border-radius: 4px;
        padding: 2px 15px;
        margin-top: 15px;
    }
    
    .nav-item:hover > .dropdown-menu,
    .dropdown-item:hover > .dropdown-menu {
        display: none;
    }
    
    .nav-link.has-children::after,
    .dropdown-link.has-children::after {
        content: "+";
        float: right;
        margin-right: 10px;
        font-size: 14px;
    }
    
    .nav-link.has-children.active::after,
    .dropdown-link.has-children.active::after {
        content: "-";
    }
    
    .nav-item.active > .dropdown-menu,
    .dropdown-item.active > .dropdown-menu {
        display: block;
    }
    
    .nav-item.active,
    .dropdown-item.active {
        background-color: var(--hover-orange);
    }
    
    .nav-item.active .nav-link,
    .dropdown-item.active .dropdown-link {
        color: var(--white);
    }
    
    .news-marquee-container {
        flex-direction: column;
        padding: 8px 15px;
    }
    
    .marquee-label {
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .marquee-content {
        width: 100%;
    }
    
    .marquee-control {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-section h2 {
        font-size: 1.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .horizontal-links-container {
        gap: 10px;
    }
    
    .horizontal-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    .university-name-bengali {
        font-size: 1.8rem;
    }
    
    .university-name-english {
        font-size: 1.4rem;
    }
    
    .profile-content {
        padding: 15px;
    }
    
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-section h2 {
        font-size: 1.4rem;
    }
    
    .highlight-box {
        padding: 20px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-sidebar-nav {
        flex-direction: column;
    }
    
    .profile-sidebar-nav li {
        min-width: 100%;
    }
    
    .footer-section {
        padding: 20px 10px 15px 10px;
    }
    
    .footer-content {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .copyright-info p {
        font-size: 0.9rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .separator {
        font-size: 0.85rem;
    }
    
    .developed-by {
        font-size: 0.85rem;
    }
    
    .horizontal-links-container {
        gap: 8px;
    }
    
    .horizontal-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 400px) {
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
    
    .horizontal-link {
        flex: 0 0 100%;
    }
    
    .profile-sidebar-nav {
        flex-direction: column;
    }
    
    .profile-sidebar-nav li {
        min-width: 100%;
    }
}



















