/* --- 1. VARIABLES & RESET --- */
:root {
    /* "Colores para Alex" Palette */
    --color-navy: #124E58;
    /* Deep Teal/Navy */
    --color-teal: #6B9B96;
    /* Muted Green/Teal */
    --color-mustard: #FBBA00;
    /* Mustard/Orange Accent */
    --color-beige: #F4EEDD;
    /* Light Cream Background */
    --color-white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --padding-section: 5rem;
    --border-radius: 8px;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-beige);
    color: #1a1a1a;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.section-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--color-mustard);
    color: var(--color-navy);
}

.btn-primary:hover {
    background-color: #e5aa00;
}

/* --- 3. HEADER & NAV --- */
header {
    background-color: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--color-mustard);
	overflow: visible;
}

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-mustard);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-navy);
}

/* --- 4. HERO SECTION --- */
.hero {
    background-color: var(--color-beige);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-color: var(--color-teal);
    z-index: 0;
    clip-path: polygon(15% 0%, 100% 0, 100% 100%, 0% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-navy);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: var(--border-radius);
    /* Styles for the crowd shot */
    box-shadow: 20px 20px 0px var(--color-mustard);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* --- 5. COURSES (KURSER) --- */
.courses {
    padding: var(--padding-section) 0;
    background-color: var(--color-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.course-card {
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Color tops */
.course-card.beginner {
    border-top: 6px solid var(--color-mustard);
}

.course-card.continue {
    border-top: 6px solid var(--color-teal);
}

.course-card.medium {
    border-top: 6px solid var(--color-navy);
}

.course-card-link:hover .course-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.course-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.course-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.course-meta {
    background-color: var(--color-beige);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-navy);
    font-weight: 500;
}

.course-meta div {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-body p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.course-details-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-details-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.course-details-list li::before {
    content: 'â€¢';
    color: var(--color-mustard);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.course-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    text-align: right;
}

.btn-book {
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- 6. TEACHERS  --- */
.teachers {
    padding: var(--padding-section) 0;
    background-color: var(--color-teal);
    color: var(--color-white);
}

.teachers .section-title,
.teachers .section-subtitle {
    color: var(--color-white);
}

.teachers .section-subtitle {
    opacity: 0.9;
}

.teacher-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.teacher-image-container {
    position: relative;
}

.teacher-img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: fill;
    /* Portrait ratio for the studio shot */
    object-position: top center;
    box-shadow: 10px 10px 0px var(--color-mustard);
}

.teacher-bio h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.teacher-role {
    display: block;
    color: var(--color-mustard);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teacher-bio p {
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* --- 7. CONTACT & LOCATION --- */
.contact {
    padding: var(--padding-section) 0;
    background-color: var(--color-beige);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--color-navy);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* Location Map Placeholder */
.location-section {
    padding-bottom: var(--padding-section);
    background-color: var(--color-beige);
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    color: #666;
    border: 2px solid var(--color-white);
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--color-mustard);
}

.social-links a:hover svg {
    fill: var(--color-navy);
}

.social-links svg {
    fill: white;
    width: 24px;
    height: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero::before {
        width: 100%;
        height: 40%;
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
        top: auto;
        bottom: 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        margin-top: 2rem;
    }

    .hero-image {
        max-width: 100%;
    }

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

    .teacher-img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-top: 3px solid var(--color-mustard);
        z-index: 999;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(18, 78, 88, 0.06);
    }

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

    .mobile-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

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


.kurser-hero {
    background-color: var(--color-navy);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.kurser-hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--color-beige);
    /* matches page bg */
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

/* mustard stripe behind the shape */
.kurser-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--color-mustard);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

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

.kurser-season {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-mustard);
    margin-bottom: 0.75rem;
}

.kurser-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.kurser-hero-dates {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.kurser-hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Filter Tabs */
.kurser-tabs-wrap {
    background-color: var(--color-beige);
    border-bottom: 2px solid rgba(18, 78, 88, 0.08);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    padding: 0;
}

.kurser-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 0 0;
}

.kurser-tabs::-webkit-scrollbar {
    display: none;
}

.kurser-tab {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #777;
    padding: 1.1rem 1.4rem;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kurser-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-mustard);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.kurser-tab:hover {
    color: var(--color-navy);
}

.kurser-tab.is-active {
    color: var(--color-navy);
}

.kurser-tab.is-active::after {
    transform: scaleX(1);
}

.kurser-tab-count {
    background-color: var(--color-navy);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    padding: 1px 7px;
    line-height: 1.6;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.kurser-tab.is-active .kurser-tab-count {
    background-color: var(--color-mustard);
    color: var(--color-navy);
    opacity: 1;
}

/* Grid section */
.kurser-grid-section {
    background-color: var(--color-beige);
    padding: 3.5rem 0 6rem;
}

.kurser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Empty state */
.kurser-empty {
    text-align: center;
    padding: 4rem 0;
    color: #888;
    font-size: 1.1rem;
}

/* Card link wrapper */
.kurs-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline-offset: 4px;
    border-radius: 10px;
}

/* Card */
.kurs-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    border-left: 5px solid transparent;
}

/* Level accent on the left border */
.kurs-card.beginner {
    border-left-color: var(--color-mustard);
}

.kurs-card.continuation {
    border-left-color: var(--color-teal);
}

.kurs-card.intermediate {
    border-left-color: #d97a3a;
}

.kurs-card.advanced {
    border-left-color: var(--color-navy);
}

.kurs-card-link:hover .kurs-card,
.kurs-card-link:focus-visible .kurs-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(18, 78, 88, 0.13);
}

/* Card header */
.kurs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.kurs-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
}

