/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    --primary-red: #D32F2F;
    --primary-red-dark: #b71c1c;
    --secondary-yellow: #FFC107;
    --secondary-yellow-dark: #FFA000;
    --dark-grey: #1F2937;
    --text-color: #4B5563;
    --light-bg: #F9FAFB;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-grey);
    font-weight: 700;
    line-height: 1.2;
}

/* ... existing code ... */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
section:not(footer) {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-grey);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

/* Header & Nav */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-grey);
}

/* Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.close-menu {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-login-btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* Responsive Breakpoint */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    /* Pill */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-yellow) 0%, var(--secondary-yellow-dark) 100%);
    color: #1F2937;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-grey);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 700px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;

    /* Perfect vertical centering */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;

    animation: fadeInUp 1s ease-out;
}

.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-yellow), var(--secondary-yellow-dark));
    color: var(--dark-grey);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: var(--secondary-yellow);
    border-color: white;
    transform: scale(1.3);
}

/* Fallback Hero (when no slides) */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--light-bg), transparent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 600px;
    }

    .hero-content {
        max-width: 90%;
        padding: 0 15px;
    }

    .badge-new {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        gap: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Trust Signals */
.trust-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.trust-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-10px);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    background: rgba(211, 47, 47, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0 4rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

/* Forms */
.verify-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-red);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s;
    background: #F9FAFB;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-grey);
}

/* Footer */
footer {
    background-color: #111827;
    color: #9CA3AF;
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    color: white;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
}

.section-title {
    margin-bottom: 3rem;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container nav {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        border-top: 1px solid #f3f4f6;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .trust-signals {
        margin-top: 2rem;
    }

    .course-image {
        height: 180px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------
   DASHBOARD STYLES
--------------------------- */
.dashboard-container {
    padding: 3rem 0;
    background-color: #f3f4f6;
    min-height: calc(100vh - 90px);
}

.dashboard-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    /* Ensure it wraps on small screens */
}


.student-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-red);
    border: 3px solid #eee;
}

.student-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.green {
    background: #e8f5e9;
    color: #388e3c;
}

.stat-icon.orange {
    background: #fff3e0;
    color: #f57c00;
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-grey);
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.dashboard-empty {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px dashed #ccc;
    color: #888;
}

