/* ===== SUPPRESS GOOGLE TRANSLATE BANNER ===== */
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:      #0d2244;
    --navy-mid:  #163464;
    --navy-light:#1e4080;
    --gold:      #c8a84b;
    --gold-light:#e0c97a;
    --white:     #ffffff;
    --off-white: #f4f6fa;
    --text:      #1a1a2e;
    --text-muted:#5a6475;
    --border:    #d0d8e8;
    --radius:    8px;
    --shadow:    0 4px 24px rgba(13,34,68,0.10);
    --transition:0.28s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 16px rgba(13,34,68,0.22);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 70px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.logo-sub {
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav */
.main-nav { flex: 1; }

.main-nav > ul {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    justify-content: center;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(200,168,75,0.10);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.lang-toggle {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--navy);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== DROPDOWN NAV ===== */
.has-dropdown { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(13,34,68,0.14);
    list-style: none;
    z-index: 200;
    padding: 0.4rem 0;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 0.65rem 1.2rem;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
    background: var(--off-white);
    color: var(--gold);
}

/* ===== HOME PHOTO ===== */
.home-photo-section { padding: 2.5rem 0; background: #fff; }
.home-photo-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    line-height: 0;
}
.home-photo {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(13,34,68,0.4));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 2rem 2rem;
}
.hero-content {
    flex: 1;
    text-align: left;
    animation: fadeUp 0.9s ease both;
}
.hero-photo-wrap {
    flex: 0 0 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.35);
    animation: fadeUp 1.1s ease both;
}
.hero-photo {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-photo-wrap { flex: none; width: 100%; }
    .hero-photo { height: 220px; }
}

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

.hero-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.7rem, 4vw, 3rem);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.hero-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: 0.85rem 2.2rem;
    border-radius: 40px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(200,168,75,0.35);
}

.hero-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,168,75,0.5);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.section-icon {
    color: var(--gold);
    font-size: 1rem;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--navy);
    text-transform: uppercase;
}

.section-rule {
    border: none;
    border-top: 2px solid var(--border);
    margin-bottom: 2.5rem;
}

/* Text block */
.text-block p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    max-width: 820px;
    font-size: 1.02rem;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--gold); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.65rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== AIMS ===== */
.aims-intro {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1rem;
}

