/* CSS - Oblikovanje */
:root {
    --primary-blue: #a2d2ff;
    --primary-green: #b7e4c7;
    --dark-text: #2d3436;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: var(--dark-text);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.5rem;
    margin-top: 10px;
}

.logo {
    /* ensure the logo stands out in the header */
    display: block;
    width: 150px;           /* slightly larger for visibility */
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    border: 3px solid white; /* outline so you can see the image area */
    background-color: white; /* in case the PNG has a dark background */
}

.container {
    max-width: 1000px;
    margin: -50px auto 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #2d3436;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.achievements-list {
    list-style: none;
}

.achievements-list li {
    background: #eef9f1;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.achievements-list li::before {
    content: "🏹";
    margin-right: 15px;
}

.cta-box {
    background: var(--primary-blue);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    background: white;
    color: var(--dark-text);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
}

.btn:hover {
    background: var(--primary-green);
    color: white;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

table thead {
    background: var(--dark-text);
    color: white;
}

table th {
    padding: 15px 50px;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 15px 50px;
}

table tbody tr:nth-child(odd) {
    background: linear-gradient(135deg, #c5e0ff 0%, #a8ceff 100%);
    background-attachment: fixed;
}

table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #d0eedf 0%, #b0e3c5 100%);
    background-attachment: fixed;
}

table tbody tr:hover {
    opacity: 0.9;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #636e72;
}

/* Galerija Sidebar and Gallery */
.sidebar-galerija {
    width: 100%;
    background: #f8fafc;
    border: 3px solid var(--primary-blue);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 40px;
}
.galerija-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    text-align: left;
    letter-spacing: 1px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.gallery-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-img:hover {
    transform: scale(1.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    border-color: var(--primary-blue);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
    margin-bottom: 10px;
}
.caption-text {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 10px;
}
.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 8px #000;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

/* Responsive */
@media (max-width: 600px) {
    header h1 { font-size: 2.5rem; }
    .container { margin-top: 20px; width: 95%; }
}