/*===============================================
=            Reset and Base Styles              =
===============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*===============================================
=               CSS Variables                   =
===============================================*/
:root {
    --primary-blue: #1a4b8c;
    --primary-purple: #4a3b8c;
    --accent-green: #39ff14;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --background-dark: #0a1a2f; /* Dark navy background */
    --spacing-standard: 2rem;
}

/*===============================================
=            Global Element Styles              =
===============================================*/
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #0a1a2f; /* Dark navy background */
    padding-top: 80px; /* Account for fixed header */
}

section {
    padding: 2rem 1rem;
    background-color: #102a44; /* Navy sections */
    color: var(--text-light);
    text-align: center;
}

/*===============================================
=         Header and Navigation                 =
===============================================*/
header {
    background-color: #0a1a2f !important;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    color: var(--text-light);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Use same horizontal padding as footer */
    width: 100%;
}

/* Logo */
.logo {
    margin: 0; /* Remove left/right margin for symmetry */
    display: flex;
    align-items: center;
}
.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #1b3b5a;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-links a:hover {
    background-color: #102a44; /* Slightly darker navy on hover */
    color: #ffffff; /* Ensure text remains visible */
}
/* Extra nav-button styling if needed */
.nav-links a.nav-button {
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* CTA Button */
.cta-button, .primary-cta {
    background-color: #1b3b5a;
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-left: 1.5rem; /* Add spacing between the button and other elements */
}
    
.cta-button:hover {
    background-color: #102a44; /* Slightly darker navy on hover */
    transition: background-color 0.3s ease, color 0.3s ease;
}

    

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-content {
    background-color: #102a44;
    color: var(--text-light);
    border: 1px solid #1b3b5a;
    display: none;
    position: absolute;
    z-index: 1000;
    margin-top: 5px; /* Space between dropdown and button */
    border-radius: 5px;
    padding: 0.5rem 0;
}
.dropdown-content.show {
    display: block; /* Show when the 'show' class is added */
}
.dropdown-content li {
    list-style: none;
}
.dropdown-content a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: var(--text-light);
}
.dropdown-content a:hover {
    background-color: #1b3b5a; /* Slightly lighter navy on hover */
    color: #ffffff; /* Ensure text remains visible */
}

/*===============================================
=                Hero Section                   =
===============================================*/
.hero-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.hero {
    background-color: #ffffff; /* White background */
    color: #0a1a2f; /* Dark navy text for contrast */
    text-align: center;
    padding: 30px 20px; /* Reduced top/bottom padding */
    border-radius: 16px; /* Add rounded corners */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align items to the left */
}

.hero-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Reduced height */
    padding-right: 10px; /* Reduced padding to the right of the logo */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 2.5rem; /* Reduced font size */
    margin-bottom: 0.5rem; /* Reduced margin */
}

/* Certification Badges in Hero */
.certification-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Reduced gap between badges */
    margin: 1rem 0; /* Reduced margin */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
.certification-badges img {
    height: 60px; /* Reduced height */
    max-width: 150px; /* Reduced max-width */
    margin: 0 5px; /* Reduced margin */
    transition: transform 0.3s ease;
}
.certification-badges img:hover {
    transform: scale(1.2);
}

/* Certification Page formatting. */

.certifications-page,
.cert-content {
    color: #222; /* or var(--text-dark) */
}
.certifications-list {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.certifications-list h2 {
    color: #1a4b8c;
    margin-bottom: 1rem;
}
.certifications-list ul {
    padding-left: 1.5rem;
}
.certifications-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Primary CTA inside Hero */
.hero .primary-cta {
    background-color: #1b3b5a;
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.hero .primary-cta:hover {
    background-color: #102a44;
}

/* Hero Split Section */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background-color: #fff;
    color: #0a1a2f;
    padding: 50px 20px;
}

.hero-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* Adjust as needed */
}

.hero-logo img {
    max-height: 300px; /* Adjust as needed */
    max-width: 300px;
    width: auto;
    height: auto;
    display: block;
}

.hero-split .hero-content {
    flex: 1 1 0;
    max-width: 600px;
    text-align: left;
    margin: 0;
}

/*===============================================
=           Services Overview Section           =
===============================================*/
.services-overview {
    padding: 4rem var(--spacing-standard);
    background: var(--background-light);
    margin-top: 0;
    color: #222; /* Ensure dark text for this section */
    background: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding-left: 2rem;
    padding-right: 2rem;
}
.services-overview h2 {
    color: #1a4b8c; /* Or #222 for dark grey */
    text-align: center;
    margin-bottom: 3rem;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #4a3b8c; /* Dark purple text for service cards */
}
.service-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    background-color: #b6d8fa;
}
.service-card i {
    font-size: 2.5rem;
    color: #1a4b8c;
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}
.service-card p {
    font-size: 1rem;
    color: #222;
}

