/* ============================================
   COURSE DETAIL PAGES - MOBILE OPTIMIZATION
   Hero buttons: one line on mobile (max-width: 900px - overrides inline styles)
   Full mobile: max-width 767px
   ============================================ */

/* Hero buttons - one line on mobile/tablet (overrides inline @media 900px) */
@media (max-width: 900px) {
    .hero-buttons-section {
        padding: 16px 0 20px !important;
    }
    .hero-buttons-section .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        justify-content: center !important;
        align-items: stretch !important;
    }
    .hero-buttons-section .hero-btn-primary {
        flex: 1 1 0 !important;
        min-width: 85px !important;
    }
    .hero-buttons-section .hero-btn-secondary {
        flex: 1.4 1 0 !important;
        min-width: 120px !important;
    }
    .hero-buttons-section .hero-btn {
        padding: 14px 12px !important;
        font-size: clamp(0.9rem, 2.8vw, 1.05rem) !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
        min-height: 48px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
    }
    .hero-buttons-section .hero-btn i {
        font-size: 1em !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 767px) {
    
    /* ============================================
       1. FULL WIDTH CONTAINERS
       ============================================ */
    
    main .container,
    .hero-section .hero-content,
    .motivation-section .container,
    .motivation-content,
    .highlights-section .container,
    .course-details-section .container,
    .benefits-section .container,
    .curriculum-section .container,
    .audience-section .container,
    .outcomes-section .container,
    .certificate-demo-section .container,
    .reviews-section .container,
    .alumni-section .container,
    .explore-section .container,
    .footer-cta .container,
    .social-sharing-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: clamp(14px, 3.5vw, 22px) !important;
        padding-right: clamp(14px, 3.5vw, 22px) !important;
    }
    
    .certificate-demo-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* ============================================
       2. HERO SECTION - COMPACT
       ============================================ */
    
    .hero-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .hero-section h1 {
        font-size: clamp(1.6rem, 6vw, 2rem) !important;
        line-height: 1.25 !important;
        padding: 0 12px !important;
    }
    
    .hero-section .sub-headline {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
        padding: 0 12px !important;
    }
    
    .hero-buttons-section {
        padding: clamp(14px, 3vw, 20px) 0 !important;
    }
    
    .hero-buttons-section .hero-buttons {
        padding: 0 clamp(14px, 3.5vw, 22px) !important;
    }
    
    /* ============================================
       3. MOTIVATION / ABOUT SECTION
       ============================================ */
    
    .motivation-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .motivation-section h2 {
        font-size: clamp(1.35rem, 5vw, 1.6rem) !important;
        margin-bottom: clamp(12px, 3vw, 18px) !important;
    }
    
    .motivation-section p {
        font-size: clamp(0.9rem, 2.8vw, 1rem) !important;
        line-height: 1.65 !important;
    }
    
    /* ============================================
       4. SECTION TITLES - COMPACT
       ============================================ */
    
    .section-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
        margin-bottom: clamp(18px, 4vw, 24px) !important;
        padding: 0 8px !important;
        line-height: 1.3 !important;
    }
    
    .section-title::after {
        margin-top: 10px !important;
    }
    
    /* ============================================
       5. HIGHLIGHTS (Why Choose) - SINGLE COLUMN
       ============================================ */
    
    .highlights-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(16px, 3.5vw, 22px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .highlight-card {
        padding: clamp(18px, 4vw, 24px) !important;
    }
    
    .highlight-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }
    
    .highlight-card h3 {
        font-size: clamp(1rem, 3.5vw, 1.15rem) !important;
    }
    
    .highlight-card p {
        font-size: clamp(0.85rem, 2.6vw, 0.95rem) !important;
    }
    
    /* ============================================
       6. COURSE DETAILS - Basic mobile (no layout changes)
       ============================================ */
    
    .course-details-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .details-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(14px, 3vw, 20px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .detail-card {
        padding: clamp(18px, 4vw, 24px) !important;
    }
    
    .detail-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }
    
    .detail-card h3 {
        font-size: clamp(1rem, 3.5vw, 1.15rem) !important;
    }
    
    .detail-value {
        font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
    }
    
    .detail-subtext {
        font-size: clamp(0.82rem, 2.5vw, 0.9rem) !important;
    }
    
    /* ============================================
       7. BENEFITS (What You Will Learn)
       ============================================ */
    
    .benefits-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(16px, 3.5vw, 22px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .benefit-card {
        padding: clamp(18px, 4vw, 24px) !important;
    }
    
    .benefit-icon {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .benefit-card h4 {
        font-size: clamp(1rem, 3.5vw, 1.1rem) !important;
        margin-bottom: 8px !important;
    }
    
    .benefit-card p {
        font-size: clamp(0.85rem, 2.6vw, 0.95rem) !important;
    }
    
    /* ============================================
       8. CURRICULUM / MODULES
       ============================================ */
    
    .curriculum-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .curriculum-section p {
        font-size: clamp(0.88rem, 2.7vw, 0.98rem) !important;
        margin-bottom: clamp(16px, 3.5vw, 22px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(18px, 4vw, 24px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .module-card {
        padding: clamp(20px, 4.5vw, 28px) !important;
    }
    
    .module-number {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 1.25rem !important;
        margin-bottom: 14px !important;
    }
    
    .module-card h3 {
        font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
        margin-bottom: 10px !important;
    }
    
    .module-card p {
        font-size: clamp(0.88rem, 2.7vw, 0.98rem) !important;
        margin-bottom: 14px !important;
    }
    
    .module-features {
        margin-top: 14px !important;
        padding-top: 14px !important;
    }
    
    .module-features li {
        font-size: clamp(0.85rem, 2.6vw, 0.92rem) !important;
        padding: 6px 0 !important;
    }
    
    /* ============================================
       9. AUDIENCE (Who Should Enroll)
       ============================================ */
    
    .audience-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .audience-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(16px, 3.5vw, 22px) !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .audience-card {
        padding: clamp(18px, 4vw, 24px) !important;
    }
    
    .audience-icon {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .audience-card h4 {
        font-size: clamp(1rem, 3.5vw, 1.1rem) !important;
        margin-bottom: 8px !important;
    }
    
    .audience-card p {
        font-size: clamp(0.85rem, 2.6vw, 0.95rem) !important;
    }
    
    /* ============================================
       10. OUTCOMES SECTION
       ============================================ */
    
    .outcomes-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .outcomes-section ul li {
        font-size: clamp(0.88rem, 2.7vw, 0.98rem) !important;
        padding: 8px 0 !important;
    }
    
    /* ============================================
       11. CERTIFICATE DEMO - COMPACT
       ============================================ */
    
    .certificate-demo-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .certificate-frame {
        max-width: 100% !important;
    }
    
    .certificate-features {
        max-width: 100% !important;
    }
    
    /* ============================================
       12. REVIEWS & ALUMNI - COMPACT
       ============================================ */
    
    .reviews-section {
        padding: clamp(50px, 10vw, 70px) 0 !important;
    }
    
    .reviews-section .section-title {
        font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important;
    }
    
    .alumni-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    /* ============================================
       13. EXPLORE / CTA SECTIONS
       ============================================ */
    
    .explore-section,
    .footer-cta {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    /* ============================================
       14. PARAGRAPHS WITH INLINE MAX-WIDTH
       ============================================ */
    
    p[style*="max-width: 800px"],
    .curriculum-section p[style*="max-width"] {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* ============================================
       15. SHARE WITH SECTION - Mobile layout
       Heading on one line, icons/course name below
       ============================================ */
    
    .social-sharing-section {
        padding: clamp(24px, 5vw, 32px) 0 !important;
    }
    
    .sharing-header {
        margin-bottom: 20px !important;
    }
    
    .sharing-header h2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
        font-weight: 700 !important;
        color: var(--primary-red, #c62828) !important;
        gap: 12px !important;
    }
    
    .sharing-header h2 span {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-left: 0 !important;
    }
    
    .sharing-header p {
        font-size: clamp(0.9rem, 2.8vw, 1rem) !important;
        margin-top: 8px !important;
    }
    
    .sharing-details {
        flex-direction: column !important;
        padding: 20px 16px !important;
    }
    
    .sharing-details .detail-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        margin-bottom: 16px !important;
    }
    
    .sharing-details .detail-row:last-child {
        margin-bottom: 0 !important;
    }
    
    .sharing-details .detail-label {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--primary-red, #c62828) !important;
    }
    
    .sharing-details .detail-value {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #222 !important;
        padding-left: 0 !important;
    }
    
    .sharing-details h3 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        font-weight: 700 !important;
        color: var(--primary-red, #c62828) !important;
        gap: 12px !important;
    }
    
    .sharing-details h3 span {
        margin-left: 0 !important;
    }
    
    /* WhatsApp-style mock phone – visible on mobile (centered below share details) */
    .sharing-mobile-preview {
        display: flex !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 24px !important;
        padding-top: 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .sharing-mobile-preview .mobile-phone-frame {
        width: min(168px, 46vw) !important;
        height: min(336px, 92vw) !important;
        max-height: 360px !important;
        flex-shrink: 0 !important;
    }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .sharing-mobile-preview .mobile-phone-frame {
        width: min(152px, 44vw) !important;
        height: min(304px, 88vw) !important;
    }
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-buttons-section .hero-btn {
        font-size: 0.95rem !important;
        padding: 14px 10px !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
    
    
    .benefit-card,
    .module-card,
    .audience-card,
    .highlight-card {
        padding: 16px !important;
    }
}

/* ============================================
   DESKTOP: Why Choose – 4 cards in one line (all course pages)
   ============================================ */
@media (min-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
    .highlight-card {
        padding: 28px 20px !important;
    }
    .highlight-card h3 {
        font-size: 1.15rem !important;
    }
    .highlight-card p {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   Language switcher (floating button) – for course pages with Hindi
   ============================================ */
.lang-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(198,40,40,0.45);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}
.lang-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(198,40,40,0.55);
    color: white;
}
.lang-float i {
    font-size: 1.1rem;
}
@media (max-width: 480px) {
    .lang-float {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   Phone mock – full-width parrot green CTA button (replaces typing box)
   ============================================ */
.mobile-share-footer {
    padding: 8px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    background: transparent !important;
    position: relative !important;
}
.mobile-share-footer i:first-of-type {
    display: none !important;
}
.mobile-share-footer i:last-of-type {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 15px !important;
    cursor: pointer !important;
}
.mobile-share-footer input {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px 42px 12px 16px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #fff !important;
    background: linear-gradient(135deg, #00a86b 0%, #00c853 50%, #00e676 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.4) !important;
    outline: none !important;
    cursor: pointer !important;
    animation: phone-mock-btn-flash 2s ease-in-out infinite !important;
}
.mobile-share-footer input::placeholder {
    color: rgba(255,255,255,0.95) !important;
}
@keyframes phone-mock-btn-flash {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 168, 107, 0.4); filter: brightness(1); }
    50%   { box-shadow: 0 0 20px rgba(0, 200, 83, 0.9), 0 4px 14px rgba(0, 168, 107, 0.5); filter: brightness(1.15); }
}
