@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glossy-sweep {
    0% {
        transform: translateX(100%) skewX(-25deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100%) skewX(-25deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    }

    50% {
        box-shadow: 0 6px 20px rgba(44, 62, 80, 0.5);
    }

    100% {
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    }
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

.nav-menu {
    width: 100%;
    transition: all 0.3s ease;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 16px;
    background-color: #1861ac;
    padding: 12px 24px;
    border-bottom: 1px solid black;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(24, 97, 172, 0.2);
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    .nav-link:hover {
        color: yellow;
        background-color: #0d3f73;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(24, 97, 172, 0.3);
    }

        .nav-link:hover::before {
            left: 100%;
        }

.nav-link-active {
    color: yellow !important;
    background-color: #62a1f6 !important;
}

.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(98, 161, 246, 0.5);
}

/* Alternative modern style with gradient */
.nav-link.gradient {
    background: linear-gradient(135deg, #1861ac 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .nav-link.gradient:hover {
        background: linear-gradient(135deg, #0d3f73 0%, #1d4ed8 100%);
    }

/* Glass morphism style */
.nav-link.glass {
    background: rgba(24, 97, 172, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .nav-link.glass:hover {
        background: rgba(13, 63, 115, 0.9);
    }

.top_cover {
    background: radial-gradient(rgba(0, 74, 173, 0.7), rgba(93, 224, 230, 0.7)),no-repeat center/100% url('images/top_bg.png');
    height: auto;
    animation: fadeIn 0.8s ease-in;
    padding-bottom: 10px;
}

.content {
    min-height: 635px;
    background-color: #efefef;
    padding: 20px;
    border-radius: 5px;
    animation: fadeIn 0.8s ease-in;
}

.heading {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-animate:hover {
    background: linear-gradient(135deg, #0d3f73 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 97, 172, 0.4);
}

.heading-underline {
    height: 3px;
    width: 100px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.body-text {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.body-paragraph {
    text-indent: 50px;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

    .body-paragraph:last-child {
        margin-bottom: 0;
    }

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

    .table th,
    .table td {
        padding: 1rem;
        text-align: center;
        border: 1px solid #dee2e6;
    }

    .table th {
        background-color: #1861ac;
        color: white;
        font-weight: 600;
    }

    .table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .table tr:hover {
        background-color: #f1f4f7;
    }

.thai-baht {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Contact card styles */
.contact-card {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(24, 97, 172, 0.2);
        border-color: #1861ac;
    }

        .contact-card:hover .contact-image {
            transform: scale(1.05);
        }

        .contact-card:hover .contact-image-container::after {
            opacity: 0.1;
        }

/* Contact image styles - INCREASED SIZE WITH BETTER HEAD POSITIONING */
.contact-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8f9fa;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    .contact-image-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #1861ac 0%, #2563eb 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 50%;
        z-index: 1;
    }

    .contact-image-container:hover {
        border-color: #1861ac;
        box-shadow: 0 8px 30px rgba(24, 97, 172, 0.3);
    }

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Changed from 'center' to 'center top' to avoid clipping heads */
    border-radius: 50%;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

    /* Alternative positioning for images that still clip heads */
    .contact-image.adjust-up {
        object-position: center 20%; /* Move focus point up for better head positioning */
    }

    .contact-image.adjust-center-up {
        object-position: center 30%; /* Slight upward adjustment */
    }

    .contact-image.adjust-higher {
        object-position: center 10%; /* Move even higher for severely clipped images */
    }

.contact-title {
    color: #1861ac;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-name {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-email {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
    word-break: break-all;
    transition: color 0.3s ease;
}

    .contact-email:hover {
        color: #1861ac;
    }

/* Committee card styles */
.committee-card {
    background: white;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .committee-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(24, 97, 172, 0.12);
        border-color: #1861ac;
    }

.committee-name {
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.committee-affiliation {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
    font-style: italic;
}

/* Gallery styles */
.gallery-image-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .gallery-image-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(24, 97, 172, 0.15);
        border-color: #1861ac;
    }

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

    .gallery-image:hover {
        transform: scale(1.02);
    }

/* Track card styles */
.track-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .track-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(24, 97, 172, 0.15);
        border-color: #1861ac;
    }

.track-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.sustainability-border {
    border-bottom: 3px solid #27ae60;
}

.entrepreneurship-border {
    border-bottom: 3px solid #e67e22;
}

.equity-border {
    border-bottom: 3px solid #9b59b6;
}

.digital-border {
    border-bottom: 3px solid #3498db;
}

.case-practitioner-border {
    border-bottom: 3px solid #e74c3c;
}

.student-border {
    border-bottom: 3px solid #f1c40f;
}

.general-border {
    border-bottom: 3px solid #95a5a6;
}

.track-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .track-list li {
        color: #576574;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 1.5rem;
        line-height: 1.6;
    }

        .track-list li:before {
            content: "\2022";
            color: #3498db;
            position: absolute;
            left: 0;
            font-weight: bold;
            font-size: 1.2em;
        }

.deadline-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    animation: pulse 2s infinite;
}

.deadline-label {
    font-weight: 600;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.deadline-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f39c12;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1861ac 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 97, 172, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0d3f73 0%, #1d4ed8 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(24, 97, 172, 0.4);
        color: white;
        text-decoration: none;
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(24, 97, 172, 0.3);
    }

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}




.glossy-card {
    animation: glossy-sweep 3s;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.9em;
    }

        .table th,
        .table td {
            padding: 0.5rem;
        }

    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-image-container {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .contact-name {
        font-size: 1rem;
    }

    .contact-email {
        font-size: 0.9rem;
    }

    .committee-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        min-height: 160px;
    }

    .committee-name {
        font-size: 1rem;
    }

    .committee-affiliation {
        font-size: 0.85rem;
    }

    .gallery-image-container {
        margin-bottom: 1rem;
    }

    .track-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .track-title {
        font-size: 1.3rem;
    }

    .deadline-banner {
        padding: 1rem;
    }

    .deadline-label {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .deadline-date {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .display-5-md {
        font-size: 1.5rem !important;
    }

    .fs-5-md {
        font-size: 1rem !important;
    }

    .h2-md {
        font-size: 1.5rem !important;
    }
}

.mobile-nav-toggle {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 42px;
    z-index: 9999;
    border: 0;
    background: linear-gradient(135deg, #0a2a5c 0%, #1861ac 100%);
    font-size: 32px;
    cursor: pointer;
    padding: 0px 5px 0px 5px;
    color: white;
}

.mobile-nav-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(24, 97, 172, 0.98);
    z-index: 9998;
    overflow-y: auto;
    padding-top: 70px; /* Space for toggle button */
    display: flex !important;
    flex-direction: column;
    animation: slideInFromLeft 0.3s ease-out;
}

    .mobile-nav-fullscreen .nav-item {
        width: 100%;
        margin-bottom: 2px;
    }

    .mobile-nav-fullscreen .nav-link {
        width: 100%;
        padding: 20px 30px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        box-shadow: none;
    }

        .mobile-nav-fullscreen .nav-link:hover {
            background-color: rgba(13, 63, 115, 0.8);
            transform: none;
            box-shadow: none;
        }

.pdf-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .speaker-card {
        padding: 1.5rem;
    }

    .speaker-image-container {
        max-width: 200px;
        height: 200px;
    }

    .speaker-name {
        font-size: 1.2rem;
    }

    .speaker-title,
    .speaker-organization {
        font-size: 0.9rem;
    }

    .speaker-bio-container {
        padding: 1rem 0;
    }

    .speaker-bio {
        padding: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .schedule-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pdf-embed {
        height: 600px;
    }

    .pdf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pdf-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .pdf-embed {
        height: 500px;
    }

    .pdf-viewer-container {
        padding: 1rem;
    }
}
