/* ==========================================================================
   Responsive Design System for YSY Website (Industry-Grade Refined)
   ========================================================================== */

/* --- 1. Tablet View (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    /* Global Container */
    .container {
        padding: 0 30px;
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .webinar-details-row {
        justify-content: center;
    }
    
    .hero-features-pill {
        justify-content: center;
    }

    .hero-form-wrapper {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    /* Mentors Grid */
    .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Testimonial slider override for tablet (2 cards visible) */
    .testimonial-card {
        flex: 0 0 calc(50% - 10px) !important;
    }
    
    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Final CTA Container */
    .final-cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .final-right {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

/* --- 2. Mobile Landscape View (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    /* Global Padding */
    section {
        padding: 60px 0;
    }

    /* Top Nav (Cleaned up, removing company logos to prevent clutter) */
    .nav-container {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .nav-left, .nav-center {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .nav-right {
        display: none !important; /* Hide cluttered company logos in nav header */
    }

    /* Hero */
    .hero h1 {
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }
    
    /* Webinar details: premium dashboard format */
    .webinar-details-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
        width: 100% !important;
    }
    
    .detail-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 15px 5px !important;
        border-radius: 12px !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .detail-icon-yellow {
        font-size: 1.6rem !important;
    }
    
    .detail-text-group {
        align-items: center !important;
        text-align: center !important;
    }
    
    .detail-label {
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }
    
    .detail-value {
        font-size: 0.85rem !important;
    }
    
    .detail-subvalue {
        font-size: 0.75rem !important;
    }
    
    .detail-divider {
        display: none !important;
    }
    
    /* Elegant centered vertical checklist in hero (no card background) */
    .hero-features-pill {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 20px auto 0 !important;
        width: auto !important;
    }
    
    .feature-item {
        font-size: 0.85rem !important;
    }

    /* Countdown Bar */
    .countdown-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .timer-right {
        align-items: center;
    }

    /* Grid Layouts */
    .problem-grid,
    .learning-grid-v2,
    .bonus-cards-v2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mentors Grid */
    .mentors-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 40px auto 0;
    }
    
    /* Testimonial slider override for mobile (1 card visible) */
    .testimonial-card {
        flex: 0 0 100% !important;
    }

    /* Industry-Grade Sticky Footer for Mobile (Super Compact Row) */
    .sticky-footer {
        padding: 8px 0 !important;
    }
    
    .sticky-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 15px !important;
        width: 100% !important;
    }
    
    .sticky-text {
        display: none !important; /* Hide long text on mobile */
    }
    
    .sticky-timer {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        font-size: 0.85rem !important;
    }
    
    .sticky-timer::before {
        content: "Closes in: " !important;
        font-size: 0.65rem !important;
        color: var(--text-muted) !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin-right: 3px !important;
        letter-spacing: 0.3px !important;
    }
    
    .sticky-timer .time-block {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        background: none !important;
        padding: 0 !important;
        min-width: auto !important;
        gap: 0 !important;
    }
    
    .sticky-timer .time-block span:first-child {
        font-size: 0.95rem !important;
        line-height: 1 !important;
        color: var(--accent-orange) !important;
        font-weight: 800 !important;
    }
    
    .sticky-timer .label {
        display: none !important; /* Hide HOURS/MINS/SECS labels to save space */
    }
    
    .sticky-btn {
        flex: 1 !important;
        max-width: 180px !important;
        padding: 10px 8px !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
        border-radius: 4px !important;
        text-align: center !important;
    }
}

/* --- 3. Small Mobile View (max-width: 480px) --- */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header text formatting */
    .section-header h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .section-desc {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        padding: 50px 0 30px !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Form Card */
    .form-card {
        padding: 30px 20px 20px;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }

    /* Countdown Bar */
    .time-block {
        min-width: 55px;
        padding: 8px 10px;
    }
    
    .time-num {
        font-size: 1.4rem;
    }
    
    /* Problem Cards */
    .problem-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    /* Learning Cards */
    .learning-card-v2 {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Mentors */
    .mentor-info {
        padding: 35px 20px 20px;
    }
    
    /* Scaled text size for Absolutely Free card on mobile */
    .value-amount-v2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    /* Footer (Super Compact & Beautiful) */
    .footer {
        padding: 30px 0 80px !important;
        font-size: 0.8rem !important;
    }
    .footer-container {
        gap: 20px !important;
    }
    .footer-top {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer-brand p {
        font-size: 0.8rem !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }
    .footer-links {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    .footer-links a {
        font-size: 0.78rem !important;
    }
    .footer-bottom {
        gap: 8px !important;
        text-align: center !important;
    }
    .disclaimer-text {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        opacity: 0.5 !important;
    }
}
