/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */





/* ============================================================
           CSS CUSTOM PROPERTIES
           ============================================================ */
        :root {
            /* --- Palette: deep court / amber handball --- */
            --c-bg:             #FDFAF5;
            --c-bg-alt:         #F5F0E8;
            --c-bg-elevated:    #FFFFFF;
            --c-surface:        #EDE8DD;
            --c-border:         #D9D2C4;
            --c-border-light:   #E8E2D6;

            --c-text:           #1A1712;
            --c-text-secondary: #5C564A;
            --c-text-muted:     #8A8478;

            --c-accent:         #C8621A;
            --c-accent-hover:   #A8500F;
            --c-accent-subtle:  rgba(200, 98, 26, .08);
            --c-accent-glow:    rgba(200, 98, 26, .15);

            --c-navy:           #0F1C3F;
            --c-navy-mid:       #1B2D56;
            --c-navy-light:     #2A3F6E;

            --c-highlight:      #F9E4A0;
            --c-success:        #2D7A4F;
            --c-info:           #2968A8;

            /* --- Typography --- */
            --f-display:  'Fraunces', Georgia, 'Times New Roman', serif;
            --f-body:     'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

            --fs-hero:    clamp(2.2rem, 5.5vw, 3.8rem);
            --fs-h2:      clamp(1.6rem, 3.2vw, 2.4rem);
            --fs-h3:      clamp(1.2rem, 2.2vw, 1.55rem);
            --fs-body:    clamp(1.02rem, 1.1vw, 1.15rem);
            --fs-small:   clamp(.85rem, .95vw, .95rem);
            --fs-meta:    clamp(.78rem, .85vw, .85rem);

            --lh-body:    1.72;
            --lh-heading: 1.18;

            /* --- Spacing --- */
            --sp-xs:  .4rem;
            --sp-sm:  .8rem;
            --sp-md:  1.5rem;
            --sp-lg:  2.5rem;
            --sp-xl:  4rem;
            --sp-2xl: 6rem;

            --content-w:   84rem;
            --content-wide: min(90ch, 94vw);

            /* --- Misc --- */
            --radius:      6px;
            --radius-lg:   12px;
            --shadow-sm:   0 1px 3px rgba(15,28,63,.06), 0 1px 2px rgba(15,28,63,.04);
            --shadow-md:   0 4px 16px rgba(15,28,63,.07), 0 2px 6px rgba(15,28,63,.04);
            --shadow-lg:   0 12px 40px rgba(15,28,63,.10), 0 4px 12px rgba(15,28,63,.05);
            --transition:  .25s cubic-bezier(.4,0,.2,1);
        }

        /* ============================================================
           DARK THEME
           ============================================================ */
        @media (prefers-color-scheme: dark) {
            :root {
                --c-bg:             #0D0F14;
                --c-bg-alt:         #13161E;
                --c-bg-elevated:    #1A1E28;
                --c-surface:        #1F2430;
                --c-border:         #2A303E;
                --c-border-light:   #232836;

                --c-text:           #E4E0D8;
                --c-text-secondary: #A09B8F;
                --c-text-muted:     #6D6862;

                --c-accent:         #E0853A;
                --c-accent-hover:   #EFA04F;
                --c-accent-subtle:  rgba(224, 133, 58, .10);
                --c-accent-glow:    rgba(224, 133, 58, .12);

                --c-navy:           #8FA4D4;
                --c-navy-mid:       #6B84BA;
                --c-navy-light:     #4E6899;

                --c-highlight:      rgba(249, 228, 160, .10);
                --c-success:        #4DAA72;
                --c-info:           #5B9AD5;

                --shadow-sm:   0 1px 3px rgba(0,0,0,.20), 0 1px 2px rgba(0,0,0,.15);
                --shadow-md:   0 4px 16px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.15);
                --shadow-lg:   0 12px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.20);
            }
        }

        /* ============================================================
           RESET & BASE
           ============================================================ */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            hanging-punctuation: first last;
        }

        body {
            font-family: var(--f-body);
            font-size: var(--fs-body);
            line-height: var(--lh-body);
            color: var(--c-text);
            background: var(--c-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            overflow-x: hidden;
        }

        /* Grain overlay on body */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 9999;
            opacity: .025;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            background-repeat: repeat;
        }

        @media (prefers-color-scheme: dark) {
            body::before { opacity: .04; }
        }

        ::selection {
            background: var(--c-accent);
            color: #fff;
        }

        :focus-visible {
            outline: 2px solid var(--c-accent);
            outline-offset: 3px;
            border-radius: 2px;
        }

        img, picture, video, svg {
            display: block;
            max-width: 100%;
            height: auto;
        }

        a {
            color: var(--c-accent);
          text-decoration: none;
        }
        a:hover {
            color: var(--c-accent-hover);
            text-decoration-color: transparent;
        }

        /* ============================================================
           TOP DECORATIVE BAR
           ============================================================ */
        body > .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--c-accent), var(--c-navy-light), var(--c-accent));
            background-size: 200% 100%;
            z-index: 100;
            animation: shimmer 6s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50%       { background-position: 100% 50%; }
        }

        /* ============================================================
           READING PROGRESS BAR
           ============================================================ */
        .progress-track {
            position: fixed;
            top: 3px;
            left: 0;
            width: 100%;
            height: 2px;
            background: transparent;
            z-index: 99;
        }
        .progress-bar {
            height: 100%;
            width: 0%;
            background: var(--c-accent);
            opacity: .7;
            transition: width .1s linear;
        }

        /* ============================================================
           HEADER
           ============================================================ */
        header { }

        /* ============================================================
           NAV — TABLE OF CONTENTS (SIDEBAR)
           ============================================================ */
        .toc {
            position: fixed;
            top: 50%;
            right: var(--sp-md);
            transform: translateY(-50%);
            z-index: 50;
            display: none;
        }

        @media (min-width: 1280px) {
            .toc { display: block; }
        }

        .toc-inner {
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: flex-end;
        }

        .toc-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--c-border);
            transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
            cursor: pointer;
        }
        .toc-dot:hover,
        .toc-dot.active {
            background: var(--c-accent);
            transform: scale(1.5);
            box-shadow: 0 0 0 4px var(--c-accent-glow);
        }
        .toc-dot:focus-visible {
            outline: 2px solid var(--c-accent);
            outline-offset: 4px;
        }

        .toc-label {
            position: absolute;
            right: 22px;
            top: 50%;
            transform: translateY(-50%);
            white-space: nowrap;
            font-family: var(--f-body);
            font-size: var(--fs-meta);
            font-weight: 500;
            color: var(--c-text-secondary);
            background: var(--c-bg-elevated);
            padding: 4px 10px;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            opacity: 0;
            pointer-events: none;
            transition: opacity var(--transition);
        }
        .toc-dot:hover .toc-label {
            opacity: 1;
        }

        /* ============================================================
           MAIN — ARTICLE CONTAINER
           ============================================================ */
        main {
        }
        .container{
            margin-inline: auto;
            padding:0 1rem;
            position: relative;
        }

        /* Side accent line */
        .container::before {
            content: '';
            position: absolute;
            left: -3rem;
            top: var(--sp-xl);
            bottom: var(--sp-xl);
            width: 2px;
            background: linear-gradient(
                180deg,
                transparent,
                var(--c-accent-glow) 15%,
                var(--c-accent) 50%,
                var(--c-accent-glow) 85%,
                transparent
            );
            display: none;
        }
        @media (min-width: 960px) {
            main::before { display: block; }
        }

        /* ============================================================
           TYPOGRAPHY — HEADINGS
           ============================================================ */
        h1 {
            font-family: var(--f-display);
            font-size: var(--fs-hero);
            font-weight: 800;
            line-height: var(--lh-heading);
            letter-spacing: -.02em;
            color: var(--c-text);
            margin-bottom: var(--sp-lg);
            padding-bottom: var(--sp-lg);
            border-bottom: 2px solid var(--c-border);
            position: relative;
            text-wrap: balance;
            text-align: center;
            margin: 3rem 0;
        }

        h1::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 80px;
            height: 2px;
            background: var(--c-accent);
        }

        main h2 {
            font-family: var(--f-display);
            font-size: var(--fs-h2);
            font-weight: 700;
            line-height: var(--lh-heading);
            letter-spacing: -.015em;
            color: var(--c-text);
            margin-top: var(--sp-2xl);
            margin-bottom: var(--sp-lg);
            padding-top: var(--sp-lg);
            position: relative;
            text-wrap: balance;
        }

        main h2::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, var(--c-accent), var(--c-border-light) 60%, transparent);
        }

        main h3 {
            font-family: var(--f-display);
            font-size: var(--fs-h3);
            font-weight: 600;
            line-height: 1.3;
            letter-spacing: -.01em;
            color: var(--c-text);
            margin-top: var(--sp-xl);
            margin-bottom: var(--sp-md);
            padding-left: var(--sp-md);
            border-left: 3px solid var(--c-accent);
        }

        /* ============================================================
           TYPOGRAPHY — BODY
           ============================================================ */
        main p {
            margin-bottom: var(--sp-md);
            color: var(--c-text);
            
        }

        main p + p {
            margin-top: 0;
        }

        main strong {
            font-weight: 600;
            color: var(--c-text);
        }

        main em {
            font-style: italic;
            color: var(--c-text-secondary);
        }

        /* ============================================================
           LISTS
           ============================================================ */
        main ul,
        main ol {
            margin-bottom: var(--sp-md);
            padding-left: 1.2em;
            
        }

        main ul { list-style: none; }

        main ul li {
            position: relative;
            padding-left: 1.2em;
            margin-bottom: var(--sp-sm);
        }

        main ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: .65em;
            width: 6px;
            height: 6px;
            border-radius: 1px;
            background: var(--c-accent);
            transform: rotate(45deg);
        }

        main ol {
            list-style: none;
            counter-reset: ol-counter;
        }

        main ol li {
            position: relative;
            padding-left: 2em;
            margin-bottom: var(--sp-sm);
            counter-increment: ol-counter;
        }

        main ol li::before {
            content: counter(ol-counter, decimal-leading-zero);
            position: absolute;
            left: 0;
            top: 0;
            font-family: var(--f-display);
            font-size: var(--fs-small);
            font-weight: 700;
            color: var(--c-accent);
            opacity: .7;
        }

        main li p {
            margin-bottom: var(--sp-xs);
        }

        /* ============================================================
           BLOCKQUOTE
           ============================================================ */
        main blockquote {
            margin: var(--sp-lg) 0;
            padding: var(--sp-md) var(--sp-lg);
            background: var(--c-accent-subtle);
            border-left: 4px solid var(--c-accent);
            border-radius: 0 var(--radius) var(--radius) 0;
            position: relative;
        }

        main blockquote::before {
            content: '\201C';
            position: absolute;
            top: -.15em;
            left: var(--sp-sm);
            font-family: var(--f-display);
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--c-accent);
            opacity: .2;
            line-height: 1;
        }

        main blockquote p {
            font-family: var(--f-display);
            font-size: clamp(1.05rem, 1.2vw, 1.2rem);
            font-style: italic;
            font-weight: 400;
            line-height: 1.65;
            color: var(--c-text-secondary);
        }
        main blockquote p:last-child { margin-bottom: 0; }

        /* ============================================================
           FIGURES & IMAGES
           ============================================================ */
        main figure {
            margin: var(--sp-xl) 0;
        }

        main figure img,
        main .hero-image,
        main .article-image {
            width: 100%;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            transition: box-shadow var(--transition), transform var(--transition);
        }

        main figure img:hover,
        main .article-image:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }

        main .hero-image {
        
        
            margin-bottom: var(--sp-lg);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            
            object-fit: cover;
        }

        @media (max-width: 600px) {
            main .hero-image {
                
               
                border-radius: var(--radius);
            }
        }

        main figcaption {
            margin-top: var(--sp-sm);
            font-size: var(--fs-meta);
            color: var(--c-text-muted);
            font-style: italic;
            text-align: center;
        }

        /* ============================================================
           TABLE OF CONTENTS — INLINE (Mobile)
           ============================================================ */
        main ul:first-of-type {
            background: var(--c-bg-alt);
            border: 1px solid var(--c-border-light);
            border-radius: var(--radius-lg);
            padding: var(--sp-md) var(--sp-md) var(--sp-md) var(--sp-lg);
            margin-bottom: var(--sp-xl);
        }

        main ul:first-of-type li::before {
            background: var(--c-navy-light);
            border-radius: 50%;
            width: 5px;
            height: 5px;
            transform: none;
            top: .7em;
        }

        @media (prefers-color-scheme: dark) {
            main ul:first-of-type li::before {
                background: var(--c-navy);
            }
        }

        /* ============================================================
           HORIZONTAL RULES / SECTION DIVIDERS
           ============================================================ */
        main hr {
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--c-border) 20%, var(--c-border) 80%, transparent);
            margin: var(--sp-xl) 0;
        }

        /* ============================================================
           DISCLAIMER / ITALIC CLOSING
           ============================================================ */
        main > p:last-child em,
        main > p:last-of-type em {
            display: block;
            margin-top: var(--sp-xl);
            padding: var(--sp-md);
            background: var(--c-bg-alt);
            border-left: 3px solid var(--c-text-muted);
            border-radius: 0 var(--radius) var(--radius) 0;
            font-size: var(--fs-small);
            color: var(--c-text-muted);
            line-height: 1.6;
        }

        /* ============================================================
           CODE / PREFORMATTED (if present)
           ============================================================ */
        main code {
            font-family: 'JetBrains Mono', ui-monospace, monospace;
            font-size: .88em;
            padding: .15em .4em;
            background: var(--c-surface);
            border-radius: 3px;
            color: var(--c-accent);
        }

        /* ============================================================
           BACK-TO-TOP BUTTON
           ============================================================ */
        .back-to-top {
            position: fixed;
            bottom: var(--sp-lg);
            right: var(--sp-lg);
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            background: var(--c-bg-elevated);
            border: 1px solid var(--c-border);
            border-radius: 50%;
            box-shadow: var(--shadow-md);
            color: var(--c-text-secondary);
            cursor: pointer;
            opacity: 0;
            transform: translateY(12px);
            transition: opacity var(--transition), transform var(--transition), background var(--transition), color var(--transition);
            z-index: 50;
        }
        .back-to-top:hover {
            background: var(--c-accent);
            color: #fff;
            border-color: var(--c-accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .back-to-top svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ============================================================
           FOOTER
           ============================================================ */
        footer { }

        /* ============================================================
           ANIMATIONS — ENTRANCE
           ============================================================ */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        main h1 {
            animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both;
        }
        main h2 {
            animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
        }

        /* Scroll-triggered reveal */
        .reveal {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ============================================================
           RESPONSIVE
           ============================================================ */
        @media (max-width: 600px) {
            main {
                padding: var(--sp-xl) 0 var(--sp-lg);
               
            }
            main h1 { margin-bottom: var(--sp-md); padding-bottom: var(--sp-md); }
            main h2 { margin-top: var(--sp-xl); margin-bottom: var(--sp-md); }
            main h3 { margin-top: var(--sp-lg); }
            main blockquote { padding: var(--sp-sm) var(--sp-md); }

            .back-to-top { right: var(--sp-md); bottom: var(--sp-md); }
        }

        @media (min-width: 601px) and (max-width: 959px) {
            main { width: min(72ch, 88vw); }
        }

        /* ============================================================
           PRINT
           ============================================================ */
        @media print {
            body::before,
            .top-bar,
            .progress-track,
            .toc,
            .back-to-top { display: none !important; }
            main { padding: 0; width: 100%; }
            main h2 { break-before: page; }
            main h3 { break-after: avoid; }
            main blockquote { border-left-color: #333; }
        }

        /* ============================================================
           REDUCED MOTION
           ============================================================ */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .reveal { opacity: 1; transform: none; }
        }
      /* ================================ */

      .back-to-top {
            position: fixed;
            bottom: 2rem;
            right:2rem;
            width: 44px;
            height: 44px;
           background: var(--c-gold);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--transition), transform var(--transition);
            z-index: 100;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            background: var(--c-accent-soft);
        }

        .back-to-top svg {
            width: 20px;
            height: 20px;
        }
        
        img{
            width: 100%;
            object-fit: cover;
            max-height: 700px;
        }
      
        .wp-block-image img {
  
            margin-bottom: 2rem;
        }



 /* --- 1. menu --- */
.header-top {
  
    width: 100%;
 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border-light);
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


 /* menu */

    .burger-logo {
        margin: 0; 
        padding: 0;
    }




        .logo-wrapper {
            flex-wrap: nowrap !important;;
            display: flex !important;
            align-items: center !important;
          
            text-decoration: none;
        }


       
        .main-logo-img {
          
            max-height: 45px;
            width: auto;
            flex-shrink: 0;
        }

      
        .logo-text {
            color: var(--c-text);
            white-space: nowrap; 
            font-size: 1.4rem;
        font-weight: 700;
        text-transform: capitalize;
          
        }

     
        .logo-wrapper {
            display: flex !important;
            align-items: center !important;
            flex-wrap: nowrap !important;
            column-gap: 0.5rem !important;
        }


      .main-menu {
            gap: 1.2rem;
          display: flex;
        }
   


        .main-menu a {
    padding: 0 10px;
    display: inline-block; 
    transition: color 0.3s; 
        }

        .main-menu a:hover {
            color: inherit;
            
        }

        .menu-item__inner {
            display: inline-flex;
            justify-content: space-between;
            align-items: center;
            position: relative
        }

     

        .menu-toggle.active .icon-chevron {
            transform: rotate(180deg);
        }

        .menu-item-has-children>.sub-menu {
            display: none;
        }

        .menu-item-has-children>.sub-menu.active {
            display: block;
        }

        .sub-menu {
            display: none;
            min-width: 220px;
            width: 100%;
        }

        .main-navigation {
            top: 0;
            position: absolute;
            width: 100%;
            left: -100%;
            background-color: inherit;
            z-index: -1;
            overflow: auto;
        }

        .has-overlay {
            overflow: hidden;
        }

        .main-navigation.active {
            position: relative;
            color: inherit;
            background-color: inherit;
            left: 0;
            top: 3.5rem;
            height: 100vh;
            z-index: 9;
        }

        .main-navigation ul {
            margin: 0;
            padding: 0;
        }

        .menu-link {
            color: inherit;
            font-size: 0.9rem;
        }

        .menu-item-has-children:last-child .sub-menu,
        .menu-item-has-children:nth-last-child(2) .sub-menu {
            right: 0;
            left: auto;
            padding: 0.9rem;
        }

        .sub-menu--level-2 {
            right: 100% !important;
            top: 0 !important;
            left: auto !important;
        }
        .sub-menu .sub-menu--level-2 li{
            margin-bottom: 0.9rem;
        }


        .main-menu li {
            position: relative;
            cursor: pointer;
            list-style-type: none;
            margin: 0;
          
        }
        .main-menu li.active{
            color: var(--color-primary);
         
            font-weight: 600;
            border-bottom: 1px solid var(--color-primary);
            width: fit-content;
        
    
        }
       
        .burger-line {
            width: 100%;
            height: 3px;
            background-color: var(--c-text);
            border-radius: 2px;
            transition: all 0.3s ease;
            position: absolute;
            left: 0;
           
        }

        .burger-line:nth-child(1) {
            top: 0;
        }

        .burger-line:nth-child(2) {
            top: 48%;
            transform: translateY(-50%);
        }

        .burger-line:nth-child(3) {
            bottom: 2px;
        }

        .js-burger {
            flex-direction: column;
            cursor: pointer;
            width: 30px;
            height: 25px;
            position: absolute;
            z-index: 1003;
            background: none;
            border: none;
            padding: 0.5rem;
            right: 2rem;
            top: 1.5rem;
       
           
        }

        .js-burger.active .burger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 7px);
        }

        .js-burger.active .burger-line:nth-child(2) {
            opacity: 0;
        }

        .js-burger.active .burger-line:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -8px);
        }

        .main-navigation::after {
            display: block;
            content: '';
            position: relative;
            width: 100%;
            height: 5rem;
        }
           
       
        .main-navigation::after {
            display: block;
            content: '';
            position: relative;
            width: 100%;
            height: 5rem;
        }
        .main-menu {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                column-gap: 1.4rem;
                row-gap: 1rem;
                margin: 0;
                padding: 0;
            }
            .burger-logo{
                
                white-space: nowrap;
                text-transform: uppercase;
               display: flex;
                align-items: center;
                column-gap: 0.5rem;
                
            }

            .burger-logo a {
                font-size: clamp(0.5rem, 1.1rem + 1.1vw, 1.5rem)!important;
            
                z-index: 2;
               color: var(--color-primary);
                text-decoration: none;
            }
            .burger-logo a:hover {
            color: #fff !important;
            }
      

      
   /* Responsive */
    @media(min-width: 1100px) {
        

        .container-casa{
             padding: 2rem 0;
             text-align: center;
             max-width: 80rem;
             margin: auto;
           }
            .menu-toggle {
                padding: 3px;
                
            }
             
            .main-navigation {
                overflow: visible;
                justify-content: end;
                display: flex;
            }
            .header-nav{
                   display: flex;
                align-items: center;
                margin: auto;
                border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.5rem 0;
            width: 100%;
            }
            .header-nav a{
            display: flex;
            text-transform:capitalize; 
            
            text-decoration: none;
            transition: color var(--transition);
            font-size: 1.1rem;
            flex-wrap: wrap;
         
            align-items: center;
            column-gap: 1.4rem;
            row-gap: 1rem;
            margin: 0;
            padding: 0 3px;

            z-index: 1000;
            
            margin-bottom: 0;
            }
           
          
            .sub-menu {
                display: none;
                min-width: 280px;
                max-width: 320px;
                width: 100%;
                position: absolute;
                top: 100%;
                left: 0;
                z-index: 8;
                background: var(--c-surface);
            }

            .sub-menu a{
                color: #fff;
            }
            .header>.container {
                flex-wrap: nowrap;
            }

            .main-navigation::after {
                display: none;
            }

            .menu-item-has-children:hover>.sub-menu {
                display: block;
            }

            .main-navigation {
             
                top: 0;
                position: absolute;
                left: -100%;
                background-color: inherit;
                z-index: 9;
               
            }

            .icon-chevron {
                width: 1.2em;
                height: 1.2em;
                vertical-align: middle; 
            }

        

            .js-burger {
                display: none;
            }

            .main-navigation {
                position: inherit;
            }

            .wp-block-image{
                margin: 2rem 0;
            }
          }

        


      @media (max-width: 1100px) {
          .header-top{
              position: relative;
              min-height: 59px;
              padding: 0;
          }
          .site-titlecontainer-casa{
            margin-top: 3rem;
        }
        .wide-image-container {
          margin-left: calc(-2 * var(--space-xl));
          margin-right: calc(-2 * var(--space-xl));
          border-radius: var(--img-radius);
        }
          .burger-logo {
        display: flex;
        align-items: center;
          text-transform: uppercase;
            top: 0.7rem;
            left: 10px;
          z-index: 2;
          position: absolute;
          }
          .burger-logo a{
          color: #ffffff !important;

          }
        .container-casa{
             padding: 3rem 1rem 1.5rem;
         
           }
        
          .main-navigation ul {
              display: block;
            }
        
        .site-branding nav{
          
            background: none;
            border-radius: var(--radius);
  
            margin-bottom: calc(var(--gap) * 1.5);
            box-shadow: none;
            border: none;
            }
        
    
        
            .main-menu li {
                text-align: left;
                 margin-top: 21px;
            }
            .sub-menu li {
            margin-top: 0 !important;
            padding: 0.2rem 1rem;
        }
       .main-menu li.active {
        border-bottom: none;

        }
        .header-nav a {
            font-size: 1.2rem;
        }

          .menu-item-has-children>.sub-menu.active {
            margin-left: 0.8rem;
        }
        
      }

    /* end menu */



    .container-casa p{
        text-align: center;
        font-size: 1.3rem;
            max-width: 700px;
        margin: 0 auto;
    }

   .sitemap-content {
        margin: 30px 0;
    }

    .sitemap-section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }

    .sitemap-section h2 {
        color: inherit;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .sitemap-section h3 {
        color: #555;
        margin: 15px 0 10px 0;
    }

    .sitemap-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .breadcrumbs{
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 2rem 0;
    gap: 0.5rem;
        }
        .breadcrumbs-content{
            display: contents;
        }
    @media (max-width: 1024px) {
        .sitemap-list {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.25rem;
        }
    }
    @media (max-width: 768px) {
        .sitemap-list {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
     

    }

    .sitemap-list li {
        margin-bottom: 8px;
        padding-left: 15px;
        position: relative;
    }

 
    .sitemap-list a {
        text-decoration: none;
        color: inherit;
        transition: color 0.3s;
    }

    .sitemap-list a:hover {
        color: #007cba;
    }

    .category-group {
        margin-bottom: 20px;
    }

    .tags-cloud {
        line-height: 2;
    }

    .tag {
        display: inline-block;
        background: #e9e9e9;
        padding: 5px 10px;
        margin: 3px;
        border-radius: 3px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: all 0.3s;
    }

    .tag:hover {
        background: #007cba;
        color: white;
    }


    @media (max-width: 768px) {
        .sitemap-section {
            padding: 15px;
        }
        
        .tag {
            font-size: 12px;
            padding: 3px 8px;
        }
    }

   

        


      @media (max-width: 1100px) {
          .site-titlecontainer-casa{
            margin-top: 3rem;
        }
        .wide-image-container {
          margin-left: calc(-2 * var(--space-xl));
          margin-right: calc(-2 * var(--space-xl));
          border-radius: var(--img-radius);
        }
         
        .container-casa{
             padding: 3rem 1rem 1.5rem;
            
           }
        
       
        
        .site-branding nav{
          
            background: none;
            border-radius: var(--radius);
            
            margin-bottom: calc(var(--gap) * 1.5);
            box-shadow: none;
            border: none;
            }
        
    
       
      }

        
        header p {
    font-size: var(--font-md);
 
        }
            .toc-wrap {
                padding: 1rem;
               
            }

         

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
        



  /* articulos */
    .articulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    padding-top: 30px ;
    
    max-width: var(--max-width);
        margin: 0 auto;
}

.articulos-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.articulos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}


