:root {
    --bg-main: #f9f9f9;
    --bg-header: #ffffff; /* Sticky header needs solid background */
    --bg-card: #ffffff;
    --bg-hover: #f2f2f2;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --border-color: #e5e5e5;
    --accent-color: #0f0f0f;
    --brand-blue: #065fd4;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    
    --header-height: 72px; /* Slightly taller for the nav */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height); /* So smooth scrolling doesn't hide content under sticky header */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.top-nav .nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s, color 0.2s;
}

.top-nav .nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.top-nav .nav-item.active {
    color: var(--text-primary);
    font-weight: 600;
    background-color: var(--bg-hover);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 16px;
    width: 250px;
    transition: border-color 0.2s, width 0.3s;
}

.search-bar:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 1px var(--brand-blue);
    width: 300px;
}

.search-bar i {
    font-size: 20px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: var(--bg-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav .nav-item {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav .nav-item:last-child {
    border-bottom: none;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the scrollable content for wide screens */
}

/* Content Scrollable */
.content-scrollable {
    width: 100%;
    max-width: 1280px; /* Constrain max width for better readability without sidebar */
    padding: 32px 24px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.hero-content {
    flex: 1;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.badge {
    background-color: #f0f0f0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 450px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    opacity: 0.9;
}
.btn-primary:active {
    transform: scale(0.98);
}

.hero-image-wrapper {
    flex: 1;
    min-width: 400px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pills */
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.pill:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.pill.active {
    background-color: var(--text-primary);
    color: white;
}

/* Sections */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Brands Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.brand-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    box-shadow: var(--shadow-subtle);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    border: none;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(0.25);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-card:hover .preview-iframe {
    transform: scale(0.2625);
}

.brand-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
}

.card-info {
    display: flex;
    gap: 16px;
    padding-right: 24px;
}

.brand-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.bg-red { background-color: #ff0000; }
.bg-orange { background-color: #ff9800; }
.bg-pink { background-color: #e91e63; }
.bg-blue { background-color: #2196f3; }

.brand-details {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Corporate Section */
.corporate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.corp-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.corp-card:hover {
    box-shadow: var(--shadow-card);
}

.corp-card i {
    font-size: 36px;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.corp-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.corp-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .search-bar {
        display: none; /* Hide search on small screens or make it an icon toggle */
    }
    .hero-card {
        flex-direction: column;
    }
    .hero-image-wrapper {
        min-height: 250px;
    }
    .hero-content {
        padding: 32px;
    }
}
