/* =============================================
   HOME PAGE — home.css
   ============================================= */

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, #0a2540 0%, #103a6e 60%, #1a73e8 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(26,115,232,0.12);
    right: -100px; top: -100px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.hero-badge .dot {
    width: 7px; height: 7px;
    background: #00c2a8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title .highlight {
    color: #4db3ff;
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute; bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4db3ff, #00c2a8);
    border-radius: 2px;
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
    background: #fff;
    color: #0a2540;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 12px;
    border: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-hero-primary:hover {
    background: #f0f5ff;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.3);
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s;
    backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex; gap: 32px; flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
    font-size: 28px; font-weight: 800; color: #fff; line-height: 1;
    display: flex; align-items: baseline; gap: 2px;
}
.hero-stat-num sup { font-size: 15px; font-weight: 700; color: #4db3ff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }

.hero-img-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap img {
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 520px;
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card-float {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex; align-items: center; gap: 12px;
    min-width: 170px;
}
.hero-card-float.card-left  { left: -20px; bottom: 60px; animation: heroFloat 5s ease-in-out infinite; animation-delay: .5s; }
.hero-card-float.card-right { right: -10px; top: 60px; animation: heroFloat 4.5s ease-in-out infinite; animation-delay: 1s; }
.hcf-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.hcf-icon.blue { background: #eef2ff; color: #1a73e8; }
.hcf-icon.green { background: #e6faf7; color: #00a88a; }
.hcf-num  { font-size: 18px; font-weight: 800; color: #0a2540; line-height: 1; }
.hcf-text { font-size: 11px; color: #888; margin-top: 2px; }

/* ---- SECTION TITLE ---- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: #eef2ff;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: #0a2540;
    margin-bottom: 12px;
    line-height: 1.25;
}
.section-title span { color: #1a73e8; }
.section-desc {
    color: #666;
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- FEATURES ---- */
.features-section { padding: 80px 0; background: #f5f7fa; }

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
    border: 1.5px solid #edf0f7;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #00c2a8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(10,37,64,0.1); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.fi-blue  { background: #eef2ff; color: #1a73e8; }
.fi-teal  { background: #e6faf7; color: #00a88a; }
.fi-navy  { background: #e8edf5; color: #0a2540; }
.fi-amber { background: #fff8e6; color: #f59e0b; }
.fi-rose  { background: #fff0f0; color: #e53935; }
.fi-purple{ background: #f5eeff; color: #7c3aed; }

.feature-card h5 {
    font-size: 16px; font-weight: 700;
    color: #0a2540; margin-bottom: 10px;
}
.feature-card p { font-size: 13.5px; color: #666; line-height: 1.7; margin: 0; }
.feature-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: #1a73e8; font-size: 13px; font-weight: 600;
    margin-top: 16px; transition: gap .2s;
}
.feature-link:hover { gap: 9px; }

/* ---- STATS ---- */
.stats-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #0a2540 0%, #103a6e 100%);
    position: relative; overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.523-4.477-10-10-10S0 14.477 0 20s4.477 10 10 10 10-4.477 10-10zm10 0c0 5.523 4.477 10 10 10s10-4.477 10-10-4.477-10-10-10-10 4.477-10 10z'/%3E%3C/g%3E%3C/svg%3E");
}
.stat-box {
    text-align: center;
    padding: 20px;
    position: relative;
}
.stat-box::after {
    content: '';
    position: absolute; right: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(255,255,255,0.1);
}
.stat-box:last-child::after { display: none; }
.stat-box-num {
    font-size: 42px; font-weight: 800; color: #fff; line-height: 1;
    display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.stat-box-num .suffix { font-size: 22px; color: #4db3ff; }
.stat-box-label {
    font-size: 13px; color: rgba(255,255,255,0.6);
    margin-top: 8px; max-width: 140px; margin-inline: auto;
}
.stat-box-icon {
    font-size: 28px; margin-bottom: 10px;
    background: rgba(255,255,255,0.08);
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-inline: auto; color: #4db3ff;
}

/* ---- ARTICLE CARDS ---- */
.articles-section { padding: 80px 0; background: #fff; }

.article-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 16px rgba(10,37,64,0.07);
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s;
    display: flex; flex-direction: column;
    position: relative;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(10,37,64,0.14);
}

/* Image with gradient overlay */
.article-card-img {
    overflow: hidden;
    height: 215px;
    position: relative;
    flex-shrink: 0;
}
.article-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s cubic-bezier(.25,.8,.25,1);
}
.article-card:hover .article-card-img img { transform: scale(1.08); }
.article-card-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.55) 0%, transparent 55%);
    pointer-events: none;
}

/* Badge floats on image */
.article-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    color: #1a73e8;
    font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 50px;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Date floats bottom-right on image */
.article-img-date {
    position: absolute;
    bottom: 12px; right: 14px;
    z-index: 2;
    color: rgba(255,255,255,0.85);
    font-size: 11.5px;
    display: flex; align-items: center; gap: 5px;
}

.article-card-body {
    padding: 22px 24px 20px;
    display: flex; flex-direction: column; flex: 1;
}
.article-card-title {
    font-size: 15.5px; font-weight: 700;
    color: #0a2540; line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-title a { color: inherit; transition: color .2s; }
.article-card-title a:hover { color: #1a73e8; }
.article-card-text {
    font-size: 13.5px; color: #7a8090; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 20px; flex: 1;
}
.article-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f2f7;
    margin-top: auto;
}
.article-read-more {
    display: inline-flex; align-items: center; gap: 0;
    background: #1a73e8;
    color: #fff;
    font-size: 12.5px; font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    transition: background .2s, gap .2s, transform .2s;
}
.article-read-more i { margin-left: 6px; transition: transform .2s; }
.article-read-more:hover {
    background: #1558c0;
    color: #fff;
}
.article-read-more:hover i { transform: translateX(4px); }

/* Left accent bar on hover */
.article-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #1a73e8, #00c2a8);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s;
    border-radius: 0 0 0 20px;
}
.article-card:hover::before { transform: scaleY(1); }

/* ---- ABOUT SPLIT ---- */
.about-split { padding: 80px 0; background: #f5f7fa; }
.about-split-img {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,37,64,0.12);
    position: relative;
}
.about-split-img img { width: 100%; display: block; }
.about-split-img .img-badge {
    position: absolute; bottom: 24px; left: 24px;
    background: #fff; border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 12px;
}
.about-split-content { padding-left: 16px; }
.about-split-content .check-list { list-style: none; padding: 0; margin: 20px 0; }
.about-split-content .check-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: #444; margin-bottom: 12px; line-height: 1.6;
}
.check-icon {
    width: 22px; height: 22px; background: #eef2ff;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    color: #1a73e8; font-size: 12px; flex-shrink: 0; margin-top: 2px;
}

/* ---- TOPICS ---- */
.topics-section { padding: 80px 0; background: #fff; }
.topic-tag {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid #dde4ef;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px; font-weight: 600;
    color: #1a2a44;
    background: #fff;
    transition: all .25s;
    text-decoration: none;
    margin: 6px;
}
.topic-tag:hover {
    background: #1a73e8; color: #fff;
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.25);
}
.topic-tag .tag-icon { font-size: 18px; }
.topic-tag .tag-count {
    font-size: 11px; font-weight: 700;
    background: #f0f5ff; color: #1a73e8;
    padding: 2px 7px; border-radius: 50px;
    transition: background .2s, color .2s;
}
.topic-tag:hover .tag-count { background: rgba(255,255,255,0.2); color: #fff; }

/* ---- FEEDBACK ---- */
.feedback-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f5ff, #e8f4ff);
    border-top: 1px solid #dde8ff;
}
.feedback-box {
    text-align: center; max-width: 480px; margin: 0 auto;
}
.feedback-box h4 { font-size: 20px; font-weight: 700; color: #0a2540; margin-bottom: 8px; }
.feedback-box p { font-size: 14px; color: #666; margin-bottom: 24px; }
.feedback-btns { display: flex; justify-content: center; gap: 12px; }
.btn-feedback {
    padding: 11px 32px; border-radius: 12px;
    font-size: 14px; font-weight: 700;
    border: 2px solid #0a2540; color: #0a2540;
    background: #fff;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-feedback:hover, .btn-feedback.selected-yes {
    background: #0a2540; color: #fff; border-color: #0a2540;
}
.btn-feedback.selected-no { background: #e53935; color: #fff; border-color: #e53935; }

/* ---- SCROLL REVEAL (CSS class based) ---- */
[data-reveal] { transition: opacity .6s ease, transform .6s ease; }
[data-reveal][data-delay="0.05"] { transition-delay: .05s; }
[data-reveal][data-delay="0.1"]  { transition-delay: .1s; }
[data-reveal][data-delay="0.15"] { transition-delay: .15s; }
[data-reveal][data-delay="0.2"]  { transition-delay: .2s; }
[data-reveal][data-delay="0.25"] { transition-delay: .25s; }
[data-reveal][data-delay="0.3"]  { transition-delay: .3s; }

[data-reveal].will-animate               { opacity: 0; }
[data-reveal="up"].will-animate          { transform: translateY(32px); }
[data-reveal="left"].will-animate        { transform: translateX(-32px); }
[data-reveal="right"].will-animate       { transform: translateX(32px); }
[data-reveal].is-visible                 { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; padding: 60px 0; }
    .hero-img-wrap { margin-top: 40px; }
    .hero-card-float { display: none; }
    .hero-stats { gap: 20px; }
    .about-split-content { padding-left: 0; margin-top: 32px; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 28px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; }
}