.articulos-card__image-link img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}

/* Контент */


.articulos-card__content {
    padding: 0 17px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 

}
.articulos-card__title {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6rem; 
}
.articulos-card__title a{
    text-decoration: none;
   
}

.articulos-card__excerpt {
    margin-top: auto; 
    
    margin-bottom: 0; 
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.5;
    
  
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.articulos-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.articulos-card__link svg {
    transition: transform 0.3s;
}

.articulos-card__link:hover {
    color: #0073aa;
    gap: 12px;
}


.articulos-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    height: 170px; 
}


.articulos-card__image-link img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block;
    transition: transform 0.6s ease;
}


.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}

/* Заглушка, если у поста нет картинки */
.articulos-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-load-more:hover {
    background-color: #005177;
}


 @media (max-width: 559px) {
    .articulos-grid {
        gap: 17px;
        
    }
    .articulos-card__image-link {
    
        height: 17rem;
    }
 }

          @media (max-width: 768px) {
           .sitemap-list {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 5px;
                list-style: none;
                padding: 0;
            }
        }

#site-navigation a, 
.menu-item a {
    outline: none !important;
    -webkit-tap-highlight-color: transparent; 
}


/* ============================================================
   IMAGES — HANDBALL PARIS SPORTIF
   ============================================================ */

