/* ===========================
   Mobile Optimization & Fixes
   =========================== */

/* Base Mobile Optimization (768px and below) */
@media (max-width: 768px) {
    /* Container padding fix */
    .container {
        padding: 0 20px !important;
        max-width: 100%;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
        margin-bottom: 20px;
    }
    
    .hero-title-main {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-title-sub {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .hero-event-tagline {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 25px;
        padding: 0 8px;
    }
    
    /* Hero Stats */
    .hero-stats {
        gap: 20px;
        margin: 20px 0 15px;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    /* Hero Info */
    .hero-info {
        margin-top: 20px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-info-item {
        font-size: 0.9rem;
        padding: 12px 16px;
        text-align: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding: 0 12px;
    }
    
    .section-label {
        font-size: 0.7rem;
    }
    
    /* Special Benefits */
    .special-benefit-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .special-benefit-card {
        padding: 30px 20px;
    }
    
    .special-benefit-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .special-benefit-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Concern Section */
    .concern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .concern-item h3 {
        font-size: 1.1rem;
    }
    
    .concern-item p {
        font-size: 0.9rem;
    }
    
    /* Program Section */
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .program-item h3 {
        font-size: 1.1rem;
    }
    
    .program-description {
        font-size: 0.9rem;
    }
    
    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px !important;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 7px 16px;
    }
    
    .hero-title-main {
        font-size: 1.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-event-tagline {
        font-size: 0.85rem;
        padding: 0 8px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 4px;
    }
    
    .hero-stat-number {
        font-size: 1.6rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .hero-info-item {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding: 0 8px;
    }
    
    .special-benefit-card,
    .benefit-card,
    .concern-item,
    .program-item {
        padding: 25px 16px;
    }
    
    .special-benefit-card h3,
    .benefit-card h3,
    .concern-item h3,
    .program-item h3 {
        font-size: 1rem;
    }
    
    .special-benefit-card p,
    .benefit-card p,
    .concern-item p,
    .program-description {
        font-size: 0.85rem;
    }
    
    /* Button sizes */
    .btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title-main {
        font-size: 1.3rem;
    }
    
    .hero-title-sub {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stat-number {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Horizontal overflow prevention */
* {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ensure no horizontal scrolling */
body {
    overflow-x: hidden;
}

.hero,
.concern,
.about,
.program,
.benefits,
.special-benefits,
.testimonials,
.before-after,
.faq,
.organizer,
.details,
.contact {
    overflow-x: hidden;
}
