/* 
 * Course Details Page Styles
 * Extracted from products.html
 * Version: 1.0
 */

/* Note: This file contains the ESSENTIAL styles for the course details page.
 * For complete styling, ensure demo.css from products.html is also loaded,
 * or copy all styles from products.html <style> section (lines 61-4200 approx)
 */

/* ============================================
   PRODUCTS HERO SECTION
   ============================================ */

.products-hero-section {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 50%, #fff9f0 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.12) 0%, rgba(211, 47, 47, 0.08) 40%, transparent 70%);
    z-index: 0;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.products-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.products-hero-content {
    padding-right: 20px;
}

.products-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
    line-height: 1.2;
    margin-bottom: 8px;
}

.products-hero-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.products-features-list {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.feature-icon {
    flex-shrink: 0;
    color: #d32f2f;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.course-highlights-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.highlight-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
}

.highlight-value {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.course-taxonomy-info {
    display: none;
}

.products-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.btn-enroll,
.btn-download {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
}

.image-frame {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.hero-instructor-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.taxonomy-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.taxonomy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.taxonomy-label svg {
    color: #ff6b35;
}

.taxonomy-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taxonomy-item {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.category-item:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.tag-item {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-item:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.next-batch-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.next-batch-date {
    background: #ffffff;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
}

.products-hero-actions {
    display: flex;
    gap: 12px;
    margin: 15px 0 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-enroll {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
}

.btn-enroll:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-download {
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s;
}

.btn-video {
    background: #ff6b35;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Hero Image Styles */
.products-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-instructor-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-element {
    position: absolute;
    opacity: 0.8;
}

.element-1 {
    bottom: 20px;
    left: -20px;
    color: #ff6b35;
}

.element-2 {
    top: 20px;
    right: -20px;
    color: #d32f2f;
}

.element-3 {
    bottom: -20px;
    right: -20px;
}

.stat-bubble {
    background: #d32f2f;
    color: #ffffff !important;
    padding: 20px 25px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================================
   HOW WE HELP YOU SUCCEED SECTION
   ============================================ */

.success-section {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    padding: 40px 20px;
}

.success-container {
    max-width: 1400px;
    margin: 0 auto;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 35px;
}

.success-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    justify-items: center;
}

.success-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.success-item:hover .success-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.success-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ============================================
   PROGRAM HIGHLIGHTS
   ============================================ */

.program-highlights-section {
    background: #ffffff;
    padding: 60px 20px;
}

.program-container {
    max-width: 1400px;
    margin: 0 auto;
}

.program-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.course-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.15);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    stroke: #fff;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

/* ============================================
   TRAINING SCHEDULE
   ============================================ */

.training-schedule-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

.schedule-container {
    max-width: 1400px;
    margin: 0 auto;
}

.schedule-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.schedule-table thead {
    background: #1a1a1a;
}

.schedule-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.schedule-table td {
    padding: 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.status-open {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-limited {
    background: #fff3e0;
    color: #f57c00;
}

.enroll-btn-table {
    background: transparent;
    color: #ccc;
    border: none;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.enroll-btn-table:hover {
    color: #ffffff;
    background: #d32f2f;
}

/* ============================================
   COURSE TABS
   ============================================ */

.course-details-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

.course-details-container {
    max-width: 1400px;
    margin: 0 auto;
}

.course-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.course-tabs.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.course-tab:hover {
    color: #d32f2f;
}

.course-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-bottom-color: #d32f2f;
    border-radius: 25px;
}

.course-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.course-main-content {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.course-section {
    margin-bottom: 50px;
}

.course-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* ============================================
   SIDEBAR FORM
   ============================================ */

.course-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-form-card {
    background: linear-gradient(135deg, #ffe8e8 0%, #fff0f0 100%);
    border: 2px solid #d32f2f;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input,
.form-input-phone,
.form-textarea,
.form-select {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

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

.form-input:focus,
.form-input-phone:focus,
.form-textarea:focus {
    border-color: #d32f2f;
}

.phone-input-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    accent-color: #d32f2f;
    width: 18px;
    height: 18px;
}

.captcha-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-input-captcha {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-input-captcha:focus {
    border-color: #d32f2f;
}

.terms-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 5px 0;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #d32f2f;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.terms-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.terms-text a {
    color: #d32f2f;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.contact-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.toll-free-text {
    font-size: 12px;
    color: #999;
}

.form-submit-btn {
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

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

.faq-section {
    background: #ffffff;
    padding: 80px 20px;
}

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

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.4s;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #d32f2f;
}

.faq-item.active {
    border-left-color: #d32f2f;
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.12);
}

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   CALLBACK SECTION
   ============================================ */

.callback-request-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px 20px;
    margin: 60px 0;
}

.callback-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.callback-text h2 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 5px;
}

.callback-text p {
    font-size: 18px;
    color: #ffffff;
}

.callback-form {
    display: flex;
    gap: 15px;
}

.callback-input {
    padding: 15px 20px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    width: 220px;
}

.callback-btn {
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
}

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

@media (max-width: 1024px) {
    .products-hero-container {
        grid-template-columns: 1fr;
    }
    
    .course-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .products-hero-title {
        font-size: 28px;
    }
    
    .products-hero-subtitle {
        font-size: 18px;
    }
    
    .course-highlights-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .course-taxonomy-info {
        padding: 15px;
    }
    
    .taxonomy-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .taxonomy-label {
        font-size: 13px;
    }
    
    .taxonomy-item {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .course-details-grid {
        grid-template-columns: 1fr;
    }
    
    .course-main-content {
        padding: 20px;
    }
    
    .sidebar-form-card {
        padding: 20px;
    }
    
    .callback-container {
        flex-direction: column;
        text-align: center;
    }
    
    .callback-form {
        flex-direction: column;
        width: 100%;
    }
    
    .callback-input {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.topic-bullet {
    color: #d32f2f;
    font-size: 12px;
    margin-right: 8px;
    font-weight: bold;
}

.curriculum-module {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Note: For complete styling including:
   - Floating elements
   - Accreditation badges
   - Image frames
   - Advanced animations
   
   Please copy ALL CSS from products.html <style> section
   or ensure demo.css is properly linked in your header.php
*/
