<style>
html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}






/* ---------------------------------------------------------
   GLOBALNE VARIJABLE
--------------------------------------------------------- */
:root {
    --primary: #145a32;
    --primary-dark: #0b3b20;
    --accent: #f1c40f;
    --bg: #f7f9f9;
    --text: #1b2631;
    --muted: #566573;
    --white: #ffffff;
    --max-width: 1100px;
}

/* Globalno glatko skrolanje */
html {
    scroll-behavior: smooth;
}

/* Reset */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Tamna pozadina rubova */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #1f3b2d;
    color: var(--text);
    line-height: 1.6;
}


/* ---------------------------------------------------------
   HEADER – Faza 1 (nav + Alati + mobilni izbornik)
--------------------------------------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #e5e7e9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-brand {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header-brand:hover {
    color: var(--primary);
}

.header-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.9rem;
}

.header-nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.35rem 0.15rem;
    position: relative;
    white-space: nowrap;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease-out;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-tools {
    position: relative;
    flex-shrink: 0;
}

.tools-toggle {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: #eafaf1;
    border: 1px solid #cce3d5;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
}

.tools-toggle:hover {
    background: #d6f5e3;
}

.tools-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 280px;
    background: var(--white);
    border: 1px solid #e5e7e9;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
    z-index: 210;
}

.header-tools.is-open .tools-dropdown {
    display: block;
}

.tools-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.tools-item:hover {
    background: #f0faf4;
}

.header-menu-toggle {
    display: none;
    margin-left: auto;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    border: 1px solid #cce3d5;
    border-radius: 8px;
    background: #eafaf1;
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-drawer {
    display: none;
    pointer-events: none;
}

.mobile-drawer.is-open {
    display: block;
    pointer-events: auto;
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
}

.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100%;
    background: var(--white);
    z-index: 301;
    padding: 1rem 1.1rem 1.5rem;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mobile-drawer.is-open .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer-close {
    display: block;
    margin-left: auto;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem;
}

.mobile-drawer-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 1rem 0 0.5rem;
}

.mobile-drawer-label:first-of-type {
    margin-top: 0.5rem;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-drawer-nav a {
    display: block;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    border-radius: 6px;
}

.mobile-drawer-nav a:hover {
    background: #f0faf4;
    color: var(--primary-dark);
}

.mobile-drawer-tools {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* ---------------------------------------------------------
   UPLOAD MODAL
--------------------------------------------------------- */
.upload-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.upload-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.upload-box input,
.upload-box button,
.upload-box label {
    display: block;
    width: 100%;
    margin-bottom: 0.6rem;
}

.close-upload {
    margin-top: 1rem;
    background: #ccc;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

/* ---------------------------------------------------------
   HERO SEKCIJA
--------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #eafaf1, #fdfefe);
    border-bottom: 1px solid #e5e7e9;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-title-top {
    grid-column: 1 / 4;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: -1rem;
    color: var(--primary-dark);
}

.hero-links {
    grid-column: 1 / 4;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-links a {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.hero-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-big-logo {
    width: 180px;
    height: auto;
}

.hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.hero-subtitle {
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: #2b5d34; /* ista tamnozelena kao gumbići */
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* suptilno sjenčanje */
  display: block;
  margin-top: 6px;
  margin-bottom: 10px;
  font-family: "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------
   TOP BANNER – FIX (više se ne reže, ne bježi)
--------------------------------------------------------- */
.top-banner {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.top-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------------------------------------------------------
   GLAVNI SADRŽAJ – SVJETLA SREDINA
--------------------------------------------------------- */
.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #f4f1e9;
    padding: 40px 60px;
    box-sizing: border-box;
}

main { padding: 0; }

section { margin-bottom: 3rem; }

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------
   GRID SISTEM
--------------------------------------------------------- */
.grid-3, .grid-2 {
    display: grid;
    gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border-radius: 0.9rem;
    padding: 1.25rem;
    border: 1px solid #e5e7e9;
}

/* ---------------------------------------------------------
   NOVOSTI – GRID KARTICE
--------------------------------------------------------- */
.news-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: 0.9rem;
    border: 1px solid #e5e7e9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #ddd;
}

