/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* MEST 2025 Suggested Color Theme Variables */
:root {
    /* Primary Colors from Suggestions */
    --navbar-blue: #0047BB;
    --navbar-blue-dark: #003A99;
    --background-light: #F5F5F5;
    --background-alt: #EDEDED;
    --text-black: #000000;
    --text-deep-blue: #002C6C;
    --text-dark-gray: #444444;
    --link-red: #E6292A;
    --link-red-dark: #C61E1F;
    
    /* Button Colors */
    --btn-primary-bg: #0047BB;
    --btn-primary-hover: #003A99;
    --btn-secondary-bg: #E6292A;
    --btn-secondary-hover: #C61E1F;
    --btn-highlight-bg: #FFC107;
    --btn-highlight-hover: #D4AF37;
    
    /* Utility Colors */
    --white: #FFFFFF;
    --light-shadow: rgba(0, 71, 187, 0.1);
    --medium-shadow: rgba(0, 71, 187, 0.15);
}

body {
    padding-top: 72px; 
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-dark-gray);
}

header {
    background: var(--btn-primary-bg);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    color: var(--text-black);
}

nav {
    background: var(--navbar-blue);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--light-shadow);
}

nav .logo {
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center; /* Ensures vertical centering */
    margin: 0;
    padding: 0;
    height: 100%;
}

nav ul li {
    display: flex;
    align-items: center; /* Ensures each menu item is centered */
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4em 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a:hover {
    color: var(--btn-highlight-bg);
    transform: translateY(-1px);
}

.banner {
    background: linear-gradient(135deg, var(--navbar-blue) 0%, var(--btn-primary-hover) 100%);
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 2.5rem;
    background-image: 
        linear-gradient(135deg, var(--navbar-blue) 0%, var(--btn-primary-hover) 100%),
        url('https://www.transparenttextures.com/patterns/cubes.png');
    background-size: cover, 200px 200px;
    background-blend-mode: overlay;
}

.banner-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 1px 2px 8px rgba(0,71,187,0.15);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 2px 8px rgba(0,71,187,0.10);
}

.cta-btn {
    background: var(--btn-highlight-bg);
    color: var(--text-black);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: var(--btn-highlight-hover);
    color: var(--text-black);
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
    transform: translateY(-2px);
}

/* Three-Tier Button System */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,71,187,0.3);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230,41,42,0.3);
}

.btn-highlight {
    background: var(--btn-highlight-bg);
    color: var(--text-black);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-highlight:hover {
    background: var(--btn-highlight-hover);
    color: var(--text-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

main {
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 0;
}

section {
    padding: 20px;
    margin: 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--light-shadow);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

section:hover {
    box-shadow: 0 8px 25px var(--medium-shadow);
    transform: translateY(-2px);
}

section h2 {
    color: var(--text-deep-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

section h3 {
    color: var(--text-black);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

section p {
    color: var(--text-dark-gray);
    line-height: 1.6;
}

section a {
    color: var(--link-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: var(--link-red-dark);
    text-decoration: underline;
}

footer {
    background: var(--navbar-blue);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.95rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.speaker-card {
    background: var(--background-alt);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--light-shadow);
    padding: 1.5rem;
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,193,7,0.1);
}

.speaker-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 25px var(--medium-shadow);
    border-color: var(--btn-secondary-bg);
}

.speaker-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--btn-secondary-bg);
}

.speaker-card h3 {
    margin: 0.5rem 0 0.2rem 0;
    color: var(--text-deep-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.speaker-card p {
    margin: 0.2rem 0;
    font-size: 0.98rem;
    color: var(--text-dark-gray);
}

.dates-table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.dates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--light-shadow);
}

.dates-table th, .dates-table td {
    padding: 1rem 1.2rem;
    text-align: left;
}

.dates-table th {
    background: var(--navbar-blue);
    color: var(--white);
    font-weight: 600;
}

.dates-table tr:nth-child(even) {
    background: rgba(238, 238, 238, 1);
}

.dates-table tr:nth-child(odd) {
    background: white;
}

.dates-table td {
    color: var(--text-dark-gray);
    font-size: 1rem;
}

.tracks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.track {
    background: #f4f8fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 1.5rem 1.2rem;
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 32%;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.track:hover {
    box-shadow: 0 6px 24px rgba(79,209,197,0.15);
    transform: translateY(-4px) scale(1.01);
}

.track h3 {
    color: #1a365d;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

.track ul {
    padding-left: 1.2rem;
    margin: 0;
}

.track ul li {
    margin-bottom: 0.4rem;
    font-size: 0.98rem;
    color: #333;
}

#committee {
    margin: 2.5rem 0;
    background: #f4f8fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 2rem 1.5rem;
}

#committee h2 {
    color: var(--text-deep-blue);
    margin-bottom: 1.2rem;
}

.committee-group {
    margin-bottom: 1.5rem;
}

.committee-group h3 {
    color: var(--btn-secondary-bg);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.committee-group ul {
    padding-left: 1.2rem;
    margin: 0;
}

.committee-group ul li {
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
    color: #222;
}

#reviewers {
    margin: 2.5rem 0;
    background: var(--background-alt);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--light-shadow);
    padding: 2rem 1.5rem;
}

#reviewers h2 {
    color: var(--text-deep-blue);
    margin-bottom: 1.2rem;
}

.reviewer-country {
    margin-bottom: 2rem;
}

.reviewer-country h3 {
    color: var(--btn-secondary-bg);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.reviewers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.reviewer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 350px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.reviewer-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--btn-secondary-bg);
}

