:root {
    --cy-primary: #2563eb;
    --cy-primary-dark: #1d4ed8;
    --cy-primary-soft: #eff6ff;
    --cy-accent: #0ea5e9;
    --cy-surface: #f1f5f9;
    --cy-surface-elevated: #ffffff;
    --cy-border: #e2e8f0;
    --cy-text: #0f172a;
    --cy-text-muted: #64748b;
    --cy-radius: 14px;
    --cy-radius-lg: 20px;
    --cy-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --cy-shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.12);
}

body.home-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--cy-surface);
    color: var(--cy-text);
}

body.home-page h1,
body.home-page h2,
body.home-page h3,
body.home-page h4,
body.home-page h5 {
    font-family: 'Raleway', 'Inter', sans-serif;
}

/* —— Hero —— */
.home-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 42%, #2563eb 100%);
    color: #fff;
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(14, 165, 233, 0.25), transparent),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-actions .btn {
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
}

.hero-actions .btn-light {
    color: var(--cy-primary-dark);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--cy-radius);
    padding: 1.1rem 1rem;
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-categories {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cat-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* —— Section headers —— */
.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.section-header .section-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-header .section-sub {
    font-size: 0.875rem;
    color: var(--cy-text-muted);
    margin: 0.25rem 0 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cy-primary);
    background: var(--cy-primary-soft);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.sidebar-block-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cy-text-muted);
    margin-bottom: 1rem;
}

.sidebar-block-title--alert {
    color: #d97706;
}

.sidebar-block-title i {
    margin-right: 0.35rem;
}

/* —— Opportunity cards —— */
.opportunity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cy-surface-elevated);
    border: 1px solid var(--cy-border);
    border-radius: var(--cy-radius);
    padding: 1.25rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.opportunity-card:hover {
    box-shadow: var(--cy-shadow-hover);
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.opportunity-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.company-logo {
    flex-shrink: 0;
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--cy-surface);
    border: 1px solid var(--cy-border);
    padding: 4px;
}

.opportunity-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.2rem;
}

.opportunity-card__title a {
    color: inherit;
    text-decoration: none;
}

.opportunity-card__title a:hover {
    color: var(--cy-primary);
}

.opportunity-card__company {
    font-size: 0.8125rem;
    color: var(--cy-text-muted);
}

.opportunity-card__badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.opportunity-card__excerpt {
    font-size: 0.875rem;
    color: var(--cy-text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.opportunity-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--cy-surface);
    color: var(--cy-text-muted);
    border: 1px solid var(--cy-border);
}

.meta-chip--deadline {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.meta-chip--deadline.soon {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.meta-chip--deadline.urgent {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.opportunity-card__cta {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.opportunity-card__cta i {
    transition: transform 0.2s ease;
}

.opportunity-card:hover .opportunity-card__cta i {
    transform: translateX(3px);
}

.posted-date {
    font-size: 0.8125rem;
    color: var(--cy-text-muted);
}

/* —— Empty state —— */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--cy-surface-elevated);
    border: 1px dashed var(--cy-border);
    border-radius: var(--cy-radius-lg);
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* —— Pagination —— */
.pagination-modern .page-link {
    border: none;
    border-radius: 10px !important;
    margin: 0 0.15rem;
    color: var(--cy-text);
    font-weight: 500;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-modern .page-item.active .page-link {
    background: var(--cy-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.pagination-modern .page-link:hover {
    background: var(--cy-primary-soft);
    color: var(--cy-primary);
}

/* —— Sidebar —— */
.sidebar-panel {
    background: var(--cy-surface-elevated);
    border: 1px solid var(--cy-border);
    border-radius: var(--cy-radius-lg);
    box-shadow: var(--cy-shadow);
}

.sidebar-panel--sticky {
    position: sticky;
    top: 5.5rem;
}

.app-promo {
    background: linear-gradient(135deg, var(--cy-primary-soft) 0%, #f8fafc 100%);
    border: 1px solid var(--cy-border);
    border-radius: var(--cy-radius);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-promo img {
    max-height: 120px;
    object-fit: contain;
}

.app-promo a.small {
    color: var(--cy-text-muted);
    line-height: 1.5;
}

.app-promo a.small:hover {
    color: var(--cy-primary);
}

/* —— Subscribe —— */
.subscribe-banner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
    border-radius: var(--cy-radius-lg);
    color: #fff;
    box-shadow: var(--cy-shadow-hover);
}

.subscribe-banner .form-control {
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
}

.subscribe-banner .btn-subscribe {
    background: #fff;
    color: var(--cy-primary-dark);
    font-weight: 600;
    border: none;
}

.subscribe-banner .btn-subscribe:hover {
    background: #f1f5f9;
    color: var(--cy-primary-dark);
}

.section-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* —— Carousel cards —— */
.carousel-card {
    background: var(--cy-surface-elevated);
    border: 1px solid var(--cy-border) !important;
    border-radius: var(--cy-radius) !important;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.carousel-card:hover {
    box-shadow: var(--cy-shadow-hover);
    transform: translateY(-2px);
}

.carousel-card__img-wrap {
    position: relative;
    overflow: hidden;
}

.carousel-card__img-wrap img {
    height: 168px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-card__img-wrap img {
    transform: scale(1.04);
}

.carousel-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.carousel-card__body a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cy-text);
    line-height: 1.4;
}

.carousel-card__body a:hover {
    color: var(--cy-primary);
}

/* —— Popular list —— */
.popular-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cy-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    color: var(--cy-primary);
}

.popular-item__thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--cy-border);
}

.popular-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item__views {
    font-size: 0.75rem;
    color: var(--cy-text-muted);
}

.browse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.browse-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--cy-surface);
    border: 1px solid var(--cy-border);
    color: var(--cy-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.browse-tag:hover {
    background: var(--cy-primary);
    border-color: var(--cy-primary);
    color: #fff;
}

.populer-news {
    background: var(--cy-surface-elevated);
    border-top: 1px solid var(--cy-border);
}

.populer-news .tab-class .nav-item a.active {
    background: var(--cy-primary) !important;
}

.populer-news .tab-class .nav-item a.active span {
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .sidebar-panel--sticky {
        position: static;
    }

    .hero-stat-grid {
        margin-top: 1.5rem;
    }
}
