/* Short Courses Single Page Styles - Complete CSS */
.iw-short-course-single {
    font-family: 'Philosopher', 'Amiri', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    min-height: 100vh;
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION (NEW) ===== */
.iw-hero-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.iw-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.iw-hero-thumbnail {
    width: 100%;
    max-width: 500px; /* Limit thumbnail width on larger screens */
}

.iw-thumbnail-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.iw-thumbnail-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.iw-thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.iw-hero-content {
    text-align: center;
    max-width: 500px;
}

.iw-course-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4a373 0%, #b3875a 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.iw-course-title {
    /* Adjusted font size for better balance */
    font-size: 2.2rem;
    font-weight: 700;
    color: #234e52;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.iw-quick-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.iw-info-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.iw-info-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iw-info-pill i {
    color: #d4a373;
    font-size: 1rem;
}

.iw-hero-action {
    /* Styles for the button group in the hero */
    margin-top: 1.5rem;
}


/* ===== MAIN CONTENT & SIDEBAR LAYOUT ===== */
.iw-course-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0 4rem;
}

/* ===== SECTION TITLES ===== */
.iw-section-title {
    font-size: 1.8rem;
    color: #234e52;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.iw-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #d4a373 0%, #a3be8c 100%);
    border-radius: 2px;
}

/* ===== INSTRUCTOR SECTION (MOVED TO SIDEBAR) ===== */
.iw-instructor-section {
    margin-bottom: 2rem; /* Reduced margin since it's now in the sidebar */
}

.iw-instructor-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.iw-instructor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.iw-instructor-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #a3be8c;
    box-shadow: 0 4px 12px rgba(163, 190, 140, 0.2);
}

.iw-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.iw-instructor-card:hover .iw-instructor-photo img {
    transform: scale(1.05);
}

.iw-instructor-info {
    flex: 1;
}

.iw-instructor-name {
    font-size: 1.4rem;
    color: #234e52;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

/* ===== DESCRIPTION SECTION (MAIN CONTENT) ===== */
.iw-description-section {
    margin-bottom: 3rem;
}

.iw-description-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    line-height: 1.7;
    font-size: 1.05rem;
    color: #4a5568;
    border: 1px solid #f1f5f9;
}

.iw-description-content p {
    margin-bottom: 1rem;
}

.iw-description-content p:last-child {
    margin-bottom: 0;
}

/* ===== DETAILS SECTION (Schedule - MOVED TO SIDEBAR) ===== */
.iw-details-section {
    margin-bottom: 2rem; /* Reduced margin since it's now in the sidebar */
}

.iw-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacked in sidebar for better flow */
    gap: 1.5rem;
}

.iw-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.iw-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.iw-detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 30px;
    text-align: center;
    color: #234e52;
}

.iw-detail-content {
    flex: 1;
}

.iw-detail-content h4 {
    margin: 0 0 0.5rem 0;
    color: #234e52;
    font-size: 1.1rem;
    font-weight: 600;
}

.iw-detail-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== BENEFITS & WHAT YOU WILL GET SECTIONS (MAIN CONTENT) ===== */
.iw-benefits-section, .iw-will-get-section {
    margin-bottom: 3rem;
}

.iw-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.iw-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.iw-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(163, 190, 140, 0.1), transparent);
    transition: left 0.6s ease;
}

.iw-benefit-card:hover::before {
    left: 100%;
}

.iw-benefit-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.iw-benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #a3be8c 0%, #8aab7a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    box-shadow: 0 2px 8px rgba(163, 190, 140, 0.3);
}

.iw-benefit-text {
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
    flex: 1;
}

/* ===== POSTER SECTION ===== */
.iw-poster-section {
    margin-bottom: 3rem;
}

.iw-poster-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.iw-poster-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.iw-poster-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.iw-poster-container:hover .iw-poster-image {
    transform: scale(1.01);
}

/* ===== SIDEBAR STYLES ===== */
.iw-course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.iw-enrollment-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 2rem; /* Stick to top of viewport */
    transition: all 0.3s ease;
}

.iw-enrollment-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* ===== FEE SECTION & LANGUAGE SECTION (Sidebar items) ===== */
.iw-fee-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.iw-language-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}
.iw-language-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.iw-language-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.iw-language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e2e8f0;
}
.iw-language-item:last-child {
    border-bottom: none;
}
.iw-language-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}
.iw-language-value {
    color: #234e52;
    font-weight: 600;
    font-size: 1rem;
}


.iw-fee-title, .iw-share-title {
    font-size: 1.3rem;
    color: #234e52;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.iw-fee-title::after, .iw-share-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #d4a373 0%, #a3be8c 100%);
    border-radius: 1px;
}

.iw-fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.iw-fee-item:hover {
    background-color: #f8fafc;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 8px;
}

.iw-fee-item:last-child {
    border-bottom: none;
}

.iw-fee-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

