/* =============== LEARN PAGE STYLES =============== */
#learn-ohrid-page {
    margin-top: 0;
}

/* =============== HERO SECTION =============== */
.learn-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.badge-icon {
    font-size: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-icon {
    font-size: 1.3rem;
}

.hero-quick-facts {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

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

.fact-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.fact-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* =============== SECTION HEADERS =============== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-icon {
    font-size: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* =============== TIMELINE SECTION =============== */
.timeline-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--muted) 0%, rgba(248,250,252,0.8) 100%);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.timeline-btn {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.timeline-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.timeline-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-label {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-years {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.timeline-content {
    background: var(--card);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.timeline-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.timeline-period-badge {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(204, 90%, 58%) 100%);
    color: var(--primary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-event {
    padding: 1.5rem;
    background: var(--muted);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.timeline-event:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.timeline-event h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-event p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin: 0;
}

/* =============== TEXT CONTENT SECTION =============== */
.text-content-section {
    padding: 5rem 0;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.content-navigation,
.content-highlights {
    background: var(--card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.content-navigation h4,
.content-highlights h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 0.75rem;
}

.nav-list a {
    color: var(--muted-foreground);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
    background: var(--muted);
    transform: translateX(5px);
}

.nav-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.nav-list a:hover::before,
.nav-list a.active::before {
    height: 100%;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--foreground);
}

.main-content {
    background: var(--card);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

#text-content-display h1,
#text-content-display h2 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

#text-content-display h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#text-content-display h2 {
    font-size: 2rem;
    position: relative;
    padding-left: 1rem;
}

#text-content-display h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(204, 90%, 58%) 100%);
    border-radius: 2px;
}

#text-content-display p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--foreground);
}

.loading-content {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Language switcher styles */
.language-switcher {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-lang {
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: var(--radius-full);
    margin: 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-lang.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-lang:not(.active):hover {
    background-color: var(--secondary);
    border-color: var(--border);
}

/* Gallery styles */
.gallery-single-view {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-main-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 2;
}

.gallery-nav-button {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav-button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gallery-single-view {
        padding: 15px;
    }

    .gallery-navigation {
        padding: 0 10px;
    }

    .gallery-nav-button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* =============== ENHANCED GALLERY SECTION =============== */
.gallery-section {
    padding: 5rem 0;
    background: var(--background);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    margin-bottom: 2rem;
}

.gallery-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 3;
}

.gallery-nav-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--foreground);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.gallery-nav-button:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    border-radius: 0 0 20px 20px;
}

.gallery-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.gallery-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-thumb {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============== CTA SECTION =============== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(204, 90%, 58%) 100%);
    color: var(--primary-foreground);
}

.cta-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-content > p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-arrow {
    transform: translateX(5px);
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .timeline-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-quick-facts {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 2rem;
    }
    
    .timeline-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-btn {
        padding: 1rem 0.75rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-icon {
        font-size: 2.5rem;
    }
    
    .gallery-navigation {
        padding: 0 1rem;
    }
    
    .gallery-nav-button {
        width: 50px;
        height: 50px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .fact-number {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    #text-content-display h1 {
        font-size: 2rem;
    }
    
    #text-content-display h2 {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .gallery-info {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .gallery-info h4 {
        font-size: 1.25rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content > p {
        font-size: 1.1rem;
    }
} 