/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f466d;
    --primary-color-dark: #032a46;
    --primary-color-medium: #1b5d8d;
    --primary-color-light: #2f7aa7;
    --primary-color-shadow: rgba(15, 70, 109, 0.25);
    --primary-color-shadow-strong: rgba(15, 70, 109, 0.35);
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
}

html {
    scroll-padding-top: 90px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color-medium);
}

/* Navigation Bar */
.navbar {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color-light);
}

/* Language Switcher */
/* Buttons */
.btn {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0.00) 100%);
    transform: translateX(-120%);
    transition: transform 0.75s ease;
    pointer-events: none;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-medium) 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px var(--primary-color-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color-medium) 0%, var(--primary-color-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-color-shadow-strong), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)), url('img/MANUF_conf_bg.png') center/cover no-repeat;
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.event-dates {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding: 15px 0;
}

.hero-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    isolation: isolate;
}

.hero-actions a {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero-actions a:first-child {
    z-index: 2;
}

.hero-actions a:last-child {
    z-index: 1;
    margin-top: 0;
}

/* About Section */
.about {
    padding: 50px 20px 0px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.about .container {
    max-width: 1320px;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.topics-section {
    padding: 30px 20px 50px;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem 1.25rem;
    margin-top: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: white;
    padding: 1.3rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    line-height: 1.4;
}

.about-card p {
    font-size: 0.9rem;
    text-align: left;
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Important Dates Section */
.important-dates {
    padding: 42px 20px 5px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 1100px;
    min-height: 230px;
    margin: 0 auto;
    padding: 0 0.25rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color-medium) 0%, var(--primary-color) 100%);
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: calc(2.35rem + 5px) 0 0;
    text-align: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.35rem;
    background: rgba(15, 70, 109, 0.5);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0.56rem;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color-shadow);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.timeline-content {
    display: block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 88px;
}

.submission-info {
    padding: 28px 20px 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    position: relative;
    z-index: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem auto 0;
    max-width: 980px;
}

.info-card {
    background: white;
    border: 1px solid rgba(0, 82, 163, 0.08);
    border-left: 6px solid var(--primary-color);
    border-radius: 14px;
    padding: 0.4rem 1.7rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.info-card.full-width {
    grid-column: 1;
}

.info-card h3 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.info-card p,
.info-card li,
.meta-line {
    color: var(--dark-color);
    line-height: 1.7;
    margin: 0.45rem 0;
}

.info-list {
    margin: 0.8rem 0 0.6rem 1.2rem;
    padding: 0;
}

.meta-line {
    font-size: 0.98rem;
}

/* Program Section */
.program {
    padding: 42px 20px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.program-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .program-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.day {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.day h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.event-item {
    display: flex;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    background: white;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    align-items: center;
    min-height: 0;
}

.event-item .time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
    font-size: 0.9rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.event-item .title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.2;
}

.program-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Speakers Section */
.speakers {
    padding: 20px 40px 40px;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.speaker-card {
    width: 100%;
    max-width: 290px;
    justify-self: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(15, 70, 109, 0.08);
}

.speaker-card:hover,
.speaker-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.speaker-card:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.35);
    outline-offset: 4px;
}

.speaker-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-medium) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 70, 109, 0.08);
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.speaker-card h3 {
    padding: 1rem 1rem 0;
    color: var(--dark-color);
    font-size: 1.12rem;
    min-height: 2.7rem;
}

.speaker-card p {
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    line-height: 1.5;
    min-height: 4.5rem;
}

.speaker-card span {
    display: block;
    padding: 0.5rem 1rem 1rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.speaker-modal[hidden] {
    display: none;
}

.speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.speaker-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(4px);
}

.speaker-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.speaker-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.speaker-modal__content {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
}

.speaker-modal__image-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-medium) 100%);
}

.speaker-modal__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.speaker-modal__details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 2rem;
}

.speaker-modal__role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.speaker-modal__affiliation {
    color: #666;
    margin-bottom: 1.25rem;
}

.speaker-modal__bio {
    color: var(--text-color);
    line-height: 1.8;
    white-space: pre-line;
}

.visa-modal__dialog {
    width: min(860px, calc(100% - 32px));
}

.visa-modal__content {
    padding: 2rem;
}

.visa-modal__content h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
}