.iw-fee-amount {
    color: #7f1102;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== ENROLLMENT ACTION/BUTTONS (Unchanged) ===== */
.iw-enrollment-action {
    text-align: center;
}

.iw-enrollment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, #234e52 0%, #7f1102 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 78, 82, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.iw-enrollment-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.iw-enrollment-btn:hover i {
    transform: translateX(5px);
}

.iw-enrollment-btn::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.6s ease;
}

.iw-enrollment-btn:hover::before {
    left: 100%;
}

.iw-enrollment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 78, 82, 0.4);
    color: white;
}

.iw-enrollment-note {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* ===== STICKY MOBILE ENROLLMENT BUTTON (Unchanged) ===== */
.iw-sticky-mobile-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    border-radius: 0;
    padding: 1.2rem 2rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown on mobile */
}


/* ===== SHARE SECTION (POSITION FIXED) ===== */
.iw-share-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
    
    /* --- FIX: Make Share Section Sticky --- */
    position: sticky;
    top: 16rem; /* A bit lower than the enrollment card (top: 2rem) */
    /* -------------------------------------- */
}

.iw-share-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.iw-share-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.iw-share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.iw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.iw-share-btn i {
    font-size: 1.2rem;
}

.iw-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.iw-share-btn:hover::before {
    left: 100%;
}

.iw-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iw-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.iw-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5CB6 100%);
    color: white;
}

.iw-twitter {
    background: linear-gradient(135deg, #000000 0%, #333333 100%); 
    color: white;
}

.iw-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.iw-copy-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* ===== TOAST NOTIFICATION (Unchanged) ===== */
.iw-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #234e52 0%, #a3be8c 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    max-width: 300px;
}

.iw-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 992px) {
    /* Desktop layout */
    .iw-hero-layout {
        flex-direction: row;
        align-items: center; /* Center items vertically in hero for better alignment */
        gap: 5rem;
        text-align: left;
    }
    
    /* --- FIX: Adjust hero widths for balance --- */
    .iw-hero-thumbnail {
        width: 60%; /* Give more width to the thumbnail */
        max-width: none;
    }
    
    .iw-hero-content {
        width: 40%; /* Give less width to the content */
        text-align: left;
    }
    
    .iw-course-title {
        /* FIX: Ensure reduced font size on desktop too */
        font-size: 2.8rem; 
    }
    /* ------------------------------------------ */

    .iw-quick-info {
        justify-content: flex-start;
    }
    
    .iw-course-layout {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .iw-sticky-mobile-btn {
        display: none !important; /* Hide sticky button on desktop */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet layout */
    .iw-course-layout {
        grid-template-columns: 1fr;
    }
    .iw-course-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .iw-instructor-section, .iw-details-section, .iw-language-section, .iw-enrollment-card, .iw-share-section {
        flex: 1 1 calc(50% - 1rem); /* Two columns in sidebar area */
        position: static;
    }
    .iw-enrollment-card {
        order: -1; /* Keep enrollment prominent */
    }
    .iw-sticky-mobile-btn {
        display: none !important;
    }
}


@media (max-width: 767px) {
    /* Mobile layout */
    .iw-container {
        padding: 0 15px;
    }
    
    .iw-course-title {
        font-size: 2.2rem;
    }
    
    .iw-quick-info {
        gap: 0.8rem;
    }
    
    .iw-enrollment-card {
        position: static;
        margin-bottom: 2rem;
    }

    .iw-share-section {
        position: static; /* Disable sticky on small screens to avoid z-index/overflow issues */
    }
    
    .iw-sticky-mobile-btn {
        display: flex; /* Show sticky button on mobile */
    }
    
    /* Hide the hero enroll button on small screens since the sticky button takes over */
    .iw-enroll-hero {
        display: none;
    }
    
    .iw-enrollment-note {
        display: none; /* Hide note on sticky button */
    }
    
    .iw-toast {
        left: 1rem;
        right: 1rem;
        bottom: 4.5rem; /* Above the sticky enroll button */
        max-width: none;
    }
}

/* Reset default section titles for sidebar items (moved the ::after definition up) */
.iw-share-title::after, .iw-fee-title::after {
    /* Reset left alignment for these elements in the sidebar */
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ACCESSIBILITY & PRINT (Unchanged) ===== */
@media (prefers-reduced-motion: reduce) {
    .iw-enrollment-btn,
    .iw-share-btn,
    .iw-info-pill,
    .iw-instructor-card,
    .iw-detail-card,
    .iw-benefit-card,
    .iw-poster-container,
    .iw-thumbnail-image,
    .iw-poster-image,
    .iw-language-section {
        transition: none;
    }
    
    .iw-fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media print {
    .iw-share-section,
    .iw-enrollment-btn,
    .iw-sticky-mobile-btn {
        display: none;
    }
    
    .iw-container {
        max-width: none;
    }
    
    .iw-course-layout {
        display: block;
    }
    
    .iw-enrollment-card {
        position: static;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
