:root {
    --primary-yellow: #ffd700;
    --dark-blue: #0a1931;
    --gold-btn: #c5a059;
    --text-dark: #1a1a1a;
    --yellow-dark: #e6c200;
    --yellow-light: #fffcf0;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --mesh-grad:
        radial-gradient(at 0% 0%, hsla(50, 100%, 70%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(45, 100%, 80%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%,
            hsla(40, 100%, 85%, 1) 0,
            transparent 50%),
        radial-gradient(at 0% 100%, hsla(55, 100%, 75%, 1) 0, transparent 50%);
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--yellow-light);
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--yellow-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 10px;
}

/* Topbar */
.topbar {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 600;
}

.topbar a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: opacity 0.3s;
}

.topbar a:hover {
    color: var(--text-dark);
    opacity: 0.8;
}

/* Navbar */
.navbar-custom-yellow {
    background: rgba(255, 215, 0, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-blue) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text-dark) !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dropdown-menu {
    background-color: white;
    border: 1px solid var(--yellow-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dropdown-item:hover {
    background-color: var(--yellow-light);
    color: var(--dark-blue);
}

/* Nested Dropdown/Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Triangle for submenu */
.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
}

@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-left: 1rem;
        border: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.5);
    }
}

.btn-microsite {
    background-color: var(--dark-blue);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(10, 25, 49, 0.2);
}

.btn-microsite:hover {
    background-color: #000;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(10, 25, 49, 0.3);
}

/* Carousel */
.hero-section {
    padding: 40px 0;
}

.slider-img {
    width: 100%;
    max-width: 1100px;
    border: 10px solid white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Program Section */
.programs-section {
    background: linear-gradient(180deg, var(--primary-yellow) 0%, #fff 100%);
}

.program-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #fff9e6;
    color: var(--gold-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.program-card:hover .icon-box {
    background-color: var(--gold-btn);
    color: white;
}

.text-gold {
    color: var(--dark-blue);
    /* Changed from gold-btn for better contrast on yellow-ish sections */
}

.fw-extrabold {
    font-weight: 800;
}

.bg-primary-yellow {
    background-color: var(--primary-yellow);
}

.btn-primary-yellow {
    background-color: var(--primary-yellow);
    border: none;
    color: var(--dark-blue);
    font-weight: 700;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.section-title.mx-auto::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    color: var(--dark-blue);
    font-weight: 800;
}

.section-title::after {
    display: none;
    /* Removed old style in favor of manual line in blade */
}

/* News Section */
.news-section {
    background: var(--yellow-light);
    background-image: var(--mesh-grad);
    position: relative;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Announcement Section */
.announcement-section {
    background-color: white !important;
}

.list-group-item {
    transition: background-color 0.3s;
}

.list-group-item:hover {
    background-color: #fff9e6 !important;
}

/* Footer Icons */
.footer {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
}

.footer a {
    color: var(--dark-blue) !important;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-dark) !important;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

/* Decorative Silhouettes */
.blob-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--yellow-dark) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: float 15s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

.blob-1 {
    top: -50px;
    right: -50px;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--gold-btn) 0%, transparent 70%);
}

html {
    scroll-behavior: smooth;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 30px;
    bottom: 30px;
    z-index: 996;
    background: var(--gold-btn);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
    color: white;
    text-decoration: none;
    font-size: 24px;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.back-to-top:hover {
    background: #b08d4a;
    color: white;
}

/* Modal Custom Styles */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg,
            rgba(10, 25, 49, 0.8) 0%,
            rgba(10, 25, 49, 0.2) 100%);
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #eee;
}

.modal-body .form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.1);
}

/* Video Gallery Section */
.video-gallery-section {
    background-color: var(--primary-yellow);
    padding: 80px 0;
}

.text-yellow {
    color: var(--primary-yellow);
}

.video-card {
    border: 2px solid var(--dark-blue);
    border-radius: 4px;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card-header {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-header h6 {
    font-size: 0.9rem;
    line-height: 1.2;
}

.video-card-header p {
    font-size: 0.75rem;
    line-height: 1.3;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card-footer {
    background-color: var(--primary-yellow);
    color: var(--dark-blue);
    margin-top: auto;
}

.video-card-footer small {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-yellow);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--yellow-dark);
    }
}