/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

:root {
    --primary-color: #214080; /* Dark Blue */
    --accent-color: #00bcd4; /* Turquoise */
    --dark-bg-color: #1a1a1a; /* Almost Black */
    --light-bg-color: #f8f9fa;
    --text-color: #333;
    --white-color: #ffffff;
    --gray-light: #f2f2f2;
    --gray-dark: #6c757d;
    --orange-line: #ff8c00;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transition: background-color 0.1s ease, border-color 0.1s ease; /* Instant transition */
}

.btn-accent:hover {
    background-color: #00a8be;
    border-color: #00a8be;
}

.text-info {
    color: var(--accent-color) !important;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-title-dark {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title-dark::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Header and Navigation */
.fixed-top {
    z-index: 1030;
}

.site-title {
    font-size: 1.8rem;
}

@media (min-width: 1024px) {
    .site-title {
        font-size: 2.2rem;
    }
    .section-title, .section-title-dark {
        font-size: 2.5rem;
    }
    h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-title {
        font-size: 2rem;
    }
    .section-title, .section-title-dark {
        font-size: 2.2rem;
    }
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .site-title {
        font-size: 1.25rem;
    }
    .section-title, .section-title-dark {
        font-size: 1.75rem;
    }
    h1 {
        font-size: 2.2rem;
    }
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(33, 64, 128, 0.7), rgba(33, 64, 128, 0.7)), url('static/uploads/Chart-Forex-Background-Abstract.jpg') no-repeat center center/cover;
    min-height: 80vh;
    padding-top: 100px; /* Adjust for fixed header */
}

.hero-section h1 {
    line-height: 1.2;
    word-break: break-all;
}

.hero-section .img-fluid {
    max-height: 400px;
    object-fit: contain; /* Changed to contain for vector image */
}

/* About Section */
.values-list li i {
    min-width: 30px;
}

.slogan-box {
    border-color: var(--primary-color) !important;
}

/* Services Section (Accordion) */
.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background-color: var(--gray-light);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23214080'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300bcd4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Features Section (Spoiler) */
.spoiler-header {
    cursor: pointer;
    padding: 10px 0;
    user-select: none; /* Prevent text selection on click */
}

.spoiler-header:hover {
    color: var(--accent-color) !important;
}

.spoiler-icon {
    transition: transform 0.1s ease-in-out; /* Instant transition */
}

.spoiler-header.active .spoiler-icon {
    transform: rotate(180deg);
}

.spoiler-content {
    overflow: hidden;
    /* No transition for instant display */
}

/* Team Section */
.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-avatar-highlighted {
    border-color: var(--accent-color) !important;
    width: 150px;
    height: 150px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    background-color: var(--dark-bg-color) !important;
    background-image: url('static/uploads/Graphs-Business-And-Concept-Report-Chartsbusiness.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 0;
}

.stats-section .container > .row > div {
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    color: var(--white-color);
}

.separator-line {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background-color: var(--orange-line);
}

@media (max-width: 767px) {
    .separator-line {
        display: none !important;
    }
}

/* How It Works Section */
.how-it-works-grid .card {
    transition: none; /* No animation */
}

.step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
}

.how-it-works-grid .col-md-4 {
    position: relative;
}

.how-it-works-grid .col-md-4:not(:last-child) .progress-line {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 25px); /* Half card width + half step number width */
    width: calc(100% - 50% - 25px - 15px); /* Remaining space for line */
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
    z-index: 0;
}

@media (max-width: 767px) {
    .how-it-works-grid .col-md-4:not(:last-child) .progress-line {
        display: none;
    }
}

/* Testimonials Section */
.testimonial-item {
    border-left: 5px solid var(--accent-color);
}

/* Contact Section */
.contact-form {
    background-color: var(--white-color);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
    background-color: var(--dark-bg-color) !important;
}

.cookie-banner a {
    color: var(--accent-color) !important;
}

.cookie-banner .btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cookie-banner .btn-outline-light {
    border-color: var(--white-color);
    color: var(--white-color);
}

.cookie-banner .btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--dark-bg-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg-color) !important;
}

.social-icon-link {
    border: 1px solid var(--white-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease, border-color 0.1s ease; /* Instant transition */
}

.social-icon-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}
/*
 * legalDomeBlock: Container styling
 * Provides top and side padding for the block.
 */
.legalDomeBlock {
    padding-top: 2.5rem; /* Top padding for the block */
    padding-right: 2rem; /* Right padding for the block */
    padding-bottom: 2.5rem; /* Bottom padding for the block */
    padding-left: 2rem; /* Left padding for the block */
}

/*
 * Headings (h1-h5) within legalDomeBlock
 * These styles define font sizes, margins, and line heights for a clear,
 * but not overly large, typographic hierarchy.
 */
.legalDomeBlock h1 {
    font-size: 1.8rem; /* Relatively large, but not excessive */
    font-weight: 700; /* Bold */
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 2.5rem; /* Space above the heading */
    margin-bottom: 1rem; /* Space below the heading */
    color: #333; /* Darker color for headings */
}

.legalDomeBlock h2 {
    font-size: 1.5rem; /* Slightly smaller than h1 */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.legalDomeBlock h3 {
    font-size: 1.25rem; /* Noticeable, but closer to body text */
    font-weight: 600; /* Slightly less bold than h1/h2 */
    line-height: 1.4;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    color: #444;
}

.legalDomeBlock h4 {
    font-size: 1.1rem; /* Small heading, good for sub-sections */
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.legalDomeBlock h5 {
    font-size: 1rem; /* Same as body text, but bold */
    font-weight: 600;
    line-height: 1.6;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    color: #666;
}

/*
 * Paragraph (p) within legalDomeBlock
 * Defines basic text styling for paragraphs.
 */
.legalDomeBlock p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.6; /* Comfortable line height for readability */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: #333; /* Standard text color */
}

/*
 * Unordered List (ul) within legalDomeBlock
 * Sets basic list styling, including indentation and spacing.
 */
.legalDomeBlock ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
}

/*
 * Ordered List (ol) within legalDomeBlock
 * Sets basic list styling for numbered lists, including indentation and spacing.
 */
.legalDomeBlock ol {
    list-style-type: decimal; /* Default numbered style */
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/*
 * List Item (li) within legalDomeBlock
 * Defines spacing for individual list items.
 */
.legalDomeBlock li {
    font-size: 1rem; /* Inherit or explicitly set base font size */
    line-height: 1.6; /* Consistent line height with paragraphs */
    margin-bottom: 0.5rem; /* Space between list items */
    color: #333;
}

/* Optional: Remove bottom margin from the last paragraph/list in the block */
.legalDomeBlock p:last-child,
.legalDomeBlock ul:last-child,
.legalDomeBlock ol:last-child {
    margin-bottom: 0;
}

select.form-select {
  width: 100%;
  max-width: 100%;
}

.select-wrapper {
  position: relative;
  overflow: hidden;
}

@media (max-width: 576px) {
  select.form-select {
    min-width: 0;
    width: 100%;
  }
}
