:root {
    --color-primary: #003366; /* Deep Blue */
    --color-accent: #b28a4b; /* Muted Gold */
    --color-accent-light: #f7f4ef; /* Light Gold/Beige Background */
    --color-secondary: #005a9c; /* Professional Blue */
    --color-success: #43a047; /* Green */
    --color-warning: #ffc107; /* Amber */
    --color-danger: #e53935; /* Red */
    --color-background: #f4f8fb; /* Soft Blue-Gray */
    --color-surface: #ffffff; /* Pure White */
    --color-text-dark: #222b45; /* Deep Navy */
    --color-text-light: #ffffff; /* White */
    --color-text-muted: #7b8ca7; /* Muted Blue-Gray */
    --color-border: #cfd8dc; /* Light Blue-Gray Border */

    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Roboto', 'Open Sans', sans-serif;
    --font-serif: 'Georgia', 'Garamond', serif;

    --transition-speed: 0.3s; 
    --shadow-light: 0 2px 8px rgba(0, 51, 102, 0.07);
    --shadow-medium: 0 4px 16px rgba(0, 51, 102, 0.1);
    --shadow-dark: 0 8px 24px rgba(0, 51, 102, 0.16);
    --max-width: 1320px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.8;
    min-height: 100vh;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.75em;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

h1 { font-size: 3.2em; font-weight: 900; margin-bottom: 0.5em; }
h2 { 
    font-size: 2.2em; 
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
    position: relative;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}
h3 { font-size: 1.6em; color: var(--color-primary); }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed), text-decoration var(--transition-speed);
    font-weight: 500;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

section {
    padding: 20px 0;
}

ul, ol {
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 1em;
}

/* Page Layout Container */
.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

/* ----------------------------------
 * HEADER & NAVIGATION (REDESIGNED)
 * ---------------------------------- */

