/* --- Scoped to .home-v3-container --- */
:root {
    --v3-primary: #4F46E5;
    /* Indigo 600 */
    --v3-secondary: #818CF8;
    /* Indigo 400 */
    --v3-dark: #0F172A;
    --v3-gray-50: #f9fafb;
    --v3-gray-100: #f3f4f6;
    --v3-gray-200: #e5e7eb;
    --v3-gray-400: #9ca3af;
    --v3-gray-500: #6b7280;
    --v3-gray-600: #4b5563;
    --v3-gray-800: #1f2937;
    --v3-white: #ffffff;

    --v3-font-sans: 'Plus Jakarta Sans', sans-serif;

    --v3-radius-xl: 1rem;
    /* 16px */
    --v3-radius-2xl: 1.5rem;
    /* 24px */
    --v3-radius-3xl: 2.5rem;
    /* 40px */
}

.home-v3-container a {
    text-decoration: none;
    color: inherit;
}

.home-v3-container {
    font-family: var(--v3-font-sans);
    color: var(--v3-gray-800);
    width: 100%;
    background-color: var(--v3-gray-50);
    line-height: 1.5;
}

.v3-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.v3-font-bold {
    font-weight: 700;
}

.v3-font-extrabold {
    font-weight: 800;
}

.v3-text-dark {
    color: var(--v3-dark);
}

.v3-text-primary {
    color: var(--v3-primary);
}

.v3-text-gray {
    color: var(--v3-gray-500);
}

.v3-text-sm {
    font-size: 0.875rem;
}

.v3-text-xs {
    font-size: 0.75rem;
}

.v3-uppercase {
    text-transform: uppercase;
}

.v3-leading-tight {
    line-height: 1.25;
}

/* Utilities Replaced from Tailwind */
.v3-block {
    display: block;
}

.v3-f-full {
    width: 100%;
    height: 100%;
}

.v3-flex {
    display: flex;
}

.v3-flex-col {
    flex-direction: column;
}

.v3-items-center {
    align-items: center;
}

.v3-gap-4 {
    gap: 1rem;
}

.v3-gap-3 {
    gap: 0.75rem;
}

.v3-gap-2 {
    gap: 0.5rem;
}

.v3-mb-2 {
    margin-bottom: 0.5rem;
}

.v3-mb-3 {
    margin-bottom: 0.75rem;
}

.v3-p-4 {
    padding: 1rem;
}

.v3-bg-gray-100 {
    background-color: var(--v3-gray-100);
}

.v3-text-white {
    color: white !important;
}

.v3-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.v3-hidden {
    display: none;
}

@media(min-width: 768px) {
    .md\:v3-flex {
        display: flex;
    }
}

@media(min-width: 1024px) {
    .lg\:v3-block {
        display: block;
    }
}

.v3-object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gradients & Effects */
/* Stronger gradient for better text contrast */
.v3-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.v3-hover-zoom {
    overflow: hidden;
}

.v3-hover-zoom img {
    transition: transform 0.7s ease;
}

.v3-group:hover .v3-hover-zoom img {
    transform: scale(1.1);
}

.v3-transition {
    transition: all 0.3s ease;
}

.v3-group:hover .v3-group-hover-text-primary {
    color: var(--v3-primary);
}

/* Removed hover secondary for hero to keep it simple white */

/* --- COMPONENTS --- */

/* Hero Section (Bento Grid) - Simplified Background */
.v3-hero-section {
    background-color: transparent;
    /* Clean look */
    /* padding: 1.5rem; - removed padding from container for simpler look */
    padding-top: 1rem;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media(min-width: 768px) {
    .v3-hero-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .v3-hero-section {
        grid-template-columns: repeat(4, 1fr);
        height: 560px;
    }

    .v3-hero-col-1 {
        grid-column: span 1;
    }

    .v3-hero-col-2 {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: 100%;
    }
}

.v3-hero-item {
    position: relative;
    border-radius: 1.5rem;
    /* 24px */
    overflow: hidden;
    height: 16rem;
    /* mobile height */
    cursor: pointer;
}

@media(min-width: 1024px) {
    .v3-hero-item {
        height: 100%;
    }

    .v3-hero-mid-top {
        height: calc(60% - 0.5rem);
    }

    .v3-hero-mid-bot-row {
        height: calc(40% - 0.5rem);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .v3-hero-mid-bot-item {
        height: 100%;
        border-radius: 1.5rem;
        overflow: hidden;
        position: relative;
    }
}

.v3-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    color: white;
    z-index: 10;
    width: 100%;
}

.v3-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(79, 70, 229, 0.9);
    /* Primary/90 */
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: white;
}

