/* Frontend Custom Styles for LearnSys */
/* Aligned with admin panel styling for consistency */

/* ===== GENERAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #212529;
}

input::placeholder, 
::-webkit-input-placeholder, 
::-moz-placeholder, 
:-ms-input-placeholder, 
::-ms-input-placeholder,
::placeholder {
    color: #90979c !important;
}

/* Additional placeholder styling for form controls */
.form-control::placeholder {
    color: #90979c !important;
}

textarea::placeholder,
textarea::-webkit-input-placeholder,
textarea::-moz-placeholder,
textarea:-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #90979c !important;
}

/* Force placeholder color for all input types */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="time"]::placeholder,
input[type="datetime-local"]::placeholder {
    color: #90979c !important;
}

/* Override any Bootstrap or framework placeholder styles */
.form-control::placeholder,
.form-control::-webkit-input-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder,
.form-control::-ms-input-placeholder {
    color: #90979c !important;
    opacity: 1;
}

/* Most specific placeholder override - should work in all cases */
body input::placeholder,
body textarea::placeholder,
body .form-control::placeholder {
    color: #90979c !important;
    opacity: 1 !important;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #35b1a2 !important;
}

.navbar-toggler {
    border-color: transparent;
    position: relative;
    width: 24px;
    height: 24px;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    background: none;
    position: relative;
    border: none;
}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .dropdown-menu {
        left: auto;
        right: 0px;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0px;
        width: 100%;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding: 12px 20px;
        transition: background-color 0.2s ease;
    }
    .navbar-collapse .navbar-nav .nav-link:hover, .navbar-collapse .navbar-nav .nav-link:active, .navbar-collapse .navbar-nav .nav-link:focus {
        color: #333 !important;
        background-color: rgba(53, 177, 162, 0.1);
    }

    .navbar-collapse .navbar-nav .dropdown-menu {
        box-shadow: none;
    }

    .navbar-collapse .navbar-nav .dropdown-item:hover, .navbar-collapse .navbar-nav .dropdown-item:active, .navbar-collapse .navbar-nav .dropdown-item:focus {
        color: #333 !important;
        background-color: rgba(53, 177, 162, 0.1);
    }
}

/* Animated Hamburger Icon */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.navbar-toggler-icon {
    background-color: #333333;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Hamburger to Cross Animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

a {
    color: #35b1a2;
    text-decoration: none;
}
a:hover, a:focus, a:active {
    color: #2f878d;
    text-decoration: none;
}

/* Footer */
.footer {
    text-align: left;
}

/* Student Dropdown Styling */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0;
    min-width: 200px;
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.navbar-nav .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.navbar-nav .dropdown-item i {
    width: 16px;
    text-align: center;
}

.navbar-nav .dropdown-divider {
    margin: 8px 0;
    border-color: #e9ecef;
}

/* Student Dashboard Sidebar */
.student-sidebar .nav-link {
    padding: 12px 20px;
    color: #333;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.student-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #35b1a2;
    text-decoration: none;
}

.student-sidebar .nav-link.active {
    background-color: #35b1a2;
    color: white;
    font-weight: 500;
}

.student-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.student-sidebar .nav-link.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-top: 0;
}

/* Fix for fixed navbar overlap - calculate navbar height dynamically */
.navbar-fixed-top,
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 70px;
}

/* Reserve space for fixed navbar - this will be calculated by JavaScript */
body {
    padding-top: 70px; /* Default navbar height */
    --navbar-height: 70px; /* CSS custom property for navbar height */
}

/* Apply calculated navbar height as margin to hero section */
.hero-section {
    margin-top: 0; /* Will be set by JavaScript */
}

/* Fallback for when JavaScript is not available - adjust this value based on your navbar height */
.no-js .hero-section {
    margin-top: 0; /* No margin needed since body has padding-top */
}

/* Additional fallback - this should work for most Bootstrap navbars */
.hero-section {
    margin-top: 0; /* No margin needed since body has padding-top */
}