header {
    background: linear-gradient(180deg, var(--color-primary) 0%, #0f2438 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed for vertical alignment */
    padding: 15px 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo { 
    order: 1; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.multi-logo-container {
    display: flex;
    align-items: center;
    gap: 12px; 
    max-width: 280px; 
}

.header-logo {
    height: 50px; 
    width: auto;
    object-fit: contain;
}

.header-logo.l2,
.header-logo.l3 {
    display: none;
}

.header-logo.l1 {
    display: block;
}

.menu-toggle { 
    font-size: 1.8em; 
    color: var(--color-text-light); 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px 12px; 
    display: block; 
    order: 3;
}

.lang-switcher { 
    order: 2; 
    padding: 0 15px; 
    display: flex;
    gap: 8px;
}

.lang-switcher a {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-text-light);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.nav-links {
    list-style: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%;
    background-color: #0f2438; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column; 
    display: none; 
    z-index: 990; 
    padding: 0; 
    margin: 0;
}

.nav-links.active { 
    display: flex; 
}

.nav-links > li { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    width: 100%; 
}

.nav-links > li > a { 
    color: var(--color-text-light); 
    padding: 20px 24px; 
    display: block; 
    width: 100%;
    font-weight: 600;
    transition: background-color var(--transition-speed), color var(--transition-speed), opacity var(--transition-speed);
    opacity: 0.9;
}

.nav-links > li > a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.dropdown-menu { 
    list-style: none; 
    background-color: #0c1d2e; 
    padding-left: 0; 
    position: static; 
    width: 100%; 
    display: none; 
}

.dropdown-menu li a { 
    padding: 12px 24px 12px 40px; 
    color: #a8b3c1; 
    display: block;
    font-size: 0.95em;
    font-weight: 500;
}

/* ----------------------------------
 * BUTTONS & BASIC COMPONENTS
 * ---------------------------------- */

.btn { 
    display: inline-block; 
    padding: 13px 28px; 
    border-radius: 6px; 
    font-weight: 600;
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    font-size: 0.95em;
    transition: all var(--transition-speed); 
    border: 2px solid transparent; 
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.btn.primary { 
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-text-light); 
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
}

.btn.primary:hover { 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: 0 6px 16px rgba(0, 90, 156, 0.4);
    transform: translateY(-2px);
}

.btn.secondary { 
    background-color: transparent; 
    border-color: var(--color-accent); 
    color: var(--color-accent);
}

.btn.secondary:hover { 
    background-color: var(--color-accent); 
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn.small-btn {
    padding: 10px 18px;
    font-size: 0.85em;
}

.page-header { 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    padding: 50px 30px; 
    margin-bottom: 40px; 
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.page-header h1 {
    color: var(--color-text-light);
    margin-bottom: 0.5em;
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1em;
    max-width: 800px;
}

.content-block { 
    background-color: var(--color-surface); 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    border-left: 4px solid var(--color-accent);
}

/* Speaker Cards */
.speakers-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.speaker-card-detailed {
    background-color: transparent;
    min-height: 450px; /* Set a min-height for consistent card size */
    perspective: 1000px; /* 3D space for the flip */
    border: none;
    box-shadow: none;
    padding: 0;
}

.speaker-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-light);
    border-radius: 8px;
}

.speaker-card-detailed.is-flipped .speaker-card-inner {
    transform: rotateY(180deg);
}

.speaker-card-front,
.speaker-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-surface);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.speaker-card-front {
    align-items: start;
    gap: 20px;
}

.speaker-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #fff 100%);
    justify-content: space-between; /* Pushes button to the bottom */
}

.speaker-card-back h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.speaker-card-detailed:hover {
    box-shadow: var(--shadow-dark);
    transform: translateY(-6px);
}

.speaker-photo-container {
    flex-shrink: 0; /* Prevent image from shrinking on flex layouts */
    overflow: hidden; /* For zoom effect on hover */
    border-radius: 8px; /* Match image radius */
}

.speaker-photo-large {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: var(--shadow-light);
    transition: transform 0.4s ease;
}

.speaker-card-detailed:hover .speaker-photo-large {
    transform: scale(1.05);
}

.speaker-info h2 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.speaker-affiliation-large {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 15px;
}

.bio-snippet {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.bio-toggle-btn {
    margin-top: auto; /* Pushes button to the bottom of the flex container */
    align-self: flex-start;
}

.speaker-card-back .bio-toggle-btn {
    align-self: center;
}

.speaker-bio-full {
    overflow-y: auto; /* Allow scrolling for long bios */
    flex-grow: 1;
    text-align: justify;
    color: var(--color-text-muted);
    font-size: 0.95em;
    line-height: 1.7;
}

/* Tables for Fees */
.fees-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    overflow: hidden; /* Important for border-radius to work on table */
}

.fees-table thead th,
.data-table thead th {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.fees-table tbody tr,
.data-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-speed), transform 0.2s ease;
}

.fees-table tbody tr:hover,
.data-table tbody tr:hover {
    background-color: var(--color-accent-light);
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.fees-table td,
.data-table td {
    padding: 14px 15px;
    color: var(--color-text-dark);
    vertical-align: middle;
}

.fees-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

.fees-table tbody tr:last-child,
.data-table tbody tr:last-child {
    border-bottom: none;
}

.alert { 
    padding: 16px 20px; 
    margin-bottom: 20px; 
    border-radius: 6px; 
    font-weight: 500;
    border-left: 4px solid;
}

.alert.info { 
    background-color: #e8f4fd; 
    color: #004d6d; 
    border-left-color: var(--color-secondary);
}

.alert.success { 
    background-color: #d4edda; 
    color: #155724;
    border-left-color: var(--color-success);
}

.alert.error { 
    background-color: #f8d7da; 
    color: #721c24;
    border-left-color: var(--color-danger);
}

/* ----------------------------------
 * FORMS (PROFESSIONAL STYLING)
 * ---------------------------------- */

.form-group { 
    margin-bottom: 22px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--color-primary); 
    font-size: 1em;
    letter-spacing: 0.3px;
}

.contact-form input, .contact-form textarea, 
.registration-form input, .registration-form select, 
.submission-form input, .submission-form select, .submission-form textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 1.5px solid var(--color-border); 
    border-radius: 6px; 
    background-color: var(--color-background); 
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    font-size: 1em;
    color: var(--color-text-dark);
    font-family: var(--font-body);
}

