/* css/style.css */

/* COLOR PALETTE
   Navy Deep   : #061325
   Navy Soft   : #0b1e3a
   Gold        : #f3c623
   Gold Soft   : #f7e08a
   White       : #ffffff
   Light Gray  : #f4f6fb
*/

:root {
    --auc-navy: #061325;
    --auc-navy-soft: #0b1e3a;
    --auc-gold: #f3c623;
    --auc-gold-soft: #f7e08a;
    --auc-white: #ffffff;
    --auc-light-gray: #f4f6fb;
    --auc-text-muted: #8c96b0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--auc-light-gray);
    color: #1b1f2a;
    padding-top: 72px; /* กัน navbar fixed-top ทับ */
}

/* NAVBAR */
.auc2-navbar {
    background: linear-gradient(90deg, var(--auc-navy) 0%, #061b3a 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.auc2-navbar .navbar-brand .brand-text {
    line-height: 1.1;
    font-weight: 600;
}

.auc2-navbar .tagline {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auc-gold-soft);
}

.auc2-navbar .nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.5rem 0.8rem;
}

.auc2-navbar .nav-link.active,
.auc2-navbar .nav-link:hover {
    color: var(--auc-gold) !important;
}

/* BUTTONS */
.btn-gold {
    background-color: var(--auc-gold);
    color: #111;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    background-color: #ffd54d;
    color: #111;
}

.btn-outline-gold {
    border: 1px solid var(--auc-gold);
    color: var(--auc-gold);
    background-color: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--auc-gold);
    color: #111;
}

/* HERO */
.hero-section {
    min-height: 85vh;
    background: radial-gradient(circle at top left, #1a3a7c 0, var(--auc-navy) 38%, #020816 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: -150px;
    background-image:
        radial-gradient(ellipse at top right, rgba(243, 198, 35, 0.15), transparent 60%),
        radial-gradient(circle at bottom left, rgba(141, 148, 245, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.text-gold {
    color: var(--auc-gold);
}

.hero-info-card {
    border-radius: 1.3rem;
    padding: 1.5rem 1.7rem;
    background: rgba(6, 19, 37, 0.88);
    border: 1px solid rgba(243, 198, 35, 0.25);
    backdrop-filter: blur(8px);
}

/* SECTIONS */
.section-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.bg-deep-blue {
    background-color: var(--auc-navy-soft);
}

.bg-deep-blue-2 {
    background: radial-gradient(circle at top, #1e3a70, var(--auc-navy-soft));
}

/* BADGES */
.bg-gold-soft {
    background-color: rgba(243, 198, 35, 0.18);
    color: var(--auc-gold);
}

/* CARDS */
.info-card {
    border-radius: 1.1rem;
    padding: 1.5rem 1.6rem;
    background-color: var(--auc-white);
    border: 1px solid rgba(6, 19, 37, 0.06);
    box-shadow: 0 12px 30px rgba(6, 19, 37, 0.07);
}

.info-card h3 {
    font-weight: 600;
}

.info-card p {
    font-size: 0.9rem;
}

/* LINKS */
.link-gold {
    color: var(--auc-navy-soft);
    font-weight: 600;
}

.link-gold:hover {
    color: var(--auc-gold);
}

/* FOOTER */
.auc2-footer {
    background: #020813;
    color: #f0f2ff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    text-decoration: none;
    color: #b2b7d4;
}

.footer-links a:hover {
    color: var(--auc-gold);
}

/* CAROUSEL */
#newsCarousel .carousel-item {
    padding: 1rem 0;
}

#newsCarousel img {
    object-fit: cover;
    max-height: 260px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.7));
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
}
/* MOU PAGE HERO */
.page-hero-mou {
    min-height: 45vh;
    background: radial-gradient(circle at center, rgba(243,198,35,0.18), transparent 65%),
                linear-gradient(120deg, var(--auc-navy-soft), #020814 80%);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero-mou::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(243,198,35,0.12);
    border-radius: 50%;
    top: -120px;
    right: -120px;
    filter: blur(60px);
}

.page-hero-mou h1 {
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ABOUT PAGE HERO */
.page-hero-about {
    min-height: 40vh;
    background: linear-gradient(120deg, #061325, #0b1e3a 70%);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero-about::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    top: -120px;
    left: -120px;
    filter: blur(70px);
}

.page-hero-about h1 {
    letter-spacing: 0.04em;
}
/* HERO: COMMITTEE */
.page-hero-committee {
    min-height: 38vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.page-hero-committee::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(243,198,35,0.12);
    border-radius: 50%;
    right: -100px;
    top: -90px;
    filter: blur(60px);
}

/* COMMITTEE CARDS */
.committee-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 12px 28px rgba(6,19,37,0.08);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

.committee-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(243,198,35,0.6);
}
/* HERO: TRACKS */
.page-hero-tracks {
    min-height: 38vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.page-hero-tracks::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    left: -100px;
    top: -90px;
    filter: blur(60px);
}

/* TRACK CARDS */
.track-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(6,19,37,0.08);
    border: 1px solid rgba(6,19,37,0.06);
    transition: 0.2s ease;
}

.track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(6,19,37,0.12);
}

.track-title {
    color: var(--auc-navy-soft);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* HERO: SUBMISSION */
.page-hero-submission {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    position: relative;
    text-align: center;
}

.page-hero-submission::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    right: -120px;
    top: -90px;
    filter: blur(60px);
}

/* Submission Cards */
.submission-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 12px 26px rgba(6,19,37,0.08);
    transition: 0.2s ease;
}

