/*
Theme Name: Conference LNTU
Theme URI: https://avto-intech.lntu.edu.ua
Description: Кастомна тема для міжнародної науково-технічної конференції кафедри АТТ ЛНТУ
Version: 1.0.0
Author: Кафедра АТТ ЛНТУ
Text Domain: conference-lntu
*/

:root {
    --primary: #1a3a6b;
    --primary-light: #2B579A;
    --accent: #d4a843;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #e0e4e8;
    --success: #27ae60;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; font-family: 'Segoe UI', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
main { flex: 1 0 auto; }
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ─── HEADER ─── */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.site-logo { display: flex; align-items: center; gap: 14px; }
.site-logo img { height: 50px; }
.site-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.site-title small { font-weight: 400; font-size: 12px; opacity: .8; display: block; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a { color: rgba(255,255,255,.6); padding: 4px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.lang-switch a.active { color: #fff; background: rgba(255,255,255,.15); }

/* ─── NAV ─── */
.site-nav { background: rgba(0,0,0,.15); }
.site-nav ul { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; }
.site-nav li { flex: 0 0 auto; }
.site-nav a { display: block; padding: 10px 14px; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s; }
.site-nav a:hover, .site-nav .current-menu-item a { color: #fff; background: rgba(255,255,255,.1); }

/* ─── HERO ─── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #0d2240 100%); color: #fff; padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 70%); }
.hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.hero h2 { font-size: 20px; font-weight: 400; opacity: .9; margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-meta { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hero-meta-item .icon { font-size: 20px; }
.hero-btn { display: inline-block; background: var(--accent); color: var(--primary); padding: 14px 36px; border-radius: 50px; font-weight: 700; font-size: 16px; margin-top: 30px; transition: all .3s; box-shadow: 0 4px 15px rgba(212,168,67,.3); }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(212,168,67,.4); color: var(--primary); }

/* ─── SECTIONS ─── */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 30px; text-align: center; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 12px auto 0; }
h1.section-title { margin-top: 0; }

/* ─── CARDS ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.card h3 { color: var(--primary); font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); }

/* ─── ORGANIZERS ─── */
.organizers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.org-item { padding: 10px 14px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); font-size: 14px; }
.org-item .org-country { color: var(--text-light); font-size: 12px; }

/* ─── PAGE CONTENT ─── */
.page-content { background: var(--white); border-radius: var(--radius); padding: 40px; margin: 30px 0; border: 1px solid var(--border); }
.page-content h1 { color: var(--primary); margin-bottom: 20px; font-size: 28px; }
.page-content h2 { color: var(--primary); margin: 25px 0 12px; font-size: 22px; }
.page-content h3 { color: var(--primary-light); margin: 20px 0 10px; }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin: 12px 0 12px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-content th, .page-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.page-content th { background: var(--primary); color: #fff; }

/* ─── FOOTER ─── */
.site-footer { flex-shrink: 0; background: var(--primary); color: rgba(255,255,255,.8); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--accent); margin-bottom: 12px; font-size: 15px; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; opacity: .6; }

/* ─── ANNIVERSARY HERO ─── */
.hero-anniversary {
    padding: 100px 0 80px;
}
.hero-anniversary::before { display: none; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13,34,64,.92) 0%, rgba(26,58,107,.78) 100%);
    z-index: 1;
}
.anniversary-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212,168,67,.3);
    border-radius: 60px;
    padding: 12px 35px 12px 12px;
    margin-bottom: 35px;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.anniversary-badge strong {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}
.badge-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    border: 2px solid rgba(212,168,67,.4);
}

/* ─── MOBILE ─── */
@media(max-width:768px) {
    .hero h1 { font-size: 22px; }
    .hero h2 { font-size: 16px; }
    .hero { padding: 50px 0 40px; }
    .hero-anniversary { padding: 70px 0 50px; background-attachment: scroll; }
    .anniversary-badge { flex-direction: column; text-align: center; border-radius: 20px; padding: 20px; gap: 15px; }
    .badge-logo { width: 56px; height: 56px; }
    .section { padding: 40px 0; }
    .page-content { padding: 24px; }
    .site-nav a { padding: 8px 12px; font-size: 13px; }
    .site-nav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .site-nav ul::-webkit-scrollbar { display: none; }
    .header-top { flex-direction: column; gap: 8px; }
}
