/* =========================
   RESET
========================= */

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

/* =========================
   VARIABLES
========================= */

:root {

    --bg: #0B1020;
    --surface: #121A33;
    --surface-light: #1A2347;

    --border: #2A3563;

    --text: #EAF0FF;
    --muted: #A9B4D0;

    --accent1: #FF2D95;
    --accent2: #2DE2E6;
    --accent3: #F9C80E;

    --success: #2BD97F;
    --danger: #FF4D4D;

    --radius: 20px;

    --shadow:
      0 10px 30px rgba(0,0,0,0.25);

    --font-heading: 'Lora', 'Georgia', serif;
    --font-body: 'Montserrat', 'Arial', sans-serif;
}

/* =========================
   BODY
========================= */

body {

    background: var(--bg);

    color: var(--text);

    font-family: var(--font-body);

    line-height: 1.6;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.1;

    margin-bottom: 1rem;
}

h2 {

    font-size: 2rem;

    margin-bottom: 1rem;
}

h3 {

    font-size: 1.25rem;
}

a {
    text-decoration: none;
}

/* =========================
   LAYOUT
========================= */

.container {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

[class*="col-"] {
    padding: 10px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 {
    width: 25%;
}
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-right {
    text-align: right;
}

/* =========================
   HEADER
========================= */

.header {
    background: var(--surface);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {

    max-width: 1440px;
    margin: 0 auto;
    
}

.logo {
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-light);
    transition: 0.2s;
}

.nav a:hover {
    color: var(--gold);
}
.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    padding: 1rem 2rem;
}

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

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* =========================
   BUTTONS
========================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 24px;

    border-radius: 999px;

    font-weight: 600;

    transition: 0.2s ease;
}

.btn-danger {
    background: #C0392B;
    color: #FFFFFF;
}

.btn-danger:hover {

    transform: translateY(-2px);

    box-shadow:
      0 10px 20px rgba(255,45,149,0.3);
}

/* =========================
   HERO
========================= */

.hero {

    padding: 8rem 0 6rem;

    text-align: center;

    background:
      radial-gradient(
        circle at top left,
        rgba(45,226,230,0.12),
        transparent 30%
      ),
      radial-gradient(
        circle at top right,
        rgba(255,45,149,0.12),
        transparent 30%
      ),
      var(--bg);
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    color: var(--gold);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero h1 {
    color: var(--text-light);
    font-size: 4rem;
     font-display: swap;
}

.hero-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: auto;
    margin-bottom: 2rem;
}

/* =========================
   SEARCH
========================= */

.search-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
}

input {

    width: 100%;

    background: #0D1428;

    border: 1px solid var(--border);

    color: var(--text);

    padding: 16px 20px;

    border-radius: 999px;
}

input:focus {

    border-color: var(--accent2);

    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================
   SECTION
========================= */
section {

    margin-bottom: 80px;
}

.section-header {
    margin: 60px 0 30px;
}
.section-label {

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--muted);

    margin-bottom: 10px;

    font-weight: 600;
}
/* =========================
   CARD
========================= */

.card {
        display: flex;

    flex-direction: column;

    height: 100%;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition:
      transform 0.2s ease,
      border-color 0.2s ease;
}

.card:hover {

    transform: translateY(-4px);

    border-color: var(--accent2);
}

.card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #ddd;
}

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

.card-body {

    display: flex;

    flex-direction: column;

    flex-grow: 1;

    padding: 24px;
}

.card-category {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-title {
    margin-bottom: 10px;
}

.card-link {
    color: var(--text-dark);
}

.card-desc {
    color: var(--muted);
    margin-bottom: 20px;
}

.card-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-cta {
    display: inline-block;
    background: var(--bg-dark);
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
     margin-top: auto;
}

.card-cta:hover {
    background: var(--red);
}
.card-wrapper {

    height: 100%;
}

/* =========================
   PAGINATION
========================= */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 64px 0;
}

.page-btn {

    width: 48px;

    height: 48px;

    border-radius: 14px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition:
      transform 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease;
}

.page-btn:hover {

    transform: translateY(-2px);

    border-color: var(--accent2);

    color: var(--accent2);
}

.page-btn.active {

    background: var(--accent1);

    border-color: var(--accent1);

    color: white;

    box-shadow:
      0 8px 20px rgba(255,45,149,0.35);
}

