/*
 * VCCI Custom CSS
 */

body {
    font-family: 'Inter', sans-serif;
    background-color: #F3F6FA;
    scroll-behavior: smooth;
}

/* Home page banner */
.vcci-home-banner {
    position: relative;
    overflow: hidden;
    background: #013580;
    aspect-ratio: 16 / 5;
    min-height: 280px;
}

.vcci-home-banner__slides,
.vcci-home-banner__slide,
.vcci-home-banner__slide img,
.vcci-home-banner__empty {
    width: 100%;
    height: 100%;
}

.vcci-home-banner__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 700ms ease;
}

.vcci-home-banner__slide.is-active { opacity: 1; }
.vcci-home-banner__slide img { display: block; object-fit: cover; }

.vcci-home-banner__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(1, 53, 128, 0.56);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 180ms ease;
}

.vcci-home-banner__arrow:hover { background: #d8963d; }
.vcci-home-banner__arrow--prev { left: 24px; }
.vcci-home-banner__arrow--next { right: 24px; }

.vcci-home-banner__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.vcci-home-banner__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.vcci-home-banner__dots button.is-active { background: #d8963d; border-color: #d8963d; }

.vcci-home-banner__empty {
    display: grid;
    place-items: center;
    padding: 32px;
    background: linear-gradient(110deg, #013580, #0d47a1);
    color: #fff;
    text-align: center;
}

.vcci-home-banner__empty p { margin: 0 0 8px; color: #f4b44e; font-size: 1.5rem; font-weight: 700; }
.vcci-home-banner__empty span { font-size: 0.9rem; }

/* Partner carousel */
.vcci-partner-viewport { overflow: hidden; }
.vcci-partner-track { display: flex; transition: transform 500ms ease; }
.vcci-partner-slide { flex: 0 0 20%; min-width: 0; padding: 0 10px; }
.vcci-partner-logo { display: flex; width: 100%; height: 80px; align-items: center; justify-content: center; overflow: hidden; color: #9ca3af; font-size: 0.75rem; text-align: center; }
.vcci-partner-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.vcci-partner-slider--column .vcci-partner-slide { flex-basis: 33.333%; padding: 0 6px; }
.vcci-partner-slider--column .vcci-partner-logo { height: 72px; }

@media (max-width: 1023px) {
    .vcci-partner-slide { flex-basis: 33.333%; }
}

@media (max-width: 639px) {
    .vcci-partner-slide { flex-basis: 50%; padding: 0 6px; }
    .vcci-partner-logo { height: 64px; }
    .vcci-partner-slider--column .vcci-partner-slide { flex-basis: 50%; }
}

@media (max-width: 640px) {
    .vcci-home-banner { aspect-ratio: 16 / 8; min-height: 200px; }
    .vcci-home-banner__arrow { width: 34px; height: 34px; font-size: 0.8rem; }
    .vcci-home-banner__arrow--prev { left: 12px; }
    .vcci-home-banner__arrow--next { right: 12px; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #D8963D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b57a2c;
}

/* WordPress Desktop Menu Tailwind Overrides */
.main-navigation > ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1E2E4A;
    margin: 0;
    padding: 0;
}

@media (min-width: 1280px) {
    .main-navigation > ul {
        gap: 2rem;
    }
}

.main-navigation li {
    position: relative;
    list-style: none;
}

.main-navigation a {
    display: block;
    padding-bottom: 0.25rem;
    transition: color 0.2s;
    text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #D8963D;
}

.main-navigation .current-menu-item > a {
    border-bottom: 2px solid #D8963D;
}

/* Sub-menu styling */
.main-navigation .menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    width: 260px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    border: 1px solid #f3f4f6;
    display: none !important;
    flex-direction: column;
    z-index: 50;
}

/* Invisible bridge to prevent hover loss */
.main-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: flex !important;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    text-transform: none;
    font-weight: 500;
    font-size: 0.8rem;
    color: #374151;
    padding: 0.5rem 1rem;
    border-bottom: none !important;
}

.main-navigation .sub-menu a:hover {
    background-color: #f9fafb;
    color: #D8963D;
}

/* Deep sub-menus (3rd level) */
.main-navigation .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 0.1rem;
}

/* Deep sub-menu chevron (right pointing) */
.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: '\f054';
    float: right;
    margin-top: 2px;
}

/* Mobile Menu Styles */
#mobile-menu .menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

#mobile-menu li {
    list-style: none;
}

#mobile-menu a {
    display: block;
    color: #1E2E4A;
    text-transform: uppercase;
    transition: color 0.2s;
}

#mobile-menu a:hover {
    color: #D8963D;
}

#mobile-menu .sub-menu {
    position: static;
    display: block !important;
    box-shadow: none;
    border: none;
    background: transparent;
    width: auto;
    padding-left: 1rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

#mobile-menu .sub-menu a {
    text-transform: none;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0.35rem 0;
}

#mobile-menu .sub-menu a:hover {
    color: #D8963D;
    background: transparent;
}

/* ---------------------------------------------------------
   Flatpickr Custom Styles
--------------------------------------------------------- */
.flatpickr-calendar {
    font-family: 'Inter', sans-serif;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding-bottom: 10px;
}
.flatpickr-months .flatpickr-month {
    height: 44px;
}
.flatpickr-current-month {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 10px;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    padding: 10px;
    color: #005187;
    fill: #005187;
}
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #D8963D;
}
.flatpickr-innerContainer {
    margin-top: 5px;
}
.flatpickr-weekdays {
    background: #005187;
    height: 36px;
}
span.flatpickr-weekday {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}
.flatpickr-day {
    font-weight: 500;
    color: #111827;
}
.flatpickr-day.selected, 
.flatpickr-day.selected:focus, 
.flatpickr-day.selected:hover {
    background: transparent;
    border: 1.5px solid #005187;
    color: #111827;
    font-weight: 700;
}
.flatpickr-day:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
}
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover, 
.flatpickr-day.prevMonthDay, 
.flatpickr-day.nextMonthDay, 
.flatpickr-day.notAllowed, 
.flatpickr-day.notAllowed.prevMonthDay, 
.flatpickr-day.notAllowed.nextMonthDay {
    color: #d1d5db;
}
