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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.abstracts-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* .abstracts-btn::after {
    content: " ↓";
}


/* Navigation Bar */
.navbar {
    background-color: #1a3a52;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.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: 1rem;                /*2 rem*/
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffcc00;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.content {
    background-color: white;
    padding: 3rem 0;
}

.content h1 {
    color: #1a3a52;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.content h2 {
    color: #2c5aa0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcc00;
}

.content h3 {
    color: #1a3a52;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content h4 {
    color: #2c5aa0;
    margin-top: 5rem;
    margin-bottom: 0rem;
    font-size: 2rem;
    padding-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #ffcc00;
    color: #1a3a52;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: #ffb800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Welcome Section */
.welcome {
    background-color: white;
    padding: 3rem 0;
}

.welcome h2 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 2rem;
}

.welcome p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Participant Cards */
.participant {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #2c5aa0;
    border-radius: 4px;
}

.participant h3 {
    color: #1a3a52;
    margin-bottom: 0.5rem;
}

.participant p {
    margin-bottom: 0.5rem;
}

/* Hotel Cards */
.hotel {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hotel h3 {
    color: #1a3a52;
    margin-bottom: 0.5rem;
}

.hotel p {
    margin-bottom: 0.5rem;
}

/* Registration Table */
.registration-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.registration-table th {
    background-color: #1a3a52;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.registration-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.registration-table tr:hover {
    background-color: #f9f9f9;
}

/* Registration Form */
.registration-form {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a3a52;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
}

.registration-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #1a3a52;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

   /* ============================
    Previous conferences grid
    ============================ */

    .conf-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ALWAYS 2 per row on desktop */
        gap: 30px;
        margin-top: 30px;
    }

    .conf-card{
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .conf-card:hover{
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.12);
        border-color: #2c5aa0;
    }

    .conf-media{
        display: block;
    }

    .conf-media img{
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

    .conf-body{
        padding: 1rem 1.1rem 1.1rem;
    }

    .conf-title{
        margin: 0 0 0.4rem;
        font-size: 1.15rem;
        color: #1a3a52;
    }

    .conf-title a{
        text-decoration: none;
        color: inherit;
    }

    .conf-title a:hover{
        color: #2c5aa0;
        text-decoration: underline;
    }

    .conf-meta{
        margin: 0;
        opacity: 0.8;
        font-size: 0.95rem;
    }
    .form-center{
        display:flex;
        justify-content:center;   /* horizontal center */
        align-items:center;
        width:100%;
        margin-top:30px;
        padding:0 10px;  
    }

    .form-center iframe{
        width:100%;
        max-width:1140px;   /* desktop width */
        height:1820px;
        border:none;
    }

    @media (max-width:768px){
    .form-center iframe{
    height:2100px;
    }
    }




    /* Responsive Design */
    @media (max-width: 768px) {
        .hero h1 {
            font-size: 2rem;
        }

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

        .nav-links {
            gap: 1rem;
            font-size: 0.9rem;
        }

        .navbar .container {
            flex-direction: column;
            gap: 1rem;
        }

        .content h1 {
            font-size: 1.8rem;
        }

        .content h2 {
            font-size: 1.3rem;
        }

        .registration-table {
            font-size: 0.9rem;
        }

        .registration-table th,
        .registration-table td {
            padding: 0.7rem;
        }


    


    }





.participants-wrapper {
    overflow-x: auto;
}

.participant {
    display: grid;
    grid-template-columns: 250px minmax(350px, 1fr) 100px;
    column-gap: 105px;
    align-items: start;

    min-width: 750px;
    margin: 0;
    padding: 8px 0;

    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

.participant::before,
.participant-name::before {
    content: none !important;
    display: none !important;
}

.participant-name {
    font-weight: bold;
}

.participant-institution {
    white-space: normal;
}

.participant-country {
    white-space: nowrap;
}

.proceedings p {
    text-align: justify;
}


/* ============================
   Conference Programme
   ============================ */

.programme-wrapper {
    width: 100%;
    margin-top: 1rem;
}

.programme-row {
    display: grid;
    grid-template-columns: 125px 190px minmax(280px, 1fr) 275px;
    gap: 20px;
    align-items: start;

    background-color: #f9f9f9; /* same shade as Participants */
    padding: 12px 14px;
    margin: 8px 0;
    border-radius: 4px;
}

.programme-time {
    font-weight: bold;
    color: #1a3a52;
    white-space: nowrap;
}

.programme-speaker {
    font-weight: 600;
    color: #333;
}

.programme-title {
    line-height: 1.45;
}

.programme-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: bold;
}

.programme-links a {
    color: #2c5aa0;
    text-decoration: none;
}

.programme-links a:hover {
    color: #1a3a52;
    text-decoration: underline;
}

.programme-chair {
    display: block;
    width: 100%;
    margin: 30px 0 10px;
    padding: 12px 14px;
    color: #1a3a52;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.programme-break,
.programme-event {
    background-color: #f9f9f9;
}

.programme-break .programme-title,
.programme-event .programme-title {
    font-style: italic;
}

/* Tablet */
@media (max-width: 1000px) {
    .programme-row {
        grid-template-columns: 115px 170px minmax(240px, 1fr);
    }

    .programme-links {
        grid-column: 2 / 4;
        justify-content: flex-start;
        margin-top: 2px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .programme-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px;
    }

    .programme-time,
    .programme-speaker,
    .programme-title,
    .programme-links {
        grid-column: 1;
    }

    .programme-speaker:empty {
        display: none;
    }

    .programme-links {
        justify-content: flex-start;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .programme-chair {
        padding: 12px 14px;
        margin-top: 24px;
    }
}

.programme-links-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.programme-link-line {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .programme-links-stacked {
        align-items: flex-start;
    }
}

.programme-opening {
    align-items: center;
}


/* ============================
   Authors' Index
   ============================ */

.authors-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(21, auto);
    grid-auto-flow: column;
    column-gap: 4rem;
    row-gap: 0;
    margin-top: 1.5rem;
}

.author-index-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #ddd;
}

.author-index-name {
    font-weight: bold;
    color: #1a3a52;
}

.author-index-pages {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .authors-index-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        column-gap: 0;
    }
}