/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Joakim
Author URI: https://example.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* CSS Variables for Color Palette */
:root {
    --primary-green: #2d5a27;
    --accent-green: #e6f4e3;
    --accent-green-strong: #dbead3;
    --text-dark: #333;
    --text-soft: #5d695f;
    --bg-light: #f9f9f9;
    --bg-tint: #eef3eb;
    --white: #ffffff;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --section-gap: 56px;
}

 body.home .content-area,
 body.home .site-content,
 body.home #content,
 body.front-page .content-area,
 body.front-page .site-content,
 body.front-page #content,
 body.page-template-front-page .content-area,
 body.page-template-front-page .site-content,
 body.page-template-front-page #content,
 body.page-template-front-page-php .content-area,
 body.page-template-front-page-php .site-content,
 body.page-template-front-page-php #content {
     background: transparent;
     max-width: none;
     margin: 0;
     padding: 0;
     border-radius: 0;
     box-shadow: none;
 }

body.home .hero-banner,
body.front-page .hero-banner,
body.page-template-front-page .hero-banner,
body.page-template-front-page-php .hero-banner {
     width: 100vw;
     margin-left: calc(50% - 50vw);
     margin-right: calc(50% - 50vw);
  }

html {
    scrollbar-gutter: stable;
}

/* Global Styles */
body {
    background:
        radial-gradient(circle at top left, rgba(219, 234, 211, 0.7), transparent 32%),
        linear-gradient(180deg, #f4f6f1 0%, #eef2ee 100%);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
    text-decoration: underline;
    opacity: 0.8;
}

/* Buttons */
button, input[type='submit'], input[type='button'], .button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

button:hover, input[type='submit']:hover, input[type='button']:hover, .button:hover {
    background-color: #234820;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

button:active, input[type='submit']:active, input[type='button']:active, .button:active {
    transform: translateY(0);
}

/* Content Area - Main Content Container */
.content-area, .site-content, #content {
    background-color: var(--white);
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Site Container */
.site {
    background: transparent;
}

/* Header adjustments */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    backdrop-filter: blur(10px);
}

/* Footer adjustments */
.site-footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 30px 0;
}

.site-footer a {
    color: var(--white);
}

/* Passwordless login form on frontend */
.passwordless-login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border: 2px solid #90ee90;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.passwordless-login-form input[type='email'] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.passwordless-login-form input[type='email']:focus {
    outline: none;
    border-color: #228b22;
    box-shadow: 0 2px 12px rgba(34, 139, 34, 0.2);
}

.passwordless-login-form button[type='submit'] {
    width: 100%;
    padding: 15px 25px;
    background: #228b22;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.passwordless-login-form button[type='submit']:hover {
    background: #1f6b1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.passwordless-login-form button[type='submit']:active {
    transform: translateY(0);
}

/* Protected content notice */
.locked-notice {
    background: linear-gradient(135deg, #fff3cd, #f8f9fa);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.locked-notice p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #856404;
}

.locked-notice .passwordless-login-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.locked-notice .passwordless-login-form input[type='email'] {
    width: 100%;
    max-width: 300px;
    margin: 0 0 15px;
}

.locked-notice .passwordless-login-form button[type='submit'] {
    width: 100%;
    max-width: 300px;
    margin: 0;
}

/* Om omradet page */
.om-omradet-page.container {
    max-width: 1100px;
    margin: 40px auto 72px;
    padding: 0 40px;
    box-sizing: border-box;
}

.om-omradet-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 36px 34px;
}

.om-omradet-header h1 {
    margin-bottom: 18px;
    font-size: 2.2rem;
    line-height: 1.2;
}

.om-omradet-section + .om-omradet-section {
    margin-top: 26px;
}

.om-omradet-section h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.om-omradet-section p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.75;
    max-width: 70ch;
}

