/* ===== Font ===== */
* {
    font-family: "Kanit", sans-serif;
}

/* ===== Font ===== */

:root {
    --theme-gradient: linear-gradient(135deg, #7209b7 0%, #f72585 50%, #ff9e00 100%);
    --theme-color-primary: #f72585;
    --theme-color-secondary: #7209b7;
    --footer-bg: #212529;
    --footer-text: #adb5bd;
}

/* --- Navbar Styles --- */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid;
    border-image: var(--theme-gradient) 1;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand small {
    -webkit-text-fill-color: #6c757d;
    font-weight: 400;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    margin: 0 5px;
    position: relative;
}

.nav-link i {
    margin-right: 5px;
    color: var(--theme-color-primary);
}

.nav-link:hover {
    color: var(--theme-color-secondary) !important;
    background-color: rgba(247, 37, 133, 0.05);
    border-radius: 5px;
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: var(--theme-color-secondary);
}

.nav-link.active {
    color: var(--theme-color-secondary) !important;
    background-color: rgba(114, 9, 183, 0.1);
    border-radius: 5px;
}

.nav-link.active i {
    color: var(--theme-color-secondary);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-weight: 500;
    color: #555;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(247, 37, 133, 0.08);
    color: var(--theme-color-secondary);
    padding-left: 25px;
}

.btn-login {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    color: white !important;
    border: none;
    background: var(--theme-gradient);
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
    transition: 0.5s;
}

.btn-login:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.6);
}

/* --- SWIPER CAROUSEL CUSTOM STYLES --- */
.hero-slider {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--theme-color-primary);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--theme-color-primary) !important;
    width: 30px;
    border-radius: 5px;
}

/* --- OPTION 2: QUICK LINKS STYLES --- */
.quick-links-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.quick-link-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(247, 37, 133, 0.1);
    color: var(--theme-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: all 0.4s ease;
    font-size: 1.8rem;
}

.quick-link-card:hover .icon-box {
    background: var(--theme-gradient);
    color: white;
    transform: rotateY(180deg);
}

.quick-link-card:hover .icon-box i {
    transform: rotateY(-180deg);
}

.quick-link-title {
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
}

/* --- OPTION 1: DIRECTOR MESSAGE STYLES --- */
.director-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.director-img-wrapper {
    position: relative;
    padding: 20px;
}

.director-img {
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.director-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.quote-icon {
    font-size: 4rem;
    color: rgba(247, 37, 133, 0.1);
    position: absolute;
    top: -20px;
    left: 0;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--theme-color-secondary);
}

/* --- OPTION 3: CURRICULUM STYLES --- */
.curriculum-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

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

.curr-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.curr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.curriculum-card:hover .curr-img-wrap img {
    transform: scale(1.1);
}

.curr-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--theme-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER STYLES --- */
.footer-section {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    margin-top: 80px;
}

.footer-logo-text {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--theme-gradient);
    border-radius: 2px;
}

.footer-link {
    display: block;
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--theme-color-primary);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.footer-contact i {
    color: var(--theme-color-primary);
    margin-right: 10px;
    margin-top: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--theme-gradient);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: flex-start !important;
    }

    .btn-login {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding-left: 10px;
        width: 100%;
    }

    .hero-slider {
        height: 400px;
    }

    .quick-links-container {
        margin-top: 30px;
    }

    .director-img {
        transform: rotate(0);
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .hero-slider {
        height: 350px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .quick-link-title {
        font-size: 0.9rem;
    }
}

/* --- PDPA Banner Styles --- */
.pdpa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
    padding: 25px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid;
    border-image: var(--theme-gradient) 1;

    /* ซ่อนไว้ก่อน แล้วค่อยให้ JS สั่งโชว์ */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pdpa-banner.show {
    transform: translateY(0);
}