:root {
    --green-dark: #003f27;
    --green-darker: #002d1d;
    --green: #087a32;
    --green-light: #c9ea4f;
    --orange: #ff6b1a;
    --text: #132018;
    --muted: #66736b;
    --bg: #f6f8f5;
    --white: #ffffff;
    --border: #e4e9e3;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, var(--green-darker), var(--green-dark));
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.brand-logo img {
    max-height: 62px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border: 3px solid #fff;
    border-top: 8px solid #fff;
    border-radius: 8px 8px 16px 16px;
    position: relative;
}

.brand-icon::before,
.brand-icon::after {
    content: "";
    position: absolute;
    background: #fff;
}

.brand-icon::before {
    width: 3px;
    height: 48px;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
}

.brand-icon::after {
    width: 74px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: transparent;
    top: 3px;
    right: -82px;
    transform: scale(.45);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-size: 30px;
    letter-spacing: .5px;
}

.brand-text span {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .7px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    opacity: .95;
    position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--green-light);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    background: var(--green-light);
    transition: .2s;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    margin: 7px 0;
    border-radius: 99px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 540px;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,30,18,.9) 0%, rgba(0,30,18,.65) 38%, rgba(0,30,18,.15) 78%),
        url("../images/hero.jpg") center/cover no-repeat,
        radial-gradient(circle at 80% 45%, #d37c24 0 5%, transparent 6%),
        linear-gradient(135deg, #0b3b25, #436b42);
}
/*
.hero-bg::after {
    content: "";
    position: absolute;
    right: 14%;
    top: 18%;
    width: 150px;
    height: 220px;
    border: 8px solid rgba(255,255,255,.75);
    border-top: 35px solid #d97a1b;
    border-radius: 8px 8px 60px 60px;
    opacity: .65;
}
*/
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.25), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 130px;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 24px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero p {
    max-width: 670px;
    margin: 0 0 34px;
    font-size: 20px;
    color: rgba(255,255,255,.92);
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: 800;
    transition: .2s;
}

.btn-primary {
    color: #10220f;
    background: var(--green-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,.65);
    color: #fff;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,.18);
}

.btn-outline:hover {
    background: rgba(255,255,255,.12);
}

/* Quick info */

.quick-info-section {
    margin-top: -74px;
    position: relative;
    z-index: 5;
}

.quick-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.quick-info-item {
    display: flex;
    gap: 18px;
    padding: 28px 26px;
    border-right: 1px solid var(--border);
}

.quick-info-item:last-child {
    border-right: 0;
}