/*===============================================
=             Client Focus Section              =
===============================================*/
.client-focus {
    padding: 4rem var(--spacing-standard);
    max-width: 1200px;
    margin: 2rem auto;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.client-focus h2 {
    color: #1a4b8c;
    margin-bottom: 3rem;
}

.client-focus .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-dark); /* Changed to dark text */
}

.client-focus .service-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.client-focus .service-card:hover {
    transform: translateY(-5px);
    background-color: #b6d8fa;
}

.client-focus .service-card i {
    font-size: 2.5rem;
    color: #1a4b8c;
    margin-bottom: 1rem;
}

.client-focus .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.client-focus .service-card p {
    font-size: 1rem;
    color: #222;
}

/*===============================================
=                 Footer Section                =
===============================================*/
footer {
    background-color: #102a44;
    color: var(--text-light);
    padding: 10px 0; /* Reduced vertical padding */
    font-size: 0.95rem; /* Slightly smaller font */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem; /* Reduced gap */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Less horizontal padding */
}

.footer-content > div {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 220px;
    margin: 0;
    padding: 0;
}

.footer-content h4 {
    font-size: 1rem; /* Smaller heading */
    margin-bottom: 0.5rem;
}

.footer-content p,
.footer-content ul,
.footer-content li,
.footer-content a {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.footer-content .social-links a i {
    font-size: 2rem;           /* Make icons larger */
    color: #fff;               /* White by default */
    margin-right: 1rem;
    transition: color 0.3s;
    vertical-align: middle;
}

.footer-content .social-links a:last-child i {
    margin-right: 0;
}

.footer-content .social-links a:hover i {
    color: #39ff14;            /* Accent green on hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem; /* Less space above */
    padding-top: 0.5rem; /* Less space inside */
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/*===============================================
=          Utility and Animation Classes        =
===============================================*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate {
    animation: slideUp 0.5s ease forwards;
}
/* Utility classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }
.section-padding { padding: 1rem 0; }

/*===============================================
=               Responsive Styles               =
===============================================*/
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
        margin: 1rem 0;
    }
    .dropdown-content {
        background-color: #102a44;
        border: 1px solid #1b3b5a;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .certification-badges {
        flex-direction: column;
        align-items: center;
    }
    .service-cards, .client-focus {
        grid-template-columns: 1fr;
    }
}

/*===============================================
=               Cert Content Section            =
===============================================*/
.cert-content {
    background: #f5f5f5;
    padding: 3rem 1rem;
    margin: 0 auto;
}

.cert-content .container {
    max-width: 1100px;
    margin: 0 auto;
}

.cert-introduction {
    text-align: center;
    margin-bottom: 2rem;
}

.major-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cert-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    min-width: 320px;
    max-width: 500px;
    margin: 0.5rem;
}

.cert-card .cert-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-right: 1rem;
}

.cert-card .cert-details {
    color: #222;
}

.cert-card .cert-image img {
    max-width: 140px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.2);
    z-index: 2;
}

.cert-details h3 {
    margin-top: 0;
    color: #1a4b8c;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.cert-details ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0 0;
}
.cert-details li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

/* Vendor Certifications Grid */
.vendor-certifications {
    margin: 2rem 0;
}
.vendor-cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.vendor-cert-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1rem;
    min-width: 220px;
    max-width: 300px;
}
.vendor-cert-card,
.vendor-cert-card h4,
.vendor-cert-card ul,
.vendor-cert-card li {
    color: #222;
}
.vendor-cert-card h4 {
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}
.vendor-cert-card ul {
    padding-left: 1.2rem;
    margin: 0;
}
.vendor-cert-card li {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

/* Compliance Grid */
.compliance-expertise {
    margin: 2rem 0;
}
.compliance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.compliance-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1rem;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}
.compliance-card i {
    font-size: 2rem;
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}
.compliance-card h4 {
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}
.compliance-card,
.compliance-card h4,
.compliance-card p {
    color: #222;
}

/* Value Grid */
.certification-value {
    background: #e9f0fa;
    padding: 2.5rem 1rem;
}
.value-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.value-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1rem;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}
.value-card i {
    font-size: 2rem;
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}
.value-card h4 {
    color: #1a4b8c;
    margin-bottom: 0.5rem;
}
.value-card,
.value-card h4,
.value-card p,
.value-card li {
    color: #222;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .major-certs, .vendor-cert-grid, .compliance-grid, .value-grid {
        flex-direction: column;
        align-items: center;
    }
    .cert-card, .vendor-cert-card, .compliance-card, .value-card {
        max-width: 95vw;
    }
}