.om-omradet-section p + p {
    margin-top: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area, .site-content, #content {
        margin: 20px;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .locked-notice {
        margin: 15px 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .passwordless-login-form {
        margin: 20px;
        padding: 20px;
    }
}

/* Front Page Specific Styles */

/* Hero Banner - Fullbredd, utanfor grid */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background: #163620;
}

.hero-banner .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    z-index: 1;
    max-width: none;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(16, 39, 24, 0.84) 0%,
        rgba(24, 58, 35, 0.8) 34%,
        rgba(29, 68, 41, 0.48) 62%,
        rgba(22, 54, 32, 0.12) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
    box-sizing: border-box;
    /* Vertical padding here so Astra's .container class can't override it */
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.hero-content.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* Safety net: banner can never collapse below this */
.hero-banner {
    min-height: 240px;
}

.hero-content h1 {
    color: white;
    font-size: clamp(1.5rem, 2.4vw, 3.35rem);
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
    line-height: 1.15;
    font-family: 'Georgia', 'Times New Roman', serif;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.12rem;
    max-width: 52ch;
    margin: 0;
    text-wrap: balance;
}

/* Bildkredit (CC BY 2.5) – diskret i nedre högra hörnet av hero */
.hero-credit {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 4;
    margin: 0;
    max-width: min(92vw, 460px);
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: right;
}

.hero-credit a {
    color: #fff;
    text-decoration: underline;
}

/* Mobile hamburger "Meny" label (injected via JS) — only in mobile */
@media (max-width: 921px) {
    .ast-menu-toggle,
    .menu-toggle.main-header-menu-toggle {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1px !important;
    }

    .ymer-meny-label {
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: var(--primary-green);
        letter-spacing: 0.06em;
        text-transform: uppercase;
        line-height: 1;
    }
}

/* Ensure hamburger is hidden on desktop */
@media (min-width: 922px) {
    .ast-menu-toggle,
    .menu-toggle.main-header-menu-toggle {
        display: none !important;
    }
}

/* Hide Astra above-header row entirely — the primary header handles all navigation */
#ast-hfb-above-header,
.ast-above-header-section,
.ast-above-header-wrap,
.ast-above-header-bar,
.ast-above-header {
    display: none !important;
}

.quick-contact-bar {
    background: #eef6eb;
    border-bottom: 1px solid rgba(45, 90, 39, 0.16);
}

.quick-contact-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 40px;
    display: grid;
    grid-template-columns: 1.5fr auto 1.2fr;
    gap: 14px;
    align-items: center;
}

.quick-contact-inner a,
.quick-contact-note {
    font-size: 0.93rem;
    line-height: 1.4;
    margin: 0;
}

.quick-contact-mail {
    color: #234820;
    font-weight: 600;
}

.quick-contact-report {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.quick-contact-report:hover {
    color: var(--white);
    text-decoration: none;
}

.quick-contact-note {
    color: #274c28;
}

/* Main Content - Grid-system */
.main-content {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: var(--section-gap);
    position: relative;
    z-index: 10;
}

 .main-content.container {
     max-width: 1100px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 40px 72px;
     box-sizing: border-box;
 }

 .right-column {
     display: flex;
     flex-direction: column;
 }

/* Korten - INTE absolute! */
.content-card {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.92);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(45, 90, 39, 0.07);
    box-shadow: 0 16px 40px rgba(24, 46, 31, 0.08);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(24, 46, 31, 0.12);
}

/* Right column - korten staplas vertikalt */
.right-column .content-card:last-child {
    margin-bottom: 0;
}

/* Typography */
.content-card h2,
.content-card h3 {
    color: var(--primary-green);
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 16px;
    line-height: 1.2;
}

.content-card h2 {
    font-size: 1.95rem;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
}

.content-card h3 {
    font-size: 1.55rem;
}

.content-card p {
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 65ch;
}

/* Lists */
.dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dates-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dates-list li:last-child {
    border-bottom: none;
}

.dates-list li::before {
    content: "\1F4C5";
    margin-right: 12px;
    font-size: 1.1rem;
}

.date-item-label {
    flex: 1 1 auto;
}