.info-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.quick-info-item span {
    display: block;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.quick-info-item strong {
    display: block;
    font-size: 17px;
    line-height: 1.25;
}

.quick-info-item strong em {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #31b545;
    border-radius: 50%;
    vertical-align: middle;
}

.quick-info-item strong.course-status-closed em {
    background: #d71920;
}

.quick-info-item strong.course-status-open em {
    background: #31b545;
}

.quick-info-item p {
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.quick-info-item a {
    color: var(--green);
    font-weight: 800;
    font-size: 14px;
}

/* Sections */

.section {
    padding: 54px 0 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2,
.course-box h2,
.events-box h2,
.membership-text h2,
.sponsors-section h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 22px;
    letter-spacing: .3px;
}

.section-heading a {
    color: var(--green);
    font-weight: 800;
    font-size: 14px;
}

/* News */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    border: 1px solid var(--border);
}

.news-image {
    height: 180px;
    display: block;
    background: #dfe8dc;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder,
.gallery-placeholder,
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 900;
    color: rgba(255,255,255,.88);
    background:
        linear-gradient(135deg, rgba(0,63,39,.9), rgba(8,122,50,.75)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px);
}

.news-content {
    padding: 18px 18px 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span {
    background: var(--green-light);
    color: #244100;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 3px 7px;
}

.news-content h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
}

.news-content p {
    margin: 0 0 12px;
    color: #27362d;
}

.read-more {
    color: var(--green);
    font-weight: 800;
}

/* Course + events */

.course-events-section {
    padding-top: 34px;
}

.course-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.course-content {
    display: grid;
    grid-template-columns: 1.08fr .9fr;
    gap: 20px;
    margin-top: 18px;
}

.course-map {
    min-height: 330px;
    border-radius: 12px;
    overflow: hidden;
    background: #dfe8dc;
}

.course-map-image {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    display: block;
}

.map-placeholder {
    min-height: 330px;
    color: var(--green-dark);
    background:
        radial-gradient(circle at 30% 20%, #f4ead0 0 4%, transparent 5%),
        radial-gradient(circle at 72% 35%, #f4ead0 0 4%, transparent 5%),
        radial-gradient(circle at 54% 66%, #f4ead0 0 4%, transparent 5%),
        linear-gradient(135deg, #a6cda7, #e7d98f);
}

.map-placeholder span {
    font-size: 38px;
    display: block;
}

.map-placeholder small {
    display: block;
    font-size: 15px;
}

.course-details {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border);
}

.course-detail {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.course-detail > span {
    color: var(--green);
    font-size: 24px;
    line-height: 1;
}

.course-detail strong {
    display: block;
    font-size: 18px;
}

.course-detail p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.btn-green-small {
    background: var(--green);
    color: #fff;
    min-height: 46px;
    width: 100%;
    padding: 0 16px;
}

.events-box h2 {
    margin-bottom: 18px;
}

.event-row {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

.event-date {
    text-align: center;
    color: var(--green-dark);
    font-weight: 900;
}

.event-date strong {
    display: block;
    font-size: 30px;
    line-height: .9;
}

.event-date span {
    display: block;
    font-size: 14px;
}

.event-info h3 {
    margin: 0 0 3px;
    font-size: 19px;
}

.event-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.event-button {
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 900;
    white-space: nowrap;
}

.event-button.orange {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.events-all {
    display: block;
    text-align: center;
    color: var(--green);
    font-weight: 900;
    margin-top: 18px;
}

/* Membership */

.membership-section {
    margin-top: 56px;
    padding: 48px 0;
    background:
        linear-gradient(0deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
        linear-gradient(135deg, #dce8db, #f6f8f5);
}

.membership-grid {
    display: grid;
    grid-template-columns: 1.5fr .75fr .75fr;
    gap: 20px;
    align-items: stretch;
}

.membership-text {
    background: rgba(255,255,255,.7);
    border-radius: var(--radius);
    padding: 32px;
}

.membership-text p {
    max-width: 560px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;
}

.benefits div {
    text-align: center;
}

.benefits span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    color: var(--green);
    border: 2px solid rgba(8,122,50,.22);
    font-size: 24px;
}

.benefits p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border: 1px solid var(--border);
}

.pricing-card h3 {
    text-transform: uppercase;
    margin: 0 0 12px;
    font-size: 17px;
}

.price {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.price span {
    font-size: 16px;
    font-weight: 700;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pricing-card li {
    margin-bottom: 8px;
    color: #2d3b31;
    font-size: 14px;
}

.pricing-card li::before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
    margin-right: 8px;
}

.btn-price {
    background: var(--green);
    color: #fff;
    width: 100%;
    min-height: 44px;
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.gallery-item {
    height: 145px;
    border-radius: 10px;
    overflow: hidden;
    background: #dfe8dc;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    min-height: 145px;
}

/* Sponsors */

.sponsors-section {
    padding: 34px 0 46px;
}

.sponsors-section h2 {
    margin-bottom: 22px;
}

.sponsors-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.sponsor-logo {
    min-width: 120px;
    min-height: 58px;
    display: grid;
    place-items: center;
    color: #8d958f;
    font-size: 19px;
    font-weight: 900;
    filter: grayscale(1);
    opacity: .8;
}

.sponsor-logo img {
    max-height: 54px;
    width: auto;
}

/* Footer */

.site-footer {
    background: linear-gradient(90deg, var(--green-darker), var(--green-dark));
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr 1.1fr;
    gap: 42px;
    padding: 50px 0;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-about p,
.footer-column p,
.footer-column li {
    color: rgba(255,255,255,.82);
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green-dark);
    border-radius: 50%;
    font-weight: 900;
}

.footer-column h3 {
    text-transform: uppercase;
    font-size: 15px;
    margin: 0 0 16px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column a {
    color: rgba(255,255,255,.85);
}

.footer-facebook {
    display: inline-flex;
    margin-top: 12px;
    background: #6ea848;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 900;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Standard pages */

.page-content,
.post-content,
.archive-content {
    padding: 70px 0;
}

.content-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
}

/* Responsive */

@media (max-width: 1050px) {
    .quick-info-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-info-item:nth-child(2) {
        border-right: 0;
    }

    .news-grid,
    .course-events-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: 74px;
    }

    .brand-text strong {
        font-size: 24px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--green-darker);
        padding: 18px 20px 24px;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 70px 0 130px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 17px;
    }

    .quick-info-card {
        grid-template-columns: 1fr;
    }

    .quick-info-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .quick-info-item:last-child {
        border-bottom: 0;
    }

    .course-content {
        grid-template-columns: 1fr;
    }

    .event-row {
        grid-template-columns: 62px 1fr;
    }

    .event-button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .benefits {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid,
    .footer-bottom-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero h1 {
        font-size: 38px;
    }

    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 190px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .kalix-weather-simple-icon-img {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: contain;
}

.kalix-weather-simple-condition {
    margin-top: 4px;
    font-size: 0.9rem;
    opacity: 0.85;
}
/* Mindre text i väderkortet */
.kalix-weather-simple {
    font-size: 0.88rem;
}

.kalix-weather-simple-title {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.kalix-weather-simple-temp-value {
    font-size: 1.25rem;
    line-height: 1;
}

.kalix-weather-simple-condition {
    font-size: 0.78rem;
    margin-top: 2px;
}

.kalix-weather-simple-humidity {
    font-size: 0.78rem;
}

.kalix-weather-simple-wind-label {
    font-size: 0.68rem;
    margin-top: 6px;
}

.kalix-weather-simple-wind-value {
    font-size: 0.78rem;
}

.kalix-weather-simple-icon-img {
    width: 42px;
    height: 42px;
}
.membership-plans {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.membership-cards-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.membership-single-button {
    display: flex;
    justify-content: center;
}

.membership-single-button .btn {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

@media (max-width: 900px) {
    .membership-cards-row {
        grid-template-columns: 1fr;
    }

    .membership-single-button .btn {
        max-width: 100%;
    }
}
}
/* =====================================================
   Huvudmeny dropdown - kompakt version
===================================================== */

.main-nav .nav-menu,
.main-nav .nav-menu ul,
.main-nav .nav-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav .nav-menu > li {
    position: relative;
}

/* Huvudlänkar */
.main-nav .nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    padding: 18px 0;
}

/* Dropdown */
.main-nav .nav-menu > li > .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 99999;

    min-width: 135px;
    padding: 6px;
    margin-top: 0;

    background: #063b28;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Visa dropdown */
.main-nav .nav-menu > li:hover > .sub-menu,
.main-nav .nav-menu > li:focus-within > .sub-menu {
    display: block !important;
}

/* Länkar i dropdown */
.main-nav .nav-menu .sub-menu li {
    display: block !important;
    width: 100%;
}

.main-nav .nav-menu .sub-menu a {
    display: block;
    padding: 8px 10px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 6px;
    white-space: nowrap;
}

/* Hover i dropdown */
.main-nav .nav-menu .sub-menu a:hover {
    background: rgba(203, 255, 54, 0.14);
    color: #cfff36 !important;
}
/* Fix: dropdown-pil bredvid texten, inte under */
.main-nav .nav-menu > li.menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    white-space: nowrap;
}

/* Använd BEFORE som pil, eftersom AFTER ofta används till underline */
.main-nav .nav-menu > li.menu-item-has-children > a::before {
    content: "▾";
    order: 2;
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    transform: translateY(1px);
    opacity: 0.85;
}

/* Säkerställ att eventuell underline/aktiv markering inte trycker ner pilen */
.main-nav .nav-menu > li.menu-item-has-children > a::after {
    pointer-events: none;
}
/* =====================================================
   Mobil/surfplatta: visa undermeny som vanlig lista
===================================================== */

@media (max-width: 900px) {

    /* Ta bort dropdown-beteende */
    .main-nav .nav-menu > li > .sub-menu {
        display: block !important;
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;

        min-width: 0;
        width: 100%;
        margin: 6px 0 0 0;
        padding: 0 0 0 14px;

        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Undermeny-länkar på mobil */
    .main-nav .nav-menu .sub-menu a {
        padding: 7px 0;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 600;
        background: transparent !important;
        border-radius: 0;
    }

    .main-nav .nav-menu .sub-menu a:hover {
        color: #cfff36 !important;
        background: transparent !important;
    }

    /* Gör pilen mindre diskret på mobil */
    .main-nav .nav-menu > li.menu-item-has-children > a::before {
        content: "";
        display: none;
    }

    /* Om du vill markera undermenyn lite snyggt */
    .main-nav .nav-menu .sub-menu li {
        position: relative;
        padding-left: 10px;
    }

    .main-nav .nav-menu .sub-menu li::before {
        content: "–";
        position: absolute;
        left: 0;
        color: #cfff36;
    }
}
/* =====================================================
   Mobilmeny - mindre mellanrum + submeny nära huvudlänk
===================================================== */

/* =====================================================
   Mobilmeny - centrerad kolumn men vänsterställd text
===================================================== */

@media (max-width: 900px) {

    /* Hela menyn centreras som en kolumn */
    .main-nav .nav-menu {
        width: max-content !important;
        max-width: calc(100% - 48px);
        margin: 0 auto !important;
        padding: 14px 0 22px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        text-align: left !important;
        gap: 0 !important;
    }

    /* Varje huvudpunkt får samma bredd */
    .main-nav .nav-menu > li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .main-nav .nav-menu > li > a {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;

        padding: 7px 0 !important;
        text-align: left !important;
        line-height: 1.25 !important;
    }

    /* Ta bort aktiv grön rand/underline på mobil */
    .main-nav .nav-menu > li > a::after,
    .main-nav .nav-menu > li.current-menu-item > a::after,
    .main-nav .nav-menu > li.current_page_item > a::after,
    .main-nav .nav-menu > li.current-menu-ancestor > a::after,
    .main-nav .nav-menu > li.current-menu-parent > a::after {
        display: none !important;
        content: none !important;
    }

    .main-nav .nav-menu > li > a,
    .main-nav .nav-menu > li.current-menu-item > a,
    .main-nav .nav-menu > li.current_page_item > a,
    .main-nav .nav-menu > li.current-menu-ancestor > a,
    .main-nav .nav-menu > li.current-menu-parent > a {
        border-bottom: 0 !important;
        box-shadow: none !important;
    }

    /* Submeny ligger nära huvudpunkten och börjar lite indragen */
    .main-nav .nav-menu > li > .sub-menu {
        display: block !important;
        position: static !important;

        width: 100% !important;
        margin: -2px 0 5px 0 !important;
        padding: 0 0 0 14px !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;

        text-align: left !important;
    }

    .main-nav .nav-menu .sub-menu li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;

        display: flex !important;
        align-items: center !important;
    }

    .main-nav .nav-menu .sub-menu li::before {
        content: "–";
        display: inline-block;
        margin-right: 4px;
        color: #cfff36;
        position: static !important;
    }

    .main-nav .nav-menu .sub-menu a {
        display: inline-flex !important;
        width: auto !important;
        padding: 3px 0 !important;

        text-align: left !important;
        justify-content: flex-start !important;

        font-size: 14px !important;
        line-height: 1.2 !important;
        background: transparent !important;
    }

    /* Dölj dropdown-pilen på mobil */
    .main-nav .nav-menu > li.menu-item-has-children > a::before {
        display: none !important;
        content: none !important;
    }
}
/* =====================================================
   Enskild tävlingssida
===================================================== */

.single-competition-page {
    background: #f4f7f2;
    padding: 40px 0 60px;
}

.competition-single-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.competition-single-image {
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
}

.competition-single-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.competition-single-content {
    max-width: 850px;
}

.competition-back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: #087d35;
    font-weight: 800;
    text-decoration: none;
}

.competition-back-link:hover {
    text-decoration: underline;
}

.competition-single-content h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    color: #021b14;
}

.competition-single-type {
    margin: 0 0 22px;
    color: #52645b;
    font-weight: 700;
    font-size: 18px;
}

.competition-info-box {
    display: grid;
    gap: 12px;
    background: #f4f8f5;
    border: 1px solid #dce9df;
    border-radius: 16px;
    padding: 18px;
    margin: 24px 0;
}

.competition-info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: start;
}

.competition-info-row strong {
    color: #063b28;
}

.competition-info-row span {
    color: #1d3027;
}

.competition-description {
    margin-top: 30px;
}

.competition-description h2 {
    margin: 0 0 12px;
    font-size: 26px;
    color: #021b14;
}

.competition-description p {
    font-size: 17px;
    line-height: 1.65;
    color: #26382f;
}

.competition-action {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.competition-register-button {
    display: inline-flex;
    min-width: 240px;
    justify-content: center;
    padding: 15px 28px;
    font-size: 17px;
}

@media (max-width: 700px) {
    .single-competition-page {
        padding: 24px 0 44px;
    }

    .competition-single-card {
        padding: 18px;
        border-radius: 18px;
    }

    .competition-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .competition-single-image img {
        max-height: 300px;
    }
}

/* =====================================================
   Galleri-sida med lightbox
===================================================== */

.kalix-gallery-page {
    width: 100%;
}

.kalix-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.kalix-gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.kalix-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.kalix-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.82);
}

.kalix-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.kalix-gallery-lightbox.is-open {
    display: flex;
}

.kalix-gallery-lightbox-inner {
    max-width: 95vw;
    max-height: 92vh;
    text-align: center;
}

.kalix-gallery-lightbox-inner img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.kalix-gallery-lightbox-title {
    margin-top: 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.kalix-gallery-lightbox-close {
    position: fixed;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: #ffffff;
    color: #021b14;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    z-index: 1000000;
}

.kalix-gallery-lightbox-close:hover {
    background: #cfff36;
}

body.kalix-gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .kalix-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .kalix-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .kalix-gallery-lightbox {
        padding: 14px;
    }

    .kalix-gallery-lightbox-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .kalix-gallery-lightbox-inner img {
        max-height: 78vh;
    }
}
/* =====================================================
   Swish-knapp på WooCommerce tack-sida
===================================================== */

.kalixdg-swish-app-box {
    background: #f4f8f5;
    border: 1px solid #dce9df;
    border-radius: 18px;
    padding: 22px;
    margin: 0 0 28px;
    text-align: center;
}

.kalixdg-swish-app-box h2 {
    margin-top: 0;
    color: #021b14;
}

.kalixdg-swish-app-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #087d35;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    margin-top: 12px;
}

.kalixdg-swish-app-button:hover {
    background: #056529;
    color: #ffffff !important;
}
/* Kontaktformulär - centrerat och större */
.wpcf7 {
    max-width: 720px;
    margin: 0 auto;
}

.wpcf7 form {
    background: #ffffff;
    border: 1px solid #dde7e1;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.05);
}

.wpcf7 label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: #001f18;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd8d0;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 16px;
    background: #ffffff;
}

.wpcf7 textarea {
    min-height: 170px;
    resize: vertical;
}

.wpcf7 p {
    margin-bottom: 18px;
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 12px;
    background: #087d35;
    color: #ffffff;
    padding: 14px 26px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
    background: #056529;
}

.wpcf7-response-output {
    max-width: 720px;
    margin: 20px auto 0 !important;
    border-radius: 12px;
    padding: 14px 16px !important;
    font-weight: 800;
}

@media (max-width: 760px) {
    .wpcf7 {
        max-width: 100%;
    }

    .wpcf7 form {
        padding: 22px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
    }
}
/* Vanliga sidor - ta bort stor vit bakgrund/box */
.page .site-main,
.page main,
.page .page-content,
.page .entry-content {
    background: transparent;
}

/* Om temat har en vit wrapper runt sidinnehållet */
.page article,
.page .page,
.page .content-area,
.page .site-content {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Om själva sidan ligger i en vit "kort"-container */
.page .entry-card,
.page .content-card,
.page .single-content,
.page .page-wrapper {
    background: transparent;
    box-shadow: none;
    border: none;
}
/* Centrera sidtitlar på vanliga WordPress-sidor */
.page .entry-title,
.page .page-title,
.page main h1:first-child {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
/* Familjemedlemmar - snyggare kort i Mitt konto */
.kdg-family-card {
    background: #f2fbf4;
    border: 1px solid #bde8c7;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.kdg-family-card-main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.kdg-family-card p {
    margin: 0 0 10px;
}

.kdg-family-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.kdg-family-edit-details {
    position: relative;
}

.kdg-family-edit-details summary {
    list-style: none;
    cursor: pointer;
    text-align: center;
}

.kdg-family-edit-details summary::-webkit-details-marker {
    display: none;
}

.kdg-family-edit-form {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #dce9df;
    border-radius: 10px;
    padding: 16px;
    min-width: 360px;
}

.kdg-family-edit-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.kdg-family-edit-form input {
    width: 100%;
}

.kdg-family-delete-form {
    margin: 0;
}

.kdg-family-delete-button {
    color: #b00020 !important;
}

@media (max-width: 700px) {
    .kdg-family-card-main {
        flex-direction: column;
    }

    .kdg-family-card-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .kdg-family-edit-form {
        min-width: 0;
        width: 100%;
    }
}
/* Medlemssida - använd samma bredd som övriga sidor */
body .kdg-member-area {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
}

/* Om shortcode-blocket/WordPress-content begränsar medlemssidan */
body .wp-block-shortcode:has(.kdg-member-area),
body .entry-content:has(.kdg-member-area),
body .page-content:has(.kdg-member-area) {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Själva korten ska inte ha någon egen smal maxbredd */
body .kdg-member-card,
body .kdg-member-menu-wrap,
body .kdg-lobby-list,
body .kdg-lobby {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Mobil - nästan full bredd, som tävlingskortet */
@media (max-width: 700px) {
    body .kdg-member-area {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body .wp-block-shortcode:has(.kdg-member-area),
    body .entry-content:has(.kdg-member-area),
    body .page-content:has(.kdg-member-area) {
        width: 100% !important;
        max-width: 100% !important;
    }

    body .kdg-member-card,
    body .kdg-member-menu-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    body .kdg-lobby {
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* Dölj QR-rutan från Swish-pluginet på tack-sidan */
.woocommerce-order-received .swish-checkout,
.woocommerce-order-received .swish-payment-box,
.woocommerce-order-received .swish-qr,
.woocommerce-order-received [class*="swish"] iframe,
.woocommerce-order-received [class*="swish"] img,
.woocommerce-order-received .woocommerce-order .payment_box,
.woocommerce-order-received h2:has(+ .swish-checkout) {
    display: none !important;
}

.kalix-weather-combo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0;
    color: #1f2933;
    line-height: 1.15;
}

.kalix-weather-combo-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5f6f66;
    margin-bottom: 5px;
}

.kalix-weather-combo-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kalix-weather-combo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kalix-weather-combo-icon img,
.kalix-weather-simple-icon-img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.kalix-weather-combo-values {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kalix-weather-combo-temp {
    font-size: 28px;
    font-weight: 900;
    color: #111827;
    line-height: 0.95;
    margin-bottom: 5px;
}

.kalix-weather-combo-wind-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #5f6f66;
    line-height: 1.1;
}

.kalix-weather-combo-wind-row strong {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
}

.kalix-weather-combo-direction {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
}

.kalix-weather-combo-gust {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #4b5563;
    margin-top: 3px;
    line-height: 1.1;
}