/* Investex Visual Overhaul - Precision Update */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Exact Investex Palette */
    --primary: #C5A47E;
    /* Gold/Bronze accent */
    --primary-dark: #b08d65;
    --secondary: #1A2B48;
    /* Deep Navy Blue */
    --secondary-light: #2c4266;
    --secondary-dark: #111c30;

    --text-main: #5E646A;
    /* Grey for body text */
    --text-dark: #1A1A1A;
    /* Almost black for headings */
    --bg-light: #FFFFFF;
    --bg-soft: #F4F6F9;
    /* Very light grey/blue tint */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(26, 43, 72, 0.95) 0%, rgba(26, 43, 72, 0.8) 50%, rgba(26, 43, 72, 0.4) 100%);
    --gradient-primary: linear-gradient(to right, #C5A47E 0%, #b08d65 100%);
    --gradient-dark: linear-gradient(to right, #1A2B48 0%, #0f1a2e 100%);

    --bs-body-font-family: 'Manrope', sans-serif;
    --bs-heading-font-family: 'Manrope', sans-serif;

    --border-radius: 0px;
    /* Investex uses sharp or very minimal radius (0-2px) */
    --box-shadow: 0 10px 40px rgba(26, 43, 72, 0.08);
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 800;
    color: var(--secondary);
    /* Headings often Navy in Investex */
    letter-spacing: -0.02em;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Buttons --- */
.btn {
    border-radius: var(--border-radius);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    /* Solid color, sometimes gradient */
    border: none;
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(197, 164, 126, 0.3);
}

.btn-outline-primary {
    color: var(--secondary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.2);
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding-block: 1.2rem;
}

.navbar-brand img {
    height: 55px;
    /* Corporate standard */
    width: auto;
}

.nav-link {
    font-weight: 700;
    color: var(--secondary) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-inline: 1.2rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
}

/* --- Hero Section (Structure) --- */
#heroCarousel {
    height: 80vh;
    min-height: 600px;
}

.carousel-item {
    height: 80vh;
    min-height: 600px;
}

.carousel-overlay {
    background: var(--gradient-hero);
    /* Specific Gradient */
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.hero-overline {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--primary);
}

h1.display-3 {
    color: white;
    font-weight: 900;
    line-height: 1.1;
    font-size: 3.5rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Feature Box (Overlapping) --- */
.feature-box-row {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.feature-box {
    background: white;
    padding: 3rem;
    border-bottom: 3px solid var(--primary);
    /* Bottom gold accent */
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* --- Sections --- */
section {
    padding-block: 7rem;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-title.text-center h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary);
}

.section-title.text-start h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary);
}

.bg-soft {
    background-color: var(--bg-soft);
}

/* --- Services (Cards) --- */
.card-service {
    background: white;
    padding: 0;
    /* Removing padding from container */
    border-radius: var(--border-radius);
    border: none;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card-service-body {
    padding: 2.5rem;
}

.card-service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card-service:hover .card-service-icon {
    background: var(--primary);
    color: white;
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 43, 72, 0.15);
}

.card-service:hover::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.card-service h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-service ul li {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.card-service ul li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* --- Testimonials --- */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.testimonial-card i.bi-quote {
    color: rgba(197, 164, 126, 0.2);
    /* Faded Gold */
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
footer {
    background-color: #020406;
    /* Almost black */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 6rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

/* --- Global Radius Override --- */
.btn,
.card-service-icon,
.feature-icon,
.social-icon,
img,
.card,
.feature-box,
.testimonial-card {
    border-radius: 20px !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer a.text-muted:hover {
    color: var(--primary) !important;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
    background-color: white;
    color: var(--secondary);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary);
    z-index: 10000;
    padding: 1.5rem;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    /* Floating banner */
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 4px;
}

/* --- Conferences Image Grid -- */
.conference-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.conference-item {
    position: relative;
    height: 500px;
    /* Tall cards */
    flex: 0 0 25%;
    /* 4 columns on large screens */
    width: 25%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.conference-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    /* B&W look */
    transition: all 0.5s ease;
    z-index: 1;
}

.conference-item:hover .conference-bg {
    filter: grayscale(0%) contrast(1.1);
    /* Color comes back */
    transform: scale(1.05);
    /* Subtle zoom */
}

.conference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from bottom */
    background: linear-gradient(to top, rgba(16, 26, 43, 0.95) 0%, rgba(26, 43, 72, 0.6) 40%, rgba(26, 43, 72, 0) 100%);
    z-index: 2;
    transition: background 0.3s;
}

.conference-item:hover .conference-overlay {
    background: linear-gradient(to top, rgba(26, 43, 72, 0.95) 0%, rgba(197, 164, 126, 0.3) 100%);
    /* Gold hint */
}

.conference-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 3;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conference-item:hover .conference-content {
    transform: translateY(-10px);
}

.conference-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.conference-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .conference-item {
        flex: 0 0 50%;
        /* 2 columns tablet */
        width: 50%;
        height: 400px;
    }
}

@media (max-width: 576px) {
    .conference-item {
        flex: 0 0 100%;
        /* 1 column mobile */
        width: 100%;
        height: 350px;
    }
}

/* --- Client Marquee --- */
.marquee-section {
    background-color: white;
    padding: 6rem 0 4rem;
    /* Top padding adjusts for overlap */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-title {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-align: center;
    display: block;
    opacity: 0.6;
}

/* Container for the scrolling content */
.marquee-container {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1;
    /* Light grey placeholder logo color */
    margin: 0 4rem;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.marquee-item:hover {
    color: var(--secondary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Gradient Fade for Marquee edges */
.marquee-section::before,
.marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}