/* Osnovne nastavitve strani */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;

    /* OZADJE */
    background-image: url('images/ozadje.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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;
}

#slideshow img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* MOBILNI TELEFONI */
@media (max-width: 600px) {
    #slideshow img {
        width: 90% !important;
        max-width: 100% !important;
        height: auto;
        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: 20px;
}

@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);
}