﻿/* =========================================
   Mobile Styles (<767px) - Premium Edition
   File: css/mobile/research/k12.css
   ========================================= */

/* --- Hero Section - Mobile Premium --- */
.research-hero {
    position: relative;
    padding: 110px 0 40px !important;
    /* Reduced to 110px to move title even higher */
    margin-top: -56px;
    /* Pull under nav */
    background: linear-gradient(135deg, #0a1128 0%, #1e293b 50%, #0a1128 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
}

.research-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 120%;
    background:
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(203, 161, 116, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(203, 161, 116, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, rgba(10, 17, 40, 0.9) 0%, #0a1128 100%);
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.8;
        filter: brightness(1);
    }

    100% {
        opacity: 1;
        filter: brightness(1.1);
    }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    /* Reset padding-top */
}

.hero-tag {
    display: inline-block;
    color: #cba174;
    font-size: 0.70rem;
    /* Reduced for single line */
    letter-spacing: 2px;
    /* Reduced for single line */
    margin-bottom: 20px;
    white-space: normal;
    /* Prevent wrapping */
    border: 1px solid rgba(203, 161, 116, 0.3);
    padding: 8px 16px;
    /* Slightly reduced padding */
    border-radius: 30px;
    position: relative;
    z-index: 1;
    background: rgba(203, 161, 116, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-family: 'Noto Serif SC', serif;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.hero-tag::before,
.hero-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cba174, transparent);
    opacity: 0.6;
}

.hero-tag::before {
    right: 100%;
    margin-right: 15px;
}

.hero-tag::after {
    left: 100%;
    margin-left: 15px;
    transform: rotate(180deg);
}

.research-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 1.6rem !important;
    /* Reduced to prevent ugly wrapping */
    line-height: 1.4 !important;
    margin-bottom: 20px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 40%, #cba174 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(203, 161, 116, 0.3));
    animation: fadeInUp 1s ease-out;
}

.research-hero p.subtitle,
.hero-desc {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.hero-cta {
    margin-top: 20px;
}

.btn-primary,
.btn-view-more {
    display: inline-block;
    padding: 14px 40px !important;
    background: linear-gradient(135deg, #cba174 0%, #d97706 100%) !important;
    color: #0a1128 !important;
    font-weight: 700 !important;
    text-decoration: none;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(203, 161, 116, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem !important;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: none !important;
}

.btn-primary::before,
.btn-view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:active,
.btn-view-more:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(203, 161, 116, 0.25);
}

.btn-primary:active::before,
.btn-view-more:active::before {
    left: 100%;
}


/* --- Section Headers - Mobile Standardized --- */
.section-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 0 15px;
}

.section-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    line-height: 1.3;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #cba174, transparent);
    border-radius: 2px;
    margin: 10px auto 0;
}

.section-header p.subtitle {
    font-family: 'Noto Sans SC', sans-serif;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
    font-weight: 400;
}

/* --- Academic Section - Mobile Cards --- */
.academic-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
}

.academic-section .container {
    padding: 0 20px;
}

.academic-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.academic-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-left: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: auto;
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #cba174, #d97706);
    transition: height 0.4s ease;
}

.academic-card:active {
    transform: translateY(-4px);
    background: linear-gradient(to bottom, #fffbf5, #ffffff);
    box-shadow: 0 12px 30px rgba(203, 161, 116, 0.15);
    border-color: rgba(203, 161, 116, 0.3);
}

.academic-card:active::before {
    height: 100%;
}



.card-number {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
}

.academic-card h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
}

.academic-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}


/* --- Solution Section - Mobile Layout --- */
.solution-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.solution-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.solution-row.reverse {
    flex-direction: column;
}

/* Ensure visual comes first on mobile regardless of reverse class */
.solution-row .solution-visual,
.solution-row.reverse .solution-visual {
    order: 2;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.solution-row .solution-text,
.solution-row.reverse .solution-text {
    order: 1;
}

.solution-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cba174;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border: 1px solid rgba(203, 161, 116, 0.3);
    border-radius: 20px;
    background: rgba(203, 161, 116, 0.08);
    margin-bottom: 15px;
}

.solution-text h3 {
    font-size: 1.4rem;
    font-family: 'Noto Serif SC', serif;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.solution-text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Hide desktop specific elements */
.visual-content {
    display: none;
}


/* --- 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: 'Noto Serif SC', 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: 'Noto Serif SC', 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 --- */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

.section-padding {
    padding: 40px 0;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Touch Feedback --- */
@media (hover: none) and (pointer: coarse) {

    .academic-card:active,
    .eco-card:active {
        transform: scale(0.98);
    }
}