/* ==========================================================================
   1. GLOBAL NOLLSTÄLLNING & ROOT-VARIABLER
   ========================================================================== */
:root {
    /* Färgpalett - Mörkt tema (Standard) */
    --bg-primary: #121311;       /* Djupare, lyxigare mörksvart */
    --bg-secondary: #1A1C18;     /* Matchande mörk nyans för sektioner/header */
    --bg-tertiary: #232620;      /* Mellanmörk ton för hover/input */
    --accent-color: #55B300;     /* Fräsch, levande grön färg */
    --accent-hover: #66CC00;     /* Ljusare grön vid hover */
    --text-light: #E3E8E0;       /* Mjukt brutet vit med ett uns av grönt/grått i */
    --text-white: #FFFFFF;
    --text-muted: rgba(227, 232, 224, 0.65);
    --card-bg: #1A1C18;          /* Kortets bakgrund för att smälta in perfekt */
    --border-color: rgba(85, 179, 0, 0.15); /* Subtil grönaktig ram */
    
    /* Typografi & Avstånd */
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Koppling för Light Mode-variabler */
body.light-mode {
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E9ECEF;
    --text-light: #212529;
    --text-white: #1A1A1A;
    --text-muted: #6C757D;
    --card-bg: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

main {
    flex-grow: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, select {
    font-family: var(--font-main);
    outline: none;
    border: none;
    background: none;
}

/* Grid Container-system */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* RIKTIG “NAV BAR CONTAINER” LOOK */
    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border-color);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    padding: 14px 0;

    transition: all 0.3s ease;
}

/* LIGHT MODE FIX (VIKTIG!) */
body.light-mode .header {
    background: rgba(255, 255, 255, 0.9);

    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* HEADER CONTAINER */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.header img {
    height: 60px;
    transition: transform 0.2s ease;
}

.header img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   NAV CONTAINER (DETTA ÄR “RUTAN” DU SAKNADE)
   ========================================================================== */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
}

/* NAV LISTA = “KAPSEL BAR” */
.nav ul {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    list-style: none;

    margin: 0;
    padding: 6px;

    background: rgba(0,0,0,0.25);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 16px;

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);
}

/* LIGHT MODE KAPSEL FIX */
body.light-mode .nav ul {
    background: rgba(255,255,255,0.6);

    border: 1px solid rgba(0,0,0,0.08);
}

/* NAV ITEMS */
.nav li {
    position: relative;
}

/* NAV BUTTONS (MODERN “PILLS”) */
.nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-light);

    border-radius: 12px;

    transition: all 0.25s ease;

    white-space: nowrap;
}

/* LIGHT MODE TEXT FIX (VIKTIG) */
body.light-mode .nav a {
    color: #1a1a1a;
}

/* HOVER */
.nav a:hover {
    background: rgba(85, 179, 0, 0.14);

    color: var(--text-white);

    transform: translateY(-1px);
}

/* LIGHT MODE HOVER FIX */
body.light-mode .nav a:hover {
    background: rgba(85, 179, 0, 0.12);

    color: #000;
}

/* ACTIVE */
.nav a.active {
    background: rgba(85, 179, 0, 0.18);

    color: var(--accent-color);
}

/* UNDERLINE (SUBTLE PREMIUM) */
.nav a::after {
    content: "";

    position: absolute;

    bottom: 4px;
    left: 50%;

    width: 0;
    height: 2px;

    background: var(--accent-color);

    border-radius: 10px;

    transition: all 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 50%;
    left: 25%;
}

/* ==========================================================================
   DROPDOWN (REN GLASS STYLE)
   ========================================================================== */

.dropdown-parent {
    position: relative;
}

.nav .dropdown {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    transform: translateX(-50%) translateY(8px);

    min-width: 200px;

    background: var(--bg-secondary);

    border: 1px solid var(--border-color);

    border-radius: 14px;

    padding: 8px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;

    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* LIGHT MODE DROPDOWN FIX */
body.light-mode .nav .dropdown {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
}

.dropdown-parent:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav .dropdown a {
    justify-content: flex-start;

    padding: 10px 12px;

    border-radius: 10px;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.08);

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;

    background: var(--text-white);

    border-radius: 10px;
}

