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

/* Basic Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(to right, #1a4f8b, #2c3e50);
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.portal-links {
    text-align: right;
    padding-right: 20px;
}

.portal-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.portal-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    border-bottom: 3px solid #1a4f8b;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 0;
    justify-content: center;
    text-align: center;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Institution Info */
.institution-info {
    text-align: center;
    padding: 10px 0;
}

.institution-info h3 {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.institution-info h1 {
    font-size: 20px;
    color: #1a4f8b;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.institution-info h2 {
    font-size: 11px;
    color: #2c3e50;
    font-weight: 500;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 30px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 30px;
}

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #1a4f8b;
    color: #ffffff;
}

.btn-primary:hover {
    background: #154075;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e74c3c;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #d44235;
    transform: translateY(-2px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1a237e;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

footer .col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer .col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ffd700;
}

footer .col p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

footer .col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .col ul li {
    margin-bottom: 12px;
}

footer .col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .col ul li a:hover {
    color: #ffd700;
}

footer .footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

footer .footer-contact-list li i {
    color: #ffd700;
    width: 20px;
}

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

footer .footer-bottom p {
    color: #e0e0e0;
    margin: 5px 0;
}

footer .footer-bottom a {
    color: #ffd700;
    text-decoration: none;
}

footer .footer-bottom a:hover {
    text-decoration: underline;
}

.copy {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copy p {
    margin: 0;
    opacity: 0.8;
    font-size: 13px;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }

    footer .cols {
        gap: 20px;
    }

    footer h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    footer .cols {
        grid-template-columns: 1fr; /* Stack columns vertically on mobile */
        gap: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        height: 50px;
    }

    .institution-info h1 {
        font-size: 18px;
    }

    .institution-info h2 {
        font-size: 10px;
    }

    .main-content {
        padding: 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Carousel Adjustments */
.carousel {
    position: relative;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    text-align: left;
}

/* News Section Adjustments */
.news-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.news-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.news-header i {
    color: #e74c3c;
}

.news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-items {
    animation: scrollNews 25s linear infinite;
    padding: 0;
    margin: 0;
}

.news-items:hover {
    animation-play-state: paused;
}

.news-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8f0;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    background: #ffffff;
}

.news-item:hover {
    background: #f8fafc;
    padding-left: 25px;
}

.news-date {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.news-title {
    color: #1a4f8b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-text {
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes scrollNews {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .carousel, .news-section {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }
    
    .carousel, .news-section {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .carousel-item img {
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .institution-info h1 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .institution-info h2 {
        font-size: 10px;
    }
    
    .logo-section {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .news-section {
        max-height: 300px;
    }
}

/* Main Content Area */
.content-area {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Basic Card */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Headings */
h2 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}

h3 {
    color: #1a4f8b;
    font-size: 20px;
    margin-bottom: 12px;
}

h4 {
    color: #1a4f8b;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Text */
p {
    margin-bottom: 16px;
    font-size: 14px;
    color: #2c3e50;
}

/* Lists */
ul, ol {
    margin: 0 0 16px 20px;
}

li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Links */
a {
    color: #1a4f8b;
    text-decoration: none;
}

a:hover {
    color: #e74c3c;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

th {
    background: #1a4f8b;
    color: #ffffff;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-size: 16px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e1e8f0;
    color: #2c3e50;
    font-size: 15px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 79, 139, 0.3);
}

.btn-secondary {
    background: #f0f4f8;
    color: #1a4f8b;
}

.btn-secondary:hover {
    background: #e1e8f0;
    transform: translateY(-2px);
}

/* Notice Box */
.notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.notice::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
}

.notice p {
    margin-left: 35px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Principal's Message */
.principal-message {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.principal-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #1a4f8b, #e74c3c);
}

.principal-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1a4f8b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    position: relative;
    background: #ffffff;
}

.principal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-content {
    padding: 0 20px 0 0;
    overflow: hidden;
}

.principal-content h2 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.principal-content p {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.principal-signature {
    margin-top: 30px;
    color: #1a4f8b;
    font-weight: 600;
}

/* HOD Section */
.hod-section {
    text-align: center;
    margin-bottom: 30px;
}

.hod-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1a4f8b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto 15px;
    position: relative;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hod-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.hod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hod-image:hover img {
    transform: scale(1.1);
}

.hod-info {
    margin-top: 15px;
}

.hod-info h4 {
    color: #1a4f8b;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.hod-info p {
    color: #2c3e50;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Staff Section */
.staff-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 3px solid #1a4f8b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.staff-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-image:hover img {
    transform: scale(1.1);
}

/* Department HOD Profile */
.hod-profile {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hod-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #1a4f8b, #e74c3c);
}

.hod-profile .hod-image {
    margin-bottom: 20px;
}

.hod-profile .hod-info h3 {
    color: #1a4f8b;
    margin-bottom: 5px;
    font-size: 19px; /* 1.2rem converted to px */
}

.hod-profile .hod-info p {
    color: #666;
    margin: 0;
    font-size: 14px; /* 0.9rem converted to px */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-content img {
        max-width: 350px;
    }
    
    .principal-message {
        grid-template-columns: 200px 1fr;
        gap: 25px;
        padding: 25px;
    }

    .principal-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .about-content img {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
    
    .principal-message {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }
    
    .principal-image {
        width: 160px;
        height: 160px;
        margin: 0 auto 20px;
    }
    
    .principal-content {
        padding: 0;
    }
    
    .principal-content h2 {
        text-align: center;
        font-size: 22px;
    }
    
    .principal-content p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .principal-signature {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-section,
    .principal-message {
        padding: 20px;
    }
    
    .principal-image {
        width: 140px;
        height: 140px;
    }
    
    .principal-content h2 {
        font-size: 20px;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* News & Updates */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #e1e8f0;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title {
    color: #1a4f8b;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Department Sections */
.dept-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e1e8f0;
}

.dept-section h2 {
    color: #1a4f8b;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
    position: relative;
}

.dept-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1a4f8b;
}

/* Admission Process */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.process-step {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e1e8f0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: #1a4f8b;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #1a4f8b;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-info {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e1e8f0;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    color: #1a4f8b;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h4 {
    color: #1a4f8b;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text p {
    color: #2c3e50;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Lists */
.content-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.content-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #1a4f8b;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
    transition: transform 0.3s;
}

.content-list li:hover {
    transform: translateX(5px);
    background: #f0f4f8;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breadcrumb-item {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #a0aec0;
}

.breadcrumb-item:last-child {
    color: #1a4f8b;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.alert-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
}

.alert-warning {
    background: #fffaf0;
    border: 1px solid #feebc8;
    color: #c05621;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

/* Print Styles */
@media print {
    body {
        background: #ffffff;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #000000;
    }

    .btn,
    .breadcrumbs {
        display: none;
    }
}

/* Scrolling Notifications */
.notifications-scroll {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 400px;
    background: #ffffff;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.notifications-header {
    background: #1a4f8b;
    color: #ffffff;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifications-header i {
    margin-right: 8px;
}

.notifications-content {
    height: 350px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #e1e8f0;
    transition: all 0.3s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-date {
    font-size: 12px;
    color: #e74c3c;
    margin-bottom: 5px;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a4f8b;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-text {
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.5;
}

@keyframes tickerScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Scrollbar Styling */
.notifications-content::-webkit-scrollbar {
    width: 6px;
}

.notifications-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notifications-content::-webkit-scrollbar-thumb {
    background: #1a4f8b;
    border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover {
    background: #154075;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h5 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .notifications-scroll {
        display: none;
    }
}

/* News Ticker */
.news-ticker-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.news-ticker-header {
    background: #1a4f8b;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-ticker-header i {
    color: #e74c3c;
}

.news-ticker {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.news-ticker-content {
    animation: tickerScroll 20s linear infinite;
    padding: 0;
    margin: 0;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    padding: 15px;
    border-bottom: 1px solid #e1e8f0;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
    background: #ffffff;
}

.news-ticker-item:hover {
    background: #f8fafc;
    padding-left: 20px;
}

.news-ticker-date {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.news-ticker-title {
    color: #1a4f8b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-ticker-text {
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes tickerScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@media (max-width: 768px) {
    .news-ticker-container {
        display: none;
    }
}

/* Responsive Images */
.content-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* Department Pages Specific */
.department-content img,
.principal-message img {
    max-width: 300px;
    height: auto;
    float: left;
    margin: 0 20px 10px 0;
}

/* Notifications Section */
.notification-item {
    padding: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .department-content img,
    .principal-message img {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 15px auto;
    }
}

/* Content Layout */
.content-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e1e8f0;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #1a4f8b, #e74c3c);
}

/* About Us Page */
.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.about-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-content img {
    max-width: 400px;
    height: auto;
    float: right;
    margin: 0 0 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #1a4f8b, #e74c3c);
}

.about-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Department Pages */
.department-section {
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.department-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    border-radius: 8px;
}

.department-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #ffffff;
    border: none;
}

.department-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.department-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
}

/* Latest Notifications */
.notifications-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.notification-item {
    padding: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1a4f8b;
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateX(5px);
    background: #f0f4f8;
}

.notification-date {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.notification-title {
    color: #1a4f8b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.notification-text {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}

/* Careers Page */
.careers-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.career-item {
    padding: 25px;
    margin-bottom: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
}

.career-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8f0;
}

.career-title {
    color: #1a4f8b;
    font-size: 20px;
    font-weight: 600;
}

.career-meta {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
}

.career-details {
    margin-top: 15px;
}

.career-details h4 {
    color: #1a4f8b;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.career-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-details li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #2c3e50;
}

.career-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a4f8b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-section,
    .about-section,
    .department-section,
    .notifications-section,
    .careers-section {
        padding: 20px;
    }

    .about-header h2,
    .department-header h2 {
        font-size: 22px;
    }

    .notification-item,
    .career-item {
        padding: 15px;
    }

    .career-header {
        flex-direction: column;
        gap: 10px;
    }

    .about-grid,
    .department-content {
        grid-template-columns: 1fr;
    }
}

/* Department Page Styles */
.department-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* HOD Welcome Section */
.hod-welcome {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 40px 0;
    margin-bottom: 40px;
}

.hod-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.hod-image {
    text-align: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hod-info {
    text-align: center;
}

.hod-info h3 {
    color: #1a4f8b;
    margin-bottom: 5px;
    font-size: 19px; /* 1.2rem converted to px */
}

.hod-info p {
    color: #666;
    margin: 0;
    font-size: 14px; /* 0.9rem converted to px */
}

.hod-message {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hod-message h2 {
    color: #1a4f8b;
    margin-bottom: 20px;
    font-size: 29px; /* 1.8rem converted to px */
    position: relative;
    padding-bottom: 10px;
}

.hod-message h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1a4f8b;
}

.message-content p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Department Overview Section */
.department-overview {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.department-overview h2 {
    color: #1a4f8b;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.department-overview p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* Faculty Section */
.faculty-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.faculty-section h2 {
    color: #1a4f8b;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faculty-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-card h3 {
    color: #1a4f8b;
    margin-bottom: 5px;
    font-size: 29px; /* 1.8rem converted to px */
}

.designation {
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.qualification p {
    color: #444;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Labs Section */
.labs-section {
    padding: 40px 0;
    background: #fff;
}

.labs-section h2 {
    color: #1a4f8b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 29px; /* 1.8rem converted to px */
}

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

.lab-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-5px);
}

.lab-card h3 {
    color: #1a4f8b;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.equipment-list h4 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1rem;
}

.equipment-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-list li {
    color: #444;
    margin-bottom: 8px;
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.equipment-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a4f8b;
}

/* Courses Section */
.courses-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.courses-section h2 {
    color: #1a4f8b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 29px; /* 1.8rem converted to px */
}

.courses-list {
    max-width: 800px;
    margin: 0 auto;
}

.course-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateX(5px);
}

.course-item h3 {
    color: #1a4f8b;
    margin-bottom: 10px;
    font-size: 19px; /* 1.2rem converted to px */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hod-profile {
        grid-template-columns: 1fr;
    }

    .hod-image {
        margin-bottom: 30px;
    }

    .faculty-grid,
    .labs-grid {
        grid-template-columns: 1fr;
    }

    .department-page {
        padding: 20px 0;
    }

    .hod-message,
    .lab-card,
    .faculty-card {
        padding: 20px;
    }
}

/* Payment Section Styles */
.payment-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.payment-section h2 {
    color: #1a4f8b;
    margin-bottom: 20px;
    font-size: 29px; /* 1.8rem converted to px */
}

.payment-info {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.payment-info h3 {
    color: #1a4f8b;
    margin-bottom: 15px;
    font-size: 22px; /* 1.4rem converted to px */
}

.payment-steps {
    margin: 25px 0;
}

.payment-steps h4 {
    color: #1a4f8b;
    margin-bottom: 10px;
    font-size: 19px; /* 1.2rem converted to px */
}

.payment-steps ol {
    padding-left: 20px;
}

.payment-steps li {
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px; /* 0.9rem converted to px */
}

.payment-steps a {
    color: #1a4f8b;
    text-decoration: none;
    font-weight: 500;
}

.payment-steps a:hover {
    text-decoration: underline;
}

.payment-note {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a4f8b;
}

.payment-note p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px; /* 0.9rem converted to px */
}

.payment-note p:last-child {
    margin-top: 5px;
    font-size: 14px; /* 0.9rem converted to px */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .payment-info {
        padding: 20px;
    }
    
    .payment-steps li {
        font-size: 0.9rem;
    }
}

/* Common Page Styles */
.page-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 40px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.page-content {
    padding: 40px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Course Page Styles */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card h3 {
    color: #1a4f8b;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-details {
    margin-top: 15px;
}

.course-details ul {
    list-style: none;
    padding: 0;
}

.course-details li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.course-details li::before {
    content: "•";
    color: #1a4f8b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Syllabus Page Styles */
.syllabus-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.syllabus-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.syllabus-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.syllabus-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.semester-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 79, 139, 0.1);
}

.semester-card h3 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
    position: relative;
}

.subject-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #1a4f8b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.subject-item:hover {
    transform: translateX(5px);
    background: #f0f4f8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.subject-code {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
}

.subject-name {
    color: #1a4f8b;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.subject-details {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

/* Facilities Page Styles */
.facilities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.facilities-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.facilities-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.facilities-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.facility-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 79, 139, 0.1);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.facility-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-content {
    padding: 30px;
}

.facility-content h3 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 15px;
}

.facility-content p {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.facility-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.facility-features ul {
    list-style: none;
    padding: 0;
}

.facility-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #2c3e50;
    font-size: 15px;
    transition: all 0.3s ease;
}

.facility-features li::before {
    content: "✓";
    color: #1a4f8b;
    position: absolute;
    left: 0;
    font-weight: bold;
    background: rgba(26, 79, 139, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.facility-features li:hover {
    transform: translateX(5px);
    color: #1a4f8b;
}

/* Fee Structure Styles */
.fee-structure {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.fee-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.fee-table {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.fee-table th {
    background: #1a4f8b;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.fee-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8f0;
    color: #2c3e50;
    font-size: 15px;
}

.fee-table tr:last-child td {
    border-bottom: none;
}

.fee-table tr:hover td {
    background: #f8f9fa;
}

.fee-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Photo Gallery Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    aspect-ratio: 3/2;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-info-card h3 {
    color: #1a4f8b;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.contact-details {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    color: #1a4f8b;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-text {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #1a4f8b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.1);
}

.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .syllabus-header,
    .facilities-header,
    .fee-header,
    .gallery-header,
    .contact-header {
        padding: 20px;
    }

    .facility-image {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .fee-table {
        display: block;
        overflow-x: auto;
    }
}

/* Contact Page Enhanced Styles */
.contact-page {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 40px 0;
}

.contact-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.contact-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(26, 79, 139, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-card h3 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.contact-icon {
    color: #1a4f8b;
    font-size: 28px;
    background: rgba(26, 79, 139, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    color: #1a4f8b;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 79, 139, 0.1);
}

.contact-form h3 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #1a4f8b;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 79, 139, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 79, 139, 0.3);
}

/* Tenders Page Styles */
.tenders-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tenders-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tenders-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.tenders-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tender-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 79, 139, 0.1);
    transition: all 0.3s ease;
}

.tender-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.tender-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8f0;
}

.tender-title {
    color: #1a4f8b;
    font-size: 22px;
    font-weight: 600;
}

.tender-date {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.tender-details {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tender-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: #1a4f8b;
    font-size: 18px;
    background: rgba(26, 79, 139, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.meta-label {
    font-size: 14px;
    color: #666;
}

.tender-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.tender-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-download {
    background: #1a4f8b;
    color: #ffffff;
}

.btn-download:hover {
    background: #154075;
    transform: translateY(-2px);
}

/* Scholarship Page Styles */
.scholarships-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.scholarships-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.scholarships-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.scholarships-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.scholarship-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 79, 139, 0.1);
    transition: all 0.3s ease;
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.scholarship-title {
    color: #1a4f8b;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.scholarship-content {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.eligibility-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.eligibility-list h3 {
    color: #1a4f8b;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eligibility-list h3 i {
    color: #e74c3c;
}

.eligibility-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #2c3e50;
    font-size: 15px;
}

.eligibility-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a4f8b;
}

.scholarship-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deadline {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
}

/* Enhanced Gallery Page Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

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

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #f8f9fa;
    color: #1a4f8b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a4f8b;
    color: #ffffff;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #ffffff;
}

.gallery-caption p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tenders-header,
    .scholarships-header,
    .gallery-header {
        padding: 30px 20px;
    }

    .tender-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .tender-meta {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Department Pages Styling */
.dept-header {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dept-header h1 {
    color: #ffffff;
    font-size: 32px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.dept-overview {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dept-overview h2 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
}

.dept-overview p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.faculty-section, .labs-section, .courses-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faculty-section h2, .labs-section h2, .courses-section h2 {
    color: #1a4f8b;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
}

.faculty-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.faculty-table th {
    background: #f8f9fa;
    color: #1a4f8b;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e1e8f0;
}

.faculty-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8f0;
}

.faculty-table tr:hover {
    background: #f8f9fa;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lab-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-5px);
}

.lab-card h3 {
    color: #1a4f8b;
    font-size: 18px;
    margin-bottom: 10px;
}

.lab-card p {
    color: #2c3e50;
    font-size: 14px;
    margin: 0;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-list li {
    padding: 15px;
    border-bottom: 1px solid #e1e8f0;
    color: #2c3e50;
    font-size: 16px;
    position: relative;
    padding-left: 30px;
}

.course-list li:before {
    content: "•";
    color: #1a4f8b;
    font-size: 24px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.construction-message {
    background: #ffffff;
    padding: 60px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.construction-content {
    max-width: 600px;
    margin: 0 auto;
}

.construction-content i {
    color: #1a4f8b;
    margin-bottom: 30px;
}

.construction-content h2 {
    color: #1a4f8b;
    font-size: 28px;
    margin-bottom: 20px;
}

.construction-content p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8f0;
}

.contact-info a {
    color: #1a4f8b;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dept-header {
        padding: 30px 20px;
    }

    .dept-header h1 {
        font-size: 24px;
    }

    .faculty-table {
        display: block;
        overflow-x: auto;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Components - Merged from custom.css */
/* Carousel Styles */
.carousel {
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-inner {
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0,0,0,0.2);
}

/* Notifications Scroll Section */
.notifications-scroll {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notifications-scroll h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2C3E50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F39C12;
}

.view-all {
    color: #1a4f8b;
    text-decoration: none;
    font-size: 14px; /* 0.9rem converted to px */
}

.view-all:hover {
    color: #E74C3C;
}

.scroll-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.notification-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.notification-item .date {
    color: #666;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.notification-item h3 {
    color: #1a4f8b;
    margin-bottom: 5px;
    font-size: 18px; /* 1.1rem converted to px */
}

.notification-item p {
    margin: 0;
    color: #666;
    font-size: 14px; /* 0.9rem converted to px */
}

/* Scrollbar styling */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 480px) {
    /* Small mobile fixes */
    .institution-info h1 {
        font-size: 14px;
    }
    
    .institution-info h2,
    .institution-info h3 {
        font-size: 9px;
    }
    
    /* Content area padding fixes */
    .content-area {
        padding: 10px;
    }
    
    /* Footer spacing fixes */
    footer {
        padding: 20px 0 0;
    }
    
    footer .cols {
        gap: 15px;
    }
    
    /* Button sizing fixes */
    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* Improved header layout for mobile devices */
@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .top-bar {
        padding: 5px 0;
    }
    
    .portal-link {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* Fix for hero section content */
    .welcome-section {
        padding: 15px;
    }
    
    .welcome-content {
        font-size: 14px;
    }
    
    /* Improve news ticker display */
    .news-ticker-container {
        height: auto;
        max-height: 200px;
    }
}

/* Mobile Navigation Visibility */
.bottom-nav,
.nav-expand {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav,
    .nav-expand {
        display: flex; /* or block, depending on your layout */
    }
}

/* Main Navigation */
.nav {
    background: linear-gradient(135deg, #1a4f8b, #2c3e50);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1000;
}

/* Navigation Container */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    height: 48px;
}

/* Navigation Items */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 2px;
}

/* Navigation Links */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: -0.2px;
    border-radius: 4px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active Link */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active::after {
    width: 100%;
}

/* Highlight Link */
.nav-link.highlight {
    background: linear-gradient(135deg, #e74c3c, #d44235);
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link.highlight:hover {
    background: linear-gradient(135deg, #d44235, #c1392b);
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-link {
    padding: 8px 16px;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #1a4f8b;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        right: 15px;
        top: 15px;
        background-color: #1a4f8b;
        color: white;
        font-size: 28px;
        width: 44px;
        height: 44px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
    }
    
    .menu-toggle:hover {
        background-color: #2c3e50;
    }
    
    .nav-list {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 0 15px;
        background: linear-gradient(135deg, #1a4f8b, #2c3e50);
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
        height: auto;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        border-radius: 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        padding: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-item.active .dropdown-content {
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 8px 0;
    }
    
    .dropdown-link {
        color: #fff;
        padding: 8px 30px;
    }
    
    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    /* Mobile dropdown toggle */
    .nav-item.dropdown .nav-link:after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s;
    }
    
    .nav-item.dropdown.active .nav-link:after {
        transform: translateY(-50%) rotate(180deg);
    }
}
