/* Osnovni reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}
/* Boja Terenska Nastava */




body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: 
        url("img/4545.jpg") no-repeat center center fixed;
    background-size: cover;

    /* OVO DODAJEŠ */
    background-color: rgba(255, 255, 255, 0.6); 
    background-blend-mode: lighten;    

    color: #f0f0f0;
    line-height: 2.5;
}

/* Ljepljivi header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 5, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo / Home */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Ako želiš sliku umjesto teksta, dodaj img u .logo i u CSS dodaj:
.logo img { height: 32px; width: auto; }
*/

.main-nav {
    display: flex;
    gap: 1.25rem;
}
/* boja texta u headeru*/

.main-nav a {
    text-decoration: none;
    color: #d0d0d0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: #f5f5f5;
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* HERO – Terenska nastava */
.hero {
    padding: 1.5rem 0 2rem;
    color: #06051a;
}

.hero-logo {
    display: block;
    margin-left: 0;      /* poravnano potpuno lijevo */
    margin-right: auto;  /* sprječava centriranje */
    width: 50%;          /* podešavanje veličine */
    max-width: 600px;
    height: auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(40, 39, 97, 0.52);
    padding-bottom: 0.75rem;
}

/* FEATURED SECTION (kutiija 1 + 2) */
.featured-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
/* boja kartica 1 */
.card {
    background: #06051a;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card-inner {
    display: flex;
    flex-direction: column;
}

.card-individual {
    flex: 1 1 30%;
    min-width: 260px;
}

.card-shared {
    flex: 2 1 60%;
    min-width: 320px;
}

/* Slike */
.card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Naslovi i tekst */
.card-title-link {
    text-decoration: none;
    color: inherit;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.75rem 1rem 0.25rem;
}

.meta {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin: 0 1rem;
}

.meta-date {
    opacity: 0.9;
}

.excerpt {
    font-size: 0.9rem;
    margin: 0.75rem 1rem 1rem;
    color: #d8d8d8;
}

/* Shared layout (kutija 2: slika lijevo, tekst desno) */
.shared-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    height: 100%;
}

.shared-image-wrapper img {
    height: 100%;
    max-height: 100%;
}

.shared-text {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* AUTHORS SECTION (kutija 3) */
.authors-latest-section {
    margin-bottom: 3rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.author-card img {
    height: 200px;
}

/* ABOUT TERENSKA NASTAVA */
.about-tn-section {
    position: relative;
    margin-bottom: 3rem;
    padding: 3rem 1rem; /* prostor iznad i ispod teksta */
}

/* POJAS IZA TEKSTA – full width */
.about-tn-section::before {
    content: "";
    position: absolute;
    inset: 0; /* top, right, bottom, left = 0 */
    background: rgba(240, 240, 240, 0.75); /* blijeda siva, prozirna */
    z-index: 0;
}

/* SADRŽAJ IZNAD POJASA */
.about-tn-section .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* NASLOV */
.about-tn-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0b0a2b;
}

/* TEKST */
.about-tn-section p {
    font-size: 0.95rem;
    color: #0b0a2b;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1rem 2rem;
    background: #06051a;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #a8a8a8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.footer-inner a {
    color: #f0f0f0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-inner a:hover {
    border-color: #f0f0f0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .featured-section {
        flex-direction: column;
    }

    .shared-inner {
        grid-template-columns: 1fr;
    }

    .shared-image-wrapper img {
        height: 220px;
    }

    .authors-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }
}

/* AUTORI STRANICA */
.authors-page-section {
    margin-bottom: 3rem;
}

.authors-page-grid {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.author-info-card .card-inner {
    padding-bottom: 1.25rem;
}

.author-info-card h3 {
    text-align: center;
    margin-top: 1rem;
}

.author-info-card .excerpt {
    font-size: 0.9rem;
    color: #d8d8d8;
    text-align: center;
}


/* Malo prilagoditi na manjim ekranima */
@media (max-width: 900px) {
    .authors-page-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .authors-page-grid {
        grid-template-columns: 1fr;
    }
}

/* O NAMA STRANICA */
.about-page-section {
    position: relative;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
}



.about-page-section .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #0b0a2b;
}

.join-section {
    margin-bottom: 3rem;
}

.join-box .card-inner {
    padding: 1.5rem 1.5rem 1.75rem;
}

.join-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.join-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.join-form label {
    font-size: 0.85rem;
    color: #d8d8d8;
}

.join-form input,
.join-form textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 5, 10, 0.45);
    color: #f5f5f5;
    font-size: 0.9rem;
    outline: none;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
    color: #b8b8b8;
    font-size: 0.85rem;
}

.join-form input:focus,
.join-form textarea:focus {
    border-color: #f5f5f5;
    background: rgba(5, 5, 10, 0.75);
}

.form-row-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row-submit {
    margin-top: 0.5rem;
}

.join-form button {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #f5f5f5;
    color: #111111;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}

.join-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

/* Responsivno prilagođavanje */
@media (max-width: 800px) {
    .form-row-two {
        grid-template-columns: 1fr;
    }
}

.form-embed-wrapper {
    width: 100%;
    overflow: hidden;
}

.form-embed-wrapper iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    /* po želji: lagano zaobljenje i sjena da se uklopi u card */
    border-radius: 0.5rem;
}
.form-embed-wrapper {
    width: 100%;
    overflow: hidden;
}

.form-embed-wrapper iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 0.5rem; /* možeš izbaciti ako nećeš zaobljeno */
}



/* SVI ČLANCI STRANICA */
.all-posts-section {
    margin-bottom: 3rem;
}

.all-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.all-post-card img {
    height: 200px;
}

/* Paginacija */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: #f5f5f5;
    color: #111111;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

.pagination span {
    font-size: 0.9rem;
    color: #f5f5f5;
}

/* Responsive za Svi članci grid */
@media (max-width: 900px) {
    .all-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .all-posts-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== O NAMA – POJAS IZA TEKSTA (FIX) ===== */
/* Onama.html ima <div class="full-bleed-band"> ... </div> */
.about-page-section {
    margin-bottom: 3rem;
}

.about-page-section .full-bleed-band {
    width: 100vw;
    margin-left: calc(50% - 50vw); /* full width preko cijelog ekrana */
    background: rgba(240, 240, 240, 0.75); /* blijeda siva prozirna */
    padding: 3rem 1rem; /* debljina pojasa */
}

.about-page-section .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.98rem;
    color: #0b0a2b; /* tamniji tekst */
    line-height: 1.6; /* da bude čitljivije od body line-height */
}

.about-page-section .content p + p {
    margin-top: 0.8rem;
}


/* Naslovi iznad sekcija na homepageu */
.section-title {
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #06051a;
    margin: 0 0 0.75rem 0;
}

/* Dva naslova iznad featured kutija */
.featured-headings {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin: 0.25rem 0 0.75rem;
}

.section-title-left {
    flex: 1 1 30%;
    min-width: 260px;
}

.section-title-right {
    flex: 2 1 60%;
    min-width: 320px;
}

/* Naslov iznad autora */
.authors-heading {
    margin: 1.5rem 0 0.75rem;
}

