/* Enhanced MICTON Consultancy CSS */
:root {
    --primary: #1c2f80;  /* MICTON blue */
    --secondary: #f18809; /* MICTON orange */
    --accent: #7a82a6;   /* MICTON light blue */
    --light: #FFFFFF;
    --dark: #152440;
    --gray: #F6F6F6;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
}

/* Button styling */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #172766;
    border-color: #172766;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #d97908;
    border-color: #d97908;
}

.btn-micton {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-micton:hover {
    background-color: #d97908;
    border-color: #d97908;
    color: white;
}

/* Navbar improvements */
.navbar {
    box-shadow: var(--shadow);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 25px 15px;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary);
}

/* Carousel Height and Caption Fixes */
#header-carousel,
#header-carousel .carousel-item {
    height: 600px; /* Reduced height from default */
}

#header-carousel img {
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 47, 128, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.carousel-caption .p-3 {
    max-width: 900px;
    text-align: center;
}



/* Card styling */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary);
}

/* Service items */
.service-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 30px;
    box-shadow: var(--shadow);
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Team members */
.team-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.team-item img {
    transition: all 0.5s ease;
}

.team-item:hover img {
    transform: scale(1.05);
}

.team-text {
    background: rgba(28, 47, 128, 0.85) !important;
    transition: all 0.3s ease !important;
}

/* Testimonials */
.testimonial-item {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    margin: 10px;
}

.testimonial-carousel .owl-nav button {
    background-color: var(--secondary) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

/* Page headers */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
    position: relative;
}

.page-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    border-radius: 50% 50% 0 0;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1c2f80, #3a4dae);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f18809, #ffa94d);
}

/* Service Card Styling */
.service-card {
    background: #fff;
    border-radius: 15px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 32px;
    color: white;
    transition: 0.3s;
}

/* Gradient Backgrounds */
.bg-gradient-blue { background: linear-gradient(135deg, #1c2f80, #3a4dae); }
.bg-gradient-red { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.bg-gradient-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-gradient-orange { background: linear-gradient(135deg, #f18809, #ffa94d); }
.bg-gradient-purple { background: linear-gradient(135deg, #654ea3, #eaafc8); }
.bg-gradient-teal { background: linear-gradient(135deg, #43cea2, #185a9d); }

/* FAQ accordion styling */
.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    color: var(--primary);
    font-weight: 500;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-body {
    padding: 20px;
}

/* Footer styling */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 0;
}

.footer h4 {
    color: var(--secondary);
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    text-decoration: none;
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    #header-carousel,
    #header-carousel .carousel-item {
        height: 400px;
    }
    
    #header-carousel img {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem !important;
    }
    
    .service-item {
        height: auto;
        min-height: 250px;
    }
}