/* Color Variables */
:root {
    --primary-blue: #1A3A5F;
    /* Deep Navy */
    --accent-gold: #DAA520;
    /* Goldenrod */
    --light-gray: #F2F2F2;
    /* Off-White */
    --secondary-silver: #E0E0E0;
    /* Light Gray */
    --dark-blue: #112A40;
    /* Even darker blue for footer if needed */
}

/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    /* Dark gray for general text */
}

/* Font Classes */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-open-sans {
    font-family: 'Open Sans', sans-serif;
}

/* Background Colors */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-accent-gold {
    background-color: var(--accent-gold) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

/* Text Colors */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-accent-gold {
    color: var(--accent-gold) !important;
}

/* Custom Buttons */
.btn-golden-cta {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-golden-cta:hover {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.custom-btn-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Top Bar for Contact Info */
.top-bar {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--accent-gold);
}

.top-bar .social-icons i {
    font-size: 1.1rem;
    margin-left: 15px;
}

/* Navbar Customization */
.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: white !important;
}

.navbar-brand img {
    filter: brightness(1.2);
    /* Adjust if your logo is too dark on blue */
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    padding-right: 1rem;
    padding-left: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold);
}

/* Multi-step dropdown styles */
.dropdown-menu {
    background-color: var(--primary-blue);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--dark-blue);
    color: var(--accent-gold);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0.5rem;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.5em;
}

.dropdown-submenu>.dropdown-toggle::after {
    border-left: .3em solid transparent;
    border-right: 0;
    border-top: .3em solid transparent;
    border-bottom: .3em solid transparent;
    border-left-color: rgba(255, 255, 255, 0.7);
    content: "";
    display: inline-block;
    float: right;
    margin-left: .5em;
}

/* Hero Section Specifics */
#hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.8)), url('../images/herobgimg.jpg') center center no-repeat;
    /* Optional: Add a subtle background image */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* To contain any parallax effects */
    min-height: 80vh;
    /* Adjusted for visual balance */
    display: flex;
    align-items: center;
}

.hero-animated-text {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hero-animated-text.fade-out {
    opacity: 0;
}

/* Services Card Styling */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-body i {
    font-size: 3.5rem;
    /* Larger icons */
}

/* Process Section Timeline */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: var(--secondary-silver);
    /* Timeline line */
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -25px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: -10px;
    /* Adjust to align with icon */
}

.timeline-item:nth-child(odd) .timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline:before {
        left: 20px;
        /* Align line to left */
    }

    .timeline-item {
        margin-left: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        /* Make space for icon */
        margin-right: 0;
    }

    .timeline-icon {
        left: 20px;
        margin-left: -25px;
    }

    .timeline-item:nth-child(odd) .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before {
        left: -10px;
        /* Arrow on left for all */
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

/* Carousel with Over Text */
#certifications-carousel .carousel-item {
    height: 500px;
    /* Adjust as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#certifications-carousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent background for text */
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    margin: auto;
    bottom: unset;
    /* Remove default bottom positioning */
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    transform: translate(-50%, -50%);
    right: unset;
}

#certifications-carousel .carousel-caption h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

#certifications-carousel .carousel-caption p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: white;
}

/* Testimonials Section */
#testimonials .carousel-item {
    padding: 40px 60px;
}

#testimonials .testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#testimonials .testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    margin-bottom: 20px;
}

#testimonials .testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
}

#testimonials .testimonial-quote::before {
    content: "“";
    font-size: 4rem;
    color: var(--accent-gold);
    position: absolute;
    left: -30px;
    /* Adjust for centering */
    top: -10px;
    opacity: 0.3;
}

#testimonials .testimonial-stars .bi-star-fill {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#testimonials .testimonial-author {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

#testimonials .testimonial-designation {
    color: #777;
    font-size: 0.9rem;
}

#testimonials .carousel-indicators [data-bs-target] {
    background-color: var(--primary-blue);
}

#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
    filter: invert(1);
}

/* FAQ Accordion Styling */
.accordion-button:not(.collapsed) {
    color: var(--accent-gold);
    background-color: var(--primary-blue);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button {
    background-color: var(--primary-blue);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    padding: 1rem 1.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button:hover {
    background-color: var(--dark-blue);
    color: var(--accent-gold);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(218, 165, 32, 0.25);
    border-color: var(--accent-gold);
}

.accordion-item {
    border: 1px solid var(--secondary-silver);
    margin-bottom: 10px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-body {
    background-color: white;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    padding: 1.5rem;
    border-top: 1px solid var(--secondary-silver);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    /* Makes the icon white */
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    /* Keeps the icon white when open */
}


/* Contact Form Styling */
#contact .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(218, 165, 32, 0.25);
    /* Golden glow on focus */
}

#contact .form-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Styling */
footer {
    background-color: var(--dark-blue);
}

/* Utility Classes for Spacing/Alignment */
.min-vh-100 {
    min-height: 100vh;
}

/* Number Animation Styles */
.animated-number {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.animated-number.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for multi-step dropdown */
@media (min-width: 992px) {
    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-menu .dropdown-toggle::after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
        vertical-align: middle;
    }
}