/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a192f;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: #64ffda;
    transition: all 0.3s ease;
}

a:hover {
    color: #64ffda;
    opacity: 0.8;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #64ffda, #3a86ff);
    border-radius: 2px;
}

/* Modern Header */
.modern-header {
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.modern-header .logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #64ffda, #3a86ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modern-header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-header nav a {
    color: #ccd6f6;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.modern-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.modern-header nav a:hover::after,
.modern-header nav a.active::after {
    width: 100%;
}

.modern-header nav a.active {
    color: #64ffda;
}

/* Modern Hero Section */
.modern-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.modern-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.modern-hero .hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.modern-hero .hero-text-unlock {
    color: #64ffda;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 20px;
}

.modern-hero h2 {
    font-size: 52px;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff, #ccd6f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-hero p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #8892b0;
    max-width: 500px;
}

.modern-hero .hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.modern-hero .main-hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.modern-hero .main-hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.modern-hero .floating-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.modern-hero .floating-image {
    position: absolute;
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modern-hero .floating-image.img1 {
    top: -30px;
    right: -30px;
    transform: rotate(10deg);
}

.modern-hero .floating-image.img2 {
    bottom: -20px;
    left: -20px;
    transform: rotate(-5deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-primary {
    background: linear-gradient(90deg, #3a86ff, #64ffda);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

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

.btn-link-styled {
    color: #64ffda;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.btn-link-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.btn-link-styled:hover::after {
    width: 100%;
}

/* Modern Features Section */
.modern-features {
    padding: 100px 0;
    background-color: #0a192f;
    position: relative;
}

.modern-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modern-features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.modern-features .feature-card {
    background-color: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modern-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3a86ff, #64ffda);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.modern-features .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.modern-features .feature-card:hover::before {
    transform: scaleX(1);
}

.modern-features .feature-icon {
    font-size: 36px;
    color: #64ffda;
    margin-bottom: 20px;
}

.modern-features .feature-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ccd6f6;
}

.modern-features .feature-text p {
    color: #8892b0;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #0a192f;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 50%, rgba(58, 134, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header-services {
    text-align: center;
    margin-bottom: 60px;
}

.services-subtitle {
    color: #64ffda;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 500;
}

.services-title {
    font-size: 36px;
    color: #ccd6f6;
    line-height: 1.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.service-card .course-content {
    padding: 30px;
    flex: 1;
}

.service-card .service-number {
    font-size: 48px;
    font-weight: 700;
    color: rgba(100, 255, 218, 0.2);
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ccd6f6;
}

.service-card .course-description {
    color: #8892b0;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card .service-image {
    height: 200px;
    overflow: hidden;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Modern Testimonials */
.modern-testimonials {
    padding: 100px 0;
    background-color: #0a192f;
    position: relative;
}

.modern-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(58, 134, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial {
    background-color: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(100, 255, 218, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    color: #8892b0;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff, #64ffda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    font-weight: 600;
}

.author-info h4 {
    margin: 0;
    font-size: 18px;
    color: #ccd6f6;
}

.author-info p {
    margin: 5px 0 0;
    color: #64ffda;
    font-size: 14px;
}

/* Modern CTA Section */
.modern-cta {
    padding: 100px 0;
    background-color: #0a192f;
    position: relative;
    overflow: hidden;
}

.modern-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modern-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.modern-cta .cta-content {
    flex: 1;
}

.modern-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ccd6f6;
}

.modern-cta p {
    color: #8892b0;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.7;
}

.modern-cta .cta-image {
    flex: 1;
    text-align: right;
}

.modern-cta .cta-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(15deg);
    transition: transform 0.5s ease;
}

.modern-cta .cta-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Modern Footer */
.modern-footer {
    background-color: #0a192f;
    color: #8892b0;
    padding: 80px 0 0;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: #ccd6f6;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #64ffda;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 16px;
}

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

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: #8892b0;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #64ffda;
    transform: translateX(5px);
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section.contact i {
    color: #64ffda;
    font-size: 18px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #64ffda;
    color: #0a192f;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .modern-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .modern-hero .hero-content {
        order: 1;
    }
    
    .modern-hero .hero-image {
        order: 0;
        margin-bottom: 40px;
    }
    
    .modern-cta .container {
        flex-direction: column;
    }
    
    .modern-cta .cta-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .modern-hero h2 {
        font-size: 36px;
    }
    
    .services-title {
        font-size: 28px;
    }
    
    .modern-header nav ul {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .modern-header .logo h1 {
        font-size: 22px;
    }
    
    .modern-header nav ul {
        gap: 10px;
    }
    
    .modern-header nav a {
        font-size: 14px;
    }
    
    .modern-hero h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 25px;
    }
}

/* Login, Registration, and Courses Page Styles */
.page-header {
    padding: 80px 0;
    background-color: #0a192f;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3.2rem;
    color: #ccd6f6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff, #64ffda);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Courses Header Specific Styles */
.courses-header {
    background-color: #0a192f;
    position: relative;
}

.courses-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.3), transparent);
}

.login-section, .registration-section, .modern-courses {
    padding: 70px 0;
    background-color: #0a192f;
    position: relative;
}

/* Modern Courses Section */
.modern-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(58, 134, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-container, .registration-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(17, 34, 64, 0.5);
    padding: 40px 45px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* Course Filters */
.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(17, 34, 64, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.course-filters:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccd6f6;
    font-weight: 500;
    font-size: 0.9rem;
}

.modern-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background-color: rgba(10, 25, 47, 0.7);
    color: #ccd6f6;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364ffda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.modern-select:focus {
    border-color: #64ffda;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.1);
}

.search-group {
    flex: 2;
    min-width: 300px;
    display: flex;
    gap: 10px;
}

.modern-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background-color: rgba(10, 25, 47, 0.7);
    color: #ccd6f6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: #64ffda;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.1);
}

.modern-search-btn {
    padding: 0 20px;
    background: linear-gradient(90deg, #3a86ff, #64ffda);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(17, 34, 64, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(100, 255, 218, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.course-card:hover .course-card-inner {
    border-color: rgba(100, 255, 218, 0.3);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 1;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.course-card:hover .course-image img {
    transform: scale(1.1) rotate(2deg);
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #112240, #0a192f);
    color: #64ffda;
    font-size: 60px;
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #3a86ff, #64ffda);
    color: #0a192f;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: translateZ(20px);
    transition: all 0.4s ease;
}

.course-card:hover .course-badge {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.course-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: rgba(17, 34, 64, 0.9);
    position: relative;
    z-index: 2;
}

.course-details h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ccd6f6;
    transition: color 0.3s ease;
    line-height: 1.3;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.course-details h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3a86ff, #64ffda);
    transition: width 0.4s ease;
}

.course-card:hover .course-details h2 {
    color: #64ffda;
}

.course-card:hover .course-details h2::after {
    width: 80px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #8892b0;
    font-size: 0.85rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.course-card:hover .course-meta span {
    transform: translateX(5px);
}

.course-meta i {
    color: #64ffda;
}

.course-description {
    color: #8892b0;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.course-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-actions {
    opacity: 1;
}

.course-actions .btn {
    flex: 1;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover .course-actions .btn {
    transform: translateY(-5px);
}

/* Animation keyframes for course cards */
@keyframes cardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes cardGlow {
    0% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 15px 30px rgba(100, 255, 218, 0.3); }
    100% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
}

/* Apply animations to course cards */
.course-card:nth-child(3n+1) {
    animation: cardFloat 6s ease-in-out infinite;
}

.course-card:nth-child(3n+2) {
    animation: cardFloat 7s ease-in-out infinite 1s;
}

.course-card:nth-child(3n+3) {
    animation: cardFloat 8s ease-in-out infinite 2s;
}

.course-card:hover {
    animation: cardGlow 2s ease-in-out infinite;
}

.btn-outline {
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    border-radius: 4px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-outline i {
    font-size: 0.9rem;
}

/* Responsive Styles for Courses */
@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-filters {
        flex-direction: column;
    }
    
    .filter-group, .search-group {
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .course-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .course-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

.login-form-container h2, .registration-form-container h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #ccd6f6;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #ccd6f6;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    color: #ccd6f6;
    background-color: rgba(10, 25, 47, 0.7);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #64ffda;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(100, 255, 218, 0.1);
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8892b0;
}

.toggle-password:hover {
    color: #64ffda;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me label {
    font-weight: 500;
    color: #8892b0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #64ffda;
}

.forgot-password a {
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
}

.alert-danger {
    color: #f8d7da;
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.alert-success {
    color: #d4edda;
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

.login-separator {
    text-align: center;
    margin: 30px 0;
    color: #8892b0;
    font-size: 0.9rem;
    position: relative;
}

.login-separator span {
    background-color: rgba(17, 34, 64, 0.5);
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.login-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: rgba(100, 255, 218, 0.1);
    z-index: 0;
}

.social-login .btn {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
}
