/* Root Variables */
:root {
    --primary: #0d7298;
    --primary-dark: #065d7d;
    --secondary: #1d91bb;
    --accent: #cb4d55;
    --accent-secondary: #d6624e;
    --dark: #111827;
    --light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --text-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-radius: 12px;
    --card-radius: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --background-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --text-gradient: linear-gradient(90deg, var(--primary), var(--secondary));
    --accent-gradient: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-hover-transform: translateY(-8px);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Text Utilities */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-accent-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .sub-heading {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header .heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--text-gradient);
    margin: 20px auto;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--hover-transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary) !important;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border: none !important;
}

.btn-login {
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--primary);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-signup:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-signup i {
    transition: transform 0.3s ease;
}

.btn-signup:hover i {
    transform: translateX(4px);
}

/* Category Cards */
.categories-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--light), white);
    position: relative;
}

.category-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 25px;
    transition: var(--hover-transition);
    will-change: transform;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--background-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.category-icon i {
    font-size: 30px;
    color: white;
    position: relative;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.category-card:hover .icon-bg {
    transform: scale(1.1);
}

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

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.category-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.category-meta {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.category-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.category-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.category-link:hover {
    color: var(--primary-dark);
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Testimonial Section */
.testimonial-section {
    position: relative;
    padding: 100px 0;
    background: var(--background-gradient);
    overflow: hidden;
}

.testimonial-card {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--hover-transition);
}

.testimonial-card:hover {
    transform: var(--card-hover-transform);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.rating {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 1rem;
}

.testimonial-text {
    position: relative;
    padding: 20px 0;
}

.quote-icon {
    position: absolute;
    top: 0;
    left: -10px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.testimonial-text p {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

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

.author-info h5 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0;
    font-size: 0.9rem;
}

/* Slider Navigation */
.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section-header .heading {
        font-size: 2rem;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon i {
        font-size: 24px;
    }

    .category-content h3 {
        font-size: 1.1rem;
    }

    .premium-feature-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }

    .navbar-brand {
        margin-right: 0;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .navbar-actions {
        margin: 1rem 0;
        width: 100%;
        justify-content: center;
    }
    
    .btn-login,
    .btn-signup {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .categories-section,
    .testimonial-section {
        padding: 60px 0;
    }

    .testimonial-card {
        margin: 10px;
        padding: 1.5rem;
    }
    
    .testimonial-cta {
        padding: 30px;
        text-align: center;
    }
    
    .btn-light {
        width: 100%;
        margin-top: 20px;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .premium-feature-card {
        margin-bottom: 20px;
    }
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 20px;
    transition: var(--hover-transition);
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow);
}

/* Feature Cards Enhancement */
.premium-feature-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-feature-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.premium-feature-card .card-icon i {
    color: var(--primary-color);
    font-size: 5rem;
}

.premium-feature-card .card-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.premium-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.premium-feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.premium-feature-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.premium-feature-card .feature-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.premium-feature-card .feature-link:hover {
    gap: 0.75rem;
}

.premium-feature-card .feature-link i {
    font-size: 1.25rem;
}

/* CTA Section Enhancement */
.cta-section {
    position: relative;
    background: var(--background-gradient);
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

/* .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
} */

/* Gallery Enhancement */
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--hover-transition);
}

.gallery-item:hover {
    transform: var(--card-hover-transform);
}

/* Animation Classes */
.hover-float {
    transition: var(--hover-transition);
}

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

.hover-scale {
    transition: var(--hover-transition);
}

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

/* Loading Animation */
.loading-animation {
    position: relative;
    overflow: hidden;
}

.loading-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Courses Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    margin-bottom: 80px;
}

.page-header .header-content {
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header .header-text {
    max-width: 600px;
}

.search-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.search-card h4 {
    color: var(--dark);
    font-weight: 600;
}

.search-card .form-control,
.search-card .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.search-card .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.search-card .btn {
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 10px;
}

.stats-row {
    margin-top: 2.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 991.98px) {
    .page-header {
        padding: 100px 0 60px;
        margin-bottom: 60px;
    }
    
    .search-card {
        margin-top: 3rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        text-align: center;
    }

    .stats-row {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
}

/* Course Header Styles */
.course-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
    z-index: 1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.animated-bg .circle-1,
.animated-bg .circle-2,
.animated-bg .circle-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.animated-bg .circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.animated-bg .circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.animated-bg .circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-content {
    position: relative;
    z-index: 10;
    color: white;
}

.header-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.header-title .highlight {
    background: linear-gradient(120deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.course-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Search Panel Styles */
.search-panel {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.panel-header p {
    color: var(--text-light);
    margin: 0;
}

.search-input-group {
    position: relative;
    z-index: 11;
}

.search-input-group input,
.category-select-group select {
    position: relative;
    z-index: 12;
    background: white;
}

.search-input-group i,
.category-select-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 13;
    pointer-events: none;
}

.search-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 13;
}

.course-search-form .form-control,
.course-search-form .form-select {
    padding: 15px 15px 15px 45px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.course-search-form .form-control:focus,
.course-search-form .form-select:focus {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.search-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure animated background doesn't interfere */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.animated-bg .circle-1,
.animated-bg .circle-2,
.animated-bg .circle-3 {
    pointer-events: none;
}

/* Course Header Content */
.header-content {
    position: relative;
    z-index: 10;
}

/* Form Group Spacing */
.course-search-form .form-group {
    margin-bottom: 1.5rem;
}

.category-select-group {
    position: relative;
    z-index: 11;
}

/* Ensure proper stacking context */
.course-header {
    position: relative;
    z-index: 1;
}

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

/* Enhanced Search Panel Styles */
.search-input-group {
    position: relative;
}

.search-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.course-search-form .form-control,
.course-search-form .form-select {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.course-search-form .form-control:focus,
.course-search-form .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Enhanced CTA Section */
.cta-section {
    position: relative;
    background: var(--background-gradient);
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-features {
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Row Animation */
.row.g-4 {
    transition: opacity 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .cta-features {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .feature-item {
        margin-bottom: 2rem;
    }
}

/* Loading Animation */
.loading-animation {
    position: relative;
    overflow: hidden;
}

.loading-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Search Results Animation */
.search-results-enter {
    opacity: 0;
    transform: translateY(20px);
}

.search-results-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.search-results-exit {
    opacity: 1;
}

.search-results-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 300ms, transform 300ms;
}

/* Career Page Specific Styles */
.career-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
    margin-bottom: 100px;
}

.career-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('../assets/images/pattern.svg') center/cover;
    opacity: 0.15;
    animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
    100% { transform: translate(0, 0); }
}

.career-hero-content {
    position: relative;
    z-index: 2;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.career-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.career-hero-title .text-gradient {
    background: linear-gradient(120deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.career-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: var(--primary) !important;
}
.hero-cta .btn-light {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.hero-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: white;
}

.hero-cta .btn-light:hover::before {
    opacity: 1;
}

.hero-cta .btn-light span {
    position: relative;
    z-index: 1;
}

.career-hero-image {
    position: relative;
    transform: translateY(20px);
    transition: all 0.5s ease;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
    max-width: 100%;
    height: auto;
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0); }
}

/* Job Cards Premium Styling */
.job-card {
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    height: 100%;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.job-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.job-card:hover::before {
    opacity: 0.03;
}

.job-card .card-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.job-card .job-type {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--background-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    box-shadow: 0 5px 15px rgba(13, 114, 152, 0.15);
    letter-spacing: 0.5px;
}

.job-card .job-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

.job-card .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.job-card .requirements-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.job-card .requirements-list li i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.job-card .apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--background-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    width: fit-content;
    margin-top: auto;
    box-shadow: 0 5px 15px rgba(13, 114, 152, 0.2);
}

.job-card .apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 114, 152, 0.3);
    color: white;
}

.job-card .apply-btn i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.job-card .apply-btn:hover i {
    transform: translateX(5px);
}

/* Why Join Us Section Premium Styling */
.why-join-section {
    background: linear-gradient(to bottom, var(--light), white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.why-join-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.why-join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-gradient);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.why-join-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.why-join-card:hover::before {
    opacity: 0.03;
}

.why-join-card .card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-gradient);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(13, 114, 152, 0.2);
    transition: all 0.3s ease;
}

.why-join-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(13, 114, 152, 0.25);
}

.why-join-card .card-icon i {
    font-size: 2.75rem;
    color: white;
}

.why-join-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.why-join-card .card-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Career Stats Section Premium Styling */
.career-stats-section {
    padding: 100px 0;
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
}

.career-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.career-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.career-stats-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.career-stats-card:hover::before {
    opacity: 1;
}

.career-stats-card .stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.career-stats-card .stats-label {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Section Headers Premium Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .sub-heading {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(13, 114, 152, 0.1);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header .heading {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header .section-divider {
    width: 80px;
    height: 4px;
    background: var(--background-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* Responsive Styles for Career Page */
@media (max-width: 991.98px) {
    .career-hero-section {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .career-hero-content {
        min-height: auto;
        text-align: center;
        align-items: center;
        padding: 2rem 0;
    }

    .career-hero-title {
        font-size: 3rem;
    }

    .career-hero-subtitle {
        font-size: 1.2rem;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header .heading {
        font-size: 2.25rem;
    }

    .job-card .card-body,
    .why-join-card {
        padding: 2rem;
    }

    .career-stats-card {
        padding: 2rem;
    }

    .career-stats-card .stats-number {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .career-hero-section {
        padding: 100px 0 60px;
    }

    .career-hero-title {
        font-size: 2.5rem;
    }

    .career-hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header .heading {
        font-size: 2rem;
    }

    .section-header .sub-heading {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .job-card,
    .why-join-card,
    .career-stats-card {
        margin-bottom: 1.5rem;
    }

    .career-stats-card .stats-number {
        font-size: 2.5rem;
    }

    .career-stats-card .stats-label {
        font-size: 1.1rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: -60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    transition: all 0.4s;
    z-index: 999;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.active {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