.submission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

.submission-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-navy {
    color: var(--auc-navy);
}
/* HERO: PROCEEDINGS */
.page-hero-proceeding {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    position: relative;
    text-align: center;
}

.page-hero-proceeding::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    left: -110px;
    top: -90px;
    filter: blur(60px);
}

/* Proceeding list */
.proceeding-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.proceeding-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 12px 26px rgba(6,19,37,0.08);
    padding: 1.5rem 1.7rem;
    transition: 0.2s ease;
}

.proceeding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

.year-title {
    font-weight: 700;
    color: var(--auc-navy-soft);
    margin-bottom: 0.2rem;
}

.location {
    color: var(--auc-text-muted);
}

.links a {
    color: var(--auc-navy-soft);
}

.links a:hover {
    color: var(--auc-gold);
}
/* HERO: GALLERY */
.page-hero-gallery {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-hero-gallery::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    left: -120px;
    top: -80px;
    filter: blur(60px);
}

/* GALLERY GRID */
.gallery-card {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 1rem;
    transition: 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.85;
}

/* MODAL IMAGE */
.modal-full-img {
    width: 100%;
    border-radius: 1rem;
}
/* HERO: CONTACT */
.page-hero-contact {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-hero-contact::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    right: -120px;
    top: -80px;
    filter: blur(60px);
}

/* CONTACT CARD */
.contact-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 12px 26px rgba(6,19,37,0.08);
    border: 1px solid rgba(6,19,37,0.06);
}

.contact-card form input,
.contact-card form textarea {
    border-radius: 0.6rem;
}

/* MAP */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(6,19,37,0.08);
}
/* HERO: NEWS */
.page-hero-news {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    position: relative;
    text-align: center;
}

.page-hero-news::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    right: -120px;
    top: -80px;
    filter: blur(60px);
}

/* NEWS CARD */
.news-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(6, 19, 37, 0.08);
    border: 1px solid rgba(6,19,37,0.06);
    transition: 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

/* NEWS IMAGE */
.news-img-box {
    height: 180px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}
/* Dropdown styling */
.dropdown-menu {
    border-radius: 0.8rem;
    padding: 0.6rem 0;
    background: #0b1e3a;
    border: 1px solid rgba(243,198,35,0.25);
}

.dropdown-menu .dropdown-item {
    color: #f0f2ff;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(243,198,35,0.18);
    color: #fff;
}
/* HERO: LOGO PAGE */
.page-hero-logo {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-hero-logo::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    left: -120px;
    top: -80px;
    filter: blur(60px);
}

/* LOGO CARDS */
.logo-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 10px 24px rgba(6,19,37,0.08);
    transition: 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

.logo-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}
/* HERO: PAST CONFERENCES */
.page-hero-past {
    min-height: 40vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-hero-past::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(243,198,35,0.10);
    border-radius: 50%;
    left: -120px;
    top: -80px;
    filter: blur(60px);
}

/* PAST LIST */
.past-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.past-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 10px 26px rgba(6,19,37,0.08);
    padding: 1.4rem 1.6rem;
    transition: 0.2s ease;
}

.past-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(6,19,37,0.12);
}

.year-title {
    font-weight: 700;
    color: var(--auc-navy-soft);
    margin-bottom: 0.1rem;
}

.location {
    color: var(--auc-text-muted);
}

/* TIMELINE WRAPPER */
.timeline {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Vertical Line */
.timeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f3c623, #d1a514);
    border-radius: 4px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 15px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: #f3c623;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(243,198,35,0.25);
    animation: pulse 2s infinite ease-in-out;
}

/* Content Box */
.timeline-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(6,19,37,0.06);
    box-shadow: 0 8px 22px rgba(6,19,37,0.08);
    transition: 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6,19,37,0.12);
}

/* Pulse Animation for Dots */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(243,198,35,0.25);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(243,198,35,0.05);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(243,198,35,0.25);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .timeline::before {
        left: 15px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .timeline-dot {
        left: 6px;
    }
}

/* History Gallery */
.history-photo-card {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.25s ease;
}

.history-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.history-photo-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1rem;
    transition: 0.25s ease;
}

.history-photo-thumb:hover {
    opacity: 0.85;
}

/* Modal Full Image */
.modal-full-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* Dropdown Divider สีทอง */
.dropdown-menu .dropdown-divider {
    border-top: 1px solid #676767 !important;  /* สีทอง */
    opacity: 1 !important; /* ให้สีชัด */
    margin: 0.4rem 0;      /* ปรับระยะห่างตามต้องการ */
}

.page-hero-news {
    min-height: 30vh;
    background: linear-gradient(115deg, #061325, #0b1e3a 70%);
    padding: 3rem 0;
}

.news-detail-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.news-detail-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

#modalImage {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
}

.gallery-img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