.dates-year-row {
    border-bottom: none;
    padding-top: 18px;
    padding-bottom: 8px;
}

.dates-year-row::before {
    content: '';
    margin-right: 0;
}

.dates-year-row .date-item-label {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.05rem;
}

.calendar-add-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(45, 90, 39, 0.25);
    background: #f6faf5;
    color: var(--primary-green);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.calendar-add-link:hover {
    background: var(--accent-green);
    color: var(--primary-green);
    text-decoration: none;
}

.calendar-add-link:focus-visible {
    outline: 3px solid rgba(45, 90, 39, 0.25);
    outline-offset: 2px;
}

/* Fallback: any ul inside info-panel gets dates-list styling */
.info-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-panel ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.info-panel ul li:last-child {
    border-bottom: none;
}

.info-panel ul li::before {
    content: "\1F4C5";
    margin-right: 12px;
    font-size: 1.1rem;
}

.info-panel ul li.dates-year-row::before {
    content: '';
    margin-right: 0;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.18);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #234820;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
    text-decoration: none;
    color: var(--white);
}

.cta-button.cta-secondary {
    background: #f7faf5;
    color: var(--primary-green);
    border: 1px solid rgba(45, 90, 39, 0.3);
    box-shadow: none;
}

.cta-button.cta-secondary:hover {
    background: #e8f2e5;
    color: #234820;
    border-color: rgba(45, 90, 39, 0.45);
}

.member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Områdeskarta-modal */
body.area-map-open {
    overflow: hidden;
}

.area-map-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.area-map-modal[hidden] {
    display: none;
}

.area-map-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 35, 18, 0.6);
    backdrop-filter: blur(2px);
    cursor: pointer;
    animation: area-map-fade 0.2s ease;
}

.area-map-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(20, 35, 18, 0.35);
    overflow: hidden;
    animation: area-map-pop 0.22s ease;
}

.area-map-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--primary-green);
    color: var(--white);
}

.area-map-modal__title {
    margin: 0;
    font-size: 18px;
    color: var(--white);
    flex: 1 1 auto;
}

.area-map-modal__open-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.92;
}

.area-map-modal__open-link:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--white);
}

.area-map-modal__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.area-map-modal__close:hover {
    background: rgba(255, 255, 255, 0.32);
}

.area-map-modal__body {
    flex: 1 1 auto;
    min-height: 0;
}

.area-map-modal__body iframe {
    display: block;
    width: 100%;
    height: 70vh;
    border: 0;
}

@keyframes area-map-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes area-map-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .area-map-modal {
        padding: 0;
    }

    .area-map-modal__dialog {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }

    .area-map-modal__open-link {
        display: none;
    }

    .area-map-modal__body iframe {
        height: 100%;
    }
}

.faq-list {
    margin-bottom: 24px;
}

.faq-item {
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: #fbfdf9;
}

.faq-item + .faq-item {
    margin-top: 10px;
}

.faq-item summary {
    cursor: pointer;
    color: #234820;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    margin-right: 8px;
    color: var(--primary-green);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: "\2212";
}

.faq-item p {
    margin: 12px 0 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Contact Info */
.contact-info p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.map-link {
    display: inline-block;
    background: #f7faf5;
    color: var(--primary-green);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-green);
}

.map-link:hover {
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
}

.ymerinfo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ymerinfo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(45, 90, 39, 0.08);
}

.ymerinfo-item:last-child {
    border-bottom: none;
}

.ymerinfo-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.ymerinfo-title {
    flex: 1 1 auto;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.ymerinfo-dl-link {
    flex: 0 0 auto;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary-green);
    padding: 5px 10px;
    border: 1px solid rgba(45, 90, 39, 0.25);
    border-radius: 999px;
    background: #f6faf5;
    white-space: nowrap;
    text-decoration: none;
}

.ymerinfo-dl-link:hover {
    background: var(--accent-green);
    text-decoration: none;
    color: var(--primary-green);
}

