/* === Final Advanced & Professional Theme === */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --gradient-start: #e3eeff;
    --gradient-end: #f3e7e9;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    padding-top: 90px; /* Adjusted for fixed navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

body::before {
    width: 400px;
    height: 400px;
    background: rgba(13, 110, 253, 0.15);
    top: -100px;
    left: -100px;
    animation: moveShape 20s infinite alternate;
}


@keyframes moveShape {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(100px, 50px) rotate(30deg);
    }
}

/* --- Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.8rem 0;
}

/* Updated Navbar Brand Logo */
.logo-img {
    height: 40px; /* Adjust height as needed */
}


.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Login Button */
.btn-login {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* --- Hero Section --- */
.hero-section {
    padding: 7rem 0;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.typewriter {
    color: var(--primary-color);
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-section .btn {
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
}

.hero-section img {
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
}

/* --- General Section & Card Styling --- */
.section-padding { padding: 6rem 0; }

.section-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4rem !important;
    text-align: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- Gallery Section --- */
.gallery-section { background-color: var(--bg-white); }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
.gallery-overlay h5 {
    font-weight: 700;
}

/* --- Quick Links (Icon based) --- */

.icon-box {
    text-align: center;
    padding: 2rem;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.icon-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.icon-box h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.icon-box:hover .icon { transform: scale(1.2); }

/* --- Syllabus Page --- */
.syllabus-card { position: relative; text-align: left !important; }
.syllabus-card .chapter-no {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    z-index: 0;
}
.syllabus-card .card-icon, .syllabus-card .card-title, .syllabus-card .card-desc, .syllabus-card .tags {
    position: relative;
    z-index: 1;
}
.syllabus-card .card-title { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.5rem; }
.syllabus-card .card-desc { font-size: 0.95rem; color: var(--text-light); min-height: 50px; }
.syllabus-card .tags { margin-top: 1.5rem; }
.syllabus-card .tag {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- Batches & Features Page --- */
.batch-card h3, .feature-card h3 { color: var(--primary-dark); font-weight: 600; }
.feature-card .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* --- Instructor Card --- */
/* --- Instructor Card --- */
.instructor-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative; /* Needed for image positioning */
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.instructor-header {
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    height: 100px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.instructor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.instructor-body {
    padding: 80px 1.5rem 1.5rem;
}

.instructor-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.instructor-subject {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.instructor-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 50px;
}

.instructor-social {
    margin-top: 1.5rem;
}

/* --- Portal & Modal --- */
.login-section { min-height: 80vh; }
.login-box { max-width: 450px; }
.login-box h2 { color: var(--primary-dark); font-weight: 700; }

/* --- Notice Modal --- */
.notice-modal-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
    overflow: hidden;
}
.notice-modal-content .btn-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    background-color: #f1f1f1;
    border-radius: 50%;
    opacity: 0.8;
}
.notice-modal-content .btn-close:hover { opacity: 1; }
.notice-modal-content .modal-body {
    padding: 3rem;
}
.notice-modal-content .modal-title {
    color: var(--primary-color);
    font-weight: 800 !important;
    font-size: 1.75rem;
}
.notice-modal-content .btn-primary {
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

/* --- Ticker --- */
.live-notice { background-color: var(--primary-dark); color: #fff; padding: 0.8rem 0; overflow: hidden; }

/* --- Footer Section --- */
.site-footer {
    background-color: #111214;
    color: rgba(255, 255, 255, 0.7);
}


.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.footer-links, .footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-links li, .footer-section .row > div {
    margin-top: 1rem; /* Adjusts title alignment */
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-contact {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    margin-right: 0.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.play { background-color: #000; border: 1px solid #fff;}

.social-icon:hover {
    transform: scale(1.1);
    color: #fff;
}


.copyright-bar {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.developer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.developer-link:hover { color: #fff; }

/* --- Profile Picture in Nav --- */
.profile-picture-nav {
    width: 40px;
    height: 40px;
}

.dropdown-toggle::after { display: none; } /* Hide default dropdown arrow */

/* --- Advanced Profile Page --- */
.profile-card-advanced {
    background-color: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.08);
    padding: 2.5rem;
}

.profile-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-user-info {
    margin-left: 1.5rem;
}

.profile-name {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-email {
    color: var(--text-light);
    font-size: 1rem;
}

.profile-actions {
    margin-left: auto;
}

.profile-actions .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.profile-card-body {
    padding-top: 2rem;
}

.stats-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: transparent;
}

.stat-card h5 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* --- About Us Page --- */
.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.about-list i {
    margin-top: 5px;
}

.icon-box-about {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
