:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-accent: #ff0076;
    --color-secondary: #eeeeee;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scrollbar-width: none;
}

/* Firefox */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
    display: none;
}

/* Chrome */

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    -ms-overflow-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- cursor --- */
.cursor {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor.active {
    transform: scale(4);
}

/* --- header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    pointer-events: none;
    color: #fff;
}

.blend-text {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 101;
    color: #fff;
    text-align: right;
    font-size: 0.8rem;
    font-family: 'Oswald', sans-serif;
    pointer-events: auto;
    mix-blend-mode: difference;
}

header a {
    pointer-events: auto;
}

.logo {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo.static {
    opacity: 1 !important;
    transform: none !important;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;

}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-logo-img {
    width: 80vw;
    max-width: 700px;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}

.hero-sub {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--color-accent);
    padding: 10px 20px;
    transform: rotate(-2deg);
    opacity: 0;
}

/* --- marquee --- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 4rem;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    padding: 1.5rem 0;
    background: #fff;
    position: relative;

}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 6vw;
    color: #000;
    display: inline-block;
    padding-left: 2rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* --- info grid --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-label {
    color: #fff;
    background: #000;
    display: inline-block;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    align-self: start;
    transform: rotate(-1deg);
}

.info-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #000;
}

/* --- news list --- */
.news-section {
    padding: 4rem 0;
}

.section-header {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: #000;
    padding-left: 2rem;
    
}

.blog-list {
    display: flex;
    flex-direction: column;
    border-bottom:solid 2px black;
}

.blog-item {
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
    transition: all 0.2s ease;
    border-top: 2px solid #000;
}

.blog-item:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.blog-item .date {
    font-weight: bold;
    font-family: var(--font-heading);
}

.blog-item .title {
    font-size: 3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
}

.blog-item .tags {
    text-align: right;
    font-weight: bold;
    border: 2px solid #000;
    padding: 5px 10px;
    display: inline-block;
    justify-self: end;
}

.blog-item:hover .tags {
    border-color: #fff;
}

/* --- article --- */
.article-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15vh 2rem 5vh 2rem;
    border-bottom: 4px solid #000;
    background: #fff;
}
.article-header {
    position: absolute !important; 
    top: 0;
    left: 0;
    width: 100%;
}

.absolute-blend {
    position: absolute !important;
}
.article-meta {
    background: var(--color-accent);
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    font-weight: bold;
    transform: rotate(-1deg);
    align-self: flex-start;
    font-size: 1.2rem;
}

.article-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 0.9;
    color: #000;
}

.article-image-container {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid #000;
}

.article-image {
    width: 100%;
    height: 140%;
    object-fit: cover;
    transform: translateY(-15%);
    will-change: transform;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    font-size: 1.25rem;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
}

.article-content strong {
    color: var(--color-accent);
}

.highlight {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #000;
    margin: 4rem -2rem;
    padding: 2rem;
    background: var(--color-secondary);
    border-left: 8px solid var(--color-accent);
    font-weight: bold;
    transform: rotate(1deg);
}