.lvl-beginner {
    background-color: #fff3cc;
    color: #96700a;
}

.lvl-continuation {
    background-color: #dceeed;
    color: #2a5c5a;
}

.lvl-intermediate {
    background-color: #fdeee5;
    color: #9a4c1e;
}

.lvl-advanced {
    background-color: #dde9ec;
    color: #124E58;
}

.kurs-style-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.kurs-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    padding: 0.75rem 1.5rem 0;
    line-height: 1.3;
}

/* Meta list */
.kurs-meta {
    list-style: none;
    background-color: #f9f6ef;
    margin: 1rem 1.5rem;
    border-radius: 7px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kurs-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-navy);
}

.kurs-meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-teal);
}

/* Description */
.kurs-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

/* Highlights */
.kurs-highlights {
    list-style: none;
    padding: 0 1.5rem;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kurs-highlights li {
    font-size: 0.85rem;
    color: #444;
    padding-left: 1.1rem;
    position: relative;
}

.kurs-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-mustard);
}

/* CTA footer */
.kurs-cta {
    margin-top: auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0ebe0;
    display: flex;
    justify-content: flex-end;
}

.kurs-book-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.kurs-card-link:hover .kurs-book-btn {
    gap: 8px;
    color: #0a3840;
}

/* Hidden (JS filtering) */
.kurs-card-link[hidden] {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .kurser-tabs-wrap {
        position: static;
        /* don't double-sticky on small screens */
    }

    .kurser-tab {
        font-size: 0.8rem;
        padding: 1rem 0.9rem;
    }

    .kurser-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .kurser-grid-section {
        padding: 2rem 0 4rem;
    }
}

/* Upcoming / Kommande cards */
.kurs-card-link.is-upcoming .kurs-card {
    background: #f7f5f0;
    border-left-style: dashed;
    border-left-color: #bbb;
    filter: grayscale(25%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.kurs-card-link.is-upcoming:hover .kurs-card {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(18, 78, 88, 0.13);
}

/* Full-width banner at the top of the card */
.kurs-upcoming-banner {
    background: var(--color-navy);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.kurs-upcoming-banner svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Mute the card header text */
.kurs-card-link.is-upcoming .kurs-style-label {
    color: #bbb;
}

/* Start date em text */
.kurs-meta em {
    font-style: normal;
    color: var(--color-navy);
    font-weight: 600;
}

/* CTA row on upcoming â€” full teal pill button, not just text */
.kurs-card-link.is-upcoming .kurs-cta {
    background: #f0ede6;
}

.kurs-book-btn--upcoming {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: none;
    pointer-events: none;
}