:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --header-bg: #ffffff;
    --accent: #ffb703;
}

body.dark {
    --bg-color: #0f172a;
    --text-color: #e5e7eb;
    --header-bg: #020617;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s ease;
    font-family: "Siemreap", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
}
.navbar-brand {
    /* font-family: "Caveat", cursive; */
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 25px;
}
.textBrowseType {
    /* font-family: "Caveat", cursive; */
    font-optical-sizing: auto;
    font-style: normal;
    /* text-decoration: underline; */
}
/* Existing hover underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active page underline like hover */
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 22px;
    border: none;
    background: none;
    color: var(--text-color);
}

.navbar-toggler {
    border: none;
}

body.dark .navbar-toggler-icon {
    filter: invert(1);
}

/* CAROUSEL */
/* CAROUSEL BASE */
.carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;

    /* initial animation state */
    transform: scale(1.08);
    transition: transform 1.2s ease;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    border-radius: 12px;

    /* initial animation state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Animate ONLY when carousel is ready */
.carousel.carousel-loaded .carousel-item.active img {
    transform: scale(1);
}

.carousel.carousel-loaded .carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .carousel-item img {
        height: auto;
        max-height: 60vh;
        object-fit: contain;
        background: #000;
    }

    .carousel-caption {
        padding: 12px;
    }

    .carousel-caption p {
        font-size: 14px;
    }
}


.mainPoint {
    width: 100%;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 1%;
}

.mainPoint .firstPoint,
.mainPoint .secondPoint,
.mainPoint .thirdPoint {
    width: 32%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    .mainPoint {
        flex-direction: column;
        gap: 10px;
    }

    .mainPoint .firstPoint,
    .mainPoint .secondPoint,
    .mainPoint .thirdPoint {
        width: 100%;
        height: 100px;
    }
}

.hover-card {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Optional: zoom on hover */
.hover-card:hover img {
    transform: scale(1.05);
}

/* Overlay button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

.hover-card:hover .overlay {
    opacity: 1;
}

.overlay .btn {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hover-card:hover .overlay .btn {
    transform: scale(1.1);
}
.textTitle {
    text-align: center;
    margin: 40px 0;
}
body.dark .hover-card {
    background-color: #1e293b;
    color: #f1f5f9;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}

body.dark .hover-card .card-title,
body.dark .hover-card .card-text {
    color: #f1f5f9;
}

body.dark .hover-card .overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark .hover-card .overlay .btn-danger {
    background-color: #dc2626;
    border: none;
}
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.browse-wrapper {
    display: grid;
    gap: 20px;
    margin: 20px auto;
}

/* Responsive columns */
@media (max-width: 575px) {
    .browse-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .browse-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .browse-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.browse-box {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Image fills box */
.browse-box img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.5s ease;
}

/* Zoom image on hover */
.browse-box:hover img {
    transform: scale(1.08);
}

/* Center title */
.browse-box .title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Hover overlay */
.hover-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.browse-box:hover .hover-content {
    opacity: 1;
}

.browse-box:hover .title {
    opacity: 0;
}

.footerIcon i {
    font-size: 24px;
    margin: 0 10px;
    padding-bottom: 5px; /* space between icon and underline */
    border-bottom: 2px solid #ffb703; /* underline color */
    display: inline-block; /* needed for border-bottom to work */
    transition: transform 0.3s;
}

.footerIcon i:hover {
    transform: translateY(-2px); /* optional hover effect */
}

.footer {
    width: 100%;
    padding: 40px 20px;
    background-color: #1111117b;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

body.dark .footer {
    background-color: #101730; /* blue in dark mode */
    color: #fff;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px; /* stack columns on small screens */
}

.footer-col h5 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    color: #ffb703;
    text-decoration: none;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    margin: 0;
}

/* Responsive for all devices */
@media (max-width: 992px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        max-width: 100%;
    }
}
body.dark .footer-col input.form-control {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
}

body.dark .footer-col input.form-control::placeholder {
    color: #94a3b8;
}

body.dark .footer-col .btn-warning {
    background-color: #facc15;
    color: #111;
    border: none;
}

/* Dark mode modal ViewDetail */

.dark-mode-bg {
    background-color: #121212 !important;
}
.dark-mode-text {
    color: #f1f1f1 !important;
}
.card.dark-mode-bg {
    background-color: #1e1e1e !important;
}
.card.dark-mode-text {
    color: #f1f1f1 !important;
}
.modal-content.dark-mode-bg {
    background-color: #1e1e1e !important;
}
.modal-content.dark-mode-text {
    color: #f1f1f1 !important;
}
body.dark-mode-bg {
    background-color: #121212 !important;
}
body.dark-mode-text {
    color: #f1f1f1 !important;
}
/* Add this to your existing CSS file */
.social-icon {
    color: #555;
    font-size: 20px;
    margin-right: 12px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #007bff; /* Change to your preferred hover color */
}

body.dark .social-icon {
    color: #ccc;
}

body.dark .social-icon:hover {
    color: #fff;
}