/* --------------------------
   NEW HOMEPAGE SECTIONS
--------------------------- */

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features/Why Choose Us */
.features-section {
    padding: 6rem 0;
    background: #f0f2f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 47, 47, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.2);
    color: var(--secondary-yellow-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.testimonial-card i {
    font-size: 2rem;
    color: rgba(211, 47, 47, 0.2);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recruiters/Partners */
.recruiters-section {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid #f3f4f6;
}

.recruiters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    opacity: 0.7;
}

.recruiter-logo {
    height: 40px;
    filter: grayscale(100%);
    transition: all 0.3s;
    opacity: 0.6;
}

.recruiter-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    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-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 2rem;
}

/* --------------------------
   ADMIN PANEL STYLES
--------------------------- */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

.admin-sidebar-header h3 {
    color: var(--secondary-yellow);
    font-size: 1.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav {
    padding: 1rem 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    gap: 10px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-red);
    color: white;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f4f6f8;
    min-height: 100vh;
    padding: 2rem;
}

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

/* --------------------------
   RESPONSIVE & UI UX ENHANCEMENTS
--------------------------- */

/* Admin Panel Mobile Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 15px !important;
        width: 100% !important;
    }

    .mobile-toggle {
        display: block !important;
        background: var(--primary-red);
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        cursor: pointer;
        text-align: center;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .admin-header-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .admin-header-top h1 {
        font-size: 1.5rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .admin-card {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    .admin-card h3 {
        font-size: 1.2rem !important;
    }

    /* Mobile Table - Card Layout */
    .admin-table {
        display: block !important;
        width: 100% !important;
    }

    .admin-table thead {
        display: none !important;
    }

    .admin-table tbody {
        display: block !important;
    }

    .admin-table tr {
        display: block !important;
        margin-bottom: 15px !important;
        background: #f9f9f9 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    }

    .admin-table td {
        display: block !important;
        text-align: left !important;
        padding: 8px 0 !important;
        border: none !important;
        position: relative !important;
        padding-left: 50% !important;
    }

    .admin-table td:before {
        content: attr(data-label);
        position: absolute !important;
        left: 0 !important;
        width: 45% !important;
        padding-right: 10px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    .admin-table td:first-child {
        font-weight: bold !important;
        font-size: 1.1rem !important;
        padding-top: 0 !important;
        border-bottom: 1px solid #ddd !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Forms */
    form>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Buttons */
    .btn:not(.btn-sm) {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .btn-sm {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Action buttons in tables */
    .admin-table .btn {
        width: 100% !important;
        margin: 5px 0 !important;
    }

    /* Slider Management */
    .slider-container {
        padding: 10px !important;
    }

    .upload-form {
        padding: 20px 15px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .slides-table table {
        display: block !important;
    }

    .slides-table thead {
        display: none !important;
    }

    .slides-table tbody {
        display: block !important;
    }

    .slides-table tr {
        display: block !important;
        margin-bottom: 20px !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 15px !important;
    }

    .slides-table td {
        display: block !important;
        text-align: left !important;
        padding: 10px 0 !important;
        border: none !important;
    }

    .slide-preview {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        margin: 10px 0 !important;
    }

    .action-btns {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .action-btns .btn-sm,
    .action-btns form {
        flex: 1 1 45% !important;
    }

    .action-btns .btn-sm {
        margin: 0 !important;
    }

    /* Status badges */
    .status-badge {
        display: inline-block !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
    }

    /* Certificate table specific */
    .admin-table td[style*="monospace"] {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .admin-header-top h1 {
        font-size: 1.25rem !important;
    }

    .stat-card h3 {
        font-size: 1.5rem !important;
    }

    .admin-card {
        padding: 15px 10px !important;
    }

    .admin-card h3 {
        font-size: 1.1rem !important;
    }

    .btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }

    .btn-sm {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    .admin-table td {
        padding-left: 45% !important;
        font-size: 0.9rem !important;
    }

    .admin-table td:before {
        font-size: 0.85rem !important;
    }

    .action-btns .btn-sm,
    .action-btns form {
        flex: 1 1 100% !important;
    }
}

/* Responsive Tables (Both Admin & Frontend) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.admin-table {
    min-width: 600px;
    /* Force scroll on small screens */
}

/* Frontend Mobile Adjustments */
@media (max-width: 768px) {

    /* -----------------------------------------------------------
       CRITICAL: STOP HORIZONTAL SCROLLING
    ----------------------------------------------------------- */
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative;
    }

    .container,
    .header-container,
    .hero,
    .footer {
        max-width: 100vw !important;
        box-sizing: border-box;
    }

    /* General */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Grids to 1 Column */
    .features-grid,
    .testimonials-grid,
    .gallery-grid,
    .course-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   FIXED MOBILE MENU STYLES
------------------------------------------------------------------ */

/* Overlay Backend */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Sidebar Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-side-menu.active {
    right: 0;
}

/* Menu Header */
.mobile-menu-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* Menu Links */
.mobile-nav-links {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

.mobile-nav-links a i {
    width: 20px;
    color: var(--secondary-yellow);
}

.mobile-nav-links a:hover {
    background: #f4f6f8;
    color: var(--primary-color);
}

.mobile-login-btn {
    margin-top: 10px;
    text-align: center;
    justify-content: center;
    background: var(--primary-red) !important;
    color: white !important;
}

/* ------------------------------------------------------------------
   COMPACT MOBILE HEADER BUTTONS (USER REQUEST)
------------------------------------------------------------------ */

@media (max-width: 768px) {

    /* Header Container to Flex properly */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px !important;
        height: 70px;
        /* Reduced height for compactness */
    }

    /* Logo Scaling */
    .logo img {
        height: 45px !important;
        /* Smaller logo for mobile */
    }

    /* Compact 'Student Login' Button */
    .header-actions .btn {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
        /* Squarer look, not pill */
        margin-right: 10px;
        white-space: nowrap;
        background: var(--primary-red);
        color: white;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Hamburger Menu Icon */
    .mobile-toggle {
        background: transparent !important;
        color: #333 !important;
        font-size: 1.4rem !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 2px solid #ddd;
        border-radius: 6px;
        width: 38px;
        height: 38px;
    }

    .mobile-toggle i {
        line-height: 0;
    }

    /* Hero Button Compactness */
    .hero-buttons .btn {
        padding: 10px 20px !important;
        font-size: 1rem !important;
        width: auto !important;
        /* Don't stretch full width */
        min-width: 140px;
    }

    /* Reduce Hero Padding to look sleek */
    .hero {
        padding: 80px 0 50px !important;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    /* About Us Section Mobile Repair */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-image {
        order: -1;
        /* Image always on top */
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .about-text {
        order: 1;
    }

    .about-text {
        width: 100% !important;
        padding: 0 5px !important;
    }

    .about-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.6;
        text-align: left !important;
    }

    .about-text ul {
        padding-left: 0;
        list-style: none;
    }

    .about-text ul li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
}

/* ------------------------------------------------------------------
   FLOATING ACTION BUTTONS
------------------------------------------------------------------ */

.floating-btn {
    position: fixed;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* WhatsApp (Right) */
.whatsapp-btn {
    right: 25px;
    background: #25D366;
    color: white !important;
}

/* Admin (Left) */
.admin-btn {
    left: 25px;
    background: #1a1a1a;
    color: white !important;
    font-size: 1.5rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        font-size: 1.6rem;
    }

    .whatsapp-btn {
        right: 15px;
    }

    .admin-btn {
        left: 15px;
    }
}