:root {
    --primary-pink: #fce4ec;
    /* ชมพูอ่อนมาก */
    --accent-pink: #f06292;
    /* ชมพูเน้น */
    --light-gray: #f8f9fa;
    /* เทาอ่อน */
    --dark-gray: #454d55;
    /* เทาเข้ม */
    --pink: #e83e8c;
    /* ชมพู */
    --dark-gray: #343a40;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Scroll Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Section */
.parallax-header {
    position: relative;
    height: 50vh;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://kingscup.ubru.ac.th/img/banner-bg.jpg'); */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.header-content h1 {
    font-size: 4rem;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.5rem;
    background: rgba(240, 98, 146, 0.8);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
}


/* Sticky Navbar Custom */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid var(--accent-pink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 400;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent-pink) !important;
}

.nav-link.active {
    color: var(--pink) !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--primary-pink);
    color: var(--accent-pink);
    border-radius: 5px;
}

.dropdown-item.active {
    background-color: var(--accent-pink);
    color: white;
    border-radius: 5px;
}

/* Card & Table Style */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-pink);
    border-radius: 2px;
}

.table-custom {
    background: white;
    border-radius: 15px;
    /* overflow: hidden; */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.table-custom thead {
    background-color: var(--primary-pink);
}

.result-card {
    background: white;
    border-left: 5px solid var(--accent-pink);
    transition: transform 0.3s;
    border-radius: 10px;
}

.result-card:hover {
    transform: translateY(-5px);
}

.score-box {
    background: var(--dark-gray);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 3rem 0;
}

/* News Section Styles */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    object-fit: cover;
}

.news-no-img {
    height: 200px;
    background: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
}

.btn-pink {
    background-color: var(--pink);
    color: #fff;
}

.btn-pink:hover {
    background-color: #d63384;
}