:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Transparent Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.course-thumbnail {
    height: 200px;
    object-fit: cover;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    color: white;
}

.btn-info {
    background: #17a2b8;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
    color: white;
}

/* Sticky Footer Implementation */
main {
    flex: 1 0 auto;
}

/* Modern Footer Styles */
.modern-footer {
    flex-shrink: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    position: relative;
    margin-top: auto;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.footer-waves svg {
    width: 100%;
    height: 100%;
}

.modern-footer .container {
    position: relative;
    z-index: 2;
    padding: 40px 0 20px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    color: white;
}

.footer-brand h4 {
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand i {
    font-size: 2rem;
    color: #ffffff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -20px;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.social-link.facebook:hover {
    background: linear-gradient(45deg, #1877f2, #0d6efd);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-link.twitter:hover {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-link.linkedin:hover {
    background: linear-gradient(45deg, #0077b5, #005885);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-link.youtube:hover {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e4405f, #c13584);
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.contact-item i {
    width: 20px;
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-item span {
    font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.legal-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

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

/* Responsive Footer */
@media (max-width: 768px) {
    .modern-footer .container {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright-text {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Discount styling */
.discount-price-container {
    text-align: center;
}

.countdown-timer {
    font-weight: 600;
}

.countdown-timer .countdown-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.discount-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

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

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

.min-vh-75 {
    min-height: 75vh;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    display: none !important;
}

.carousel-indicators button {
    display: none !important;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__slideInLeft {
    animation-name: slideInLeft;
}

.animate__zoomIn {
    animation-name: zoomIn;
}

.animate__bounceIn {
    animation-name: bounceIn;
}

.animate__flipInX {
    animation-name: flipInX;
}

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

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 60vh;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* Global Discount Banner */
.global-discount-banner {
    padding: 2rem 0;
    position: relative;
    z-index: 1000;
    background: transparent;
}

.global-discount-banner.bg-red .discount-banner-content {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.global-discount-banner.bg-blue .discount-banner-content {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    box-shadow: 0 10px 30px rgba(55, 66, 250, 0.3);
}

.global-discount-banner.bg-green .discount-banner-content {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    box-shadow: 0 10px 30px rgba(46, 213, 115, 0.3);
}

.global-discount-banner.bg-purple .discount-banner-content {
    background: linear-gradient(135deg, #a55eea 0%, #fd79a8 100%);
    box-shadow: 0 10px 30px rgba(165, 94, 234, 0.3);
}

.discount-banner-content {
    position: relative;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.countdown-container {
    gap: 1rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 80px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .discount-banner-content {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

.rating {
    color: #ffc107;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
}

.difficulty-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.stats {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Fix dropdown menu z-index issue */
.dropdown-menu {
    z-index: 9999 !important;
}

.navbar .dropdown-menu {
    z-index: 9999 !important;
}

.navbar-nav .dropdown-menu {
    z-index: 9999 !important;
}

.dropdown {
    position: relative;
}

.toast-container {
    z-index: 10000;
}

.card {
    z-index: 1;
}

.sticky-top {
    z-index: 1020;
}

/* Ensure navbar has proper z-index */
.navbar {
    z-index: 1030;
}

/* Hero carousel should be below navbar */
.hero-carousel {
    z-index: 1;
}

/* Global discount banner should be below navbar */
.global-discount-banner {
    z-index: 1000;
}

/* Modern Card Styles */
.course-card {
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background: #ffffff;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

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

.hover-shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Badge Styles */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* Text Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Button Styles */
.btn-outline-primary {
    border: 1px solid #0d6efd;
    background: transparent;
    color: #0d6efd;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

.hover-bg-accent:hover {
    background: #f8f9fa;
}

.hover-text-accent-foreground:hover {
    color: #495057;
}

/* Position Utilities */
.relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-2 {
    top: 0.5rem;
}

.start-2 {
    left: 0.5rem;
}

.end-2 {
    right: 0.5rem;
}

/* Spacing Utilities */
.p-4 {
    padding: 1rem;
}

.pt-0 {
    padding-top: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Text Utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

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

.line-through {
    text-decoration: line-through;
}

/* Width and Height */
.w-100 {
    width: 100%;
}

.h-48 {
    height: 12rem;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Transition */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.duration-200 {
    transition-duration: 0.2s;
}

.duration-300 {
    transition-duration: 0.3s;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Background */
.bg-background {
    background: #ffffff;
}

.bg-transparent {
    background: transparent;
}

/* Border */
.border-0 {
    border: none !important;
}

/* Shadow */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
