/* ==========================================================================
   Thailand Lean Award - History Page Specific Styles (styleHistory.css)
   ========================================================================== */

/* Main History Layout */
.history-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

/* ==================== 1. History Hero Section ==================== */
.history-hero-section {
    max-width: 1300px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.history-hero-card {
    background: linear-gradient(135deg, #370d52 0%, #521873 50%, #7b2c9f 100%);
    border-radius: var(--radius-xl, 24px);
    padding: 46px 36px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 16px 45px rgba(82, 24, 115, 0.22);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.history-hero-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.history-hero-card::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fef08a;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background-color: #facc15;
    border-radius: 50%;
    box-shadow: 0 0 10px #facc15;
    display: inline-block;
}

.history-hero-card .hero-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.history-hero-card .hero-desc {
    font-size: 1.08rem;
    color: #f1f5f9;
    max-width: 820px;
    margin: 0 auto 24px;
    line-height: 1.7;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.history-hero-card .hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 1;
}

.history-hero-card .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 18px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.9rem;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.history-hero-card .stat-item strong {
    color: #fef08a;
    font-weight: 600;
}

/* ==================== 2. Main History Story & Timeline ==================== */
.history-story-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.history-main-card {
    background: #ffffff;
    border-radius: var(--radius-xl, 24px);
    border: 1px solid var(--border-card, #e2e8f0);
    box-shadow: 0 10px 30px rgba(82, 24, 115, 0.06);
    padding: 44px 44px;
    position: relative;
    overflow: hidden;
}

.history-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold, #d97706) 0%, var(--primary, #521873) 100%);
}

.card-lead-badge {
    display: inline-flex;
    align-items: center;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 18px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.history-main-heading {
    font-family: 'Kanit', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    line-height: 1.4;
    margin-bottom: 22px;
}

.story-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.story-text {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.85;
    text-align: justify;
}

.story-text strong {
    color: var(--primary, #521873);
    font-weight: 600;
}

.story-text em {
    font-style: normal;
    color: var(--gold, #d97706);
    font-weight: 600;
}

/* Timeline Subsection */
.milestones-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 28px;
    margin-top: 10px;
}

.milestones-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.timeline-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    transition: var(--transition, all 0.3s ease);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(82, 24, 115, 0.08);
    border-color: rgba(82, 24, 115, 0.25);
}

.timeline-card.highlight-card {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
}

.timeline-year-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary, #521873) 0%, var(--primary-light, #7b2c9f) 100%);
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 5px 16px;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(82, 24, 115, 0.2);
}

.timeline-year-tag.gold-tag {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

.timeline-heading {
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    margin-bottom: 10px;
    line-height: 1.4;
}

.timeline-desc {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.7;
}

/* ==================== 3. Key Significance Grid ==================== */
.significance-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.significance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.significance-card {
    background: #ffffff;
    border: 1px solid var(--border-card, #e2e8f0);
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 4px 16px rgba(82, 24, 115, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition, all 0.3s ease);
}

.significance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(82, 24, 115, 0.12);
    border-color: rgba(82, 24, 115, 0.3);
}

.significance-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-subtle, #f4ecf9) 0%, #ffffff 100%);
    border: 1px solid rgba(82, 24, 115, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #521873);
    margin-bottom: 18px;
    transition: var(--transition, all 0.3s ease);
}

.significance-card:hover .significance-icon-box {
    background: linear-gradient(135deg, var(--primary, #521873) 0%, var(--primary-light, #7b2c9f) 100%);
    color: #ffffff;
    transform: scale(1.08);
}

.significance-card-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    margin-bottom: 10px;
    line-height: 1.4;
}

.significance-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
}

/* ==================== 4. Objectives Section ==================== */
.objective-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.objective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.objective-card {
    background: #ffffff;
    border: 1px solid var(--border-card, #e2e8f0);
    border-radius: 20px;
    padding: 28px 28px;
    box-shadow: 0 6px 20px rgba(82, 24, 115, 0.05);
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: var(--transition, all 0.3s ease);
}

.objective-card:hover {
    transform: translateY(-4px);
    border-color: rgba(82, 24, 115, 0.28);
    box-shadow: 0 12px 30px rgba(82, 24, 115, 0.1);
}

.objective-number {
    font-family: 'Chakra Petch', 'Kanit', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(82, 24, 115, 0.2);
    letter-spacing: -1px;
    flex-shrink: 0;
    transition: var(--transition, all 0.3s ease);
}

.objective-card:hover .objective-number {
    color: var(--gold, #d97706);
    transform: scale(1.08);
}

.objective-body {
    flex: 1;
}

.objective-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.16rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    margin-bottom: 8px;
    line-height: 1.4;
}

.objective-desc {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.7;
}

.objective-desc strong {
    color: var(--primary, #521873);
}

/* ==================== 5. Emblem Section ==================== */
.emblem-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.emblem-showcase-box {
    max-width: 760px;
    margin: 0 auto;
}

.emblem-card-inner {
    background: linear-gradient(145deg, #ffffff 0%, #faf6fd 100%);
    border: 1.5px solid rgba(82, 24, 115, 0.14);
    border-radius: var(--radius-xl, 24px);
    padding: 44px 36px;
    text-align: center;
    position: relative;
    box-shadow: 0 14px 35px rgba(82, 24, 115, 0.08);
    overflow: hidden;
    transition: var(--transition, all 0.3s ease);
}

.emblem-card-inner:hover {
    box-shadow: 0 20px 45px rgba(82, 24, 115, 0.14);
    border-color: rgba(82, 24, 115, 0.3);
}

.emblem-glow-bg {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(82, 24, 115, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.emblem-tag {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    padding: 5px 16px;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 24px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.emblem-img-frame {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.emblem-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(82, 24, 115, 0.15));
    transition: transform 0.4s ease;
}

.emblem-card-inner:hover .emblem-image {
    transform: scale(1.05);
}

.emblem-name {
    position: relative;
    z-index: 1;
    font-family: 'Kanit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary, #521873);
    margin-bottom: 8px;
}

.emblem-line {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold, #d97706), var(--primary, #521873));
    margin: 16px auto 20px;
    border-radius: var(--radius-full, 9999px);
}

.emblem-desc-text {
    position: relative;
    z-index: 1;
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

/* ==================== 6. Partners Section ==================== */
.partners-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partner-card {
    background: #ffffff;
    border: 1px solid var(--border-card, #e2e8f0);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition, all 0.3s ease);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(82, 24, 115, 0.09);
    border-color: rgba(82, 24, 115, 0.25);
}

.partner-logo-box {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 10px;
}

.partner-logo-box img {
    max-height: 85px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo-box img {
    transform: scale(1.06);
}

.partner-info h4 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark, #3b0d55);
    margin-bottom: 6px;
    line-height: 1.4;
}

.partner-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* ==================== Responsive Queries ==================== */
@media (max-width: 1024px) {
    .significance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .history-page {
        padding-top: 85px;
    }

    .history-hero-card {
        padding: 36px 20px;
    }

    .history-hero-card .hero-title {
        font-size: 1.8rem;
    }

    .history-hero-card .hero-desc {
        font-size: 0.96rem;
    }

    .history-main-card {
        padding: 30px 20px;
    }

    .history-main-heading {
        font-size: 1.4rem;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .objective-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .significance-grid {
        grid-template-columns: 1fr;
    }

    .emblem-card-inner {
        padding: 32px 20px;
    }

    .emblem-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .history-hero-card .hero-title {
        font-size: 1.55rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .objective-card {
        flex-direction: column;
        gap: 12px;
    }
}
