/* Custom Color Overrides from V2X Template */
:root {
    --bs-primary: #0056D2;
    /* V2X Blue */
    --bs-secondary: #0041a8;
    /* Darker Blue */
    --bs-success: #0056D2;
    /* Force Blue */
    --bs-info: #0056D2;
    /* Force Blue */
    --bs-warning: #FFC107;
    /* V2X Yellow */
    --bs-danger: #FFC107;
    /* Force Yellow for alerts */
    --bs-orange: #FFC107;
    /* V2X Yellow */
    --bs-link-color: #0056D2;
    --bs-link-hover-color: #0041a8;
}

/* Ensure Header Background is visible (Dark Blue) so white text shows up 
.main-header {
    background-color: #061434 !important;
     Secondary Dark Blue 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999 !important;
}
*/

/* Primary Elements (Blue) */
.btn-primary,
.bg-primary,
.badge-primary,
.nav-pills .nav-link.active,
.page-item.active .page-link {
    background-color: #0056D2 !important;
    border-color: #0056D2 !important;
    color: #fff !important;
}

.text-primary,
a.text-primary:hover,
a.text-primary:focus {
    color: #0056D2 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0044A6 !important;
    border-color: #0044A6 !important;
}

.btn-outline-primary {
    color: #0056D2 !important;
    border-color: #0056D2 !important;
}

.btn-outline-primary:hover {
    background-color: #0056D2 !important;
    color: #fff !important;
}

/* Warning/Highlight Elements (Yellow) */
.btn-warning,
.bg-warning,
.badge-warning,
.highlight-hero-title-inner,
.highlight-hero-title {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #0B0D0F !important;
    /* Dark text for contrast */
}

.text-warning {
    color: #FFC107 !important;
}

/* Specific Hero Overrides */
.hero-title .highlight-hero-title-inner {
    background: #FFC107 !important;
    color: #000 !important;
}

/* Premium Card Animations & Effects */
.course-hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 86, 210, 0.15) !important;
}

.course-hover-card:hover .transition-transform {
    transform: scale(1.08) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.backdrop-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-hover-scale {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

.course-image-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
}

/* --- Shared Contact Section Styles --- */
.contact-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    padding: 80px 0;
    color: white;
    /* margin-top: 50px; in index.php only? Keep it flexible or use specific class if needed */
    border-radius: 50px 50px 0 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bs-warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a2e;
    /* Dark for contrast on yellow */
    margin-bottom: 1rem;
}

/* Map Container Styles */
.map-container iframe {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    border: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.yellow-highlight {
    background: var(--bs-warning);
    color: #1a1a2e;
    padding: 0 15px;
    display: inline-block;
    transform: skewX(-10deg);
}

.yellow-highlight span {
    display: inline-block;
    transform: skewX(10deg);
}

/* Header Core Styles */
/* Header Core Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

/* Ensure no top margin on body */
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Logo */
.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.hero-logo {
    max-height: 300px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    border-radius: 50%;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #1a1a2e;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #0056D2;
}

.navbar-nav .nav-link.active {
    color: #0056D2;
    font-weight: 700;
}

/* Modern Hover Indicator */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0056D2;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20px;
}

/* Custom Buttons - Professional Profile */
.btn-primary-custom {
    background-color: #0056D2;
    color: white;
    padding: 8px 24px;
    font-size: 0.95rem;
    border: 2px solid #0056D2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.2);
}

.btn-primary-custom:hover {
    background-color: #0044a5;
    border-color: #0044a5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 210, 0.3);
}

.btn-outline-custom {
    color: #0056D2;
    border: 1.5px solid #e5e7eb;
    padding: 8px 20px;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: #0056D2;
    color: #0056D2;
    background: #f8fbff;
}

/* Enhanced WhatsApp button */
.btn-whatsapp {
    width: 42px;
    height: 42px;
    background: #25d366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
    color: white;
}

.btn-whatsapp-mobile {
    width: 36px;
    height: 36px;
    background: #25d366;
    color: white;
    border: none;
}

/* Mobile Link Styles */
.mobile-nav-list .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list .nav-link {
    padding: 12px 0 !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link.active {
    background: #f8fbff;
    padding-left: 10px !important;
}

/* Mobile Toggle */
.hamburger-icon span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #1a1a2e;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive tweaks */
@media (max-width: 1199px) {
    .site-logo {
        height: 32px;
    }
}

/* Small Social Icons for Compact Footer */
.social-icon-btn.icon-sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    line-height: 32px;
}

/* Accessibility Contrast Overrides */
.text-muted,
.text-secondary {
    color: #495057 !important;
    /* Darker gray (Bootstrap gray-700) for > 4.5:1 contrast */
}

.service-card small,
.section-subtitle {
    color: #495057 !important;
}

.badge.bg-light {
    color: #212529 !important;
    /* Darkest gray */
}