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

:root {
    --primary-color: #1a4d3a;
    --secondary-color: #2d6a4f;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --accent-color: #d4a574;
    --transition-speed: 0.6s;
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 1100;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 77, 58, 0.25);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    background: rgba(26, 77, 58, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
}

.arrow-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.nav-arrow:hover .arrow-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.arrow-left {
    transform: scaleX(-1);
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background: var(--accent-color);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(26, 77, 58, 0.5);
}

.nav-dot::after {
    content: attr(data-title);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* Slides Container */
.slides-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slides-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 100px 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide.next {
    transform: translateX(100%);
}

/* Introduction Slide */
.intro-slide {
    text-align: center;
    background-color: white;;
    color: var(--primary-color);
    background-image: url('images/lapai.jpg?v=1.0.11');
    /* background-size: auto 100vh; */
    background-repeat: no-repeat;
        background-position: center top;
    z-index: 1;
    justify-content: center;
    padding-bottom: 100px; /* reserve space above nav dots so content doesn't get covered */
    box-sizing: border-box;
}

.intro-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.intro-slide > * {
    position: relative;
    z-index: 1;
}

.intro-content-wrapper {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 60px;
    border-radius: 15px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 90%;
    text-align: left;
    max-height: calc(100vh - 180px); /* keep wrapper above nav dots (padding + header) */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.intro-content-wrapper h1 {
    margin-bottom: 20px;
}

.pratarme-slide .intro-content-wrapper h1,
.pabaiga-slide .intro-content-wrapper h1 {
    display: none;
}

.pratarme-slide .intro-content-wrapper,
.intro-content-wrapper {
    margin-top: 200px;
}

.pratarme-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
}

.pratarme-logo {
    flex: 0 0 auto;
}

.cries-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.pratarme-quote {
    flex: 1 1 auto;
    text-align: right;
}

.pratarme-quote blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary-color);
    border: none;
    quotes: none;
}

.pratarme-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pratarme-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .pratarme-logo {
        text-align: center;
    }
    
    .cries-logo {
        max-width: 100px;
    }
    
    .pratarme-quote {
        text-align: center;
    }
    
    .pratarme-quote blockquote {
        font-size: 1rem;
    }
}

.intro-content-wrapper .intro-description {
    margin-top: 0;
}

/* Ensure intro-slide doesn't override slide positioning */
.slide.intro-slide {
    position: absolute;
}

.intro-slide .intro-image {
    max-width: 600px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.intro-slide h1 {
    font-size: 2.6rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: var(--primary-color);
    display: block;
    visibility: visible;
}

.intro-slide .intro-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    text-align: left;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 20px;
}

.intro-slide .intro-description .br-spacing {
    display: block;
    height: 10px;
}

.dainynelis-download {
    display: inline-block;
    align-self: center;
    flex-shrink: 0;
    margin-top: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dainynelis-download:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.dainynelis-download:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.pabaiga-content .pabaiga-authors {
    margin-top: 1.5em;
    font-style: italic;
}

.pabaiga-content .pabaiga-sources-title {
    font-size: 1rem;
    margin: 1.2em 0 0.6em;
    font-weight: 700;
}

.pabaiga-content .pabaiga-sources-list {
    margin: 0 0 1em;
    padding-left: 1.2em;
    list-style-type: disc;
}

.pabaiga-content .pabaiga-sources-list li {
    margin-bottom: 0.4em;
}

.pabaiga-content .pabaiga-sources-list a {
    color: var(--primary-color, #1a5f4a);
    text-decoration: underline;
}

/* Song Slide */
.song-slide {
    width: 100%;
    padding: 40px 80px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    justify-content: flex-start;
    min-height: 100vh;
    overflow: visible;
    /* background-image: url('images/natos.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure song-slide doesn't override slide positioning */
.slide.song-slide {
    position: absolute;
}

.song-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.song-slide > * {
    position: relative;
    z-index: 1;
}

.song-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.song-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.song-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.song-content {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.song-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-caption {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

.thumbnail:hover {
    transform: scale(1.1);
    opacity: 1;
    border-color: var(--accent-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(26, 77, 58, 0.3);
}

.song-text {
    display: flex;
    flex-direction: column;
}

.song-lyrics {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    color: var(--primary-color);
    line-height: 1.7;
    font-size: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.song-description {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    border-left: 4px solid var(--secondary-color);
}

.song-video {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-player-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 5px;
}

.main-player {
    width: 100%;
}

.main-player iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.main-player audio {
    width: 100%;
    border-radius: 10px;
    margin: 0;
}

.facebook-link-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.facebook-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.facebook-link:active {
    transform: translateY(0);
}

.facebook-link svg {
    vertical-align: middle;
}

.video-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.video-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.video-dot:hover {
    background: var(--accent-color);
    transform: scale(1.3);
}

.video-dot.active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(26, 77, 58, 0.5);
}

.video-dot::after {
    content: attr(data-title);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.video-dot:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .song-content {
        grid-template-columns: 1fr;
    }

    .slide {
        padding: 60px 40px 40px;
    }

    .song-slide {
        padding: 40px 30px;
    }

    .song-video {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .arrow-image {
        width: 40px;
        height: 40px;
    }

    .nav-arrow-left {
        left: 10px;
    }

    .nav-arrow-right {
        right: 10px;
    }

    .nav-dots {
        bottom: 15px;
        gap: 8px;
    }

    .intro-slide h1 {
        font-size: 2rem;
    }

    .intro-slide {
        padding-bottom: 90px;
    }

    .intro-slide .intro-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-bottom: 15px;
    }

    .intro-content-wrapper {
        padding: 20px 25px;
        width: 95%;
        max-height: calc(100vh - 160px);
    }

    .song-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .song-title {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .song-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .slide {
        padding: 60px 20px 40px;
    }

    .song-slide {
        padding: 20px 15px;
    }

    .song-video iframe {
        height: 250px;
    }

    .main-image-container {
        height: 250px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Scrollbar Styling */
.slide::-webkit-scrollbar,
.song-lyrics::-webkit-scrollbar,
.intro-description::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track,
.song-lyrics::-webkit-scrollbar-track,
.intro-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb,
.song-lyrics::-webkit-scrollbar-thumb,
.intro-description::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb:hover,
.song-lyrics::-webkit-scrollbar-thumb:hover,
.intro-description::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

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

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.lightbox-close:hover .lightbox-close-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.lightbox-nav:hover .lightbox-arrow-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.lightbox-arrow-left {
    transform: scaleX(-1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-close-image {
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow-image {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-image {
        max-height: 75vh;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 90%;
    }
}