.visa-modal__intro,
.visa-modal__note {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.visa-modal__note {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.visa-form {
    box-shadow: none;
    padding: 0;
    background: transparent;
}

body.modal-open {
    overflow: hidden;
}

/* Venue Section */
.venue {
    padding: 20px 20px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: center;
}

.venue-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.venue-info h4 {
    color: var(--dark-color);
    margin-top: 1.5rem;
}

.venue-info p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.venue-map-legend {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.venue-map-legend li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    color: var(--dark-color);
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.legend-dot-k {
    background: var(--primary-color);
}

.venue-info ul {
    margin-top: 1rem;
}

.venue-info li {
    padding: 0.5rem 0;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.map-container .leaflet-control-attribution {
    font-size: 0.75rem;
}

/* Registration Section */
.registration {
    padding: 20px 20px 40px;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--border-color);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.pricing-card.featured {
    border-top-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.2);
}

.pricing-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pricing-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

.pricing-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-color);
    font-size: 0.9rem;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* Deadlines Section */
.deadlines {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.deadlines h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.deadlines table {
    width: 100%;
    border-collapse: collapse;
}

.deadlines td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.deadlines tr:last-child td {
    border-bottom: none;
}

.deadlines tr:nth-child(odd) {
    background-color: var(--light-color);
}

.deadlines td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 150px;
}

/* Committee Section */
.committee {
    padding: 20px 20px 40px;
    background: white;
    position: relative;
    z-index: 1;
}

.committee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.committee-card {
    width: 250px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(9, 53, 117, 0.12);
    border: 1px solid #d9e6f7;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(9, 53, 117, 0.16);
}

.committee-image {
    position: relative;
    width: 92px;
    height: 92px;
    min-width: 92px;
    min-height: 92px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f466d 0%, #234d70 35%, #5d7ea2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 8px 18px rgba(15, 70, 109, 0.18);
}

.committee-image::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
}

.committee-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), transparent 28%);
}

.committee-avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-transform: uppercase;
}

.committee-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.committee-card h3 {
    margin-bottom: 0.45rem;
    color: var(--dark-color);
    font-size: 1.15rem;
    line-height: 1.35;
}

.committee-card h5 {
    margin-bottom: 0.3rem;
}

.committee-card p {
    color: var(--primary-color);
    font-size: 0.92rem;
    line-height: 1.45;
}

.scientific-committee-list {
    margin: 1.25rem 0 0;
    padding: 1.25rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid #d9e6f7;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(9, 53, 117, 0.08);
}

.scientific-committee-list li {
    position: relative;
    margin: 0;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    line-height: 1.45;
    color: var(--dark-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scientific-committee-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateY(-50%);
    box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.12);
}

.scientific-committee-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 53, 117, 0.12);
}

/* Partners Section */
.partners {
    padding: 14px 20px 60px;
    background: #f9f9f9;
    position: relative;
    z-index: 1;
}

.partners-group {
    margin-top: 0.5rem;
}

.partners-group h3 {
    text-align: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.partner-card {
    width: 190px;
    min-height: 110px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.partner-card:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 3px;
}

.partner-card img {
    display: block;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.mitutoyo-logo {
    transform: translateY(2px);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.9fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section {
    min-width: 0;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.footer-section a {
    color: white;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 0.75rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-credit {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.55);
    color: white;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    z-index: 1200;
}

.back-to-top::before {
    content: '';
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.back-to-top:hover {
    background: rgba(26, 26, 26, 0.78);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.35);
    outline-offset: 2px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Registration Form Styles */
.registration-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert[hidden] {
    display: none;
}

.alert strong {
    font-size: 1.1rem;
}

.alert p {
    margin: 0;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.registration-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row-personal {
    grid-template-columns: minmax(120px, 0.5fr) 1fr 1fr;
}

.form-row-single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.invoice-details-wrap {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invoice-details-wrap[hidden] {
    display: none !important;
}

.invoice-details-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.is-invalid:focus,
.form-group textarea.is-invalid:focus,
.form-group select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.35rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-weight: normal;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #0052a3;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.btn-visa {
    width: 100%;
    margin-top: 0.75rem;
}

.cancellation-policy {
    width: 100%;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

.cancellation-policy h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.cancellation-policy p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cancellation-policy p:last-child {
    margin-bottom: 0;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: ' ...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: ' .';
    }
    40% {
        content: ' ..';
    }
    60%, 100% {
        content: ' ...';
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .venue-content {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .program-content {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .event-item {
        flex-direction: column;
    }

    .event-item .time {
        min-width: auto;
    }

    .speaker-modal__content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .visa-modal__content {
        padding: 1.5rem;
    }

    .speaker-modal__details h3 {
        font-size: 1.6rem;
    }

    .committee-card {
        width: 170px;
    }

    .scientific-committee-list {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .partner-card {
        width: 160px;
        min-height: 96px;
    }

    .important-dates .container {
        overflow-x: auto;
    }

    .timeline {
        min-width: 900px;
        grid-template-columns: repeat(5, minmax(160px, 1fr));
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 150px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .speaker-modal__dialog {
        width: min(100% - 20px, 820px);
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }

    .speaker-modal__close {
        top: 10px;
        right: 10px;
    }

    .committee-card {
        width: 100%;
        max-width: 260px;
    }

    .scientific-committee-list {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .scientific-committee-list li {
        font-size: 0.95rem;
        padding: 0.7rem 0.7rem 0.7rem 1.8rem;
    }

    .partner-card {
        width: min(100%, 260px);
    }
}
