/* Modern Homepage Styles */
html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: light;
    -webkit-color-adjust: exact;
    color-adjust: exact;
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Hero Slider */
.modern-hero-slider {
    position: relative;
    width: 100vw;
    height: 48vh;
    /* 40vh + 20% = 48vh */
    min-height: 360px;
    /* 300px + 20% = 360px */
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
    margin-top: 0;
    /* Remove negative margin */
    padding-top: 68px;
    /* Mobile padding */
}

/* Desktop - Full height */
@media (min-width: 993px) {
    .modern-hero-slider {
        height: 100vh;
        min-height: 100vh;
        padding-top: 88px;
        /* Desktop padding */
    }
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Hero Navigation */
.hero-nav-next,
.hero-nav-prev {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.hero-nav-next::after,
.hero-nav-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Hero Pagination */
.hero-pagination {
    bottom: 2rem !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition);
    margin: 0 8px;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Modern Section Styles */
.modern-section {
    padding: 2rem 0;
    position: relative;
    overflow-x: hidden;
    transition: background 0.6s ease;
}

/* Podcast Section - No padding */
.modern-section:has(.modern-podcast-player) {
    padding: 0;
    margin: 0;
}

/* Podcast-Based Color Scheme - Based on Podcast Background */
/* Podcast background: linear-gradient(135deg, #1e293b 0%, #334155 100%) */

/* 10% Similar to Podcast - Very Light (Courses, Blog, Consultant) */
.section-courses,
.section-blog,
.section-consultant {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.section-courses::before,
.section-blog::before,
.section-consultant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.02) 0%, rgba(51, 65, 85, 0.02) 100%);
    pointer-events: none;
}

/* 90% Similar to Podcast - Very Dark (Polls Only) */
.section-polls {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    color: white;
}

.section-polls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Headers - Keep consistent styling */
.section-courses .section-header,
.section-polls .section-header,
.section-blog .section-header,
.section-consultant .section-header {
    position: relative;
    z-index: 2;
}

/* Consultant Section - Adjusted padding for better appearance */
.section-consultant {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .section-consultant {
        padding: 2rem 0;
    }
}

/* Title Colors - Light sections use dark text, dark sections use light text */
.section-courses .section-title,
.section-blog .section-title,
.section-consultant .section-title {
    color: var(--text-primary);
}

.section-polls .section-title {
    color: white;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle Colors */
.section-courses .section-subtitle,
.section-blog .section-subtitle,
.section-consultant .section-subtitle {
    color: var(--text-secondary);
}

.section-polls .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark section text colors */
.section-polls {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-polls::before {
        opacity: 0.6;
    }
    
    .section-courses::before,
    .section-blog::before,
    .section-consultant::before {
        opacity: 0.5;
    }
}

/* Podcast Bolder - Modern UI/UX Design */
.podcast-bolder {
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 25%, #ffa500 50%, #ffb700 75%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    transition: all 0.3s ease;
}

.podcast-bolder::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link_item:hover .podcast-bolder::before {
    opacity: 1;
}

.link_item:hover .podcast-bolder {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 25%, #ffb700 50%, #ffc107 75%, #ffb700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Icon Enhancement for Podcast */
.podcast-bolder + .fa-headphones {
    color: #ff8c00;
    margin-right: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 140, 0, 0.3));
}

.link_item:hover .podcast-bolder + .fa-headphones {
    color: #ffa500;
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(255, 140, 0, 0.5));
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-bolder {
        font-size: 0.95rem;
        padding: 1px 6px;
    }
}

.container {
    overflow-x: hidden;
}

.container-fluid {
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 4px;
    /* background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); */
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Card Styles */
.modern-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(245, 158, 11, 0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(80, 75, 75);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Modern Podcast Player */
.modern-podcast-player {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 0 !important;
    /* Completely remove border radius */
    padding: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-podcast-player::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.podcast-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
}

.podcast-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podcast-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.podcast-player-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 !important;
    /* Remove border radius */
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
}

/* Modern Podcast Content */
.modern-podcast-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.podcast-artwork {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.artwork-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    object-fit: cover;
}

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

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.podcast-artwork:hover .play-button-overlay {
    opacity: 1;
}

.play-button-overlay i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

.podcast-info {
    color: white;
}

.podcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #e0e7ff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.episode-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: white;
}

.episode-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.podcast-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--primary-color);
}