/* LIGHT MODE HAMBURGER FIX */
body.light-mode .menu-toggle span {
    background: #111;
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */

@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;

        top: 0;
        right: -100%;

        width: 300px;
        height: 100vh;

        background: var(--bg-secondary);

        backdrop-filter: blur(20px);

        padding: 90px 20px;

        flex-direction: column;

        justify-content: flex-start;

        transition: 0.35s ease;

        z-index: 1500;
    }

    body.light-mode .nav {
        background: #fff;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;

        width: 100%;

        background: none;
        border: none;
        padding: 0;

        gap: 10px;
    }

    .nav a {
        width: 100%;

        justify-content: flex-start;

        padding: 14px 16px;
    }

    .nav a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .nav {
        width: 100%;
    }
}
/* ==========================================================================
   3. DROPDOWN MENY (MODERNISERAD)
   ========================================================================== */
.dropdown-parent {
    position: relative;
}

.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-secondary);
    min-width: 180px;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-parent:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.nav .dropdown a {
    text-align: left;
    padding: 10px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    width: 100%;
}

.nav .dropdown a:hover {
    background-color: var(--accent-color) !important;
    color: var(--text-white) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   4. SPRÅKVÄLJARE & TEMA-TOGGLE
   ========================================================================== */
#lang-select {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 32px 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E3E8E0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

body.light-mode #lang-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23212529'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

#lang-select:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-tertiary);
}

#lang-select option {
    background-color: var(--bg-secondary);
    color: var(--text-light);
}

.btn-theme {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-theme:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   5. HERO-SEKTION
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(rgba(10, 11, 9, 0.7), rgba(10, 11, 9, 0.8)),
                 url('htbild2.png') center/cover no-repeat;
    color: #FFFFFF !important;
    text-align: center;
    padding: 180px 20px;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@media (hover: none) {
    .hero {
        background-attachment: scroll;
    }
}

.hero .container {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero  {
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease forwards;
    color: #FFFFFF !important;
}

.hero p {
    font-size: 21px;
    margin-bottom: 40px;
    line-height: 1.55;
    font-weight: 400;
    color: #FFFFFF !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* =========================
   Knappar (FIXADE)
   ========================= */

.btn, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* PRIMARY */
.btn {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 179, 0, 0.4);
}

/* SECONDARY (DARK MODE) */
.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #121311;
    transform: translateY(-2px);
}

/* =========================
   LIGHT MODE FIX
   ========================= */

body.light-mode .btn {
    color: #FFFFFF;
}

body.light-mode .btn-secondary {
    color: #121311;
    border: 2px solid #121311;
    background-color: transparent;
}

body.light-mode .btn-secondary:hover {
    background-color: #121311;
    color: #FFFFFF;
}

/* ==========================================================================
   6. INFO & SERVICE-KORT SEKTION
   ========================================================================== */
.info-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.info-section h3 {
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

.info-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background-color: var(--card-bg);
    padding: 45px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(85, 179, 0, 0.15);
    border-color: rgba(85, 179, 0, 0.4);
    background-color: var(--bg-tertiary);
}

.card:hover::before {
    opacity: 1;
}

.card h4 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
    padding-bottom: 0;
    border-bottom: none;
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.card-dark {
    background-color: #0E0F0D;
    border-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   7. TEXT + BILD MODERNA LAYOUTS
   ========================================================================== */
.home-info-section,
.service-image-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 100px 0;
}

.service-image-section:nth-of-type(even) {
    flex-direction: row-reverse;
}

.home-info-section .text-container,
.service-image-section .text-container {
    flex: 1;
    min-width: 0;
}

.text-container h2, 
.text-container h3 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.text-container p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.home-info-section img,
.service-image-section img {
    flex: 1;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-height: auto;
    transition: transform var(--transition-smooth);
}

.home-info-section img:hover,
.service-image-section img:hover {
    transform: scale(1.015);
}

/* ==========================================================================
   8. OM OSS SPECIFIKA LAYOUTS
   ========================================================================== */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.about-section .container.grid-2,
.about-preview .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-white);
    margin-bottom: 24px;
}