.contact-form input:focus, .contact-form textarea:focus, 
.registration-form input:focus, .registration-form select:focus, 
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent); 
    outline: none;
    background-color: var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

/* ----------------------------------
 * SLIDESHOW & HERO SECTION
 * ---------------------------------- */

.slideshow-container { 
    max-width: 100%; 
    position: relative; 
    margin: 0 auto 40px; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: var(--shadow-dark);
    height: 65vh;
}

.mySlides { 
    display: none; 
    height: 100%; 
}

.mySlides img { 
    width: 100%; 
    height: 100%; 
    display: block; 
    object-fit: cover; 
}

.slide-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 90, 156, 0.75) 100%);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}

.hero-content { 
    color: var(--color-text-light); 
    padding: 40px; 
    max-width: 900px; 
}

.hero-content h1 { 
    color: var(--color-text-light); 
    font-size: 2.8em;
    margin-bottom: 0.5em;
}

.hero-content p { 
    font-size: 1.3em; 
    margin: 15px 0 30px; 
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.highlight-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-box span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.highlight-box strong {
    font-size: 1.4em;
    color: #ffeb3b;
}

.hero-actions { 
    display: flex; 
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.prev, .next { 
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    width: auto; 
    padding: 18px 24px; 
    margin-top: -30px; 
    color: white; 
    font-weight: bold; 
    font-size: 22px; 
    transition: 0.3s ease; 
    border-radius: 0; 
    user-select: none; 
    background-color: rgba(0, 0, 0, 0.6);
}

.next { 
    right: 0;
}

.prev:hover, .next:hover { 
    background-color: rgba(0, 0, 0, 0.9);
}

/* ----------------------------------
 * CONTENT SECTIONS
 * ---------------------------------- */

.deadlines-table { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
}

.deadline-row { 
    background: var(--color-surface);
    padding: 20px; 
    border-radius: 6px; 
    box-shadow: var(--shadow-light); 
    border-left: 5px solid var(--color-accent);
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 1.05em;
}

.deadline-row strong { 
    color: var(--color-primary);
    font-size: 1em;
}

.deadline-row span { 
    font-weight: 700; 
    color: var(--color-secondary);
}

.important-deadline { 
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
    border-left-color: #fff;
}

.important-deadline strong,
.important-deadline span {
    color: var(--color-text-light);
}

.welcome-text {
    text-align: center;
    font-size: 1.1em;
    max-width: 850px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.cta-section {
    background: var(--color-accent-light);
    border-left-color: var(--color-primary);
}

.cta-section h2 {
    color: var(--color-primary);
}

.cta-section .submission-actions {
    margin-top: 0;
}

.news-speakers-container, 
.papers-partners-container { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 30px; 
    margin-top: 30px; 
}

.content-card {
    background-color: var(--color-surface); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.content-card .news-list,
.content-card .speakers-grid-small,
.content-card .paper-list-small,
.content-card .journal-logos-grid-small {
    flex-grow: 1;
}

.card-footer-btn {
    margin-top: 25px;
    align-self: flex-start;
}

.read-more-link {
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
}
.read-more-link:hover {
    text-decoration: none;
}

.content-card h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.news-card-small { 
    border-bottom: 1px dotted var(--color-border); 
    padding: 15px 0; 
}

.news-card-small:last-child {
    border-bottom: none;
}

.news-card-small h4 { 
    font-size: 1.2em; 
    margin-bottom: 5px;
}

.paper-list-small {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paper-item-small {
    border-bottom: 1px dotted var(--color-border);
    padding-bottom: 15px;
}

.paper-item-small:last-child {
    border-bottom: none;
}

.paper-item-small h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.speakers-grid-small { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 20px; 
    text-align: center; 
}

.speaker-card-small img { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--color-secondary); 
    margin-bottom: 10px;
    transition: transform var(--transition-speed);
}

.speaker-card-small:hover img {
    transform: scale(1.05);
}

.speaker-card-small h4 {
    font-size: 0.95em;
    margin: 10px 0 5px;
}

.speaker-card-small p {
    font-size: 0.85em;
    color: var(--color-text-muted);
} 

.paper-authors-small {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.journal-logos-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    align-items: center;
}

.journal-logos-grid-small img {
    max-width: 100%;
}

/* Proceedings List */
.paper-list-container { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.paper-detail-item { background: var(--color-surface); padding: 20px; border-radius: 8px; box-shadow: var(--shadow-light); border-left: 4px solid var(--color-accent); }
.paper-header h3 { font-size: 1.3em; margin: 0; flex-grow: 1; }
.paper-year { font-weight: 700; color: var(--color-primary); background-color: #f0f0f0; padding: 4px 8px; border-radius: 4px; font-size: 0.9em; flex-shrink: 0; }
.authors { font-size: 0.95em; color: #555; margin-bottom: 10px; }
.abstract-snippet { margin-bottom: 15px; border-left: 2px solid #eee; padding-left: 10px; }
.abstract-snippet p { font-size: 0.9em; color: #444; }
.doi-link { font-size: 0.9em; word-break: break-all; }

/* ----------------------------------
 * FOOTER (PROFESSIONAL REDESIGN)
 * ---------------------------------- */

footer { 
    background: linear-gradient(180deg, var(--color-primary) 0%, #0f2438 100%);
    color: #a8b3c1; 
    padding: 50px 30px 20px; 
    margin-top: 60px;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    padding-bottom: 30px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-column h3 { 
    color: var(--color-text-light); 
    font-size: 1.2em; 
    margin-bottom: 18px; 
    border-bottom: 2px solid var(--color-accent); 
    padding-bottom: 10px;
}

.footer-column ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a { 
    color: #a8b3c1;
    transition: color var(--transition-speed);
}

.footer-column a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.social-links { 
    margin-top: 20px; 
    display: flex; 
    gap: 15px; 
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--color-accent);
}

.social-links svg { 
    width: 24px; 
    height: 24px; 
    fill: #a8b3c1; 
    transition: fill var(--transition-speed);
}

.social-links a:hover svg { 
    fill: var(--color-text-light);
}

.footer-bottom { 
    text-align: center; 
    padding: 25px 30px; 
    background-color: #0a1620;
    color: #7a8491; 
    font-size: 0.9em;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ----------------------------------
 * DESKTOP LAYOUT (RESPONSIVE)
 * ---------------------------------- */

@media (min-width: 768px) {
    
    /* Header */
    .menu-toggle { 
        display: none; 
    }
    
    .header-logo { 
        height: 60px; 
    }
    
    .header-logo.l2,
    .header-logo.l3 {
        display: block;
    }
    
    .nav-links { 
        justify-content: flex-end; 
        position: static; 
        flex-direction: row; 
        width: auto; 
        background-color: transparent;
        border: none;
        box-shadow: none; 
        display: flex !important; 
        flex-grow: 1; 
        gap: 5px;
        order: 2;
        padding-top: 0;
    }
    
    .nav-links > li { 
        border-bottom: none; 
        width: auto; 
        position: relative;
    }
    
    .nav-links > li > a {
        padding: 20px 16px;
        position: relative;
        overflow: hidden;
    }
    
    .nav-links > li > a:hover, .nav-links > li > a.active {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--color-text-light);
    }
    
    .nav-links > li > a::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: all 0.3s ease-in-out;
        transform: translateX(-50%);
    }

    .nav-links > li > a:hover::after,
    .nav-links > li > a.active::after {
        width: 60%;
    }
    
    .dropdown-menu { 
        position: absolute; 
        top: 100%; 
        left: 0;
        background-color: #0f2438; 
        box-shadow: var(--shadow-medium); 
        padding-left: 0;
        padding-top: 8px;
        min-width: 260px; 
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        border-radius: 0 0 8px 8px;
    }
    
    .dropdown:hover .dropdown-menu { 
        display: block; /* Keep for layout */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
        color: #a8b3c1;
        font-weight: 500;
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.05); 
        color: var(--color-text-light);
    }
    
    /* Homepage */
    .slideshow-container {
        height: 70vh;
    }
    
    .hero-content h1 { 
        font-size: 4em;
    }
    
    .hero-actions { 
        flex-direction: row;
    }
    
    .news-speakers-container, 
    .papers-partners-container { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .speakers-grid-small { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .journal-logos-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* Forms */
    .registration-form, 
    .submission-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .registration-form button,
    .submission-form button {
        grid-column: span 2;
        max-width: 200px;
        justify-self: center;
    }
    
    .contact-details { 
        display: grid; 
        grid-template-columns: 1fr 2fr; 
        gap: 40px;
    }

    .submission-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px 20px;
    }

    .submission-form .form-group.full-width {
        grid-column: span 2;
    }

    .submission-form button {
        grid-column: span 2;
    }
    
    .contact-form-container { 
        padding-left: 40px; 
        border-left: 2px solid var(--color-border);
    }
    
    /* Footer */
    .footer-grid { 
        grid-template-columns: 1.5fr 1.5fr 1fr;
        text-align: left;
    }
    
    /* Speaker Cards Desktop */
    .speaker-card-detailed {
        flex-direction: row;
        align-items: flex-start;
        gap: 25px;
    }

    body.speakers .speakers-grid-detailed {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Registration Page Layout */
    .registration-layout-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr; /* Info column is slightly smaller */
        gap: 30px;
        align-items: start; /* Align items to the top of the grid cells */
    }

    .registration-info {
        position: sticky;
        top: 110px; /* Adjust this value based on your header's height + desired spacing */
    }


}

.contact-details {
    margin-top: 30px;
}

.contact-info h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
}

.info-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.info-group:last-child {
    border-bottom: none;
}

.info-group h3 {
    color: var(--color-secondary);
    font-size: 1.2em;
    margin-bottom: 8px;
}

.info-group p {
    margin: 5px 0;
    color: var(--color-text-dark);
}

.contact-form-container h2 {
    color: var(--color-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form button {
    align-self: center;
    margin-top: 20px;
    min-width: 200px;
}

/* Registration & Submission Forms */
.registration-form,
.submission-form {
    display: flex;
    flex-direction: column;
}

.registration-form .form-group,
.submission-form .form-group {
    margin-bottom: 20px;
}

.registration-form button,
.submission-form button {
    margin-top: 30px;
    align-self: center;
    min-width: 220px;
}

/* Submission Actions Partial */
.submission-actions {
    margin-top: 40px;
    text-align: center;
}

.submission-actions h2 {
    margin-top: 30px;
}

.download-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.submission-forms-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Page Sections & Link Cards */
.page-summaries,
.full-link-grid {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.link-card-large {
    display: block;
    background: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--color-accent);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.link-card-large:hover {
    border-left-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.link-card-large h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: var(--color-primary);
}

.link-card-large p {
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin: 10px 0 0;
    line-height: 1.6;
}

.sponsor-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.sponsor-logo-link:hover {
    transform: scale(1.05);
}

.sponsor-logo-img, .journal-logos-grid img {
    max-width: 160px;
    max-height: 70px;
    filter: grayscale(80%) opacity(0.8);
    transition: filter 0.3s ease;
}

/* Horizontal Logo Scroller */
.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    margin-top: 30px;
}

.scroller-inner {
    display: flex;
    gap: 50px;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.scroller-container:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner .sponsor-logo-link:hover .sponsor-logo-img {
    filter: grayscale(0%) opacity(1);
}

/* Committee & Members Styling */
.committee-section {
    margin-bottom: 40px;
}

.committee-section h3 {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.committee-list h3 {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.committee-list h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--color-accent) 0%, #0070b8 100%);
    border-radius: 2px;
    margin-right: 12px;
}

.member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.member-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.member-item:hover {
    background: #f0f5fb;
    box-shadow: 0 4px 16px rgba(0, 132, 209, 0.15);
    transform: translateX(4px);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.member-info h4 {
    color: var(--color-primary);
    margin-bottom: 3px;
}

.member-position {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.member-affiliation {
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.member-bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    font-size: 0.9em;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-top: 0;
}

.member-item.bio-visible .member-bio {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.member-info .bio-toggle-btn {
    margin-top: 15px;
}
.member-info .member-photo {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.1);
}

.member-role {
    display: inline-block;
    font-size: 0.85em; 
    color: var(--color-accent); 
    font-weight: 600; 
    background: var(--color-accent-light);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.member-role:hover {
    transform: scale(1.05);
}
/* News Items */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-mini {
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.news-item-mini h4 {
    color: var(--color-primary); 
    font-size: 1.1em;
    margin-bottom: 5px;
}

.news-date {
    font-size: 0.85em;
    color: var(--color-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.news-item-mini p {
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

/* Proceedings & Paper Lists */
.paper-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.paper-detail-item {
    background: var(--color-surface);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--color-accent);
    transition: transform 0.3s, box-shadow 0.3s;
}

.paper-detail-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.paper-header h3 {
    font-size: 1.3em;
    margin: 0;
    flex-grow: 1;
    color: var(--color-primary);
}

.paper-year {
    font-weight: 600;
    color: var(--color-text-light);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.paper-year:hover {
    transform: scale(1.05);
}

.authors {
    font-size: 0.95em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.abstract-snippet {
    margin-bottom: 15px;
    border-left: 2px solid var(--color-border);
    padding-left: 15px;
}

.abstract-snippet p {
    font-size: 0.95em;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: 0;
}

.doi-link {
    font-size: 0.85em;
    word-break: break-all;
    color: var(--color-secondary);
    display: block;
    margin-top: 10px;
}

/* ============================================
   FAQ Accordion Styling
   ============================================ */
.faq-section {
    background: none;
    padding-top: 20px;
}

.faq-search-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search-container i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1em;
}

#faq-search {
    padding-left: 50px;
    font-size: 1.1em;
}

.speakers-search-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.speakers-search-container i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1em;
}

#speaker-search {
    padding-left: 50px;
    font-size: 1.1em;
    width: 100%;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--color-surface);
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '▼'; 
    font-size: 0.75em;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.faq-item.active .faq-question::after {
    transform: rotate(-180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, opacity 0.4s ease-in-out;
    padding: 0 20px; /* Keep horizontal padding for transition */
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* A large value to allow content to expand */
    padding: 20px 20px;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.9;
    font-size: 1em;
}

.faq-answer p + p {
    margin-top: 12px;
}

/* ============================================
   News Page Styling
   ============================================ */
.news-feed {
    background: #ffffff;
}

.news-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-image-container {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d5ecfb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-main-image {
    transform: scale(1.05);
}

.news-item h2 {
    font-size: 1.6em;
    color: var(--color-primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.news-date {
    display: inline-block;
    font-size: 0.85em;
    color: var(--color-text-muted);
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8fc 100%);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.news-content {
    margin-top: 16px;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.news-date i {
    margin-right: 5px;
    color: var(--color-accent);
}

/* Featured News Item */
.news-item.featured {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 50px;
}

.news-image-container.featured-image {
    height: 400px;
}

.news-item.featured h2 {
    font-size: 2em;
}

/* Older News Section */
.older-news-title {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.news-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Compact News Item Styling */
.news-item.compact {
    background-color: var(--color-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item.compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image-container.compact-image {
    height: 200px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.news-item.compact .news-text-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-item.compact h4 {
    font-size: 1.2em;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.news-item.compact .news-date {
    background: none;
    padding: 0;
    margin-top: auto; /* Pushes date to the bottom */
}

/* ============================================
   Responsive Adjustments for FAQ & News
   ============================================ */
.other-committees-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .full-link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-image-container {
        height: 350px;
    }

    .committee-description {
        flex-direction: row;
        align-items: center;
    }
    .committee-image {
        width: 300px;
        height: 200px;
    }
    .other-committees-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid-compact {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   About Pages & Dynamic Content Styling
   ============================================ */
.dynamic-page-content {
    max-width: 900px;
    margin: 30px auto;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.dynamic-page-content h2 {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 16px;
}

.dynamic-page-content h3 {
    font-size: 1.2em;
    color: var(--color-secondary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.dynamic-page-content p {
    margin-bottom: 16px;
    font-size: 0.95em;
}

.dynamic-page-content ul,
.dynamic-page-content ol {
    margin-left: 25px;
    margin-bottom: 16px;
}

.submission-form .form-group.full-width {
    grid-column: span 2;
}

.submission-form .form-note {
    font-size: 0.85em; 
    color: var(--color-text-muted); 
    margin-top: 8px;
}

.submission-form input[type="file"] {
    padding: 10px 16px;
}

.dynamic-page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.dynamic-page-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.dynamic-page-content a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.dynamic-page-content a:hover {
    color: var(--color-accent);
}

.sponsor-tier-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.sponsor-tier-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 2px;
    margin-right: 12px;
}

.sponsor-detail-card {
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.tier-title {
    text-transform: capitalize;
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.tier-title.tier-platinum { border-color: #d4af37; }
.tier-title.tier-gold { border-color: #ffd700; }
.tier-title.tier-silver { border-color: #c0c0c0; }

.tier-label {
    font-size: 0.85em;
    color: var(--color-text-muted);
}

.tier-highlight {
    font-weight: 600;
    text-transform: capitalize;
}

.tier-platinum .tier-highlight { color: #b28a4b; }
.tier-gold .tier-highlight { color: #c8a415; }
.tier-silver .tier-highlight { color: #8d9499; }

.centered-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
}

.sponsor-logo-link:hover .sponsor-logo-img {
    filter: grayscale(0%) opacity(1);
}

.sponsors-table-container {
    overflow-x: auto;
}

.sponsors-table {
    margin-top: 0;
}

.sponsors-table .sponsor-logo-cell {
    width: 150px;
    text-align: center;
}

.sponsor-logo-table {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
}

.sponsors-table .sponsor-name-cell {
    font-weight: 600;
    color: var(--color-primary);
}

.sponsors-table .sponsor-website-col {
    width: 160px;
    text-align: center;
}

.sponsor-text h3 {
    margin: 10px 0 8px 0;
    color: var(--color-primary);
}

.sponsor-text p {
    margin: 8px 0;
    font-size: 0.9em;
    color: var(--color-text-dark);
}

.sponsor-text a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

/* ============================================
   Animations & Transitions
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 25px)); /* (Half the inner container width) + (half the gap) */
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 132, 209, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 132, 209, 0);
    }
}

/* Specific Component Animations */
.page-header {
    animation: slideInDown 0.6s ease-out;
}

.content-block {
    animation: fadeIn 0.5s ease-out;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 90, 156, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    animation: slideInUp 0.5s ease-out;
}

/* Card Animations */
.speaker-card-detailed,
.member-item,
.deadline-row,
.link-card-large {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card-detailed:hover,
.news-item:hover, /* news-item has its own transition */
.member-item:hover,
.deadline-row:hover,
.link-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.15);
}

/* Table Row Hover */
table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

table tbody tr:hover {
    background-color: rgba(0, 132, 209, 0.08);
    transform: scale(1.01);
}

/* Form Input Focus Animations */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select { 
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    transform: scale(1.01); 
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Link Hover Animations */
a:hover {
    color: var(--color-accent);
}

/* Dropdown Menu Animation */
.nav-links .dropdown-menu {
    animation: slideInUp 0.3s ease-out;
}

/* Alert Animations */
.alert {
    animation: slideInDown 0.4s ease-out;
}

/* Speaker Photo Animation */
.member-photo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.2);
}

/* Slideshow Animations */
.slide {
    animation: fadeIn 0.5s ease-in-out;
}

.mySlides {
    animation: fadeIn 0.5s ease-in-out;
}

/* FAQ Accordion Animations */
.faq-item {
    animation: slideInUp 0.4s ease-out;
}

.faq-question:hover {
    animation: none;
}

/* News Item Animations */
.news-item {
    animation: slideInUp 0.5s ease-out;
}

/* Navigation Animation */
.main-nav .nav-links {
    animation: slideInDown 0.5s ease-out;
}

.main-nav .nav-links > li {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }

/* Load Animation for Page Content */
.content {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-surface);
}

/* ============================================
   Track Cards Styling (Conference Topics/Tracks)
   ============================================ */
.tracks-section {
    background: linear-gradient(135deg, #f0f5fb 0%, #e8f2fa 100%);
    padding: 40px 20px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.track-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.08);
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
    animation: slideInUp 0.5s ease-out;
}

.track-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(26, 58, 92, 0.15);
    border-color: var(--color-accent);
}

.track-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 132, 209, 0.1) 0%, rgba(0, 112, 184, 0.08) 100%);
    border-radius: 8px;
}

.track-card h3 {
    font-size: 1.3em;
    color: var(--color-primary);
    margin: 12px 0 16px 0;
    font-weight: 600;
}

.track-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-card li {
    padding: 8px 0;
    color: var(--color-text-muted);
    font-size: 0.9em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.track-card li:last-child {
    border-bottom: none;
}

.track-card:hover li {
    color: var(--color-text-dark);
}

.track-card li::before {
    content: '▸ ';
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 8px;
}

/* Desktop Track Grid */
@media (min-width: 768px) {
    .tracks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tracks-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .track-card {
        animation-delay: calc(0.1s * var(--i));
    }
}

@media (min-width: 1024px) {
    .tracks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
}

/* ============================================
   Social Share Buttons
   ============================================ */
.social-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share strong {
    color: var(--color-primary);
    font-weight: 600;
    margin-right: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white !important; /* Override default link color */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: white !important;
}

/* ============================================
   Slideshow Ken Burns Effect
   ============================================ */

@keyframes kenburns-1 {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-4%, 4%);
  }
}

@keyframes kenburns-2 {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(4%, -4%);
  }
}

.mySlides img {
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate; /* Makes the animation reverse smoothly */
}

.mySlides:nth-child(odd) img {
    animation-name: kenburns-1;
}

.mySlides:nth-child(even) img {
    animation-name: kenburns-2;
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.linkedin { background-color: #0A66C2; }
.share-btn.email { background-color: #7b8ca7; }

/* ============================================
   Call for Reviewers Section
   ============================================ */
.call-for-reviewers {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border-left: none;
    border-top: 5px solid var(--color-accent);
}

.call-for-reviewers .reviewer-icon {
    font-size: 3em;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.call-for-reviewers h2 {
    color: white;
    border-bottom: none;
}
.call-for-reviewers h2::after {
    background: linear-gradient(90deg, var(--color-accent), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.call-for-reviewers p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.aims-objectives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.aims-objectives-grid .content-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .aims-objectives-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Venue & Travel Page Styling
   ============================================ */
.venue-layout-section {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    margin-bottom: 30px;
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.venue-map {
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    position: sticky; /* Make map sticky on desktop */
    top: 120px; /* Adjust based on header height */
}

.venue-content {
    margin: 0;
    max-width: none;
}

.venue-content h2, .venue-content h3 {
    margin-top: 0;
}

.venue-content h2:first-of-type {
    margin-top: 0;
}

@media (min-width: 992px) {
    .venue-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c8a415 100%);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s, background-color 0.4s;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #c8a415 0%, var(--color-accent) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-dark);
    color: var(--color-text-light);
    text-decoration: none;
}

/* ============================================
   Mobile-Specific Enhancements
   ============================================ */
@media (max-width: 767px) {
    /* Committee Member Cards on Mobile */
    .committee-members-grid .member-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .committee-members-grid .member-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }
}

/* ============================================
   Sponsorship Page Enhancements
   ============================================ */
.sponsorship-tiers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.tier-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
}

.tier-header {
    padding: 25px;
    color: var(--color-text-light);
}

.tier-header h3 {
    color: var(--color-text-light);
    margin: 0;
    font-size: 1.6em;
}

.tier-price {
    font-size: 1.2em;
    font-weight: 700;
    opacity: 0.9;
}

.tier-benefits {
    background-color: var(--color-surface);
    padding: 25px;
    list-style: none;
    margin: 0;
    flex-grow: 1;
}

.tier-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.tier-benefits li i {
    color: var(--color-accent);
}

/* Tier-specific colors */
.tier-card.tier-platinum .tier-header { background: linear-gradient(135deg, #6c7a89, #434f5b); }
.tier-card.tier-gold .tier-header { background: linear-gradient(135deg, var(--color-accent), #c8a415); }
.tier-card.tier-silver .tier-header { background: linear-gradient(135deg, #a7b0b5, #8d9499); }

@media (min-width: 992px) {
    .sponsorship-tiers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
}