:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --primary: #0f2f6b;
    --accent: #c79d5a;
    --border: #dbe4ee;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Libre Baskerville', serif;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
 font-family: 'Libre Baskerville', serif;
    text-decoration: none;
}

.navbar-ant-logo {
    width: 86px;
    height: auto;

    display: block;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;

    justify-content: center;

    line-height: 1;

    margin-top: 0.15rem;
}

.navbar-brand-title {
    font-family: 'Libre Baskerville', serif;

    font-size: 1.68rem;
    font-weight: 700;

    line-height: 1;

    color: var(--primary);
}

.navbar-brand-subtitle {
    font-family: 'Cormorant Garamond', serif;

    font-size: 1.28rem;
    font-style: italic;

    line-height: 1;

    color: var(--accent);

    margin-top: 0.12rem;
}
/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(248,250,252,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
     box-shadow:
        0 1px 0 rgba(15,23,42,0.03);
}

.navbar {
    padding: 1.15rem 0;
}
.navbar-nav {
    gap: 0.5rem;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar-nav {
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;

    font-family: 'Libre Baskerville', serif;

    color: #102a56 !important;

    margin-left: 0.8rem;
    padding: 0.55rem 0.15rem !important;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.nav-link::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: -0.1rem;

    width: 0%;
    height: 2px;

    border-radius: 999px;

    background: var(--accent);

    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* ACTIVE */

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: var(--primary) !important;
}

.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
    width: 100%;
}

/* REGISTER BUTTON */

.btn-register {
    margin-left: 1.4rem;

    padding: 0.78rem 1.35rem;

    background: var(--primary);
    color: white !important;

    border-radius: 12px;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.btn-register:hover {
    background: #0a2554;
    color: white;

    transform: translateY(-1px);
}

/* =========================================
   HERO
========================================= */

.hero-section {
    position: relative;
    overflow: hidden;

    min-height: 460px;
    padding: 5.5rem 0;

    background-image:
        linear-gradient(
            to right,
            rgba(248,250,252,0.97) 0%,
            rgba(248,250,252,0.93) 28%,
            rgba(248,250,252,0.42) 54%,
            rgba(248,250,252,0.06) 90%
        ),
        url('../images/krakow.png');

    background-size: cover;
    background-repeat: no-repeat;

    background-position: 68% center;
}

.hero-grid {
    display: flex;
    align-items: center;
    min-height: 440px;
}

.hero-left {
    max-width: 760px;
}

/* =========================================
   INSTITUTIONS
========================================= */

.hero-institutions {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: flex-start;

    gap: 1.8rem;

    margin-bottom: 2.5rem;

    flex-wrap: nowrap;
}

.hero-uj {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.hero-impan {
    position: relative;
    top: 5px;
     height: 70px;
}

.hero-divider {
    width: 1px;
    height: 72px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #cbd5e1,
            transparent
        );
}
.institution-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.institution-text {
     font-family: Georgia, serif;

    font-size: 0.9rem;
    line-height: 1.35;

    color: #0f2f6b;

    font-weight: 600;

    letter-spacing: 0.01em;
}
/* =========================================
   BRAND
========================================= */

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.hero-ant-logo {
    width: 78px;
    height: auto;
    object-fit: contain;
}

.hero-section h1 {
    font-size: 4.0rem;
    line-height: 1;
    margin: 0;
    color: var(--primary);
}

.hero-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;

    font-size: 1.55rem;
    color: var(--accent);

    margin-top: 0.7rem;
    margin-bottom: 0;
}

/* =========================================
   META
========================================= */

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    margin-top: 3rem;
    margin-bottom: 3rem;
}
.hero-meta-item span {
    line-height: 1.45;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    font-size: 1.08rem;
    font-weight: 600;

    color: var(--primary);
}

.hero-meta-item i {
    font-size: 1.05rem;
    color: var(--accent);
}

/* =========================================
   BUTTONS
========================================= */

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary-custom {
    display: inline-block;

    background: var(--primary);
    color: white;

    padding: 1rem 1.8rem;

    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;

    transition: 0.2s ease;
}

