/* Mobile Common Styles (from new-mobile.css) */

/* Variables */
:root {
    --mobile-nav-height: 56px;
    --mobile-primary: #0a1128;
    --mobile-secondary: #cba174;
    --mobile-text: #1c1c1c;
    --mobile-bg: #fdfcfb;
    --mobile-font: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Roboto", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mobile-serif: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", sans-serif;
}

/* Global Reset */
* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Components Visibility */
.desktop-only,
.site-header,
.site-header .nav-container,
.site-header .logo,
.site-header .main-nav,
.site-header .mobile-menu-toggle {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

/* Reset & Typography */
body {
    font-family: var(--mobile-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--mobile-text);
    background-color: var(--mobile-bg);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--mobile-nav-height);
    /* Nav space */
}

h1 {
    font-size: 28px !important;
}

h2 {
    font-size: 24px !important;
}

h3 {
    font-size: 20px !important;
}

p {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Layout Fixes */
.page-header {
    margin-top: 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 auto;
    box-sizing: border-box;
}

section {
    padding: 32px 0 !important;
}

.hero-section {
    min-height: auto !important;
    padding: 80px 0 40px !important;
    background-attachment: scroll !important;
}

.hero-content {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.hero-section::before {
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

.hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
}

.hero-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Single Column Grid Enforcement */
.grid-4-cols,
.conf-grid-expanded,
.section-split,
.feature-container,
.footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
}

/* Data Grid Exception (2 cols) */
.data-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

.data-card {
    padding: 15px 8px !important;
    height: auto !important;
    min-height: 120px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-bottom: 16px;
}

.data-value {
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
    word-break: break-all;
}

.data-label {
    font-size: 0.9rem !important;
}

/* Common Components */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn,
button,
input[type="submit"],
a.btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
textarea,
select {
    height: 48px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.pillar-card,
.conf-card-light {
    margin-bottom: 16px;
    padding: 24px !important;
}

.feature-visual {
    height: 250px !important;
}

/* =========================================
   Premium Components (Migrated from K12 Mobile)
   ========================================= */

/* --- Ecosystem Section - Mobile Cards --- */
.ecosystem-section {
    padding: 40px 0;
    background: #ffffff;
    position: relative;
}

.grid-2-cols,
.grid-3-cols {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eco-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 35px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.eco-card::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.training-bg::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.conference-bg::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='1.5'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.hhha-bg::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='1.5'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.eco-tag {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #cba174;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
}

.eco-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    color: #0f172a;
    font-weight: 700;
}

.eco-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.85rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(15, 23, 42, 0.2);
    padding-bottom: 4px;
    font-weight: 600;
}


/* --- Cooperation Section - Mobile --- */
.new-coop-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%) !important;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.new-coop-content {
    padding: 0 20px;
}

.new-coop-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0f172a;
    line-height: 1.3;
    font-weight: 700;
}

.new-coop-content p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- Utilities --- */
.section-padding {
    padding: 40px 0;
}

/* --- Touch Feedback --- */
@media (hover: none) and (pointer: coarse) {

    .academic-card:active,
    .eco-card:active {
        transform: scale(0.98);
    }
}