/* Override for larger navbars */
@media (min-width: 768px) {
    .hero-section {
        margin-top: 0; /* No margin needed since body has padding-top */
    }
}

/* Hero section with proper spacing for fixed navbar */
.hero-section {
    position: relative;
    z-index: 1;
}

/* Ensure content starts below navbar */
.navbar-fixed-top + .hero-section {
    margin-top: 0;
}

/* 
 * NAVBAR HEIGHT FIX - Add this script to the <head> section of your HTML pages:
 * 
 * <script>
 * (function() {
 *     function fixNavbarOverlap() {
 *         var navbar = document.querySelector('.navbar-fixed-top') || 
 *                     document.querySelector('.navbar') || 
 *                     document.querySelector('nav');
 *         var heroSection = document.querySelector('.hero-section');
 *         
 *         if (navbar && heroSection) {
 *             var navbarHeight = navbar.offsetHeight;
 *             heroSection.style.marginTop = navbarHeight + 'px';
 *             console.log('Fixed navbar overlap - Height:', navbarHeight + 'px');
 *         }
 *     }
 *     
 *     // Run immediately
 *     fixNavbarOverlap();
 *     
 *     // Run when DOM is ready
 *     if (document.readyState === 'loading') {
 *         document.addEventListener('DOMContentLoaded', fixNavbarOverlap);
 *     }
 *     
 *     // Run on resize
 *     window.addEventListener('resize', function() {
 *         setTimeout(fixNavbarOverlap, 100);
 *     });
 *     
 *     // Run when navbar content changes
 *     var navbar = document.querySelector('.navbar-fixed-top') || 
 *                 document.querySelector('.navbar') || 
 *                 document.querySelector('nav');
 *     if (navbar) {
 *         var observer = new MutationObserver(function() {
 *             setTimeout(fixNavbarOverlap, 50);
 *         });
 *         observer.observe(navbar, { 
 *             childList: true, 
 *             subtree: true, 
 *             attributes: true
 *         });
 *     }
 * })();
 * </script>
 */

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #33374b;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Feature Cards */
.feature-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card i {
    margin-bottom: 1rem;
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Course Thumbnail Styling */
.course-thumbnail {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

/* Team Cards */
.team-card {
    transition: box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Stats Section */
.stats-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Filter Section */
.filter-section {
    background-color: #f8f9fa;
    padding: 30px 0;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #35b1a2 0%, #2f8d82 100%);
    box-shadow: 0 2px 4px rgba(16, 58, 121, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #35a9b1 0%, #2f878d 100%);
    box-shadow: 0 4px 8px rgba(16, 58, 121, 0.4);
    border: 1px solid transparent;
}

.btn-outline-primary {
    color: #35b1a2;
    border-color: #35b1a2;
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus, .btn-outline-primary:first-child:active {
    background-color: #35b1a2;
    border-color: #35b1a2;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ab45f 0%, #3ab86a 100%);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #28b159 0%, #20954a 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #0da5d3 0%, #1165a7 100%);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0d9cd3 0%, #1142a7 100%);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #fdca2f 0%, #f4a90d 100%);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffc312 0%, #eb8f0f 100%);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #f13863 0%, #e12c3e 100%);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d72c3c 0%, #d92837 100%);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3C4157 0%, #33374B 100%);
    box-shadow: 0 2px 4px rgba(16, 58, 121, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #33374B 0%, #202538 100%);
    box-shadow: 0 4px 8px rgba(16, 58, 121, 0.4);
}

.btn-no-outline {
    border-color: transparent;
}

/* ===== BADGE STYLES ===== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-success {
    background: linear-gradient(135deg, #2ab45f 0%, #3ab86a 100%);
}

.badge-danger {
    background: linear-gradient(135deg, #f13863 0%, #e12c3e 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #fdca2f 0%, #f4a90d 100%);
    color: #212529;
}

.badge-info {
    background: linear-gradient(135deg, #0da5d3 0%, #1165a7 100%);
}

/* ===== FORM STYLES ===== */
.form-control, .form-select {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #35b1a2;
    box-shadow: none;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer .social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
}

/* Banner Slider - full-width so background covers entire hero */
.banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.banner-slide {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    display: flex;
}

/* Homepage: per-slide background images (section uses transparent so slide bg shows) */
.hero-section.homepage-hero-slider {
    background: transparent;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.hero-section.homepage-hero-slider .banner-slider {
    min-height: 380px;
}
.hero-section.homepage-hero-slider .banner-slide {
    /* Fallback when no image is set (admin can set per-slide or single banner image) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 380px;
}
.hero-section.homepage-hero-slider > .container { 
    position: absolute; 
    max-width: 100%;
    bottom: 20px;
}

.banner-dots {
    text-align: center;
    margin-top: 20px;
}

.banner-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-dot.active {
    background-color: white;
}

/* Search Section */
.search-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Statistics */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #35b1a2;
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-info {
    margin-bottom: 1rem;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #35b1a2;
    margin-top: 5px;
}

/* Course Details */
.course-header {
    background: linear-gradient(135deg, #3C4157 0%, #33374B 100%);
    color: white;
    padding: 20px 0 35px 0;
}

.course-header .breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}

.course-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.course-feature i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #35b1a2;
}

.enrollment-card {
    position: sticky;
    top: 90px;
}

/* Course Content List */
.course-content-list {
    margin-top: 1rem;
}

.course-content-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.course-content-item:hover {
    background-color: #e9ecef;
}

.course-content-item:last-child {
    margin-bottom: 0;
}

.course-content-item[aria-expanded="true"] {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.course-content-item[aria-expanded="true"] .content-chevron i {
    transform: rotate(90deg);
}

.content-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.content-icon i {
    font-size: 14px;
    color: #6c757d;
}

.content-chevron {
    width: 16px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.content-chevron i {
    font-size: 12px;
    color: #6c757d;
}

.content-text {
    flex: 1;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.course-content-detail {
    margin-top: -8px;
    margin-bottom: 8px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.content-body {
    padding: 16px 20px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* Course Sessions */
.course-sessions {
    margin-top: 1rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.session-item:hover {
    background-color: #e9ecef;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.session-title i {
    margin-right: 8px;
    color: #35b1a2;
    font-size: 12px;
}

.session-duration {
    font-size: 12px;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}


/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===== TABLE STYLES ===== */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: #fbfbfb;
    color: #202538;
    border: none;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #eff3f6;
}   

.table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #dee2e6;
    border-bottom: 0px;
    vertical-align: middle;
}

.table tbody tr:hover  > * {
    background-color: #eff3f6;
    --bs-table-bg-state: #eff3f6;
}

.page-link {
    border: 0;
    color: #35b1a2;
    background-color: transparent;
}

.page-item.active .page-link {
    background-color: #35b1a2;
    border-color: #35b1a2;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: transparent;
    border-color: #dee2e6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    /*.contact-item {
        flex-direction: column;
        text-align: center;
    }*/
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Mobile icon sizing adjustments */
    .badge i {
        font-size: 0.7em;
    }
    
    .btn i {
        font-size: 0.8em;
    }
    
    .contact-item i {
        font-size: 0.9em;
    }

}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ICON SIZING ===== */
/* Badge icons - smaller size for better proportion */
.badge i {
    font-size: 0.8em;
}

/* Button icons - medium size */
.btn i {
    font-size: 0.9em;
}

/* Navigation icons - standard size */
.navbar-nav .nav-link i {
    font-size: 0.9em;
}

/* Dropdown icons - smaller size */
.dropdown-item i {
    font-size: 0.85em;
}

/* Hero section icons - slightly larger but not too big */
.hero-section .badge i {
    font-size: 0.9em;
}

/* Card header icons - medium size */
.card-header i {
    font-size: 1em;
}

/* Contact icons - medium size */
.contact-item i {
    font-size: 1.1em;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.border-radius-lg {
    border-radius: 10px;
}

.border-radius-xl {
    border-radius: 15px;
}

/* Common utility classes aligned with admin */
.text-primary {
    color: #35b1a2 !important;
}

.bg-primary {
    background-color: #35b1a2 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0da5d3 !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* ===== STUDENT SIDEBAR STYLES ===== */
.student-sidebar {
    background: #33374b;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.sidebar-header {
    background: #33374b;
    padding: 20px;
    text-align: center;
    color: white;
    border-bottom: 1px solid #34495e;
}

.profile-avatar {
    margin-bottom: 15px;
}

.profile-avatar i {
    font-size: 3rem;
    color: #35b1a2;
}

.student-name {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.student-id {
    color: #bdc3c7;
    font-size: 0.85rem;
}

.sidebar-menu {
    padding: 0;
    background: #33374b;
}

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

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.sidebar-menu a:hover {
    background-color: rgba(53, 177, 162, 0.1);
    color: white;
    text-decoration: none;
}

.sidebar-menu a:hover i {
    color: #35b1a2;
}

.sidebar-menu a.active {
    background-color: #35b1a2;
    color: white;
    border-right: none;
}

.sidebar-menu a.active i {
    color: white;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    transition: color 0.3s ease;
    color: #bdc3c7;
}

.logout-item {
    border-top: 1px solid #34495e;
    margin-top: 10px;
}

.logout-link {
    color: #e74c3c !important;
}

.logout-link:hover {
    background-color: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
}

.logout-link i {
    color: #e74c3c !important;
}

/* ===== FOOTER STYLES ===== */
.student-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

.student-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Sticky footer behavior */
.student-portal-container {
    min-height: calc(100vh - 66px);
    display: flex;
    width: 100%;
    padding: 0;
}

.student-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.student-main-content .table {
    box-shadow: none;
    margin-bottom: 0px;
}

.student-table .card-body {
    padding: 0;
}

/* Dashboard - Page Title */
.page-title-box {
    color: #2d3b48;
    background: transparent;
    margin-bottom: 0px;
    padding: 2.5rem 0 1.5rem;
}

.page-title-box .page-title {
    color: #2d3b48;
    font-size: 28px;
    margin-bottom: 1rem;
}

.page-title-box .text-muted {
    margin-bottom: 0px;
}

/* ===== MOBILE RESPONSIVE STUDENT SIDEBAR - PROFILE ALWAYS VISIBLE ===== */

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    padding: 10px 15px;
    background: #2c3e50;
    border-bottom: 1px solid #34495e;
}

.mobile-nav-toggle .btn {
    background: transparent;
    border: 1px solid #35b1a2;
    color: #35b1a2;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mobile-nav-toggle .btn:hover {
    background: #35b1a2;
    border-color: #35b1a2;
    color: white;
}

.mobile-nav-toggle .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(53, 177, 162, 0.25);
}

/* Mobile Behavior - Profile Always Visible, Menu Collapsible */
@media (max-width: 767.98px) {
    /* Profile section always visible */
    .sidebar-header {
        display: block !important;
        position: relative;
        z-index: 1;
    }
    
    /* Mobile nav toggle button styling */
    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 1;
    }
    
    /* Menu items - collapsible */
    .sidebar-menu {
        position: relative;
        z-index: 0;
        background: #33374b;
        border-top: 1px solid #34495e;
    }
    
    /* When menu is collapsed on mobile */
    .sidebar-menu:not(.show) {
        display: none;
    }
    
    /* When menu is expanded on mobile */
    .sidebar-menu.show {
        display: block;
    }
    
    /* Adjust main content for mobile */
    .student-main-content {
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile sidebar menu items */
    .sidebar-menu a {
        padding: 18px 20px;
    }
    
    .sidebar-menu a i {
        width: 24px;
        margin-right: 15px;
        font-size: 1.1rem;
    }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    /* Hide mobile toggle button */
    .mobile-nav-toggle {
        display: none !important;
    }
    
    /* Show menu normally */
    .sidebar-menu {
        display: block !important;
    }
    
    /* Profile section normal behavior */
    .sidebar-header {
        display: block !important;
    }
    
    /* Set maximum width for student sidebar on desktop */
    .student-sidebar {
        max-width: 300px;
        width: 100%;
    }
    
    /* Adjust column widths to prevent gap */
    .col-md-3 {
        flex: 0 0 300px;
        max-width: 300px;
    }
    
    .col-md-9 {
        flex: 0 0 calc(100% - 300px);
        max-width: calc(100% - 300px);
    }
}

/* Courses page sidebar styling */
.course-filter-sidebar {
    padding: 0 1.5rem;
}

.course-filter-sidebar h5 {
    color: #35b1a2;
    font-weight: 600;
    border-bottom: 2px solid #35b1a2;
    padding-bottom: 0.75rem;
}

.course-filter-sidebar .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.course-filter-sidebar .form-control,
.course-filter-sidebar .form-select {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.course-filter-sidebar .form-control:focus,
.course-filter-sidebar .form-select:focus {
    border-color: #35b1a2;
    box-shadow: 0 0 0 0.2rem rgba(53, 177, 162, 0.25);
}

.course-filter-sidebar .category-checkboxes {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.course-filter-sidebar .form-check {
    margin-bottom: 0.5rem;
}

.course-filter-sidebar .form-check:last-child {
    margin-bottom: 0;
}

.course-filter-sidebar .form-check-input:checked {
    background-color: #35b1a2;
    border-color: #35b1a2;
}

.course-filter-sidebar .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(53, 177, 162, 0.25);
}

.course-filter-sidebar .form-check-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .course-filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Ensure proper spacing for mobile layout */
@media (max-width: 767.98px) {
    .student-portal-container .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .student-portal-container .col-md-3,
    .student-portal-container .col-md-9 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Enhanced Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #35b1a2;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #35b1a2;
    border-color: #35b1a2;
}

.pagination .page-item.active .page-link {
    background-color: #35b1a2;
    border-color: #35b1a2;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border-color: transparent;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* Results info styling */
.text-muted {
    font-size: 0.9rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
        margin: 1px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center !important;
        gap: 1rem;
    }
}

/* ========================================
   Accordion Styles - FAQ Section
   ======================================== */

/* Accordion container */
.accordion {
    border: none;
    box-shadow: none;
}

.accordion-header {
    margin-top: 0;
}

/* Individual accordion items */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

/* Accordion button/header */
.accordion-button {
    background-color: #fff;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    text-align: left;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Active/expanded accordion button */
.accordion-button:not(.collapsed) {
    background-color: #e0fff2;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 1px solid #d1f2eb;
}

/* Hover effect for accordion buttons */
.accordion-button:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.accordion-button:not(.collapsed):hover {
    background-color: #d1f2eb;
}

/* Focus state */
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(53, 177, 162, 0.25);
    border-color: transparent;
}

/* Accordion button icon (chevron) */
.accordion-button::after {
    transition: transform 0.3s ease;
}

/* Rotated chevron for expanded state */
.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Accordion collapse/body */
.accordion-collapse {
    border: none;
}

.accordion-body {
    padding: 1.25rem;
    background-color: #fff;
    color: #495057;
}

/* Smooth transitions */
.accordion-collapse {
    transition: height 0.3s ease;
}

/* FAQ Section specific styling */
#faqAccordion {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-item {
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   Map Section Styles
   ======================================== */

/* Map container styling */
.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

/* Ensure iframe takes full width and height */
.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* Map section title */
.map-section h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Responsive map adjustments */
@media (max-width: 768px) {
    .map-container {
        margin: 0 10px !important;
        height: 350px !important;
    }
    
    .map-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        margin: 0 5px !important;
        height: 300px !important;
        border-radius: 8px;
    }
}