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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    background-color: #f8f8f8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title,
.section-title {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.hero-tagline {
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 0.2em;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    color: #FFBB1C;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Utility Classes */
/* Replace with: */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Header Styles */
.header {
    background-color: rgba(19, 15, 12, 0.97);
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 20px;
    top: 0;
    left: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header.scrolled {
    padding: 0.7rem 20px;
    background-color: rgba(19, 15, 12, 0.98);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Typography Styles */
.em {
    font-style: italic;
    color: #a1a1aa;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)),
        url('./hero');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    padding: 8rem 0 8rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-family: Georgia, serif;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    opacity: 0.9;
    max-width: 90%;
}

/* Button styles consolidated */
.button,
a.button,
.nav-links a.button,
.header .nav-links a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.85rem 2.8rem !important;
    background-color: #FFBB1C !important;
    color: #000000 !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    height: 2.75rem !important;
    margin: auto 0 !important;
    box-shadow: 0 8px 15px rgba(255, 187, 28, 0.3) !important;
    letter-spacing: 0.7px !important;
    position: relative !important;
    overflow: hidden !important;
}

.button:before,
a.button:before,
.nav-links a.button:before,
.header .nav-links a.button:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: skewX(-30deg) !important;
    transition: all 0.5s ease !important;
}

.button:hover:before,
a.button:hover:before,
.nav-links a.button:hover:before,
.header .nav-links a.button:hover:before {
    left: 100% !important;
}

.button:hover,
a.button:hover,
.nav-links a.button:hover,
.header .nav-links a.button:hover {
    background-color: #FFc62c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 187, 28, 0.5) !important;
    color: #000000 !important;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Add top padding to first section to accommodate header */
.section:first-of-type,
section:first-of-type {
    padding-top: 8rem;
}

/* Reduce spacing after hero */
.hero+.section {
    padding-top: 2rem;
}

.section:not(.section-brown) {
    background: linear-gradient(145deg, #fff, #f4f4f4);
}

.section-brown {
    background: linear-gradient(145deg, #130F0C, #221B16);
    position: relative;
}

.section:not(.section-brown) h2,
.section:not(.section-brown) h3,
.section:not(.section-brown) h4 {
    background: linear-gradient(90deg, #1D1713, #544a44);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-brown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-brown .section-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-brown {
    background-color: #130F0C;
    color: white;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid #C79D6E;
    padding-left: 1.5rem;
    margin: 2rem 0;
}


/* Grid Layout */
.grid {
    display: grid;
    gap: 3rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 3rem auto 3rem auto;
}

.grid>div {
    position: relative;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-left: 4px solid #C79D6E;
    transition: all 0.4s ease;
    border-radius: 0 8px 8px 0;
}

.grid>div:hover {
    transform: translateX(5px);
    background-color: rgba(199, 157, 110, 0.05);
}

.section-brown .grid>div {
    border-left-color: rgba(199, 157, 110, 0.7);
}

.grid h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.grid p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 300;
}

/* Card Styles */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* FAQ styles */
.faq-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}

.faq-question::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FFBB1C;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-question::before {
    transform: translateX(5px);
}

/* Images */
.main-image {
    width: 100%;
    max-width: 767px;
    height: auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.overlay-image {
    width: 60%;
    max-width: 480px;
    height: auto;
    position: absolute;
    right: 0;
    bottom: -20%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 3;
}

.overlay-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Add loading optimization for all images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Footer Styles */
.footer-top {
    background-color: #1D1713;
    padding: 5rem 0;
    color: white;
    position: relative;
}

.footer-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FFBB1C, #E8A300, #FFBB1C);
}

.footer-logo {
    text-align: center;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

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

.header-logo {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: rotate(5deg);
}

.logo-img {
    max-width: 70px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.footer-bottom {
    background-color: #130F0C;
    color: white;
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.language-selector {
    display: flex;
    gap: 1rem;
}

.language-selector a {
    color: white;
    text-decoration: none;
}

.current-lang {
    color: #FFBB1C;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
}





@media (max-width: 768px) {
    .footer-top {
        padding: 2rem 0;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
}

/* Contact Section */
#contact.section {
    position: relative;
    min-height: auto;
    background-image: url('happy_man.webp');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    border-radius: 0;
    overflow: hidden;
}

#contact.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#contact .hero-container {
    position: relative;
    z-index: 2;
}

/* Mobile Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(19, 15, 12, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-links.active {
        display: flex;
        width: 100%;
        height: 100vh;
        padding-top: 80px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero,
    #contact.section {
        background-position: 65% center;
        text-align: left;
        padding: 3rem 0;
        margin-bottom: 1rem;
    }

    .hero::before,
    #contact.section::before {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.3) 100%);
    }

    .overlay-image {
        position: relative;
        width: 100%;
        right: auto;
        bottom: auto;
        margin-top: 2rem;
    }
}

@media (min-width: 769px) {
    .hero {
        background-position: center;
        text-align: left;
    }

    .hero-content {
        padding-left: clamp(2rem, 5vw, 4rem);
    }
}

@media (min-width: 1920px) {
    .hero {
        background-size: 100% auto;
    }
}




/* Masonry Block Layout */
#masonry-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

#masonry-block-text {
    max-width: 600px;
}

#masonry-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    display: block;
    color: #000;
}

#masonry-block-images {
    position: relative;
    width: 100%;
    height: 100%;
}

#masonry-block-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #masonry-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #masonry-block-text {
        max-width: 100%;
    }
}

.image-grid-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 500px;
    margin: 4rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-grid-item {
    position: absolute;
    height: 450px;
    width: 450px;
    transition: all 0.3s ease;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Position each image */
.image-grid-item:nth-child(1) {
    transform: translateX(-95%);
    z-index: 1;
}

.image-grid-item:nth-child(2) {
    width: 550px;
    height: 550px;
    z-index: 3;
}

.image-grid-item:nth-child(3) {
    transform: translateX(95%);
    z-index: 1;
}

.image-grid-text {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    z-index: 4;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .image-grid-item {
        width: 400px;
        height: 400px;
    }

    .image-grid-item:nth-child(2) {
        width: 500px;
        height: 500px;
    }

    .image-grid-item:nth-child(1) {
        transform: translateX(-90%);
    }

    .image-grid-item:nth-child(3) {
        transform: translateX(90%);
    }
}

@media (max-width: 1200px) {
    .image-grid-item {
        width: 350px;
        height: 350px;
    }

    .image-grid-item:nth-child(2) {
        width: 450px;
        height: 450px;
    }

    .image-grid-item:nth-child(1) {
        transform: translateX(-85%);
    }

    .image-grid-item:nth-child(3) {
        transform: translateX(85%);
    }
}

@media (max-width: 992px) {
    .image-grid-item {
        width: 300px;
        height: 300px;
    }

    .image-grid-item:nth-child(2) {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .image-grid-container {
        height: auto;
        flex-direction: column;
        gap: 2rem;

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #FFBB1C;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            z-index: 99;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

/* Stipendija image styling */
.stipendija-img {
    width: 240px;
    height: auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
    margin: 0 auto;
}

.stipendija-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Laureate container styling */
.laureate-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.laureate-text {
    flex: 1;
}

.laureate-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .laureate-container {
        flex-direction: column;
    }

    .laureate-image {
        order: 1;
        margin-top: 1.5rem;
    }
}


        .back-to-top:hover {
            background-color: #E8A300;
            transform: translateY(-5px);
        }

        .back-to-top::before {
            content: "↑";
            font-size: 20px;
            font-weight: bold;
        }

        /* Animation classes */
        .fade-in {
            opacity: 0;
            transform: translateY(25px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .fade-in.active {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-in-left {
            opacity: 0;
            transform: translateX(-50px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .slide-in-left.active {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-in-right {
            opacity: 0;
            transform: translateX(50px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .slide-in-right.active {
            opacity: 1;
            transform: translateX(0);
        }

        /* Progress bar */
        .progress-container {
            position: fixed;
            top: 0;
            z-index: 1000;
            width: 100%;
            height: 4px;
            background: transparent;
        }

        .progress-bar {
            height: 4px;
            background: #FFBB1C;
            width: 0%;
        }

        /* Nav links hover effect */
        .nav-links a:not(.button) {
            position: relative;
            padding-bottom: 5px;
        }

        .nav-links a:not(.button)::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            background-color: #FFBB1C;
            transition: width 0.4s ease;
        }

        .nav-links a:not(.button):hover::after {
            width: 100%;
        }

        .nav-links a:not(.button):hover {
            color: #FFBB1C;
            transition: color 0.3s ease;
        }

        /* Improved blockquote */
        blockquote {
            font-style: italic;
            font-weight: 500;
            border-left: 5px solid #C79D6E;
            padding: 2rem;
            margin: 3rem 0;
            background: rgba(199, 157, 110, 0.07);
            border-radius: 0 12px 12px 0;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
        }

        blockquote::before {
            content: "" ";
            position: absolute;
            top: -20px;
            left: 15px;
            font-size: 4rem;
            color: rgba(199, 157, 110, 0.25);
            font-family: Georgia, serif;
        }

        /* Hero section enhancement */
        .hero {
            position: relative;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
            z-index: 1;
            border-radius: 0;
        }

        margin: 2rem auto;
    }

    .image-grid-item {
        position: relative;
        width: 100%;
        height: 300px;
        transform: none !important;
    }

    .image-grid-item:nth-child(2) {
        width: 100%;
        height: 400px;
    }

    .image-grid-text {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
        white-space: normal;
    }
}

.masonry-grid {
    position: relative;
    width: fit-content;
    height: 500px;
    margin: 4rem auto;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.masonry-item {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masonry-item-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Grid layout */
.masonry-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 992px) {
    .masonry-grid {
        heightauto;
        flex-direction: column;
        width: 100%;
    }

    .masonry-item {
        width: 100%;
    }
}