.about-text h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-image img, 
.about-preview .about-image img {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 0;
}

.about-layout-left {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.about-layout-right {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.about-layout-right .about-logo { order: 2; }
.about-layout-right .about-text { order: 1; }
.about-layout-left .about-luay { order: 1; }
.about-layout-left .about-text { order: 2; }

.about-section .about-logo img {
    max-width: 280px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
}

.about-section .about-luay img {
    width: 100%;
    max-width: 400px;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.about-image2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.img {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   9. KUNSKAPSBANKEN SPECIFIKT
   ========================================================================== */
.main-content {
    background-color: var(--bg-primary);
}

.page-content {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.bank-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0 60px 0;
}

.bank-header h1 {
    font-size: 72px;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-white);
}

.bank-header p {
    max-width: 720px;
    margin: 0 auto 50px auto;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
}

.bank-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.bank-image img {
    width: 100%;
    max-width: 1100px;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.knowledge-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.k-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
}

.k-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(85, 179, 0, 0.15);
    border-color: rgba(85, 179, 0, 0.4);
    background-color: var(--bg-tertiary);
}

.k-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.k-content h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.k-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 30px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    width: fit-content;
}

.read-more::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--accent-hover);
}

.read-more:hover::after {
    transform: translateX(4px);
}

.räddahund {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.räddahund img {
    border-radius: var(--radius-md);
    max-height: 450px;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

.räddahund img:hover {
    transform: scale(1.01);
}

/* ==========================================================================
   10. GALLERY
   ========================================================================== */
.gallery-section {
    padding: 60px 0;
    background-color: #3C3D37;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    font-size: 36px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gallery-header p {
    color: #ECDFCC;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
}

.gallery-slider-wrapper {
    max-width: 325px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-image-container {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background-color: #2b2c28;
    border: 1px solid rgba(236, 223, 204, 0.08);
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-info-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 25px 0;
    font-family: 'Outfit', sans-serif;
    gap: 10px;
}

#gallery-main-caption {
    color: #ECDFCC;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

#gallery-counter {
    color: rgba(236, 223, 204, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.gallery-slider-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-nav-btn {
    background-color: transparent;
    border: 1px solid rgba(236, 223, 204, 0.3);
    color: #ECDFCC;
    padding: 12px 30px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.gallery-nav-btn:hover {
    border-color: #4FA300 !important;
    color: #4FA300 !important;
}

/* ==========================================================================
   11. CHATBOT
   ========================================================================== */
#chat-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background-color: #1a1b18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10000;
    overflow: hidden;
}

.chat-closed {
    display: none !important;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
}

#chat-header {
    background: #22231f; 
    border-bottom: 1px solid rgba(79, 163, 0, 0.2);
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

#chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #1a1b18;
}

.bot-msg {
    background-color: #262722;
    color: #d1d1d1;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}

.user-msg {
    background-color: #4FA300;
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
    max-width: 85%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.faq-btn, .chat-options-btn {
    background-color: #2a2b26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ECDFCC;
    padding: 14px 18px;
    border-radius: 15px;
    cursor: pointer;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.faq-btn:hover, .chat-options-btn:hover {
    background-color: #33342d;
    border-color: #4FA300;
    color: #ffffff;
    transform: translateX(5px);
}

#chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #4FA300, #3d7e00);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(79, 163, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-trigger img {
    width: 32px;
    filter: brightness(0) invert(1);
}

#chat-box::-webkit-scrollbar {
    width: 5px;
}

#chat-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

@keyframes fadeInChat {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg, .user-msg, .faq-btn, .chat-options-btn {
    animation: fadeInChat 0.3s ease forwards;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    padding: 80px 0 40px 0;
    font-size: 15px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-column p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-column a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-icons a img:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   13. ANIMATIONER & EFFEKTER
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   14. RESPONSIV MEDIADESIGN (Optimerad & Strukturerad)
   ========================================================================== */

/* --- Skrivbordslayout XL --- */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* --- Laptop och Mindre Datorer --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h2 {
        font-size: 48px;
    }
    
    .home-info-section,
    .service-image-section {
        gap: 40px;
        padding: 80px 0;
    }
    
    .about-section .container.grid-2,
    .about-preview .grid-2 {
        gap: 40px;
    }
    
    .bank-header h1 {
        font-size: 60px;
    }
}

/* --- Surfplattor (Landskap & Porträtt) --- */
@media (max-width: 992px) {
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav a {
        font-size: 14px;
        padding: 8px 14px;
    }

    .home-info-section,
    .service-image-section,
    .service-image-section:nth-of-type(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-section .container.grid-2,
    .about-preview .grid-2,
    .about-layout-left,
    .about-layout-right {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-layout-right .about-logo { order: 1; }
    .about-layout-right .about-text { order: 2; }
    .about-layout-left .about-luay { order: 1; }
    .about-layout-left .about-text { order: 2; }
    
    .about-section .about-logo img {
        margin: 0 auto;
    }
    
    .home-info-section img,
    .service-image-section img,
    .about-image img,
    .about-preview .about-image img,
    .about-section .about-luay img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .bank-header h1 {
        font-size: 52px;
    }
}

/* --- Små Surfplattor och Större Mobiler --- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
    .nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: 8px;
    }
    
    .nav ul li a {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .header-actions {
        margin: 0 auto;
        justify-content: center;
        width: 100%;
    }
    
    .hero {
        padding: 120px 20px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .info-section {
        padding: 80px 0;
    }
    
    .info-section h3 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .service-cards, .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-header h1 {
        font-size: 40px;
    }
    
    .bank-image img {
        height: auto;
        max-height: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 35px;
    }
    
    /* Mobilanpassning för Chatbot */
    #chat-container {
        right: 20px;
        left: 20px;
        width: auto;
        bottom: 100px;
        height: 55vh;
    }
    
    #chat-trigger {
        right: 20px;
        bottom: 20px;
    }
}

/* --- Rena Mobiltelefoner --- */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav ul {
        gap: 6px;
    }
    
    .nav ul li a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .hero h2 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn, .btn-secondary {
        width: 100%;
        padding: 14px 20px;
    }
    
    .card, .k-content {
        padding: 30px 20px;
    }
    
    .text-container h2, 
    .text-container h3,
    .about-text h2 {
        font-size: 28px;
    }
    
    .gallery-slider-wrapper {
        max-width: 100%;
    }
    
    .gallery-image-container {
        height: auto;
        aspect-ratio: 3 / 4;
    }
    
    .gallery-nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .bank-header h1 {
        font-size: 32px;
    }

    /* Slutgiltig touch för en perfekt mobil-chat */
    #chat-container {
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        height: 60vh;
        bottom: 85px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .bot-msg, .user-msg {
        font-size: 13px;
        padding: 10px 14px;
    }

    .faq-btn, .chat-options-btn {
        width: 100%;
        font-size: 13px;
        padding: 12px;
    }

    #chat-trigger {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
}

	
}
/* LIGHT MODE FIX - service cards */
body.light-mode .service-cards .card,
body.light-mode .service-cards .card-dark {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color);
}

/* Bara huvudrubrikerna på cards blir gröna */
body.light-mode .service-cards .card h4,
body.light-mode .service-cards .card-dark h4 {
    color: var(--accent-color) !important;
}

/* Brödtexten ska vara läsbar, men inte grön */
body.light-mode .service-cards .card p,
body.light-mode .service-cards .card-dark p {
    color: var(--text-muted) !important;
}