@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
    background-color: white;
}

/* ================= NAV ================= */

nav {
    position: absolute;
    top: 130px;
    left: 0;
    width: 100%;
    background-image: url("bg_line.jpg");
    background-repeat: repeat-x;
    z-index: 1;
}

/* ================= CONTAINER ================= */

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: white;
    min-height: 100vh;
    position: relative;
}

/* ================= CONTENT ================= */

.content {
    margin-top: 180px;
    padding: 100px 0 40px 0;
    position: relative;
}

/* ================= TEXT ================= */

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 10px;
}

p {
    color: #666;
    line-height: 1.6;
}

/* ================= LOGO & IKONE ================= */

.logo {
    z-index: 1000;
    display: block;
    position: relative;
    margin-top: -273px;
}

.insta, .face, .hamburger {
    position: absolute;
    right: 0; 
    z-index: 1001;
}

.insta { top: -164px; margin-right: 70px; }
.face { top: -166px; margin-right: 140px; }

/* ================= HAMBURGER ================= */

.hamburger {
    top: -150px;
    margin-right: 0; 
    cursor: pointer;
    width: 44px;
    height: 30px;
}

.hamburger span {
    display: block;
    width: 44px;
    height: 4px;
    background-color: #000;
    margin: 6px 0;
    transition: 0.3s;
}

.hamburger:hover span { background-color: #808080; }

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-8px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-8px, -6px); }

/* ================= MENI ================= */

.odprti {
    position: absolute;
    display: none;
    background-color: #000;
    width: 479px;
    height: auto;
    right: 0;
    top: -170px;
    z-index: 1100;
    padding: 20px;
}

.odprti.show { display: block; animation: slideInFromTop 0.3s ease-in-out forwards; }
.odprti.hide { animation: slideOutToTop 0.3s ease-in-out forwards; }

@keyframes slideInFromTop { from { transform: translateY(-10%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideOutToTop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-10%); opacity: 0; } }

.close-btn {
    position: absolute; top: 10px; right: 15px; color: white;
    font-size: 28px; font-weight: bold; cursor: pointer; z-index: 1001;
}

.meni a {
    color: white; font-weight: 300; display: block; float: left;
    width: 48%; margin: 5px 1%; text-decoration: none; font-size: 24px;
    padding: 2px; text-align: center;
}

.meni a:hover { background-color: #D3D3D3; color: #000; }

/* ================= TRI STOLPCI ================= */

.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0px; 
    position: relative;
    padding-bottom: 46px;
}

.columns::after {
    content: "ZAVOD ZA KULTURNO IN IZOBRAŽEVALNO DEJAVNOST 251 JAZZ";
    position: absolute; bottom: -30px; left: 0; width: 100%; height: 46px;
    background-color: #000; color: white; display: flex;
    align-items: center; justify-content: center; font-size: 16px; font-weight: 300;
}

.column {
    position: relative;
    padding-top: 16px;
    line-height: 1.6;
}

.column::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background-color: #333;
}

/* ================= GUMBI ================= */

.poslanstvo-btn, .ustanovitelji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 46px;
    padding: 12px 24px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    text-align: center;
    min-height: 48px;
    font-size: 16px;
}

.poslanstvo-btn:hover, .ustanovitelji-btn:hover {
    background-color: #808080;
}

/* ================= SEKCIJE & NASLOVI ================= */

.kdo-smo-section {
    margin-top: 60px;
    position: relative;
}

.kdo-smo-section::before, .kdo-smo-section::after {
    content: ""; position: absolute; width: 100%; height: 6px;
    background-color: #333; left: 0;
}
.kdo-smo-section::before { top: 0; }
.kdo-smo-section::after { bottom: 0; }

.kdo-smo-title, .ustanovitelji-title {
    text-align: center; font-size: 33px; font-weight: 300;
    color: #333; padding: 10px 0; margin-bottom: 15px; margin-top: 15px;
}

.ustanovitelji-text {
    margin-top: 20px; font-size: 15px; color: #666;
    line-height: 1.6; text-align: justify;
}

.ustanovitelji-buttons {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: 30px;
}

/* ================= EKIPA / KARTICE (Standard) ================= */

.ekipa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.ekipa.ustanovitelji-grid {
    grid-template-columns: repeat(4, 1fr);
}

.ekipa-card { 
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ekipa-card img {
    width: 100%; max-width: 235px; height: auto;
    border-radius: 8px; filter: grayscale(100%);
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.ekipa-card img:hover {
    filter: grayscale(0%);
}

.ekipa-card p {
    margin-top: 12px; font-size: 15px; color: #333; line-height: 1.4;
    flex-grow: 1;
}

/* ================= EKIPA (Horizontalna - Novo za o-nas.html) ================= */

.ekipa-horizontal {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.ekipa-horizontal .ekipa-card {
    display: grid;
    grid-template-columns: 200px 1fr; /* Fiksna širina slike, tekst desno */
    gap: 30px;
    text-align: left;
    align-items: start;
    flex-direction: row; /* Prepiše standardno flex smer */
}

.ekipa-horizontal .ekipa-card img {
    max-width: 100%;
}

/* ================= PRISTOPNA SEKCIJA ================= */

.pristopna-sekcija {
    width: 100%; 
    margin-top: 50px; 
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.crni-trak {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 46px; background-color: #000; color: #fff;
    text-decoration: none; font-size: 19px; font-weight: bold;
    transition: background-color 0.3s ease; text-align: center;
}

.crni-trak:hover { background-color: #333; }

.pod-trakom-text {
    width: 100%; text-align: center; margin-top: 15px;
    font-size: 15px; color: #666; line-height: 1.5;
}

/* ================= GALERIJA (SWIPER) ================= */

.gallery-container {
    width: 100%;
    margin: 40px 0;
}

.mySwiper2 {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

.mySwiper2 .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.mySwiper {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100px;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #000;
}

.mySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #000;
}

/* ================= FOOTER ================= */

.main-footer {
    width: 100%;
    background-color: transparent;
    padding-bottom: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-line {
    width: 100%;
    height: 6px;
    background-color: #333;
    margin-bottom: 20px;
}

.main-footer p {
    color: #333;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .columns, .ustanovitelji-buttons, .ekipa, .ekipa.ustanovitelji-grid, .ekipa-horizontal .ekipa-card {
        grid-template-columns: 1fr;
    }
    
    .ekipa-horizontal .ekipa-card img {
        margin: 0 auto;
    }

    .odprti { width: 100%; max-width: 300px; top: -30px; }
    .meni a { width: 100%; text-align: left; padding-left: 20px; }
    
    .mySwiper2 { height: 300px; }
    .mySwiper .swiper-slide { height: 60px; }
}