.v3-tag.purple {
    background-color: rgba(147, 51, 234, 0.9);
}

.v3-tag.blue {
    background-color: rgba(59, 130, 246, 0.9);
}

.v3-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: white !important;
    /* Force white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add shadow for better readability */
}

@media(min-width: 1024px) {
    .v3-hero-title {
        font-size: 1.5rem;
    }
}

/* Section Header */
.v3-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--v3-gray-200);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.v3-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.v3-header-pill {
    width: 0.375rem;
    height: 2rem;
    background-color: var(--v3-primary);
    border-radius: 9999px;
}

.v3-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v3-dark);
}

.v3-view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--v3-gray-500);
    text-decoration: none;
}

.v3-view-all:hover {
    color: var(--v3-primary);
}

/* Trending Section */
.v3-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 640px) {
    .v3-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .v3-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v3-card-trend {
    cursor: pointer;
}

.v3-card-trend-img {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
}

.v3-rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    z-index: 10;
}

.v3-cat-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.v3-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v3-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.v3-card-trend:hover .v3-card-title {
    color: var(--v3-primary);
}

.v3-meta {
    font-size: 0.75rem;
    color: var(--v3-gray-400);
}

/* Latest / Split Section */
.v3-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 1024px) {
    .v3-split-grid {
        grid-template-columns: 4fr 4fr 4fr;
    }
}

/* Feature Large (Left) */
.v3-feat-large-img {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 16rem;
    width: 100%;
    margin-bottom: 1.25rem;
}

@media(min-width: 1024px) {
    .v3-feat-large-img {
        height: 20rem;
    }
}

.v3-feat-large-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v3-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.v3-feat-large:hover .v3-feat-large-title {
    color: var(--v3-primary);
}

.v3-excerpt {
    color: var(--v3-gray-500);
    margin-bottom: 1rem;
}

/* Middle List */
.v3-list-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media(min-width: 1024px) {
    .v3-list-col {
        border-right: 1px solid var(--v3-gray-100);
        padding-right: 1.5rem;
    }
}

.v3-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.v3-list-thumb {
    width: 6rem;
    height: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.v3-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v3-dark);
    line-height: 1.4;
}

.v3-list-item:hover .v3-list-title {
    color: var(--v3-primary);
}

/* Right Sidebar (Cards) */
.v3-sidebar-box {
    background-color: var(--v3-gray-50);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--v3-gray-100);
}

.v3-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--v3-gray-100);
    padding-bottom: 1rem;
}

.v3-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.v3-icon-box {
    background-color: #e0e7ff;
    /* indigo-50 */
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--v3-primary);
}

/* Category Sections */
.v3-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .v3-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .v3-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v3-cat-card {
    background-color: white;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid var(--v3-gray-100);
    transition: box-shadow 0.3s;
}

.v3-cat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Footer */
.v3-footer {
    background-color: white;
    border-top: 1px solid var(--v3-gray-100);
    margin-top: 3rem;
    padding: 2.5rem 0;
    text-align: center;
}

.v3-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--v3-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.v3-footer-logo-mark {
    width: 0.5rem;
    height: 1.5rem;
    background-color: var(--v3-primary);
    border-radius: 999px;
}

.v3-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v3-gray-500);
}

.v3-footer-links a {
    text-decoration: none;
    color: inherit;
}

.v3-footer-links a:hover {
    color: var(--v3-primary);
}