.ymerinfo-placeholder {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px dashed rgba(45, 90, 39, 0.3);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f9fbf7 0%, #f2f6ef 100%);
}

.ymerinfo-placeholder-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-green);
}

.ymerinfo-placeholder strong {
    font-size: 1.02rem;
    color: var(--text-dark);
}

.ymerinfo-placeholder-meta {
    color: var(--text-soft);
    font-size: 0.95rem;
}

 .download-link {
     display: flex;
     align-items: center;
     gap: 10px;
     width: 100%;
     box-sizing: border-box;
     padding: 12px 16px;
     border-radius: 10px;
     border: 1px solid rgba(45, 90, 39, 0.18);
     background: #ffffff;
     color: var(--text-dark);
     text-decoration: none;
     font-weight: 600;
     line-height: 1.3;
     box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
     transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
 }

 .download-link::before {
     content: "";
     width: 18px;
     height: 18px;
     flex: 0 0 18px;
     background-color: currentColor;
     -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%3E%3Cpath%20d%3D'M12%203v10m0%200l4-4m-4%204L8%209'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3Cpath%20d%3D'M4%2017v3h16v-3'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3C/svg%3E");
     -webkit-mask-repeat: no-repeat;
     -webkit-mask-position: center;
     -webkit-mask-size: contain;
     mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%3E%3Cpath%20d%3D'M12%203v10m0%200l4-4m-4%204L8%209'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3Cpath%20d%3D'M4%2017v3h16v-3'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'/%3E%3C/svg%3E");
     mask-repeat: no-repeat;
     mask-position: center;
     mask-size: contain;
 }

 .download-link:hover {
     background: var(--accent-green);
     border-color: rgba(45, 90, 39, 0.5);
     color: var(--primary-green);
     transform: translateY(-1px);
     box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
 }

 .download-link:focus-visible {
     outline: 3px solid rgba(45, 90, 39, 0.35);
     outline-offset: 2px;
}

