/* ==================== History Page Styles ==================== */
.history-section {
    padding: 40px 20px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.history-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 10px 30px -4px rgba(6, 78, 59, 0.06);
    padding: 36px 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-card:hover {
    box-shadow: 0 16px 36px -6px rgba(6, 78, 59, 0.1);
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #047857 100%);
}

/* Card Header */
.history-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}

.history-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.history-card-title-group {
    flex: 1;
}

.history-card-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    display: block;
    margin-bottom: 2px;
}

.history-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #064e3b;
    margin: 0;
    line-height: 1.35;
}

/* Story Content */
.history-intro-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
    text-align: justify;
    margin-bottom: 28px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #10b981;
    background: #f8faf9;
    padding: 20px 24px;
    border-radius: 0 14px 14px 0;
}

/* Timeline / Milestones Grid */
.history-milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.milestone-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.milestone-box:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-era1 {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-era2 {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.milestone-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.milestone-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
}

/* 3 Main Contest Categories */
.category-chips-wrapper {
    margin: 28px 0;
}

.category-chips-header {
    font-size: 1.08rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    background: linear-gradient(135deg, #f8faf9 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s ease;
}

.category-card:hover {
    background: #ecfdf5;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.category-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Awards & Trophies Highlight Box */
.awards-showcase-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.awards-showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 16px;
}

.award-badges-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-badge-item {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.94rem;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.award-badge-item strong {
    color: #064e3b;
}

.award-trophy-highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.award-trophy-highlight strong {
    color: #92400e;
}

/* ==================== Objectives Section ==================== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.objective-item-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 8px 24px -4px rgba(6, 78, 59, 0.06);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.objective-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -6px rgba(6, 78, 59, 0.14);
    border-color: #10b981;
}

.objective-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #047857);
}

.objective-num-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.12);
    line-height: 1;
    font-family: var(--font-display);
}

.objective-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.objective-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.objective-desc {
    font-size: 0.96rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ==================== Logo Emblem Section ==================== */
.logo-showcase-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 10px 30px -4px rgba(6, 78, 59, 0.06);
    padding: 40px 32px;
    scroll-margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.logo-showcase-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
}

.logo-display-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
}

.logo-image-frame {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
    position: relative;
}

.logo-image-frame img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.logo-image-frame:hover img {
    transform: scale(1.05);
}

.logo-details-content {
    flex: 1;
}

.logo-headline {
    font-size: 1.35rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 12px;
}

.logo-explanation {
    font-size: 1.02rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.logo-values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-value-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8faf9;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.88rem;
    color: #065f46;
    font-weight: 500;
}

.logo-value-tag span {
    font-size: 1rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    .category-chips-grid {
        grid-template-columns: 1fr;
    }
    .logo-display-card {
        flex-direction: column;
        text-align: center;
    }
    .logo-values-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 24px 12px 60px;
    }
    .history-card, .logo-showcase-container {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .history-milestone-grid {
        grid-template-columns: 1fr;
    }
    .history-intro-text {
        padding: 16px;
        font-size: 0.98rem;
    }
    .award-badges-list {
        grid-template-columns: 1fr;
    }
}