.aims-list {
    list-style: none;
    counter-reset: aims;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aims-list li {
    counter-increment: aims;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    border: 1px solid var(--border);
    font-size: 0.97rem;
    color: var(--text-muted);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.aims-list li:hover {
    border-color: var(--navy-light);
    box-shadow: 0 2px 12px rgba(13,34,68,0.08);
}

.aims-list li::before {
    content: counter(aims);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== PLACEHOLDER ===== */
.placeholder-block {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    padding-bottom: 1.25rem;
}

.team-photo-wrap {
    width: 100%;
    height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    background: var(--off-white);
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img { transform: scale(1.04); }
/* .team-photo-wrap img.pos-center { object-fit: contain; object-position: center; background: #f5f5f5; } */

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

.team-card .team-photo-wrap { border-radius: 0; border-bottom: 3px solid var(--gold); margin-bottom: 0; }

.team-card-body { padding: 1rem 1.25rem 0; }

.team-name {
    font-family: 'Merriweather', serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .team-grid { grid-template-columns: 1fr; } }

/* ===== CONFERENCE ===== */
.event-card {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 5px solid var(--gold);
}

.event-badge {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-title {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.4;
}

.conf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.conf-text-full {
    max-width: 820px;
}

.conf-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.conf-text p em {
    color: var(--navy);
    font-style: italic;
}

.photo-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
}

.photo-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo-main {
    grid-column: 1 / -1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-main img { max-height: 280px; object-fit: cover; }
.photo-side img { height: 180px; }

.photo-item { cursor: zoom-in; }
.photo-item:hover img { transform: scale(1.03); }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
    animation: lbFade 0.2s ease;
}

@keyframes lbFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.conf-events { display: flex; flex-direction: column; }

.conf-event { padding: 2.5rem 0; }

.event-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* 3-photo collage */
.photo-collage.cols-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.photo-collage.cols-3 .photo-main {
    grid-column: 1 / -1;
}

.photo-collage.cols-3 .photo-item:not(.photo-main) img { height: 160px; }

@media (max-width: 800px) {
    .conf-layout { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .photo-collage { grid-template-columns: 1fr; }
    .photo-main { grid-column: 1; }
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

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

.contact-info-icon {
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contact-info-item h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.contact-info-item a {
    color: var(--navy-light);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-info-item a:hover { text-decoration: underline; color: var(--gold); }
.contact-info-item p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { position: relative; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(30,64,128,0.1);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0.25rem;
    font-size: 0.72rem;
    color: var(--navy-light);
    letter-spacing: 0.04em;
}

.form-submit {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.9rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    align-self: flex-start;
}

.form-submit:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

@media (max-width: 750px) {
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===== ANNOUNCEMENT BLOCK ===== */
.announcement-block {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 860px;
}

.announce-line {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 1rem 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}

.announce-line strong { color: var(--navy); }

/* ===== ACCORDION ===== */
.accordion { display: flex; flex-direction: column; gap: 0.6rem; }

.acc-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.acc-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: background var(--transition);
}

.acc-header:hover { background: var(--off-white); }

.acc-arrow {
    font-size: 0.7rem;
    color: var(--gold);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.acc-item.open .acc-arrow { transform: rotate(180deg); }

.acc-body {
    display: none;
    padding: 0.25rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
}

.acc-item.open .acc-body { display: block; }

.acc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.acc-list li {
    font-size: 0.93rem;
    color: var(--text-muted);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.6;
}

.acc-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ===== REFERENCES LIST ===== */
.refs-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.refs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-left: 0;
}

.refs-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 1.2rem;
    border-left: 3px solid var(--gold);
}

.refs-list li em { color: var(--navy); font-style: italic; }
.refs-list li a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.refs-list li a:hover { color: var(--gold); }

.acc-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background var(--transition), transform var(--transition);
}

.acc-download:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-1px);
}

/* ===== FILE LIST (Materials) ===== */
.file-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.file-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.file-item:hover {
    border-color: var(--navy-light);
    box-shadow: 0 2px 12px rgba(13,34,68,0.08);
}

.file-icon {
    font-size: 1.6rem;
    color: var(--navy-light);
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.file-name {
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--text);
}

.file-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.file-download {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}

.file-download:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-1px);
}

.dl-icon { font-size: 1rem; }

@media (max-width: 600px) {
    .file-item { flex-wrap: wrap; }
    .file-download { width: 100%; justify-content: center; }
}

/* ===== BOOK SHOWCASE (Materials) ===== */
.book-showcase {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.book-cover-wrap {
    flex: 0 0 auto;
    max-width: min(280px, 100%);
}
.book-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(13,34,68,0.12);
}
.book-details {
    flex: 1;
    min-width: min(100%, 260px);
}
.book-title-en {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.book-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}
@media (max-width: 640px) {
    .book-showcase { flex-direction: column; align-items: center; text-align: center; }
    .book-cover-wrap { max-width: 220px; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: var(--navy);
    padding: 3rem 0 2.5rem;
    border-bottom: 3px solid var(--gold);
}

.page-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    border-top: 3px solid var(--gold);
    padding: 2rem 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.footer-credit {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

.footer-credit a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-credit a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
    .main-nav.open > ul { flex-direction: column; gap: 0; padding: 0 1rem; }
    .main-nav.open .nav-link { display: block; padding: 0.75rem 1rem; }
    .menu-toggle { display: block; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.55rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}

/* ===== CORPUS ANALYSIS GALLERY ===== */
.analiza-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.analiza-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.analiza-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== EMBEDDED FORM ===== */
.form-embed-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-embed-wrap iframe {
    display: block;
    min-height: 820px;
}

/* ===== POLL LINK ===== */
.poll-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.4rem;
    background: var(--off-white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--navy);
    transition: background 0.2s, box-shadow 0.2s;
    max-width: 560px;
}

.poll-link:hover {
    background: #fff8e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.poll-link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.poll-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.poll-link-text strong { font-size: 1rem; }
.poll-link-text small  { font-size: 0.82rem; color: var(--muted); }

.poll-link-arrow {
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}

/* ===== RESEARCH PAGE ===== */
.research-intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.research-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 1rem;
}

.research-approach {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 820px;
    margin: 0 auto;
}

.approach-icon-wrap {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.2rem;
}

.research-approach p {
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Method cards */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}

.method-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.4rem 1.2rem;
}

.method-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.method-card h4 {
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.method-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Focus blocks */
.focus-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

.focus-block {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.4rem 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.focus-title {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.focus-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

/* Results list */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 720px;
}

.results-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text);
}

.rl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.research-conclusion {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 720px;
}

.research-conclusion strong { color: var(--gold); }

@media (max-width: 600px) {
    .research-approach { flex-direction: column; }
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: relative;
}

.lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0.3rem 0;
    min-width: 90px;
    z-index: 1000;
}

.lang-dropdown.open .lang-options { display: block; }

.lang-options li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    transition: background 0.15s;
}

.lang-options li:hover    { background: var(--off-white); }
.lang-options li.active   { color: var(--gold); font-weight: 700; }

/* ===== REFS LIST FULL (linkovi page) ===== */
.refs-list-full {
    list-style: decimal;
    padding-left: 1.4rem;
}

.refs-list-full li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
    font-size: 0.93rem;
    color: var(--text);
}

.refs-list-full li:last-child { border-bottom: none; }

.refs-list-full a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.refs-list-full a:hover { color: var(--gold); }

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-header {
    background: var(--navy);
    color: #fff;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.chat-minimize {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 0 0.2rem;
    transition: opacity .2s;
}
.chat-minimize:hover { opacity: 1; }
.chat-widget.minimized .chat-messages,
.chat-widget.minimized .chat-token-bar,
.chat-widget.minimized .chat-input-row { display: none; }
.chat-header-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.chat-header-text { display: flex; flex-direction: column; gap: 0.1rem; }
.chat-header strong { font-size: 1rem; }
.chat-header small  { font-size: 0.78rem; opacity: 0.75; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f5f6fa;
}

.chat-msg { max-width: 88%; }
.chat-msg p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.7rem 1rem;
    border-radius: 14px;
}

.chat-msg.bot  p { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.chat-msg.user   { align-self: flex-end; }
.chat-msg.user p { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.typing p { color: var(--muted); font-style: italic; }

.chat-token-bar {
    font-size: 0.72rem;
    color: var(--muted);
    padding: 0.25rem 1rem;
    background: #efefef;
    border-top: 1px solid var(--border);
}
.chat-token-bar:empty { display: none; }

.chat-input-row {
    display: flex;
    border-top: 2px solid var(--border);
    background: #fff;
}
.chat-input-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--navy);
}
.chat-input-row input::placeholder { color: #aaa; }
.chat-input-row button {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.chat-input-row button:hover { background: var(--gold); color: var(--navy); }

@media (max-width: 420px) {
    .chat-panel { width: calc(100vw - 2rem); }
    .chat-widget { bottom: 0.75rem; right: 0.75rem; }
}