/* --- galerija --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid #000;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:last-child:nth-child(odd) {
    grid-column: span 2;
}

/* --- sljedeca objava --- */
.next-post {
    background: #000;
    padding: 8rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.next-post:hover {
    background-color: var(--color-accent);
    letter-spacing: 2px;
    border-radius: 3rem;
    margin-inline: 2rem;
}

.next-label {
    font-family: var(--font-body);
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.next-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 5rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* --- footer--- */
footer {
    background: #fff;

    padding: 3rem 2rem 1rem 2rem; 
    margin-top: auto;
    color: #000;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center; 
    max-width: 1600px;
    margin: 0 auto;
}

/* --- LIJEVI STUPAC (Logo) --- */
.footer-left {
    justify-self: start; 
}

.footer-logo-link img {
    height: 4.5rem; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover img {
    transform: scale(1.05);
}

/* --- SREDNJI STUPAC (Ikone) --- */
.footer-center {
    justify-self: center; 
    display: flex;
    gap: 1.5rem; 
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5; 
}

.social-icon:hover {
    color: var(--color-accent); 
    transform: translateY(-5px);
}

/* --- DESNI STUPAC (Info) --- */
.footer-right {
    justify-self: end; 
    text-align: right;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.school-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.footer-link {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.impressum-btn {
    display: inline-block;
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
    font-size: 0.9rem;
}

.impressum-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}


.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 1rem; 
    display: block;     
}

.footer-logo img {
    height: 4rem;       
    width: auto;        
    display: block;     
    object-fit: contain;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

.sponsors {
    display: flex;
    gap: 1rem;
}

.sponsor-placeholder {
    padding: 10px 20px;
    border: 2px solid #000;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform; 
}

.loader-svg {
    width: auto;
    height: 30vh; 
    max-height: 400px;
    
}



.loader-svg text {
    user-select: none;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    pointer-events: none;
    transform: translateY(-100%);
    will-change: transform;
}

/* --- lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
    
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox.active {
    cursor: auto;
}

.lightbox.active~.cursor {
    display: none;
}


.splide {
    background: #000;
    /* border-radius: 1.5rem;
    overflow: hidden; */
}

.splide__slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.splide__slide img:hover {
    opacity: 0.9;
}

.splide__arrow {
    background: #fff;
    opacity: 1;
    border: 2px solid #000;
    width: 3rem;
    height: 3rem;
    transition: background 0.3s ease;
}

.splide__arrow:active {
    background: var(--color-accent);
}

.splide__pagination__page.is-active {
    background: var(--color-accent);
    transform: scale(1.4);
}

.splide__arrow,
.splide__pagination__page {
    background: #ffffff !important;
}

.splide__arrow svg {
    fill: black !important;
}


/* --- MOBITEL & TABLET (RESPONSIVE) --- */
@media (max-width: 768px) {
    
    /* 1. KURSOR I OSNOVNO */
    .cursor { display: none; }
    body { cursor: auto; }
    a { cursor: pointer; }

    /* 2. HEADER */
    header {
        padding: 1.5rem;
        align-items: center;
    }
    .logo img { height: 40px; }
    .blend-text {
        top: 1.5rem; right: 1.5rem;
        font-size: 0.7rem;
    }

    /* 3. HERO */
    .hero-logo-img {
        width: 90vw;
        max-width: none;
        margin-bottom: 1.5rem;
    }
    .hero-sub { font-size: 1rem; }

    /* 4. MARQUEE & INFO */
    .marquee-text { font-size: 3rem; }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .info-content p {
        font-size: 1.1rem;
        text-align: left;
    }

    /* 5. NOVOSTI */
    .section-header {
        font-size: 2.5rem;
        padding-left: 1.5rem;
    }
    .blog-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
    .blog-item .date { order: 1; font-size: 0.9rem; color: #555; }
    .blog-item .title { order: 2; font-size: 2rem; line-height: 1.1; }
    .blog-item .tags { order: 3; justify-self: start; text-align: left; font-size: 0.8rem; }

    /* 6. ČLANAK */
    .article-hero {
        padding: 12vh 1.5rem 3vh 1.5rem;
        min-height: auto;
    }
    .article-meta {
        font-size: 0.9rem;
        padding: 5px 15px;
        transform: rotate(-2deg);
        margin-bottom: 1.5rem;
    }
    .article-title { font-size: 2.8rem; line-height: 1; }
    .article-image-container { height: 40vh; }
    .article-image { height: 120%; }
    .article-content { padding: 2rem 1.5rem; }
    .article-content p { font-size: 1.1rem; }
    .highlight {
        margin: 2rem -1.5rem;
        font-size: 1.4rem;
        padding: 1.5rem;
        transform: none;
    }

    /* 7. GALERIJA */
    .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-item:last-child:nth-child(odd) { grid-column: span 1; }
    .splide__slide img { height: 300px; }
    .splide__arrow { width: 2.5rem; height: 2.5rem; }

    footer {
        padding: 3rem 1.5rem 2rem; 
    }

    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 2rem; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Logo sekcija */
    .footer-left {
        width: 100%;
        order: 1;
        justify-self: center;
    }
    .footer-logo-link img {
        height: 4rem; 
        margin: 0 auto;
    }

    /* Ikone sekcija */
    .footer-center {
        width: 100%;
        order: 2;
        justify-content: center;
        gap: 2rem; 
    }
    .social-icon {
        width: 3rem;
        height: 3rem;
    }

    /* Info sekcija */
    .footer-right {
        width: 100%;
        order: 3;
        justify-self: center;
        text-align: center;
    }
    .school-name {
        font-size: 1.5rem; 
        margin-bottom: 0.5rem;
    }
    .footer-link {
        font-size: 1rem;
        padding: 5px; 
        display: inline-block;
    }
    .impressum-btn {
        margin-top: 1rem;
        font-size: 0.85rem;
        padding: 5px 10px; 
    }

    
    .footer-bottom {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        font-size: 0.75rem;
    }

   
    .next-post { padding: 4rem 1.5rem; margin-inline: 0; border-radius: 0; }
    .next-title { font-size: 2.5rem; }
    .lightbox-close { top: 20px; right: 20px; font-size: 3rem; color: #fff; }
}

.gallery-item,
.gallery-item img,
.splide__slide,
.splide__slide img {
    cursor: none !important; 
}
.gallery-item a {
    cursor: none !important;
}
