/* Osnovne nastavitve strani */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;

    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* OZADJE - removed */
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Glava */
header {
    background-color: #006400;
    /* DarkGreen */
    background: linear-gradient(180deg, #006400 0%, #004d00 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #a8f0a8;
}

nav ul li a i {
    margin-right: 8px;
}

/* Secondary nav slightly smaller */
.secondary-nav li a {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Sekcija za člane */
#clani {
    padding: 40px 20px;
    background-color: rgba(233, 249, 233, 0.95);
    /* Slightly transparent to see hint of bg maybe, or solid */
    text-align: center;
    backdrop-filter: blur(5px);
}

.logo-container {
    margin: 0 auto 30px auto;
    /* Center the container itself */
    text-align: center;
    width: 100%;
}

.logo-container img {
    max-width: 200px;
    width: 100%;
    mix-blend-mode: multiply;
    /* Blends white bg into the light green container */
    filter: contrast(1.1);
    display: inline-block;
    /* Helps with text-align center */
}

.members-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.clan {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    margin: 10px;
    text-align: center;
}

.clan a {
    display: block;
    transition: transform 0.3s ease;
}

.clan a:hover {
    transform: scale(1.05);
}

.clan img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    /* Ensures photos are same size and not distorted */
    border-radius: 50%;
    /* Circle looks premium */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.clan p {
    margin-top: 10px;
    font-weight: 700;
    color: #004d00;
    font-size: 1.1rem;
}

/* Sekcija za dogodke */
#dogodki {
    padding: 40px 20px;
    background-color: rgba(233, 249, 233, 0.95);
    text-align: center;
    border-top: 1px solid #d1e7d1;
}

.event-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    /* Text cleaner on left inside the card */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #006400;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Center text if user strictly insisted on centering EVERYTHING, 
   but "bolj pregledno" usually implies good alignment.
   I will keep text-align: left inside the card, but the list itself is centered. 
   This is the best UX/UI compromise. */

.event-date {
    font-weight: 700;
    color: #006400;
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date i {
    margin-right: 5px;
}

.event-content strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    color: #222;
}

.event-food {
    display: block;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

.event-details,
.event-text {
    color: #444;
    font-size: 0.95rem;
}

/* Pretekli dogodki */
.past-events .event-item {
    border-left-color: #888;
    opacity: 0.9;
}

.past-events .event-date {
    color: #666;
}

.event-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 0.85rem;
    color: #d32f2f;
    /* Red for attendance/notes */
    font-weight: 600;
}


/* -------------------------
   Osnovni stil slideshowa (Keep existing)
--------------------------*/
#slideshow {
    text-align: center;
}

#clani,
#dogodki,
.footer-widgets {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

#slideshow img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    will-change: opacity;
}

/* MOBILNI TELEFONI */
@media (max-width: 600px) {
    #slideshow img {
        width: 90% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .event-item {
        text-align: center;
        /* Center text on mobile for easy reading */
        border-left: none;
        border-top: 5px solid #006400;
    }
}

/* Footer Widgets */
.footer-widgets {
    text-align: center;
    margin: 40px auto 20px auto;
    padding: 20px;
    background-color: rgba(233, 249, 233, 0.95);
    border-radius: 12px;
    max-width: 800px;

    /* Force centering of all children including tables/scripts */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* Noga */
footer {
    background-color: #006400;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

@media (max-width: 600px) {
    footer {
        font-size: 14px;
        padding: 10px;
    }
}

.header-logo-container {
    text-align: center;
    margin: 0 auto 20px auto;
}

.header-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Resource Grid & Cards */
.resource-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #e9f9e9;
    /* Solid color, matching the previous rgba base */
    margin: 0 auto;
    backdrop-filter: blur(5px);
    flex: 1;
    /* Fills the remaining space */
    width: 100%;
    /* Ensures full width */
    box-sizing: border-box;
    /* Includes padding in width */
}

/* Category Columns Layout */
.columns-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.column-category {
    flex: 1;
    min-width: 250px;
    background-color: rgba(233, 249, 233, 0.95);
    /* Matches index.php sections */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.column-category h3 {
    color: #006400;
    margin-bottom: 15px;
    border-bottom: 2px solid #a8f0a8;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Small link cards inside columns */
.link-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #a8f0a8;
}

.link-item i {
    font-size: 1.5rem;
    color: #006400;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.link-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* nova dodaja za ostalo

/* Glavni razdelek */
.resource-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.resource-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Mreža kartic */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Kartice */
.card {
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Povezave */
.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 1rem;
    text-decoration: none;
    color: #222;
    transition: color 0.2s ease;
}

.link-item i {
    font-size: 1.2rem;
    width: 24px;
}

.link-item:hover {
    color: #0077cc;
}