/* Homepage Specific Adjustments for Atmosphere - Tablet Version */

/* Import Desktop Styles as Base? No, we need independent file. Copying base structure. */

/* Tablet hero image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../../assets/images/hero-tablet.png') !important;
    background-position: center 45% !important;
    background-size: cover !important;
    opacity: 1;
}

.hero-section {
    position: relative;
    background: #0a1128;
}

.hero-content {
    padding: 450px 0 100px;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Tablet Optimizations (Unwrapped from Media Queries) */

/* Force 4 Columns for Data Grid */
.data-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    display: grid;
}

.data-card {
    padding: clamp(15px, 2vw, 25px) 10px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.data-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    margin-bottom: 15px !important;
    font-weight: 700;
    color: #1c2e64;
    line-height: 1;
}

.data-label {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem) !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 0 5px;
    color: #666;
    font-weight: 500;
}

/* Stack Layouts */
.conf-layout-grid,
.events-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
}

.conf-layout-grid>div,
.events-layout-grid>div {
    width: 100%;
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature-container.reverse .feature-text {
    order: 1;
}

.feature-container.reverse .feature-visual {
    order: 2;
    height: 300px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}

.btn-view-more:hover {
    background: #1e3a8a !important;
    color: white !important;
}

/* Tablet Layout Restoration: Use Desktop Sections with 2-Column Grid */

/* 1. Show Desktop Sections */
.desktop-preview-section,
.desktop-news-section,
.conference-overview-section {
    display: block !important;
}

/* 2. Hide Mobile Sections */
.mobile-events-section,
.conference-overview-mobile {
    display: none !important;
}

/* 3. Adapting Grids for Tablet (2 Columns) */
/* 3. Adapting Grids for Tablet (2 Columns) */
.conf-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

/* Specific: News/Articles AND Events Section Horizontal Scroll */
.desktop-news-section .grid-4-cols,
.events-layout-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding-bottom: 30px !important;
    /* Space for scrollbar/shadow */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */

    padding-right: 30px !important;
    /* Visual hint */
}

.desktop-news-section .grid-4-cols::-webkit-scrollbar,
.events-layout-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.desktop-news-section .grid-4-cols>div,
.events-layout-grid>div {
    min-width: 300px !important;
    flex: 0 0 auto !important;
    width: 300px !important;
    scroll-snap-align: start;

    /* Ensure footer alignment */
    display: flex !important;
    flex-direction: column !important;
}

/* Make content area expand */
.desktop-news-section .grid-4-cols>div>div:last-child,
.events-layout-grid>div>div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push footer (last child inside content) to bottom */
.desktop-news-section .grid-4-cols>div>div:last-child>:last-child,
.events-layout-grid>div>div:last-child>:last-child {
    margin-top: auto;
}

/* Training Certificate Section (Tablet Base - Grid Layout) */
.cert-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    /* Slightly reduced gap for tablet */
    align-items: center;
}

.cert-card-visual {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(203, 161, 116, 0.2);
    border: 2px solid #e0d5c7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


/* Global Data Section Tablet Spacing */
.global-data-section {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
}

.global-data-section .container>div:first-child {
    margin-bottom: 25px !important;
}

.data-source {
    text-align: right !important;
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

/* CTA Section Tablet Fix */
.cta-section {
    padding: 80px 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: 2.2rem;
    margin-bottom: 20px;
    color: white !important;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}