/* Professional Educational Website Styles */
:root {
    --primary-color: #2C5282;    /* Professional navy blue */
    --secondary-color: #4299E1;  /* Lighter blue */
    --accent-color: #ED8936;     /* Warm orange */
    --success-color: #48BB78;    /* Green */
    --info-color: #4299E1;       /* Light blue */
    --text-color: #2D3748;       /* Dark gray */
    --text-light: #718096;       /* Medium gray */
    --bg-light: #F7FAFC;         /* Light background */
    --white: #FFFFFF;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header Styles */
.header-top {
    background: var(--primary-color);
    padding: 0.5rem 0;
    color: var(--white);
}

.header-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-top .left-item ul li {
    margin-right: 1.5rem;
    font-size: 0.875rem;
}

.header-top .right-item ul {
    justify-content: flex-end;
}

.header-top .right-item ul li {
    margin-left: 1rem;
}

.header-top a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.header-top a:hover {
    opacity: 1;
}

/* Navigation */
.header-nav {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    text-decoration: none;
}

.logo {
    width: 60px;
    height: auto;
}

.brand-text {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn, .close-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Footer Styles */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.foot-address {
    display: flex;
    margin-bottom: 1rem;
}

.foot-address .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.foot-address .addet {
    opacity: 0.8;
}

.footer-links h2, .footer-updates h2, .footer-courses h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h2::after, .footer-updates h2::after, .footer-courses h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

.update-item {
    margin-bottom: 1.5rem;
}

.update-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.update-item p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.update-item .date {
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-courses ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-courses ul li {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.copy {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.copy p {
    margin: 0;
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    margin-left: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    #menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    #menu.active {
        right: 0;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
    }

    .overlay.active {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .header-top .left-item ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-top .left-item ul li {
        margin-bottom: 0.5rem;
    }

    .brand-text {
        font-size: 1rem;
    }
}

/* Logout Button Style */
.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: var(--primary-color);
}

.nav-link-form {
    margin: 0;
    padding: 0;
}

/* Responsive styles for academic institute detail content */
.academic-institute-content img,
.academic-institute-content iframe,
.academic-institute-content table {
    max-width: 100%;
    height: auto;
}

.academic-institute-content table {
    width: 100%;
    border-collapse: collapse;
}

.academic-institute-content table th,
.academic-institute-content table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.academic-institute-content p {
    word-wrap: break-word;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .academic-institute-content {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
}