.reviewer-card strong {
    color: var(--text-deep-blue);
    font-size: 1rem;
    font-weight: 600;
}

.reviewer-card em {
    color: var(--text-dark-gray);
    font-size: 0.95rem;
}

#payment {
    margin: 2.5rem 0;
    background: #f4f8fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 2rem 1.5rem;
}

#payment h2 {
    color: #1a365d;
    margin-bottom: 1.2rem;
}

#payment h3 {
    color: var(--btn-secondary-bg);
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.fees-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
}

.fees-table th, .fees-table td {
    padding: 1rem 1.2rem;
    text-align: left;
}

.fees-table th {
    background: var(--navbar-blue);
    color: #fff;
    font-weight: 600;
}

.fees-table tr:nth-child(even) {
    background: rgba(238, 238, 238, 1);
}

.fees-table tr:nth-child(odd) {
    background: white;
}

.fees-table td {
    color: #222;
    font-size: 1rem;
}

#publication-licence {
    margin: 2.5rem 0;
    background: #f4f8fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 2rem 1.5rem;
}

#publication-licence h2 {
    color: #1a365d;
    margin-bottom: 1.2rem;
}

#publication-licence h3 {
    color: var(--btn-secondary-bg);
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

#publication-licence ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

#publication-licence ul li {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
    color: #222;
}

#publication-licence a {
    color: #1a365d;
    text-decoration: underline;
}

#review-policy {
    margin: 2.5rem 0;
    background: #f4f8fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,54,93,0.08);
    padding: 2rem 1.5rem;
}

#review-policy h2 {
    color: #1a365d;
    margin-bottom: 1.2rem;
}

#review-policy h3 {
    color: var(--btn-secondary-bg);
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

html {
    scroll-behavior: smooth;
}

.nav-btn-small {
    background: var(--btn-highlight-bg);
    color: var(--text-black);
    padding: 0.3em 1.2em;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    margin-left: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255,193,7,0.15);
    border: none;
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn-small:hover {
    background: var(--btn-highlight-hover);
    color: var(--text-black);
    box-shadow: 0 5px 18px rgba(212,175,55,0.25);
    transform: translateY(-1px);
}

/* Loader Styles */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--navbar-blue) 0%, var(--btn-primary-hover) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.loader-logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,71,187,0.18);
    animation: fadeIn 1.2s ease-in-out;
}

.loader-spinner {
    width: 56px;
    height: 56px;
    border: 6px solid var(--white);
    border-top: 6px solid var(--btn-secondary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 16px rgba(255,193,7,0.18);
}

.loader-text {
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive for speakers and table */
@media (max-width: 900px) {
    .speakers {
        flex-direction: column;
        align-items: center;
    }
    .speaker-card {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    section {
        margin: 10px;
    }
}

/* Responsive for tracks */
@media (max-width: 1100px) {
    .tracks-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    .track {
        max-width: 100%;
    }
}

/* Responsive for reviewers */
@media (max-width: 900px) {
    .reviewers-list {
        flex-direction: column;
        gap: 1rem;
    }
    .reviewer-card {
        width: 100%;
    }
}

/* Navigation toggle for mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
                
.past-conference-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.conference-item {
    text-align: center;
}

.clickable-conference-image {
    width: 400px;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #f0f0f0;
}

.clickable-conference-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.conference-item p {
    margin-top: 10px;
    font-weight: 500;
    color: #333;
}            

/* Mobile styles */
@media (max-width: 800px) {
    nav ul {
        position: absolute;
        top: 100%;
        height: auto;
        padding-bottom: 1rem;
        width: 100%;
        left: 0;
        right: 0;
        background: #1a365d;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: none;
        z-index: 1000;
        box-shadow: 0 4px 16px rgba(26,54,93,0.10);
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #223c6a;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul li a, .nav-btn-small {
        width: 100%;
        padding: 1rem 2rem;
        box-sizing: border-box;
        text-align: left;
    }
    .nav-toggle {
        display: flex;
    }
}