/* ==================== HOME PAGE SPECIFIC STYLES ==================== */

/* ==================== GRIDS (keep only home-specific) ==================== */
.news-grid {
    grid-template-columns: 1fr;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--gradient-hero);
    padding-top: 5rem;
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 5rem);
    padding: 1.5rem 1rem 2.5rem;
    width: 100%;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

.hero-title-sub {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted-fg);
    display: block;
    margin-top: .5rem;
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted-fg);
    max-width: 34rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.hero-stat {
    text-align: center;
    padding: .75rem .5rem;
    border-radius: .75rem;
}

.hero-stat-num {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.1;
}

.hero-stat-label {
    font-size: .65rem;
    color: var(--muted-fg);
    font-weight: 500;
    margin-top: .25rem;
    line-height: 1.3;
}

.hero-visual {
    position: relative;
}

.hero-main-card {
    border-radius: 1.5rem;
    padding: .75rem;
    position: relative;
}

.hero-main-img {
    border-radius: 1rem;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.hero-blob-1 {
    width: 22rem;
    height: 22rem;
    background: #1173d433;
    top: 5rem;
    left: -4rem;
}

.hero-blob-2 {
    width: 18rem;
    height: 18rem;
    background: #1173d426;
    bottom: 5rem;
    right: 2rem;
}

.hero-blob-3 {
    width: 14rem;
    height: 14rem;
    background: #deebf74d;
    top: 50%;
    left: 38%;
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    position: relative;
}

.products-blob {
    width: 18rem;
    height: 18rem;
    background: rgba(29, 78, 216, .08);
    top: 8rem;
    right: 1rem;
}

.products-container {
    position: relative;
    z-index: 1;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    position: relative;
    background: var(--gradient-hero);
}

.about-blob {
    width: 20rem;
    height: 20rem;
    background: rgba(29, 78, 216, .08);
    top: 2rem;
    left: 2rem;
}

.about-container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

.about-title-left {
    text-align: left;
}

.about-content {
    color: var(--muted-fg);
    margin-bottom: .875rem;
    line-height: 1.75;
    font-size: .975rem;
}

.about-cta {
    margin-top: .5rem;
}

/* ==================== FEATURE SECTION ==================== */
.about-features-grid .card {
    transition: all 0.3s ease;
}

.about-features-grid .card:hover {
    transform: translateY(-5px);
    border-color: rgba(17, 115, 212, 0.25);
    box-shadow: 0 16px 36px rgba(17, 115, 212, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: rgba(17, 115, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.about-features-grid .card:hover .feature-icon {
    background: var(--primary);
    color: var(--primary-fg);
}

.feature-title {
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: .95rem;
    color: var(--fg);
}

.feature-desc {
    font-size: .875rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* ==================== NEWS SECTION ==================== */
.news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.news-card:hover {
    border-color: rgba(17, 115, 212, 0.25);
    box-shadow: 0 16px 36px rgba(17, 115, 212, 0.08);
    transform: translateY(-6px);
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--muted);
}

.news-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.05);
}

.news-card:hover .news-card-img-wrap::after {
    opacity: 1;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--muted-fg);
    font-size: 2.5rem;
}

.news-card-date-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
}

.news-card-date-chip i {
    font-size: 0.7rem;
    opacity: 0.85;
}

.news-card:hover .news-card-date-chip {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 115, 212, 0.2);
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(17, 115, 212, 0.06);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-category {
    background: var(--primary);
    color: var(--primary-fg);
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-desc {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.news-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.news-card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-link {
    color: var(--primary-hover);
}

.news-card:hover .news-card-link i {
    transform: translateX(5px);
}

.news-view-all {
    text-align: center;
    margin-top: 2.5rem;
}

.news-view-all-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero {
        padding-top: 6rem;
    }

    .hero .container {
        min-height: calc(100vh - 6rem);
        padding: 2rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-title-sub {
        font-size: 1.4rem;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: .75rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-title-sub {
        font-size: 1.75rem;
    }
}