/**
 * Enhanced Course Page Styles
 * Swaastik Yog School - Robust, Modern Design
 * Version: 2.0
 */

/* ==========================================
   ENHANCED COURSE HERO
   ========================================== */

.course-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(97, 9, 129, 0.9) 0%, rgba(18, 163, 151, 0.85) 100%);
    z-index: 1;
}

.course-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    z-index: 1;
}

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

.course-hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.course-hero-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 120px;
}

.course-hero-info .badge {
    display: inline-block;
    background: var(--color-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-tag {
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.price-tag small {
    display: block;
    font-size: 16px;
    color: #666;
    background: none;
    -webkit-text-fill-color: #666;
    font-weight: 500;
    margin-top: 10px;
}

.course-hero-info .info-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.course-hero-info .info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.course-hero-info .info-list li:last-child {
    border-bottom: none;
}

.course-hero-info .info-list li i {
    margin-right: 12px;
    font-size: 20px;
    color: var(--color-purple);
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.highlight-list li {
    padding: 15px 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   COURSE DATES SECTION
   ========================================== */

.course-dates-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fbff 0%, #f0f4ff 100%);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.date-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-teal));
}

.date-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-purple);
}

.date-card .month {
    display: inline-block;
    background: var(--color-purple);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.date-card .dates {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.date-card .year {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.date-card .availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.date-card .seats {
    font-size: 14px;
    color: #666;
}

.date-card .seats strong {
    color: var(--color-teal);
    font-weight: 700;
}

.date-card .status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.date-card .status.available {
    background: #e6f7e6;
    color: #2d5f2d;
}

.date-card .status.limited {
    background: #fff4e6;
    color: #cc8800;
}

.date-card .status.full {
    background: #ffe6e6;
    color: #cc0000;
}

/* ==========================================
   BOOKING FORM SECTION
   ========================================== */

.booking-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-teal) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-form-container h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.booking-form-container .form-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 15px;
}

.form-group label .required {
    color: #cc0000;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(97, 9, 129, 0.1);
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .helper-text {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(97, 9, 129, 0.4);
}

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

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.course-testimonials {
    padding: 80px 0;
    background: var(--bg-light-gray);
}

.testimonials-slider {
    max-width: 900px;
    margin: 40px auto 0;
}

.testimonial-slide {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-slide .quote-icon {
    font-size: 48px;
    color: var(--color-purple);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-slide .text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

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

.testimonial-slide .author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-purple);
}

.testimonial-slide .author-info h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.testimonial-slide .author-info p {
    color: #888;
    font-size: 14px;
}

.testimonial-slide .rating {
    color: var(--color-orange);
    font-size: 20px;
    margin-bottom: 15px;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    text-align: left;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light-blue);
}

.faq-question::after {
    content: '+';
    font-size: 28px;
    font-weight: 400;
    color: var(--color-purple);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* ==========================================
   ENHANCED CURRICULUM
   ========================================== */

.curriculum-item {
    position: relative;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.curriculum-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-purple), var(--color-teal));
    transition: width 0.3s ease;
}

.curriculum-item:hover::before {
    width: 8px;
}

/* ==========================================
   ENHANCED PRICING CARDS
   ========================================== */

.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card.featured {
    border: 3px solid white;
    transform: scale(1.08);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-orange);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    .course-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .course-hero-info {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form-container {
        padding: 35px 25px;
    }

    .dates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .course-hero h1 {
        font-size: 32px !important;
    }

    .price-tag {
        font-size: 42px;
    }

    .booking-form-container {
        padding: 30px 20px;
    }

    .testimonial-slide {
        padding: 30px 20px;
    }
}
