:root {
    --primary-blue: #093a89;
    --brand-green: #3a7302;
    --text-dark: #222222;
    --text-muted: #666666;
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #111111;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    zoom: 80%;
}

@media (min-width: 1800px) {
    body {
        zoom: 90%;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Navbar Styling */
.navbar {
    background-color: var(--bg-white);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand img {
    max-height: 60px;
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}
.btn-brand {
    background-color: var(--brand-green);
    color: white;
    font-weight: 600;
    border-radius: 0;
    padding: 10px 25px;
    border: none;
    transition: 0.3s;
}
.btn-brand:hover {
    background-color: #2e5c02;
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/images/dar.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    color: white;
}
.hero-kicker {
    display: inline-block;
    padding: 0.65rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: rgba(255,255,255,0.15);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.35);
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #FFFFFF;
    opacity: 0.95;
}

/* General Section Styling */
section {
    padding: 100px 0;
}
.bg-white {
    background-color: var(--bg-white) !important;
}
.bg-light {
    background-color: var(--bg-light) !important;
}
.bg-dark-blue {
    background-color: var(--primary-blue) !important;
    color: white;
}
.bg-black {
    background-color: var(--bg-dark) !important;
    color: white;
}
.section-title {
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    color: inherit;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #FFFFFF; /* Accent bar in white on dark sections */
}
.bg-white .section-title::after, .bg-light .section-title::after {
    background-color: var(--primary-blue);
}

/* Card Styling */
.card {
    background-color: #FFFFFF;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    color: var(--text-dark);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.bg-dark-blue .card, .bg-black .card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.icon-box {
    color: var(--primary-blue);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.bg-dark-blue .icon-box, .bg-black .icon-box {
    color: #FFFFFF;
}
.border-brand {
    border-bottom: 5px solid var(--primary-blue) !important;
}
.bg-dark-blue .border-brand, .bg-black .border-brand {
    border-bottom: 5px solid #FFFFFF !important;
}

/* Text Utilities */
.text-muted {
    color: var(--text-muted) !important;
}
.bg-dark-blue .text-muted, .bg-black .text-muted {
    color: #CCCCCC !important;
}
.lead {
    font-weight: 400;
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 80px 0 30px;
}
.footer-title {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 3px solid #FFFFFF;
    padding-left: 15px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #AAAAAA;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
    color: #666666;
}
.text-white {
    color: #FFFFFF !important;
}
.opacity-75 {
    opacity: 0.75 !important;
}
/* Mega Menu Refined Styling */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}
@media (min-width: 992px) {
    .navbar .dropdown.position-static .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
        display: none; /* Hidden by default */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        top: 100%;
    }
    .navbar .dropdown .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
        animation: slideUp 0.3s ease forwards;
    }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-container {
    display: flex;
    flex-wrap: wrap;
}
.mega-menu-col {
    padding: 2.5rem;
    flex: 1;
    min-width: 300px;
}
.mega-menu-col.bg-subtle {
    background-color: #f8f9fa;
}
.mega-menu-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mega-menu-title {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin: 0;
}
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    text-decoration: none;
    border: 1px solid transparent;
}
.mega-menu-item:hover {
    background-color: #fff;
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transform: translateX(5px);
}
.mega-menu-col.bg-subtle .mega-menu-item:hover {
    background-color: #fff;
}
.mega-menu-icon {
    color: var(--brand-green);
    font-size: 1.1rem;
    margin-right: 15px;
    margin-top: 2px;
    opacity: 0.8;
    transition: 0.2s;
    width: 20px;
    text-align: center;
}
.mega-menu-item:hover .mega-menu-icon {
    opacity: 1;
    transform: scale(1.1);
}
.mega-menu-link-title {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}
.mega-menu-item:hover .mega-menu-link-title {
    color: var(--primary-blue);
}
.mega-menu-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
}
.mega-menu-footer {
    background-color: var(--primary-blue);
    padding: 12px 20px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    width: 100%;
}
.mega-menu-footer a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: 0.2s;
}
.mega-menu-footer a:hover {
    border-bottom-color: white;
}

/* Ticker Styling */
.ticker-wrap {
    width: 100%;
    background-color: var(--primary-blue);
    border-top: 1px solid rgba(255,255,255,0.1);
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
}
.ticker-label {
    background-color: var(--brand-green);
    color: white;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    position: relative;
}
.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 50px solid var(--brand-green);
    border-right: 20px solid transparent;
}
.ticker {
    display: flex;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
    padding-left: 100%; 
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}
.ticker-item span.up { color: #4ade80; margin-left: 8px; font-size: 0.8rem; }
.ticker-item span.down { color: #f87171; margin-left: 8px; font-size: 0.8rem; }
.ticker-item span.neutral { color: #94a3b8; margin-left: 8px; font-size: 0.8rem; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

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

/* Shared Utility Classes */
.transition { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important; }
.text-brand-primary { color: var(--primary-blue) !important; }
.border-transparent { border-color: transparent !important; }
.hover-border-brand:hover { border-color: var(--brand-green) !important; }
.tracking-widest { letter-spacing: 0.15em; }
.x-small { font-size: 0.75rem; }
.opacity-10 { opacity: 0.05; }

/* Page Hero (from contact.php and capabilities.php) */
.page-hero {
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
}

.page-hero.contact-hero {
    background: linear-gradient(rgba(9, 58, 137, 0.9), rgba(9, 58, 137, 0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.page-hero.capabilities-hero {
    background: linear-gradient(rgba(9, 58, 137, 0.9), rgba(9, 58, 137, 0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

/* Contact Page Styles */
.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
}
.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(9, 58, 137, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: none;
    background-color: white;
}
.form-floating label {
    padding-left: 15px;
    color: #666;
}
.form-select:focus {
    box-shadow: none;
    border: 1px solid var(--primary-blue) !important;
    background-color: #fff !important;
}

.map-container {
    height: 300px;
    background-color: #eee;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover;
    filter: grayscale(100%) opacity(0.3);
}

.border-brand-primary { border-color: var(--primary-blue) !important; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.tracking-wider { letter-spacing: 1px; }

/* Capabilities Page Styles */
.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--brand-green);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(9, 58, 137, 0.05);
    padding: 20px;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header {
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--brand-green);
    margin: 0 auto;
}

