@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300&display=swap');
:root {
    --color-beige: #c7b299;
    --color-teal: #4f7b7c;
    --color-navy: #3b3980;
    --color-dark-red: #900505;
    --color-red: #e82239;
    --color-black: #000000;
}

body {
    font-family: 'Prompt', sans-serif;
    background-image: url('../images/seamless_linethai.png');
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--color-black);
    overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--color-navy);
}

/* Thai Flag Ribbon */
/* .thai-flag-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    z-index: 1050;
    pointer-events: none;
} */

/* Navbar Customization */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid var(--color-beige);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-link {
    color: var(--color-navy) !important;
    font-weight: 600;
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--color-dark-red) !important;
}

/* Banner Section */
.hero-banner {
    margin-top: 70px;
    background: #fff;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Animation Base Classes --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
    will-change: transform, opacity;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for children components */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Content Sections */
section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.94);
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.section-title {
    text-align: left;
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

/* --- Research Topics Design --- */
.topic-row {
    margin-bottom: 60px;
}

.topic-number {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.topic-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-family: 'Sarabun', sans-serif;
    font-weight: 700;
}

.topic-description {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.topic-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 0.4s ease;
}
.topic-gallery img:hover {
    transform: scale(1.05);
}

/* Conference Overview */
.overview-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid var(--color-beige);
}

/* Timeline */
.timeline-item {
    padding: 20px;
    border-radius: 10px;
    background: var(--color-navy);
    color: white;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.timeline-date {
    font-weight: bold;
    color: var(--color-beige);
    font-size: 1.1rem;
}

/* Registration Table */
.table thead {
    background-color: var(--color-teal);
    color: white;
}
.btn-register {
    background-color: var(--color-dark-red);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-register:hover {
    background-color: var(--color-red);
    color: white;
    box-shadow: 0 5px 15px rgba(232, 34, 57, 0.4);
}

/* Updated Footer Style */
footer {
    background-color: var(--color-navy); /* เปลี่ยนเป็นสีน้ำเงินเข้มจาก Palette */
    color: white;
    padding: 60px 0;
    text-align: center;
    border-top: 5px solid var(--color-beige); /* เพิ่มเส้นขอบบนสีเบจเพื่อให้ดูมีมิติ */
}
.footer-logo {
    max-height: 60px;
    margin: 20px 0;
    filter: brightness(0) invert(1); /* ทำให้โลโก้เป็นสีขาว */
    opacity: 0.9;
}
.social-links a {
    transition: 0.3s;
    color: rgba(255,255,255,0.8);
}
.social-links a:hover {
    color: var(--color-beige);
    transform: translateY(-3px);
    display: inline-block;
}

/* Login Section & Form Styling */
.login-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.login-header {
    background: var(--color-teal);
    color: white;
    padding: 15px;
    text-align: center;
}
.login-body {
    padding: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: white;
}


/* CTA Buttons */
.btn-custom {
    background-color: var(--color-navy);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
}
.btn-custom:hover {
    background-color: #e67e00;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    transform: scale(1.05);
}

.btn-outline-custom {
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 25px;
    transition: 0.3s;
}
.btn-outline-custom:hover {
    background: var(--color-navy);
    color: white;
    text-decoration: none;
}

.btn-login-nav {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
    border: 1px solid white;
    border-radius: 50px;
    padding: 5px 20px !important;
    margin-left: 10px;
    transition: 0.3s;
}
.btn-login-nav:hover {
    background-color: white;
    color: var(--color-dark-red) !important;
}

/* BTN Register */
.btn-register {
    background-color: var(--color-dark-red);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
}
.btn-register:hover {
    background-color: #e67e00;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    transform: scale(1.05);
}

.btn-outline-custom {
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 25px;
    transition: 0.3s;
}
.btn-outline-custom:hover {
    background: var(--color-navy);
    color: white;
    text-decoration: none;
}

.btn-login-nav {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
    border: 1px solid white;
    border-radius: 50px;
    padding: 5px 20px !important;
    margin-left: 10px;
    transition: 0.3s;
}
.btn-login-nav:hover {
    background-color: white;
    color: var(--color-dark-red) !important;
}

.custom-size-badge {
  font-size: 1.2rem; /* Adjusts the text size */
  padding: 0.5em 1em; /* Adjusts the overall badge dimensions */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .topic-content h3 {
        font-size: 1.5rem;
    }
    .custom-size-badge {
        font-size: 1rem;
        padding: 0.4em 0.8em;
    }
}