/* Tablet and mobile layout */
@media (max-width: 960px) {
    .hero-content.container {
        padding: 56px 20px;
    }

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

    .quick-contact-inner {
        grid-template-columns: 1fr;
        padding: 12px 20px;
        gap: 10px;
        align-items: start;
    }

    .main-content {
        grid-template-columns: 1fr;
        margin-top: 24px;
        gap: 20px;
    }

    .main-content.container {
        padding: 0 20px 42px;
    }

    .left-column,
    .right-column {
        display: contents;
    }

    .dates-card {
        order: 1;
    }

    .new-member-card {
        order: 2;
    }

    .ymerinfo-card {
        order: 3;
    }

    .faq-card {
        order: 4;
    }

    .contact-card {
        order: 5;
    }

    .about-card {
        order: 6;
    }

    .content-card .cta-button,
    .content-card .map-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .om-omradet-page.container {
        margin: 20px auto 40px;
        padding: 0 20px;
    }

    .om-omradet-card {
        padding: 24px 20px;
    }

    .om-omradet-header h1 {
        font-size: 1.8rem;
    }

    .om-omradet-section h2 {
        font-size: 1.3rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 20px;
    }

     .main-content.container {
         padding: 0 20px 40px;
     }
    
    .content-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .content-card h3 {
        font-size: 1.1rem;
    }

    .dates-list li,
    .info-panel ul li {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .calendar-add-link {
        margin-left: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content.container {
        padding: 44px 20px;
    }

    .content-card {
        padding: 20px 15px;
    }
}

/* Specific styles for cta-button ONLY when inside the main header menu */
.ast-builder-menu .main-header-menu > li.cta-button > a,
.ast-builder-menu .main-header-menu > li.cta-button > .menu-link,
.main-navigation .main-header-menu > li.cta-button > a,
.main-navigation .main-header-menu > li.cta-button > .menu-link,
.site-navigation .main-header-menu > li.cta-button > a,
.site-navigation .main-header-menu > li.cta-button > .menu-link,
#primary-menu > li.cta-button > a,
#primary-menu > li.cta-button > .menu-link {
    display: inline-flex !important;
    align-items: center;
    height: auto !important;
    min-height: 68px !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    padding: 0 34px !important;
    line-height: 1.2 !important; /* Tighter line height */
    background-color: var(--primary-green) !important;
    color: var(--white) !important; /* Force white text */
    border-radius: 14px !important;
    margin-left: 12px !important; /* Space from previous item */
    box-shadow: 0 8px 18px rgba(45, 90, 39, 0.14) !important;
    transform: none !important; /* Reset default button transforms just in case */
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.ast-builder-menu .main-header-menu > li.cta-button.current-menu-item > a,
.ast-builder-menu .main-header-menu > li.cta-button.current-menu-item > .menu-link,
.ast-builder-menu .main-header-menu > li.cta-button.current_page_item > a,
.ast-builder-menu .main-header-menu > li.cta-button.current_page_item > .menu-link,
.ast-builder-menu .main-header-menu > li.cta-button.current-menu-ancestor > a,
.ast-builder-menu .main-header-menu > li.cta-button.current-menu-ancestor > .menu-link,
.main-navigation .main-header-menu > li.cta-button.current-menu-item > a,
.main-navigation .main-header-menu > li.cta-button.current-menu-item > .menu-link,
.main-navigation .main-header-menu > li.cta-button.current_page_item > a,
.main-navigation .main-header-menu > li.cta-button.current_page_item > .menu-link,
.main-navigation .main-header-menu > li.cta-button.current-menu-ancestor > a,
.main-navigation .main-header-menu > li.cta-button.current-menu-ancestor > .menu-link,
.site-navigation .main-header-menu > li.cta-button.current-menu-item > a,
.site-navigation .main-header-menu > li.cta-button.current-menu-item > .menu-link,
.site-navigation .main-header-menu > li.cta-button.current_page_item > a,
.site-navigation .main-header-menu > li.cta-button.current_page_item > .menu-link,
.site-navigation .main-header-menu > li.cta-button.current-menu-ancestor > a,
.site-navigation .main-header-menu > li.cta-button.current-menu-ancestor > .menu-link,
#primary-menu > li.cta-button.current-menu-item > a,
#primary-menu > li.cta-button.current-menu-item > .menu-link,
#primary-menu > li.cta-button.current_page_item > a,
#primary-menu > li.cta-button.current_page_item > .menu-link,
#primary-menu > li.cta-button.current-menu-ancestor > a,
#primary-menu > li.cta-button.current-menu-ancestor > .menu-link {
    display: inline-flex !important;
    align-items: center;
    height: auto !important;
    min-height: 68px !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    padding: 0 34px !important;
    line-height: 1.2 !important;
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(45, 90, 39, 0.14) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.ast-builder-menu .main-header-menu > li.cta-button,
.main-navigation .main-header-menu > li.cta-button,
.site-navigation .main-header-menu > li.cta-button,
#primary-menu > li.cta-button {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ast-builder-menu .main-header-menu > li.cta-button > a::after,
.ast-builder-menu .main-header-menu > li.cta-button > .menu-link::after,
.main-navigation .main-header-menu > li.cta-button > a::after,
.main-navigation .main-header-menu > li.cta-button > .menu-link::after,
.site-navigation .main-header-menu > li.cta-button > a::after,
.site-navigation .main-header-menu > li.cta-button > .menu-link::after,
#primary-menu > li.cta-button > a::after,
#primary-menu > li.cta-button > .menu-link::after {
    display: none !important;
}

/* Adjust positioning to center vertically in header if needed */
.ast-builder-menu .main-header-menu li.cta-button,
.main-navigation li.cta-button,
.site-navigation li.cta-button,
#primary-menu li.cta-button {
    display: flex !important;
    align-items: center !important;
}