.page-btn:focus {

    outline: 3px solid var(--accent2);

    outline-offset: 3px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--surface);
    color: var(--text-muted);
    padding: 50px 0px;
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer {
        padding: 32px 0;
    }
}

.meta-label {
    font-weight: 600;
    color: var(--accent3);
}

/* =========================
   MOBILE
========================= */

.hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    .col-4,
    .col-6,
    .col-3,
    .col-9 {
        width: 100%;
    }

    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
    }

    .mobile-nav.open {
        display: flex;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 20px;
    }

    .mobile-nav a {
        color: white;
        padding: 10px 0;
    }
}
/* =========================
   KOHDE PAGE
========================= */


.kohde-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 420px);

    gap: 32px;

    align-items: start;

    margin: 48px 0 80px;
}

.kohde-main {

    display: flex;

    flex-direction: column;

    gap: 32px;
}

.kohde-image-wrapper {

    border-radius: 24px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--surface);
}

.kohde-image {

    width: 100%;

    height: 420px;

    object-fit: cover;

    display: block;
}

.kohde-description-panel {

    padding: 48px;
}

.kohde-description-panel h1 {

    font-size: clamp(3rem, 3vw, 5rem);

    line-height: 1;

    margin-bottom: 32px;
}

.kohde-description {

    color: var(--muted);

    line-height: 1.9;

    max-width: 70ch;
}

.kohde-sidebar {

    position: sticky;

    top: 120px;
}

.sidebar-card {

    padding: 40px;

    border-radius: 24px;
}

.sidebar-title {

    margin: 12px 0 24px;
}

.kohde-meta {

    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-bottom: 32px;
}

.kohde-meta-item {

    padding: 14px 18px;

    border-radius: 14px;

    background: rgba(255,255,255,0.04);

    border: 1px solid var(--border);
}

.btn-full {

    width: 100%;

    text-align: center;
}

@media (max-width: 900px) {

    .kohde-layout {

        grid-template-columns: 1fr;
    }

    .kohde-sidebar {

        position: static;
    }

    .kohde-image {

        height: 260px;
    }

    .kohde-description-panel {

        padding: 32px;
    }
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}



/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .col-4 {
        width: 50%;
    }

    .hero {
        padding: 64px 0 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .kohde-layout {
        grid-template-columns: 1fr;
    }

    .kohde-sidebar {
        position: static;
    }

    .kohde-image {
        height: 280px;
    }
}

@media (max-width: 600px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .col-4,
    .col-6 {
        width: 100%;
    }

    .hero {
        padding: 48px 0 32px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero-text {
        font-size: 1rem;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .section-header {
        gap: 16px;
    }

    .section-header .text-right {
        text-align: left;
    }

    .card {
        min-height: auto;
    }

    .card-image img,
    .card-img img {
        height: 200px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .kohde-description-panel {
        padding: 28px;
    }

    .kohde-description-panel h1 {
        font-size: 2.2rem;
    }

    .sidebar-card {
        padding: 28px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    footer {
        text-align: center;
    }
}
.card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface);
}

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

.kohde-image-wrapper {
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--surface);
}

.kohde-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.p-2 {
    padding: 20px;
}
.mt-3 {
    margin-top: 15px;
}
@media (max-width: 600px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .section-header .col-6 {
        width: auto;
    }

        .section-header h2 {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
    }

    .result-count {
        text-align: center;
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 600px) {
    .kohde-description-panel h1,
    .kohde-description,
    .kohde-main {
        text-align: center;
    }
}
.no-results {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    min-height: 240px;

    font-size: 1.2rem;

    color: var(--muted);
}
/* =========================
   NAV LAYOUT
========================= */

.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;
}

.logo-img {

    display: block;

    width: 75px;

    height: auto;

    object-fit: contain;
}

/* =========================
   DESKTOP NAV
========================= */

.nav {

    display: flex;

    align-items: center;

    gap: 2rem;
}

/* =========================
   HAMBURGER
========================= */

.hamburger {

    display: none;

    background: none;

    border: none;

    cursor: pointer;
}

.hamburger span {

    display: block;

    width: 28px;

    height: 3px;

    margin: 5px 0;

    border-radius: 999px;

    background: #ffffff;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .nav {

        display: none;
    }

    .hamburger {

        display: block;
    }

    .logo-img {

        width: 60px;
    }

    .nav-container {

        padding: 1rem 0;
    }
}