/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */
:root {
    --primary-color: #222048;
    /* Deep Burgundy for premium academic feel */
    --primary-hover: #222048;
    --accent-color: #d4af37;
    /* Gold accent */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f9f9fa;
    --bg-dark: #1f2937;
    --border-color: #e5e7eb;

    --font-heading: 'Titillium Web', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(123, 30, 56, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.light-bg {
    background-color: var(--bg-light);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-normal);
}

.header.scrolled .header-inner {
    height: 60px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;

}

.logo img {
    max-width: 150px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

/* ==========================================================================
   Hero & Flipbook Section
   ========================================================================== */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 4rem;
    background: linear-gradient(to bottom, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 300;
}

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

/* Flipbook container styles */
.flipbook-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.loading-spinner {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.flipbook {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    background-color: #fff;
}

.flipbook .page {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.flipbook canvas {
    max-width: 100%;
    height: auto;
}

.flipbook-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #999;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

#page-info {
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-box {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 4px solid var(--accent-color);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Board List */
.board-list ul {
    list-style: none;
}

.board-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.board-list li:hover {
    background-color: white;
    border-radius: 4px;
}

.board-list li strong {
    color: var(--primary-color);
}

/* Contact */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* section kapcsolat bottom fix */
#kapcsolat {
    padding-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: left var(--transition-normal);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .nav.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 2rem;
    }

    .nav-list li a {
        font-size: 1.2rem;
    }

    .content-box,
    .contact-box {
        padding: 2rem 1.5rem;
    }
}