/* Hover effect for menu button */
.ast-builder-menu .main-header-menu li.cta-button a:hover,
.main-navigation li.cta-button a:hover,
.site-navigation li.cta-button a:hover,
#primary-menu li.cta-button a:hover {
    background-color: #234820 !important; /* Darker green on hover */
    color: var(--white) !important;
    transform: translateY(-1px) !important; /* Subtle lift */
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.18) !important;
}

/* Mobile menu adjustments for CTA button */
@media (max-width: 768px) {
    .ast-builder-menu .main-header-menu li.cta-button a,
    .main-navigation li.cta-button a,
    .site-navigation li.cta-button a,
    #primary-menu li.cta-button a {
        margin-left: 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }
}

/* ============================================================
   Dokument & Protokoll page
   ============================================================ */

.dokument-page {
    min-height: 60vh;
}

/* Full-width page header */
.dokument-header {
    background: linear-gradient(135deg, #213d27 0%, #2d5a27 60%, #3a7032 100%);
    color: #fff;
    padding: 48px 0 40px;
}

.dokument-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.dokument-header-icon {
    font-size: 3rem;
    line-height: 1;
    flex: 0 0 auto;
    opacity: 0.9;
}

.dokument-header h1 {
    color: #fff;
    font-size: 2.2rem;
    margin: 0 0 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.dokument-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
}

/* Content wrapper */
.dokument-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px 72px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Locked (not logged in) */
.dokument-locked-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.dokument-locked-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 48px 44px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.dokument-locked-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.dokument-locked-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.dokument-locked-card > p {
    color: var(--text-soft);
    margin-bottom: 24px;
    line-height: 1.6;
}

.dokument-locked-register {
    margin-top: 20px !important;
    font-size: 0.9rem !important;
    color: var(--text-soft) !important;
}

.dokument-locked-register a {
    color: var(--primary-green);
    font-weight: 600;
}

/* Category card */
.dokument-category-card {
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 28px rgba(24,46,31,0.08);
    border: 1px solid rgba(45,90,39,0.07);
    overflow: hidden;
}

.dokument-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: linear-gradient(90deg, #f4f8f2 0%, #f9fbf7 100%);
    border-bottom: 1px solid rgba(45,90,39,0.1);
}

.dokument-category-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}

.dokument-category-header h2 {
    font-size: 1.25rem;
    margin: 0;
    flex: 1 1 auto;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--primary-green);
}

.dokument-category-count {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    background: rgba(45,90,39,0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.dokument-category-desc {
    padding: 12px 28px 0;
    font-size: 0.93rem;
    color: var(--text-soft);
    margin: 0;
}

.dokument-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dokument-file-item {
    border-bottom: 1px solid rgba(45,90,39,0.07);
}

.dokument-file-item:last-child {
    border-bottom: none;
}

/* File row */
.dokument-file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    transition: background 0.18s ease;
}

.dokument-file-row:hover {
    background: #f7fbf5;
}

.dokument-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.dokument-file-ext {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dokument-file-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dokument-file-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dokument-file-desc {
    font-size: 0.86rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dokument-file-date {
    font-size: 0.8rem;
    color: #8a9e8c;
}

.dokument-download-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    background: var(--primary-green);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(45,90,39,0.2);
    white-space: nowrap;
}

.dokument-download-btn:hover {
    background: #234820;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45,90,39,0.28);
    text-decoration: none;
}

.dokument-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dokument-header {
        padding: 32px 0 28px;
    }

    .dokument-header-inner {
        padding: 0 20px;
        gap: 16px;
    }

    .dokument-header-icon {
        font-size: 2.2rem;
    }

    .dokument-header h1 {
        font-size: 1.6rem;
    }

    .dokument-content {
        padding: 24px 16px 48px;
        gap: 20px;
    }

    .dokument-locked-card {
        padding: 32px 24px;
    }

    .dokument-category-header {
        padding: 16px 20px;
    }

    .dokument-file-row {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .dokument-download-btn {
        width: 100%;
        justify-content: center;
    }

    .dokument-file-title {
        white-space: normal;
    }
}