.podcast-player-wrapper {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-audio-player {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-audio-player::-webkit-media-controls-panel {
    background: transparent;
}

.podcast-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.podcast-actions .btn-modern {
    min-width: 180px;
}

/* Modern Swiper Styles */
.modern-swiper {
    position: relative;
    padding: 2rem 0;
}

.modern-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.modern-swiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.modern-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    opacity: 1;
    transition: var(--transition);
}

.modern-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Modern Badge Styles */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    color: white;
}

.badge-secondary {
    background: var(--bg-accent);
    color: var(--text-secondary);
}

/* Animations */
@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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

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

    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out forwards;
}

/* Staggered Animation */
.modern-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-card:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-card:nth-child(4) {
    animation-delay: 0.4s;
}

.modern-card:nth-child(5) {
    animation-delay: 0.5s;
}

.modern-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hover Animations */
.modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.btn-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern:hover {
    transform: translateY(-2px);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Parallax Effect */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth Transitions - Removed to prevent color conflicts */

/* Performance Optimizations */
.modern-card,
.btn-modern,
.card-image img {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-hero-slider {
        height: 48vh;
        /* 40vh + 20% = 48vh */
        min-height: 360px;
        /* 300px + 20% = 360px */
        margin-top: 0;
        padding-top: 68px;
    }

    .hero-content {
        padding: 1rem;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-modern {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-nav-next,
    .hero-nav-prev {
        width: 45px;
        height: 45px;
        margin-top: -22px;
        display: none;
        /* Hide navigation on mobile */
    }

    .hero-nav-next::after,
    .hero-nav-prev::after {
        font-size: 14px;
    }

    .hero-pagination {
        bottom: 1.5rem !important;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }

    .section-title {
        font-size: 2rem;
    }

    .modern-section {
        padding: 1rem  0rem 0rem 0rem ;
        
    }

    .modern-podcast-player {
        padding: 1.5rem;
    }

    .podcast-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .modern-hero-slider {
        height: 42vh;
        /* 35vh + 20% = 42vh */
        min-height: 300px;
        /* 250px + 20% = 300px */
        margin-top: 0;
        padding-top: 68px;
    }

    .hero-content {
        padding: 0.75rem;
        max-width: 95%;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-modern {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    .hero-nav-next,
    .hero-nav-prev {
        display: none;
        /* Hide navigation on small mobile */
    }

    .hero-pagination {
        bottom: 1rem !important;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .card-content {
        padding: 1rem;
    }

    .modern-podcast-player {
        padding: 1rem;
    }
}

/* Extra Small Mobile (320px) */
@media (max-width: 320px) {
    .modern-hero-slider {
        height: 36vh;
        /* 30vh + 20% = 36vh */
        min-height: 240px;
        /* 200px + 20% = 240px */
        padding-top: 60px;
        /* Smaller header on very small screens */
    }

    .hero-content {
        padding: 0.5rem;
        max-width: 98%;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .btn-modern {
        max-width: 240px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn-modern:focus,
.modern-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Course Card Specific Styles */
.course-card .course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.course-meta {
    margin-top: 1rem;
}

.course-price {
    margin-bottom: 0.75rem;
}

.course-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Poll Card Specific Styles */
.poll-card .poll-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.poll-meta {
    margin-top: 1rem;
}

.poll-pricing {
    margin-bottom: 0.75rem;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poll-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.poll-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Blog Card Specific Styles */
.blog-card .blog-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.blog-meta {
    margin-top: 1rem;
}

.blog-category {
    margin-bottom: 0.75rem;
}

.blog-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Enhanced Card Hover Effects */
.modern-card:hover .card-overlay {
    opacity: 1;
}

.modern-card:hover .card-image img {
    transform: scale(1.05);
}

/* Improved Badge Styles */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.badge-modern:hover {
    transform: translateY(-1px);
}

/* Enhanced Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Improved Swiper Navigation */
.modern-swiper .swiper-button-next,
.modern-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: var(--bg-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.modern-swiper .swiper-button-next:hover,
.modern-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.modern-swiper .swiper-button-next::after,
.modern-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Enhanced Pagination */
.modern-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    opacity: 1;
    transition: var(--transition);
    margin: 0 6px;
}

.modern-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Loading Animation for Cards */
.card-loading {
    position: relative;
    overflow: hidden;
}

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

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

    100% {
        left: 100%;
    }
}

/* Improved Typography */
.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {

    .course-badge,
    .poll-badge,
    .blog-badge {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }

    .course-stats,
    .poll-stats,
    .blog-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .price-options {
        gap: 0.375rem;
    }

    .modern-swiper .swiper-button-next,
    .modern-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .modern-swiper .swiper-button-next::after,
    .modern-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* Dark Mode Support - Disabled to maintain consistent colors across devices */
/* @media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --bg-accent: #374151;
        --border-color: #374151;
    }

    .modern-card {
        background: var(--bg-primary);
        border-color: var(--border-color);
    }

    .course-badge,
    .poll-badge,
    .blog-badge {
        backdrop-filter: blur(20px);
    }
} */


/* Modern Course Card Styles */
.modern-course-card {
    background: white;
    border-radius: 3px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 250px;
    margin: 0 auto;
}

/* Courses page specific styles */
.courses-grid .modern-course-card {
    width: 250px;
    margin: 0 auto;
}

/* Modern Courses Page Styles */
.modern-courses-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
    margin-top: 3rem;
    overflow-x: hidden;
    overflow-y: visible;
}

.courses-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    overflow-y: hidden;
    height: auto;
    max-height: none;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    overflow: hidden;
    overflow-y: hidden;
}

.courses-hero-content {
    position: relative;
    z-index: 2;
    overflow: hidden;
    overflow-y: hidden;
}

.courses-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.courses-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Course Image Size Rules - Changed to 250x250 */
.course-image,
.course-card-image img {
    width: 250px !important;
    height: 250px !important;
    object-fit: cover;
}

.course-card-image {
    width: 250px !important;
    height: 250px !important;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.modern-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-item {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design for Courses Page */
@media (max-width: 1400px) {
    .courses-grid {
        max-width: 1200px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 1200px) {
    .courses-grid {
        max-width: 1250px;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
    
    .modern-course-card {
        width: auto !important;
        min-width: 250px;
    }
    
    .course-card-image {
        width: 100% !important;
        height: 250px !important;
    }
    
    .course-image,
    .course-card-image img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover;
    }
}

@media (max-width: 992px) {
    .courses-grid {
        max-width: 1000px;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .modern-course-card {
        width: auto !important;
        min-width: 250px;
    }
    
    .course-card-image {
        width: 100% !important;
        height: 250px !important;
    }
    
    .course-image,
    .course-card-image img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .modern-courses-page {
        margin-top: 1.4rem;
    }
    
    .courses-hero {
        padding: 2rem 0;
    }

    .courses-hero h1 {
        font-size: 2rem;
    }

    .courses-hero p {
        font-size: 1rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
        justify-content: center;
        max-width: 250px;
    }

    /* Mobile: 1 column layout - same size as desktop */
    .modern-course-card {
        width: 250px !important;
        margin: 0 auto;
    }

    /* Mobile: Same size as desktop */
    .course-image,
    .course-card-image img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover;
    }

    .course-card-image {
        width: 250px !important;
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 250px;
    }
    
    .modern-course-card {
        width: 250px !important;
        margin: 0 auto;
    }
    
    .course-card-image {
        width: 250px !important;
        height: 250px !important;
    }
    
    .course-image,
    .course-card-image img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover;
    }
    
    .courses-hero h1 {
        font-size: 1.75rem;
    }

    .modern-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-course-card:hover .course-image {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(245, 158, 11, 0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-course-card:hover .course-overlay {
    opacity: 1;
}

.course-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.spotplayer-badge {
    background: rgba(245, 158, 11, 0.9);
}


.course-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
}

.course-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.course-title a:hover {
    color: var(--primary-color);
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.course-meta {
    margin-top: auto;
}

.course-pricing {
    margin-bottom: 1rem;
}


.course-actions {
    margin-top: auto;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-course-card {
        max-width: 250px;
        margin: 0 auto;
    }

    .course-card-image {
        height: 200px;
        width: 300px;
    }

    .course-card-content {
        padding: 1rem;
    }

    .course-title {
        font-size: 13px;
    }


    .course-badge {
        font-size: 0.5rem;
        padding: 0.25rem 0.5rem;
        top: 0.125rem;
        right: 0.125rem;
    }
}

@media (max-width: 576px) {
    .modern-course-card {
        max-width: 250px;
        margin: 0 auto;
    }

    .course-card-image {
        height: 250px;
        width: 250px;
    }

    .course-card-content {
        padding: 0.875rem;
    }

    .course-title {
        font-size: 13px;
    }

    .course-description {
        font-size: 0.8rem;
    }
}

.toast-container {
    top: 20px;
    right: 20px;
    max-width: 300px;
}

.toast {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.toast.show {
    opacity: 1;
}

/* Modern Course Single Page Styles */
.modern-course-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.modern-course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

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

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

.course-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-hero-description {
    font-size: 1.125rem;
    color: rgb(43, 41, 41);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.course-status-badge.spotplayer-badge {
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
}

.course-status-badge.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.course-hero-actions {
    margin-top: 2rem;
}

/* Payment Form Styles */
.payment-form {
    width: 100%;
}

.payment-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    /* border: 1px solid var(--border-color); */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.course-pricing-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.payment-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    min-height: 56px;
    box-shadow: var(--shadow-lg);
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.payment-btn i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

/* Responsive Payment Styles */
@media (max-width: 768px) {
    .payment-section {
        padding: 1.5rem;
    }
    
    .payment-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .payment-section {
        padding: 1rem;
        gap: 1rem;
    }
    
    .course-pricing-display {
        padding: 0.75rem;
    }
}

.modern-alert {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.modern-alert i {
    font-size: 1.25rem;
}

.course-hero-image {
    position: relative;
    text-align: center;
}

.course-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.course-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.course-hero-image:hover .course-image-overlay {
    opacity: 1;
}

.course-image-overlay i {
    color: white;
    font-size: 2rem;
    margin-left: 5px;
}

/* Course Content Section */
.modern-course-content-section {
    padding: 4rem 0;
    /* background: var(--bg-primary); */
}

.modern-course-access-section {
    margin-bottom: 3rem;
}

.modern-licence-card,
.modern-guide-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.modern-licence-card:hover,
.modern-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Modern Course Contents */
.modern-course-contents {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: indianred;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    /* background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); */
    border-radius: 2px;
}

.section-title-modern i {
    color: var(--primary-color);
}

.course-contents-grid {
    display: grid;
    gap: 1rem;
}

.modern-content-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    min-height: 80px;
    overflow: hidden;
}

.modern-content-card:hover {
    background: var(--bg-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.content-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.content-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.content-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.content-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* max-height: 2.8em; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.content-size-badge {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.content-action {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.modern-content-card:hover .content-action {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.content-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.content-link:hover {
    color: white;
    text-decoration: none;
}

.content-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #dc3545;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Modern Course Sidebar */
.modern-course-sidebar {
    position: sticky;
    top: 2rem;
}

.modern-course-sidebar .col--4 {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.modern-course-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.modern-course-sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    /* background: var(--primary-color); */
    border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-course-hero {
        padding: 2rem 0;
        margin-top: 4rem;
    }
    
    .course-hero-title {
        font-size: 2rem;
    }
    
    .course-hero-description {
        font-size: 1rem;
    }
    
    .modern-course-content-section {
        padding: 2rem 0;
    }
    
    .modern-course-contents {
        padding: 1.5rem;
    }
    
    .section-title-modern {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .course-hero-title {
        font-size: 1.75rem;
    }
    
    .course-status-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .modern-content-card {
        padding: 1rem;
    }
    
    .content-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .content-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .course-hero-title {
        font-size: 1.5rem;
    }
    
    .course-hero-description {
        font-size: 0.9rem;
    }
    
    .modern-course-contents {
        padding: 1rem;
    }
    
    .modern-content-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .content-info {
        order: 2;
        width: 100%;
    }
    
    .content-action {
        order: 3;
    }
    
    .content-title {
        font-size: 0.9rem;
        max-height: 4.2em;
        margin-bottom: 0.5rem;
    }
    
    .content-text {
        font-size: 0.8rem;
        text-align: right;
        /* max-height: 4.2em; */
        margin-bottom: 0.5rem;
    }
    
    .content-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Modern Licence Styles */
.modern-licence-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modern-licence-header {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.licence-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.licence-header-content {
    flex: 1;
}

.licence-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.licence-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.modern-licence-body {
    padding: 1.5rem;
}

.licence-description {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.licence-description i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.licence-description p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.licence-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-licence-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.modern-licence-item:hover {
    background: var(--bg-accent);
    border-color: var(--primary-color);
}

.licence-key-display {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.licence-key-text {
    font-weight: 600;
    color: black;
}

.modern-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.modern-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modern-copy-btn i {
    font-size: 1rem;
}

/* Modern Guide Styles */
.modern-guide-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modern-guide-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.guide-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.guide-header-content {
    flex: 1;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guide-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.modern-guide-body {
    padding: 1.5rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: -2rem;
    width: 2px;
    /* background: var(--border-color); */
}

.guide-step:last-child::after {
    display: none;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: #5a5b5e;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.step-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-warning i {
    color: #d97706;
    font-size: 1rem;
}

.step-warning span {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
}

.step-action {
    margin-top: 1rem;
}

.modern-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.modern-guide-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.modern-guide-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.modern-guide-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-guide-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-contact {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.contact-item i {
    color: #25d366;
    font-size: 1.125rem;
}

/* Modern Sidebar Styles */
.modern-sidebar-section {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-accent));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.sidebar-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-title-link:hover {
    color: var(--primary-color);
}

.sidebar-content {
    padding: 1.5rem;
}

.similar-courses-grid {
    display: grid;
    gap: 1rem;
}

/* Modern Swiper for Sidebar */
.similar-courses-swiper,
.related-polls-swiper {
    position: relative;
    padding: 0;
}

.similar-courses-swiper .swiper-slide,
.related-polls-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.similar-courses-swiper .swiper-pagination,
.related-polls-swiper .swiper-pagination {
    position: relative;
    margin-top: 1rem;
    text-align: center;
}

.similar-courses-swiper .swiper-pagination-bullet,
.related-polls-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    opacity: 1;
    transition: var(--transition);
    margin: 0 4px;
}

.similar-courses-swiper .swiper-pagination-bullet-active,
.related-polls-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Modern Poll List Styles */
.polls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-poll-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modern-poll-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.poll-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.poll-item-link:hover {
    color: inherit;
}

.poll-item-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.poll-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-poll-item:hover .poll-item-image img {
    transform: scale(1.05);
}

.poll-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.8);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.modern-poll-item:hover .poll-item-overlay {
    opacity: 1;
}

.poll-item-overlay i {
    color: white;
    font-size: 1.25rem;
}

.poll-item-content {
    flex: 1;
    min-width: 0;
}

.poll-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(36, 34, 34);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poll-item-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.poll-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.poll-price-label {
    font-size: 0.75rem;
    color: black;
    font-weight: 500;
    flex-shrink: 0;
}

.poll-price-value {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 60px;
}

.poll-price-value.basic {
    background: #e3f2fd;
    color: #1976d2;
}

.poll-price-value.vip {
    background: #e8f5e8;
    color: #388e3c;
}

.poll-price-value.single {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Responsive Design for Poll Items */
@media (max-width: 768px) {
    .poll-item-link {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .poll-item-image {
        width: 60px;
        height: 60px;
    }
    
    .poll-item-title {
        font-size: 0.8rem;
    }
    
    .poll-price-label,
    .poll-price-value {
        font-size: 0.7rem;
    }
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .modern-licence-header,
    .modern-guide-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .licence-header-icon,
    .guide-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .licence-title,
    .guide-title {
        font-size: 1.125rem;
    }
    
    .modern-licence-body,
    .modern-guide-body {
        padding: 1rem;
    }
    
    .modern-licence-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .licence-key-display {
        width: 100%;
    }
    
    .modern-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .guide-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .guide-step::after {
        display: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modern-guide-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .licence-description {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-warning {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* Course Single Page Specific Styles */
/* Fix modal z-index issues */
.modal {
    z-index: 9999 !important;
}
.modal-backdrop {
    z-index: 9998 !important;
}

/* Ensure content buttons work properly */
.content-link {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.content-link i {
    font-size: 16px;
    color: #007bff;
}

/* Modal content styling */
.modal-body .text-content {
    padding: 20px;
}

.content-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #007bff;
    white-space: pre-wrap;
}

/* Media player styling */
.modal-body video,
.modal-body audio {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modal backdrop styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensure modal is visible */
.modal.show {
    display: block !important;
}

/* Modal fade animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Media player styling */
.media-player-container {
    text-align: center;
    padding: 20px;
}

.media-controls {
    margin-top: 15px;
}

.media-controls button {
    margin: 0 5px;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.media-controls .btn-primary {
    background-color: #007bff;
    color: white;
}

.media-controls .btn-primary:hover {
    background-color: #0056b3;
}

.media-controls .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.media-controls .btn-secondary:hover {
    background-color: #545b62;
}

/* Play/Pause button styling */
.play-pause-btn {
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background-color: #0056b3 !important;
    transform: scale(1.05);
}

.play-pause-btn i {
    font-size: 16px;
}

/* Inline media player styling */
.inline-media-player {
    margin-top: 15px;
    padding: 10px;
    /* background: #f9fafb; */
    border-radius: 8px;
}

.inline-media-player video,
.inline-media-player audio {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inline-media-player video {
    background: #000;
}

/* Content link styling improvements */
.content-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.content-link:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.content-locked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #6c757d;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

/* Text Content Collapse Styles */
.text-content-collapse {
    margin-top: 10px;
}

.text-preview,
.text-full {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.text-preview {
    max-height: 4.2em; /* حدود 3-4 خط */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.text-full {
    display: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.btn-link i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
}