/* global.css */

/* --- Root Variables (Inferred from Home Page & Best Practices) --- */
:root {
    --brand-green: #172b35; /* Example green, adjust to match your logo/brand */
    --brand-blue: #30b4c5;  /* Example blue for blue-text, adjust to match your brand */
    --text-dark: #333;
    --text-light: #f8f9fa;
    --background-light: #f8f9fa;
    --card-background: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745; /* Green for checkmarks */

    /* Fonts */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* --- General Body Styles --- */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

/* --- Utility Classes from Home Page --- */
.bg-green {
    background-color: var(--brand-green)!important;
}

.blue-text {
    color: var(--brand-blue)!important;
}

/* .capital-market-hero {
  padding-top: 6rem !important;
} */

.section-heading {
    font-family: var(--heading-font);
    font-size: 2.5rem; /* Adjust as needed */
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.heading {
    font-family: var(--heading-font);
    font-size: 1.75rem; /* Adjust as needed */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.small {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777; /* Example color */
}

.description {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.description.main {
    font-size: 1.2rem;
    font-weight: 400;
}

.brand-link {
    text-decoration: none;
}

.wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Or your brand's background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.pulsating-circle {
    animation: pulse 1.5s infinite ease-in-out;
}

.pulsating-circle img {
    width: 80px; /* Adjust size as needed */
    height: 80px;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

/* Stock Data (from home page, no specific styling provided, keeping minimal) */
.stock-data {
    background-color: #eee; /* Placeholder background */
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Hero Section Specific Styles */
.capital-market-hero {
    position: relative;
    overflow: hidden; /* To contain pseudo-elements */
    padding-top: 6rem; /* Adjust as needed */
    padding-bottom: 6rem; /* Adjust as needed */
    background-color: var(--background-light); /* Base background */
    text-align: left; /* Align text to left */
}

.capital-market-hero.text-wrap {
    z-index: 2; /* Ensure text is above background elements */
    position: relative;
}

.capital-market-hero.img-wrap {
    position: relative; /* For positioning the image and vector */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.capital-market-hero.img-wrap img {
    max-width: 100%;
    height: auto;
}

/* Circular elements in hero - using pseudo-elements for abstract shapes */
.capital-market-hero::before,
.capital-market-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1; /* Subtle effect */
    z-index: 0;
}

.capital-market-hero::before {
    width: 300px;
    height: 300px;
    background-color: var(--brand-blue);
    top: -50px;
    right: -100px;
    transform: scale(1.2);
}

.capital-market-hero::after {
    width: 200px;
    height: 200px;
    background-color: var(--brand-green);
    bottom: -50px;
    left: -50px;
    transform: scale(0.8);
}

/* Adjust hero for smaller screens */
@media (max-width: 991.98px) {
   .capital-market-hero {
        text-align: center; /* Center text on smaller screens */
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
   .capital-market-hero.img-wrap {
        display: block!important; /* Show mobile image */
        margin-top: 2rem;
    }
   .capital-market-hero::before,
   .capital-market-hero::after {
        display: none; /* Hide large circles on mobile */
    }
}

/* Section Content Layout (text + image) */
.section-content-row {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-illustration {
    max-width: 80%; /* Control illustration size */
    height: auto;
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center image */
}

/* Adjust spacing for text and illustration columns */
.text-content-col {
    padding-right: 2rem; /* Space between text and image */
}

.illustration-col {
    padding-left: 2rem; /* Space between text and image */
}

@media (max-width: 991.98px) {
   .text-content-col,
   .illustration-col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        text-align: center; /* Center content on mobile */
    }
   .illustration-col {
        margin-top: 2rem; /* Space between text and image on stacked layout */
    }
}

/* --- Capital Market Page Sections --- */
.capital-market-page.capital-market-section {
    background-color: var(--card-background);
    padding: var(--spacing-xl);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem var(--shadow-color);
    margin-bottom: var(--spacing-xl);
}

.capital-market-page.capital-market-section p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
}

.capital-market-nav {
  background-color: #172b35;
}
/* Internal Navigation for Capital Market Services */
.capital-market-nav.nav-pills.nav-link {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--brand-green);
    border: 1px solid var(--light-gray);
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.capital-market-nav.nav-pills.nav-link:hover,
.capital-market-nav.nav-pills.nav-link.active {
    color: var(--text-light);
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* section style */
#mainboard-ipo,
#sme-ipo,
#preferential-issue,
#corporate-advisory,
#business-valuation,
#m-a {
  padding-bottom: 3rem;
}

/* --- Checklist Styling (for main bullet points) --- */
.checklist {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.75rem; /* Space for the checkmark */
    margin-bottom: 0.75rem;
    font-family: var(--body-font);
    color: var(--text-dark);
}

.checklist li::before {
    content: '\f00c'; /* Font Awesome checkmark icon (solid) */
    font-family: 'Font Awesome 6 Free'; /* Specify Font Awesome font family */
    font-weight: 900; /* For solid icon */
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 0.1rem;
}

/* Nested Checklist Styling (for sub-bullet points) */
.checklist-nested {
    list-style-type: none; /* Remove default bullets */
    padding-left: 1.5rem; /* Indent nested list */
    margin-top: 0.5rem;
}

.checklist-nested li {
    position: relative;
    padding-left: 1.5rem; /* Space for the checkmark */
    margin-bottom: 0.5rem;
    font-family: var(--body-font);
    color: #555;
}

.checklist-nested li::before {
    content: '\f00c'; /* Font Awesome checkmark icon (solid) */
    font-family: 'Font Awesome 6 Free'; /* Specify Font Awesome font family */
    font-weight: 900; /* For solid icon */
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.9em; /* Slightly smaller checkmark for nested lists */
}

/* --- Contact Us Section (from home page) --- */
.contact-us-page-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}


/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
   .section-heading {
        font-size: 2rem;
    }

   .heading {
        font-size: 1.5rem;
    }

   .capital-market-page.capital-market-section {
        padding: var(--spacing-lg);
    }
}