.btn-primary-custom:hover {
    background: #0b2550;
    color: white;
}

.btn-secondary-custom {
    border: 1px solid var(--border);

    color: var(--text);

    padding: 1rem 1.5rem;

    border-radius: 12px;
    text-decoration: none;

    background: rgba(255,255,255,0.75);
}

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

/* =========================================
   CONTENT
========================================= */

.content-section {
    padding: 6rem 0;
}

.alt-section {
    background: white;
}

.narrow-container {
    max-width: 850px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #64748b;
    margin-bottom: 3rem;
}

/* =========================================
   SPEAKERS
========================================= */

#speakers .row {
    row-gap: 1.5rem;
}

.speaker-card {
    background: rgba(255,255,255,0.92);

    border: 1px solid rgba(203,213,225,0.7);
    border-radius: 18px;

    padding: 1.7rem 1.5rem;

    height: 100%;

    backdrop-filter: blur(6px);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.speaker-card:hover {
    transform: translateY(-4px);

    border-color: rgba(199,157,90,0.5);

    box-shadow:
        0 12px 30px rgba(15,23,42,0.08);
}

.speaker-card h3 {
    font-size: 1.08rem;
    line-height: 1.45;

    margin-bottom: 0.5rem;

    color: var(--primary);
}

.speaker-card p {
    margin: 0;

    color: #64748b;

    font-size: 0.94rem;
    line-height: 1.5;
}

/* =========================================
   VENUE
========================================= */

.venue-image {
    background-image: url('../images/hero_background.png');
    background-size: cover;
    background-position: center;

    border-radius: 24px;
    min-height: 420px;
}
.venue-photo {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 24px;
}

/* =========================================
   REGISTRATION
========================================= */

.registration-section {
    padding: 7rem 0;
    text-align: center;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: white;
}

.footer-right {
    text-align: right;
}

/* =========================================
 * Iwaniec
 * ========================================= */
/* =========================================
   IWANIEC
========================================= */

.iwaniec-grid {
    display: grid;

    grid-template-columns:
        180px
        1fr;

    gap: 3.5rem;

    align-items: start;
}

.iwaniec-photo img {
    width: 100%;

    border-radius: 18px;

    display: block;

    filter: grayscale(100%);

    box-shadow:
        0 12px 30px rgba(15,23,42,0.08);
}

.iwaniec-content h2 {
    margin-bottom: 1.5rem;
}

.iwaniec-content p {
    color: #334155;

    line-height: 1.9;

    margin-bottom: 1.4rem;
}

.iwaniec-closing {
    font-family: 'Libre Baskerville', serif;

    font-style: italic;

    color: var(--primary);

    margin-top: 2rem;
}

/* MOBILE */

@media (max-width: 768px) {

    .iwaniec-grid {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .iwaniec-photo {
        max-width: 180px;
    }
}
/* =========================================
   MOBILE
========================================= */

@media (max-width: 992px) {

    .hero-section {
        min-height: auto;
        padding: 5rem 0;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section h1 {
        font-size: 3.6rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-institutions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-divider {
        display: none;
    }

    .hero-uj {
        height: 72px;
    }

    .hero-impan {
        height: 56px;
    }

    .hero-ant-logo {
        width: 72px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-right {
        text-align: left;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
}


/* =========================================
   Page height
========================================= */

.committee-page {
    min-height: calc(100vh - 260px);
}
.auth-page {
    min-height: calc(100vh - 260px);
}

.login-form button,
.login-form .btn-primary-custom {
    margin-top: 1.25rem;
}
.footer-admin-link {
    margin-top: 2rem;

    font-size: 0.85rem;

    opacity: 0.7;
}

.footer-admin-link a {
    color: inherit;

    text-decoration: none;
}
.registration-content {
    margin-bottom: 3rem;

    line-height: 1.8;
}

.registration-content ul {
    margin: 1.5rem 0;

    padding-left: 1.5rem;
}

.registration-content li {
    margin-bottom: 0.5rem;
}
.registration-info-box {
    background: #f7f9fc;

    border: 1px solid #dfe7f3;

    border-radius: 14px;

    padding: 2rem;

    margin-bottom: 3rem;

    line-height: 1.8;
}

.registration-form-wrapper {
    margin-top: 2rem;
}
#application-form .form-group {
    margin-bottom: 2rem;
}

#application-form label {
    font-weight: 600;

    margin-bottom: 0.5rem;
}

#application-form .form-control {
    border-radius: 10px;

    min-height: 46px;
}

#application-form textarea.form-control {
    min-height: 140px;
}

#application-form .radio,
#application-form .checkbox {
    margin-top: 0.75rem;
}
.section-title-small {
    font-size: 1.5rem;

    margin-top: 3rem;

    margin-bottom: 1.5rem;

    color: #0f2e6a;
}
.has-error input,
.has-error textarea,
.has-error select {
    border-color: #dc3545 !important;

    box-shadow: none;
}

.has-error .help-block,
.has-error .control-label {
    color: #dc3545 !important;
}
.has-error .form-control {
    border-color: #dc3545 !important;

    box-shadow: none !important;
}

.has-error .control-label,
.has-error .help-block,
.has-error .help-inline {
    color: #dc3545 !important;
}

.has-error select.form-control {
    border-color: #dc3545 !important;
}
.has-error select,
.has-error input,
.has-error textarea {
    border: 2px solid #dc3545 !important;
}

.has-error .select2-selection {
    border-color: #dc3545 !important;
}
.committee-subtitle {
    font-size: 1.6rem;

    color: #0f2e6a;

    margin-top: 4rem;

    margin-bottom: 1.5rem;
}
.speaker-tbc {
    color: #6c757d;

    font-size: 0.9rem;

    font-style: italic;

    font-weight: normal;
}

.navbar .dropdown-menu {

    border: 0;
    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    padding: 10px 0;

    margin-top: 10px;
}

.navbar .dropdown-item {

    padding:
        10px 20px;

    font-size: 15px;

    transition: .2s;
}

.navbar .dropdown-item:hover {

    background:
        rgba(0,0,0,.04);
}

.navbar .dropdown-toggle::after { border: 0 !important; background: none !important; }
@media (min-width: 992px) { .navbar .dropdown:hover .dropdown-menu { display: block; } }



/* =========================================
   DROPDOWN MENU
========================================= */

.navbar .dropdown {

    position: relative;
}

/* DROPDOWN TOGGLE */

.navbar .dropdown-toggle {

    display: inline-flex;

    align-items: center;

    gap: 8px;
}

/* REMOVE DEFAULT BOOTSTRAP CARET */

.navbar .dropdown-toggle::after {

    display: none !important;
}

/* CUSTOM ARROW */

.navbar .dropdown-toggle::before {

    content: '';

    width: 7px;

    height: 7px;

    border-right:
        2px solid currentColor;

    border-bottom:
        2px solid currentColor;

    transform:
        rotate(45deg);

    transition:
        transform 0.2s ease;

    margin-top: -3px;

    opacity: 0.7;
}

/* ARROW ANIMATION */

.navbar .dropdown:hover .dropdown-toggle::before {

    transform:
        rotate(225deg);

    margin-top: 2px;
}

/* REMOVE UNDERLINE FROM DROPDOWNS */

.navbar .nav-link.dropdown-toggle::after {

    display: none;
}

/* DROPDOWN PANEL */

.navbar .dropdown-menu {

    display: block;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(10px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    margin-top: 0;

    border: 0;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    padding: 0.6rem 0;

    min-width: 220px;

    background: #fff;
}

/* SHOW DROPDOWN */

@media (min-width: 992px) {

    .navbar .dropdown:hover .dropdown-menu {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }
}

/* DROPDOWN ITEMS */

.navbar .dropdown-item {

    padding:
        0.75rem 1.2rem;

    font-size: 0.95rem;

    color: var(--primary);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.navbar .dropdown-item:hover {

    background:
        rgba(15,47,107,.05);

    color:
        var(--primary);
}

/* =========================================
   FULL HEIGHT PAGES
========================================= */

.page-full-height {

    min-height:
        calc(100vh - 220px);

    display: flex;

    align-items: center;

    justify-content: center;
}


