:root {
    --color-bg: #1a1a24;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0b0;
    --color-accent: #d4af37; /* Soft gold */
    --color-accent-hover: #f1c40f;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 2rem auto;
    border-radius: 2px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.pdf-container {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.pdf-viewer {
    border: none;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: calc(100% - 40px);
    position: relative;
    padding: 0 10px;
}

.carousel-slide {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

#programImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: opacity 0.15s ease-in-out;
    cursor: zoom-in;
}

.nav-btn {
    background: rgba(26, 26, 36, 0.7);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: #111;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn:focus-visible,
.btn-download:focus-visible,
.lightbox-close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.page-indicator {
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-indicator #pageNum,
.page-indicator #pageTotal {
    margin: 0 0.35em;
    color: var(--color-accent);
    font-weight: 600;
}

.actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 3rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-download:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-download:active {
    transform: translateY(1px);
}

.icon {
    width: 20px;
    height: 20px;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
    margin-top: auto;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }

    .pdf-container {
        height: 60vh;
        border-radius: 8px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
