/* Homepage Specific Adjustments for Atmosphere - Mobile Version */

.hero-section {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../../assets/images/hero-mobile.png') !important;
    background-position: top center !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    opacity: 1;
}

body {
    padding-top: 0 !important;
}

.hero-content {
    /* Push content down below the 'World Sleep' background text - Responsive */
    padding-top: calc(50vw + 10px) !important;
    /* Move content up slightly */
    padding-bottom: 40px !important;
    display: block !important;
    text-align: center !important;
}

/* Override inline styles for description text */
.hero-content p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    /* Move buttons up closer to text */
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Override inline styles for buttons */
.hero-content .cta-buttons {
    gap: 12px !important;
}

.hero-content .cta-buttons a {
    padding: 8px 16px !important;
    /* Reduced padding */
    font-size: 0.8rem !important;
    /* Reduced font size */
    border-width: 1.5px !important;
    white-space: nowrap !important;
    /* Prevent text wrapping */
    width: auto !important;
    /* Allow button to shrink to fit content */
    min-width: 0 !important;
    /* Prevent forced width */
}

/* Fix for 'Conference System' button on mobile */
.hero-content .cta-buttons a:last-child {
    color: #1e3a8a !important;
    border: 2px solid #ffffff !important;
    /* White border */
    background: #ffffff !important;
    /* Solid White background */
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Layout Overrides - Unwrapped */

.stats-grid,
.section-split,
.card-grid,
.feature-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    grid-column: span 1;
}

/* Feature Section Mobile */
.feature-container.reverse .feature-text {
    order: 1;
}

.feature-container.reverse .feature-visual {
    order: 2;
    height: 250px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h2 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6;
}


/* Data Grid Mobile */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.data-card {
    padding: 20px 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-value {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: #1c2e64;
    line-height: 1;
    margin-bottom: 10px;
}

.data-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Hide Desktop */
.desktop-preview-section,
.desktop-news-section,
.conference-overview-section {
    display: none !important;
}

/* Mobile Components */
.mobile-events-section,
.conference-overview-mobile {
    display: block !important;
}

.mobile-section-title {
    font-size: 1.6rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    padding-left: 16px !important;
    border-left: 4px solid #1e3a8a !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

.global-data-section {
    padding-top: 20px !important;
    padding-bottom: 40px !important;
}

.global-data-section .container>div:first-child {
    margin-bottom: 25px !important;
}

.global-data-section h2 {
    font-size: 1.6rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    /* Reduced from 24px for tighter look */
    padding-left: 0 !important;
    border-left: none !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.global-data-section p {
    text-align: center !important;
    padding-left: 0 !important;
    font-size: 0.95rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

.data-source {
    text-align: right !important;
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

/* Mobile Scroll Container */
.mobile-events-scroll-container {
    display: flex !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    animation: scroll-hint 1.2s ease-in-out 0.5s 1;
}

@keyframes scroll-hint {

    0%,
    100% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-20px);
    }

    60% {
        transform: translateX(10px);
    }
}

.mobile-events-scroll-container::-webkit-scrollbar {
    display: none !important;
}

.mobile-event-card {
    min-width: 290px !important;
    max-width: 350px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.mobile-event-header {
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-event-header svg {
    width: 40px !important;
    height: 40px !important;
    stroke: white !important;
    opacity: 0.9 !important;
}

.mobile-event-body {
    padding: 20px !important;
}

.mobile-event-body h3 {
    font-size: 1.1rem !important;
    color: #1f2937 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.mobile-event-body p {
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
}

.btn-view-more {
    display: inline-block !important;
    padding: 12px 40px !important;
    background: white !important;
    border: 1px solid #1e3a8a !important;
    color: #1e3a8a !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.btn-view-more:hover {
    background: #1e3a8a !important;
    color: white !important;
}

.tablet-subtitle {
    display: none;
}

/* Training Certificate Section (Mobile - Stacked) */
.cert-grid-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cert-card-visual {
    background: white;
    border-radius: 20px;
    padding: 30px 20px !important;
    box-shadow: 0 10px 30px rgba(203, 161, 116, 0.1);
    border: 2px solid #e0d5c7;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.training-certificate-section h2 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}

.training-certificate-section p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

/* Reduce spacing for training features on mobile */
.cert-grid-container>div:last-child>div {
    margin-bottom: 20px !important;
}

.cert-grid-container>div:last-child>div>div {
    margin-bottom: 15px !important;
    gap: 10px !important;
}

/* CTA Section Mobile Fix */
.cta-section {
    padding: 60px 0 !important;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.95), rgba(28, 46, 100, 0.9)), url('../../assets/images/20260127-110714.png') !important;
    background-size: cover !important;
    background-position: center !important;
    color: white !important;
    text-align: center !important;
}

.cta-content h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
    color: white !important;
}

.cta-content p {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Training Certificate Section Font Size Reductions */
.training-certificate-section span {
    font-size: 0.75rem !important;
}

.training-certificate-section h2 {
    font-size: 1.5rem !important;
}

.training-certificate-section p {
    font-size: 0.9rem !important;
}

/* Feature List Items */
.training-certificate-section h4 {
    font-size: 1rem !important;
}

.training-certificate-section h4+p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

/* Button */
.training-certificate-section .btn {
    font-size: 0.95rem !important;
    padding: 12px 30px !important;
}

/* Chinese specific adjustment for Hero Content position */
html[lang="zh-CN"] .hero-content {
    padding-top: calc(50vw + 30px) !important;
}