:root {
    --primary-color: #1a5490;
    --secondary-color: #ff6b35;
    --accent-color: #ffd700;
    --dark-color: #0a2540;
    --light-color: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    color: #333;
}

/* Preloader Enhanced */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#status {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Top Header with Logo and Login */
.top-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-section h1 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.auth-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.auth-buttons a {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-login {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-login:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.btn-register {
    background: var(--accent-color);
    color: var(--dark-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(255,215,0,0.3);
}

.btn-register:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,215,0,0.5);
}

/* Main Navigation - UPDATED */
.main-navigation {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation .navbar {
    padding: 0;
}

.main-navigation .navbar-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-navigation .nav-item {
    margin: 0 2px;
    white-space: nowrap;
}

.main-navigation .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 20px 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    position: relative;
    transition: all 0.3s;
}

.main-navigation .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #667eea;
}

.main-navigation .nav-link:hover::before,
.main-navigation .nav-link.active::before {
    width: 80%;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 84, 144, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Slider Enhanced */
.main-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.slide-carousel {
    height: 100%;
}

.slide-carousel .item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,84,144,0.85) 0%, rgba(10,37,64,0.9) 100%);
}

.slide-carousel .text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.slide-carousel .text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide-carousel .text h3 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
    line-height: 1.6;
}

.slide-carousel .text a {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s;
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 15px 40px rgba(255,215,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-carousel .text a:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255,215,0,0.6);
    background: #ffed4e;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section Enhanced */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(26,84,144,0.1)"/></svg>');
    opacity: 0.3;
}

.about .item {
    position: relative;
    z-index: 2;
}

.about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about p {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.about .embed-responsive {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s;
}

.about .embed-responsive:hover {
    transform: scale(1.02);
}

/* Course Section Enhanced */
.course {
    padding: 120px 0;
    background: #ffffff;
}

.course h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 20px;
}

.h-bar {
    text-align: center;
    margin-bottom: 15px;
}

.h-bar i {
    font-size: 48px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.course h3 {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 60px;
    font-weight: 300;
}

.course .item {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s;
    background: white;
    height: 100%;
}

.course .item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.course .item .photo {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.course .item .photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.course .item:hover .photo::before {
    opacity: 0.7;
}

.course .item .text {
    padding: 35px 30px;
}

.course .item .text h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: left;
}

.course .item .text p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.course .btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.course .btn-primary:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

/* Department Section Enhanced */
.department {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.department::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L60 30L30 60L0 30Z" fill="rgba(255,255,255,0.05)"/></svg>');
}

.department-grid {
    position: relative;
    z-index: 2;
}

.department h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.department .h-bar i {
    color: var(--accent-color);
}

.department h3 {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
    font-size: 20px;
}

.department-grid-item .inner {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s;
    background: white;
}

.department-grid-item .inner:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.department-grid-item .photo {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.department-grid-item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.department-grid-item .inner:hover .photo img {
    transform: scale(1.15);
}

.department-grid-item .photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s;
}

.department-grid-item .inner:hover .photo::after {
    opacity: 0.6;
}

.department-grid-item .desc {
    padding: 25px;
    text-align: center;
    background: white;
}

.department-grid-item .desc h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.department-grid-item .desc h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.department-grid-item .desc h3 a:hover {
    color: var(--secondary-color);
}

/* News Section Enhanced */
.news {
    padding: 120px 0;
    background: #f8f9fa;
}

.news .heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 20px;
}

.news .heading h3 {
    text-align: center;
    color: #666;
    font-weight: 300;
    font-size: 20px;
    margin-bottom: 60px;
}

.single-news {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    background: white;
}

.single-news:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.single-news-thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.single-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.single-news:hover .single-news-thumb img {
    transform: scale(1.1) rotate(2deg);
}

.single-news-thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.4s;
}

.single-news:hover .single-news-thumb .overlay {
    opacity: 0.5;
}

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-content h2 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: var(--secondary-color);
}

.post-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-meta li {
    font-size: 13px;
    color: #999;
}

.post-meta li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.post-meta li a:hover {
    color: var(--primary-color);
}

.post-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.readmore-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.readmore-button:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
    color: white;
}

/* Apply Now Section Enhanced */
.apply-now-v1 {
    padding: 80px 0;
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.apply-now-v1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.apply-now-v1 .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.apply-now-v1 .left p {
    font-size: 28px;
    color: white;
    margin: 0;
    font-weight: 600;
}

.apply-now-v1 .right a {
    display: inline-block;
    padding: 20px 60px;
    background: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    box-shadow: 0 15px 40px rgba(255,215,0,0.4);
}

.apply-now-v1 .right a:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255,215,0,0.6);
    background: #ffed4e;
}

/* Footer Main Section */
.footer-main {
    background: linear-gradient(135deg, #0a2540 0%, #1a5490 100%);
    padding: 80px 0 40px;
    color: white;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.footer-main .container {
    position: relative;
    z-index: 2;
}

.footer-col {
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-col ul li a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    transition: left 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 25px;
}

.footer-col ul li a:hover::before {
    left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item .icon i {
    font-size: 18px;
    color: white;
}

.contact-item .text {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

/* Footer Bottom Section */
.footer-bottom {
    background: #000000;
    padding: 25px 0;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .copyright {
    text-align: center;
    font-size: 14px;
    margin: 0;
}

/* Scroll to Top Button Enhanced */
.scrollup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
    transition: all 0.3s;
    z-index: 999;
    font-size: 20px;
    display: none;
}

.scrollup:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.6);
}

/* Responsive Design */
@media (max-width: 991px) {
    .logo-section h1 {
        font-size: 24px;
    }
    
    .auth-buttons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .main-navigation .navbar-nav {
        text-align: center;
        flex-wrap: wrap;
    }
    
    .main-navigation .nav-link {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .slide-carousel .text h2 {
        font-size: 42px;
    }
    
    .slide-carousel .text h3 {
        font-size: 20px;
    }
    
    .about h3,
    .course h2,
    .department h2,
    .news .heading h2 {
        font-size: 36px;
    }
    
    .apply-now-v1 .item {
        text-align: center;
    }
    
    .apply-now-v1 .left p {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Additional Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}