.hero-image {
  
    margin-bottom: var(--sp-lg, 2.5rem);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(15,28,63,.10), 0 4px 12px rgba(15,28,63,.05));
}

.hero-image img {
    width: 100%;
    height: auto;

    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg, 12px);
}

.article-image {
    margin: var(--sp-xl, 2.5rem) 0;
    text-align: center;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(15,28,63,.07), 0 2px 6px rgba(15,28,63,.04));
    transition: box-shadow .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}

.article-image img:hover {
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(15,28,63,.10), 0 4px 12px rgba(15,28,63,.05));
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero-image {
     
        border-radius: var(--radius, 6px);
    }
    .hero-image img {
        border-radius: var(--radius, 6px);
    }
    .article-image {
        margin: var(--sp-lg, 1.5rem) 0;
    }
    .article-image img {
        border-radius: var(--radius, 6px);
    }
}

/* Dark mode shadow adjustments */
@media (prefers-color-scheme: dark) {
    .hero-image {
        box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.20);
    }
    .article-image img {
        box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.15);
    }
    .article-image img:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.20);
    }
}

/* Print */
@media print {
    .hero-image,
    .article-image {
        box-shadow: none;
        break-inside: avoid;
    }
    .hero-image img,
    .article-image img {
        box-shadow: none;
    }
}

    /* Стили для футера */
    .footer {
            background: var(--c-bg-alt);
        color: #ffffff;
        padding: 50px 0 20px;
        font-family: 'Arial', sans-serif;
        border-top: 3px solid #16a34a; 
        margin-top: 2.5rem;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 колонки */
        gap: 30px;
        flex-wrap: wrap;
    }

    
    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col h3{
        font-size: 18px;
        color: var(--c-text);
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
        padding-bottom: 10px;
    }

    .footer-col h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background: #16a34a; 
    }

    /* Логотип и описание */
    .footer-logo {
        max-width: 180px;
        margin-bottom: 15px;
    }

    .footer-desc {
        font-size: 14px;
        color: #64748b;
        line-height: 1.6;
    }

    /* Ссылки */
    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-col .custom-logo-link img {
    max-width: 100px; 
    height: auto;
    display: block;
   margin: 15px 0;
    border-radius: 50%;
}


    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        text-decoration: none;
        color: #64748b;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .footer-links a:hover {
        color: #16a34a;
        padding-left: 5px;
    }

    /* Копирайт */
    .footer-bottom {
        border-top: 1px solid #334155;
        margin-top: 40px;
        padding-top: 20px;
        text-align: center;
        font-size: 13px;
        color: #64748b;
    }

    /* Адаптивность для мобильных устройств */
    @media (max-width: 768px) {
        .footer-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
        }
    }

    @media (max-width: 480px) {
        .footer-grid {
            grid-template-columns: 1fr; /* 1 колонка на телефоне */
            
        }
        .footer-col h4::after {
            left: 50%;
            transform: translateX(-50%);
        }
    }