.news-card-body {
    padding: 1rem 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.news-card-text {
    font-size: 0.9rem;
    color: var(--text);
}

.news-card-text-short {
    max-height: 4.2em;
    overflow: hidden;
}

.news-card-footer {
    padding: 0 1.25rem 1rem;
}

.news-readmore {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: none;
    padding: 0;
}

/* ---------------------------------------------------------
  /* ---------------------------------------------------------
   NEWS MODAL
--------------------------------------------------------- */
.news-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.news-modal {
    background: var(--white);
    width: 90vw;
    max-width: 80vw;
    max-height: 90vh;
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.news-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
}

.news-modal-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.news-modal-date {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.news-modal-content {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   LIGHTBOX
--------------------------------------------------------- */
.lightbox-wrapper {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

/* Glavna slika */
.lightbox-main {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    position: relative;
    z-index: 1; /* slika ispod strelica */
}

/* Strelice */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    text-shadow: 0 0 8px black;
    z-index: 99999 !important; /* strelice iznad svega */
}

.lightbox-arrow.left {
    left: 10px;
}

.lightbox-arrow.right {
    right: 10px;
}

/* Thumbovi */
.lightbox-thumbs {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.lightbox-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}



/* ---------------------------------------------------------
   SIDEBAR – NAJNOVIJE NOVOSTI + ARHIVA
--------------------------------------------------------- */
.news-sidebar {
    width: 280px;
    background: #0f4d1c;
    padding: 1rem;
    border-radius: 8px;
    color: white;
}

.news-sidebar h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-left: 28px;
}

.sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-news-item {
    position: relative;
    padding-left: 26px;
    margin: 6px 0;
    cursor: pointer;
}

.sidebar-news-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml;utf8,<svg fill='%23ffd54a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10'/></svg>") no-repeat center;
    background-size: contain;
}

/* Dropdown arhiva */
.archive-dropdown {
    margin-top: 10px;
    background: #1b1b1b;
    border-radius: 6px;
    padding: 8px;
}

.archive-dropdown-toggle {
    cursor: pointer;
    color: #c8e6c9;
    font-weight: bold;
    padding: 6px 0;
}

.archive-panel:not([open]) > .archive-dropdown-box,
.archive-year:not([open]) > .archive-year-months,
.archive-month:not([open]) > .archive-month-items {
    display: none !important;
}

.archive-panel > .archive-dropdown-box {
    margin-top: 6px;
    border-top: 1px solid #333;
    padding-top: 6px;
}

.archive-dropdown-date {
    padding: 4px 0;
    cursor: pointer;
    color: #c8e6c9;
}

.archive-dropdown-date:hover {
    color: #ffffff;
}

/* Arhiva – accordion (godina / mjesec) */
.archive-year {
    margin-bottom: 8px;
}

.archive-year > summary,
.archive-month > summary {
    cursor: pointer;
    color: #c8e6c9;
    padding: 4px 0;
    user-select: none;
    list-style: none;
}

.archive-year > summary::-webkit-details-marker,
.archive-month > summary::-webkit-details-marker {
    display: none;
}

.archive-year > summary:hover,
.archive-month > summary:hover {
    color: #ffffff;
}

.archive-year-months {
    margin-left: 10px;
    padding-top: 4px;
}

.archive-month {
    margin-top: 4px;
}

.archive-month > summary {
    font-weight: normal;
}

.archive-month-items {
    margin-left: 12px;
    padding-top: 2px;
}

/* ---------------------------------------------------------
   FAQ – INFO KARTICE
--------------------------------------------------------- */
.faq-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}

.faq-info-card {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e5e7e9;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    line-height: 1.55;
}

.faq-info-card-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

/* ---------------------------------------------------------
   FAQ – ACCORDION
--------------------------------------------------------- */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.faq-section-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.faq-category-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f3b2d;
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid #d5d8dc;
    padding: 0.4rem 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.6rem 0;
    cursor: pointer;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question-text {
    flex: 1;
    padding-right: 0.75rem;
}

.faq-arrow {
    transition: transform 0.2s ease;
    color: #2e7d32;
    font-size: 1rem;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer-inner {
    font-size: 16px;
    line-height: 1.6;
    color: #1b1b1b;
}

/* ---------------------------------------------------------
   INFO WRAPPER (Podaci o klubu, Vodstvo, Članarine)
--------------------------------------------------------- */
.info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.info-wrapper section {
    flex: 1;
}

.info-wrapper h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.info-wrapper p {
    margin: 2px 0;
    line-height: 1.35;
    font-size: 1rem;
}

/* ---------------------------------------------------------
   KONTAKT FORMA
--------------------------------------------------------- */
.contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d5d8dc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form button {
    width: 180px;
    padding: 0.6rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
footer {
    background: #ecf0f1;
    border-top: 1px solid #d5d8dc;
    padding: 1rem 1.25rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------------------------------------------------------
   TO TOP BUTTON
--------------------------------------------------------- */
#toTopBtn, .to-top-btn {
    all: unset;
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 3rem;
    color: #2e7d32;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.to-top-btn { display: inline-block; }

#toTopBtn:hover, .to-top-btn:hover {
    transform: scale(1.2);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo-box { order: -1; }

    .main-wrapper {
        padding: 20px 16px;
    }

    .info-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .news-wrapper {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }
}

/* Mobilni uređaji – jedan zajednički @media blok */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden !important;
    }

    .container, .wrapper, .main-layout {
        display: block !important;
        width: 100% !important;
    }

    .sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .content, .main {
        width: 100% !important;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .header-inner {
        flex-wrap: nowrap;
        padding: 0.55rem 1rem;
    }

    .header-nav,
    .header-tools {
        display: none;
    }

    .header-menu-toggle {
        display: block;
    }

    .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .grid-3 .card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

}
/* Desktop */
section {
    scroll-margin-top: 70px;
}

/* Mobitel */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 30px;
    }
}


</style>