:root {
    --hero-overlay: rgba(8, 11, 15, 0.6);
    --hero-card-bg: rgba(18, 20, 24, 0.55);
    --hero-card-border: rgba(255, 255, 255, 0.25);
    --hero-accent: #e64b35;
    --hero-ink: #101114;
}

.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    padding: 5rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 12, 14, 0.7), var(--hero-overlay));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    animation: rise-in 0.7s ease both;
}

.hero-kicker {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.6rem, 4vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-filter-card {
    background: var(--hero-card-bg);
    border: 1px solid var(--hero-card-border);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    animation: rise-in 0.8s ease both;
    animation-delay: 0.12s;
    max-width: 640px;
}

.hero-filter-card .filter-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-filter-card .filter-pill:hover,
.hero-filter-card .filter-pill:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-filter-card .filter-pill--active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.hero-filter-card .filter-pill i {
    color: rgba(255, 255, 255, 0.75);
}

.hero-filter-card .filter-pill--active i {
    color: #fff;
}

.hero-filter-card .filter-pill.dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.7);
}

.hero-filter-card .filter-search-input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.hero-filter-card .filter-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-filter-card .filter-search-icon {
    color: rgba(255, 255, 255, 0.6);
}

.hero-filter-card .btn.btn-light {
    background: #fff;
    color: #101114;
    border-color: #fff;
}

.hero-filter-card .dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
}

.hero-filter-card .filter-search {
    min-width: 180px;
    flex: 1 1 180px;
}

.hero-filter-card .dropdown {
    min-width: 0;
    flex: 1 1 0;
}

.hero-filter-card .filter-controls {
    width: 100%;
}

.hero-filter-card .filter-pill {
    width: 100%;
    justify-content: space-between;
}

.hero-filter-actions a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.hero-filter-actions a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-login-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: rise-in 0.8s ease both;
    animation-delay: 0.2s;
    max-width: 380px;
}

.hero-login-card img {
    border-radius: 18px;
}

.hero-login-card .btn-danger {
    background-color: var(--hero-accent);
    border-color: var(--hero-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-login-card .btn-danger:hover {
    background-color: #cf3c2a;
    border-color: #cf3c2a;
}

.featured-section {
    position: relative;
    padding: 4rem 0;
    background: #fff;
}

.featured-section .container {
    position: relative;
    z-index: 1;
}

.featured-link {
    color: var(--hero-accent);
}

.featured-link:hover {
    color: #cf3c2a;
    text-decoration: underline;
}

.section-title {
    font-family: "Playfair Display", serif;
    color: var(--hero-ink);
}

.section-copy {
    font-family: "Source Sans 3", sans-serif;
    color: #5b6772;
}

.featured-card {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(16, 17, 20, 0.18);
    animation: rise-in 0.8s ease both;
}

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

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 85%);
}

.featured-card-content {
    position: absolute;
    inset: 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.featured-badge {
    background: rgba(230, 75, 53, 0.85);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.featured-card.small {
    min-height: 240px;
    animation-delay: 0.18s;
}

.featured-card.large {
    min-height: 520px;
    animation-delay: 0.1s;
}

.community-section {
    padding: 4rem 0 5rem;
}

.community-surface {
    background: #f5f3ef;
    border-radius: 40px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.community-surface::before {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(241, 185, 94, 0.25), transparent 70%);
    z-index: 0;
}

.community-content {
    position: relative;
    z-index: 1;
}

.community-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 16px 30px rgba(16, 17, 20, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: rise-in 0.8s ease both;
}

.community-card img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.community-tags span {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    background: #f0f0f0;
    border-radius: 6px;
    margin: 0 0.2rem;
    display: inline-block;
    color: #6b7280;
}

.community-quote {
    font-style: italic;
    color: #2f3742;
}

.community-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-filter-card,
    .hero-login-card,
    .featured-card,
    .community-card {
        animation: none;
    }
}
