:root {
    /* Fonts */
    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;

    /* Primary Colors (Analogous Scheme - Example: Blue base) */
    --color-primary: #2A7FFF;         /* Vibrant Blue */
    --color-primary-dark: #1E66D4;    /* Darker Blue */
    --color-primary-light: #6BB0FF;   /* Lighter Blue */

    --color-secondary: #00A99D;       /* Teal/Blue-Green */
    --color-secondary-dark: #00877E;
    --color-secondary-light: #33B9AF;

    --color-tertiary: #6A4C9C;        /* Purple/Blue-Purple */
    --color-tertiary-dark: #523A7A;
    --color-tertiary-light: #8B70B7;

    /* Accent Colors */
    --color-accent: #FFB74D;          /* Muted Orange/Peach */
    --color-accent-dark: #F57C00;     /* Darker Orange */
    --color-accent-success: #28a745;  /* Green for success/confirm */
    --color-accent-success-dark: #1e7e34;

    /* Neutral Colors */
    --color-text-base: #333333;       /* Main body text */
    --color-text-dark: #222222;       /* For headings, strong text */
    --color-text-medium: #555555;     /* Softer text, descriptions */
    --color-text-light: #f8f9fa;      /* For dark backgrounds */
    --color-text-muted: #6c757d;
    --color-text-inverted: #ffffff;
    --color-text-placeholder: #adb5bd;

    --color-background-body: #f8f9fa; /* Overall page background */
    --color-background-light: #ffffff;/* Light sections, cards */
    --color-background-section-alt: #eef2f7; /* Slightly off-white for alternate sections */
    --color-background-dark: #2c3e50; /* Dark section background */

    --color-border: #dee2e6;
    --color-border-light: rgba(255,255,255,0.1);

    /* Gradients (Dynamic Color Transitions) */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-footer: linear-gradient(45deg, var(--color-tertiary-dark), var(--color-primary));
    --gradient-hero-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));

    /* Shadows */
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .4rem 1rem rgba(0,0,0,.1);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
    --text-shadow-subtle: 1px 1px 3px rgba(0,0,0,0.2);
    --text-shadow-hero: 2px 2px 5px rgba(0,0,0,0.5);

    /* Transitions & Animations */
    --transition-base: all 0.3s ease-in-out;
    --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy */
    --animation-duration: 0.6s;

    /* UI Components */
    --card-bg: var(--color-background-light);
    --card-border-radius: 0.75rem; /* Slightly more rounded */
    --card-shadow: var(--shadow-md);
    --card-image-container-height: 230px; /* Fixed height for image containers in cards */

    --button-border-radius: 50px;
    --button-padding: 0.8rem 1.8rem;
    --button-font-weight: 500;

    --input-border-radius: 0.5rem;
    --input-padding: 0.75rem 1rem;

    --header-height: 70px; /* For padding adjustments */
    --footer-link-color: var(--color-text-placeholder);
    --footer-link-hover-color: var(--color-text-inverted);
}

/* Global Styles */
body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--color-text-base);
    background-color: var(--color-background-body);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}
.section-title { /* Bootstrap .h2 or custom */
    font-weight: 800;
    color: var(--color-text-dark);
    text-shadow: var(--text-shadow-subtle);
    margin-bottom: 2rem;
}

p {
    color: var(--color-text-medium);
    margin-bottom: 1rem;
}
p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
}

/* Buttons - Global Styling */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    font-weight: var(--button-font-weight);
    transition: var(--transition-elastic); /* Bouncy effect */
    border: none; /* Default Bootstrap buttons have borders */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-inverted);
}

.btn-secondary { /* Or .btn-outline-primary if preferred */
    background-color: var(--color-secondary);
    color: var(--color-text-inverted);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-text-inverted);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
    border-color: var(--color-primary);
}

/* Modern Button (from HTML) */
.modern-button { /* Often same as .btn-primary */
    /* Styles are inherited from .btn and .btn-primary if classes are combined */
}
.cta-button { /* For hero */
    font-size: 1.1rem;
}

/* Utility Classes */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.bg-light { /* Bootstrap override for our light */
    background-color: var(--color-background-light) !important;
}
.bg-dark { /* Bootstrap override for our dark */
    background-color: var(--color-background-dark) !important;
}
.dynamic-gradient-bg {
    background: var(--gradient-primary);
    color: var(--color-text-inverted);
    background-size: 200% 200%;
    animation: gradientAnimation 12s ease infinite;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header / Navbar */
.navbar {
    background-color: var(--color-background-light) !important; /* Override Bootstrap */
    box-shadow: var(--shadow-sm);
    min-height: var(--header-height);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-primary) !important;
}
.nav-link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--color-text-medium) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--button-border-radius);
    transition: var(--transition-base);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(var(--color-primary-rgb, 42, 127, 255), 0.1); /* Use RGB var if set, else fallback */
}
.navbar-toggler {
    border-color: var(--color-primary);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(42, 127, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 90vh; /* Natural height based on content, but ensures it's prominent */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverted); /* Base text color for hero */
}
.hero-section::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero-overlay);
    z-index: 1;
}
.hero-section .container_hero { /* container_hero from HTML */
    position: relative;
    z-index: 2;
    max-width: 800px;
    /* background-color: rgba(0,0,0,0.15); /* Optional: subtle background for content box */
    padding: 2rem;
    border-radius: var(--card-border-radius);
}
.hero-title {
    color: var(--color-text-inverted) !important;
    text-shadow: var(--text-shadow-hero);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    font-weight: 800;
}
.hero-section p.lead {
    color: var(--color-text-light) !important; /* Lighter white for lead */
    text-shadow: var(--text-shadow-subtle);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
    overflow: hidden; /* Ensure content fits within rounded corners */
    display: flex; /* For centering image */
    flex-direction: column; /* For centering image */
    /* align-items: center; Applied to .card-image instead */
    text-align: center; /* Center text content */
    height: 100%; /* For equal height cards in rows */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card .card-image { /* Container for the image */
    width: 100%;
    height: var(--card-image-container-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef; /* Placeholder bg */
}
.card .card-image img, .card img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 0; /* Reset if image is directly inside .card */
    border-top-right-radius: 0;
    margin: 0 auto; /* Ensure centering if image is smaller, though object-fit:cover handles it */
}
.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allow card body to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title {
    color: var(--color-text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.card-text {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card .btn { /* Button inside card */
    margin-top: auto; /* Push to bottom */
}
.card.border-0 { /* Ensure no border when class is used */
    border: none !important;
}
.card.col-lg-8.mx-auto { /* For customer stories carousel cards */
    box-shadow: none; /* Remove shadow if it's just a content container */
}


/* Progress Indicators */
.progress {
    height: 25px;
    border-radius: var(--button-border-radius);
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.progress-bar {
    background-color: var(--color-accent-success);
    font-weight: 500;
    border-radius: var(--button-border-radius);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Default for LTR */
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-border);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 70px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-img {
    position: absolute;
    left: 0; /* Initial position */
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 5px solid var(--color-background-body);
    transform: translateX(calc(20px - 50%)); /* Center on the line */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Optional: Add icon inside timeline-img later if needed */
.timeline-content {
    background: var(--color-background-light);
    padding: 1.5rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.timeline-content h5 {
    color: var(--color-primary);
    font-weight: 600;
}
.timeline-content img {
    max-width: 100%;
    border-radius: calc(var(--card-border-radius) - 0.5rem);
    margin-top: 1rem;
}
@media (max-width: 767.98px) {
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 45px; }
    .timeline-img { transform: translateX(calc(10px - 50%)); }
}


/* Carousel */
#customerStoriesCarousel .carousel-indicators button {
    background-color: var(--color-primary-light);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.6;
}
#customerStoriesCarousel .carousel-indicators button.active {
    background-color: var(--color-primary);
    opacity: 1;
}
#customerStoriesCarousel .carousel-control-prev-icon,
#customerStoriesCarousel .carousel-control-next-icon {
    background-color: var(--color-primary); /* Change background of arrow container */
    border-radius: 50%;
    padding: 1.2rem; /* Make it larger and circular */
    background-size: 50% 50%;
}
/* Make sure carousel items content is vertically centered if cards differ in height */
#customerStoriesCarousel .carousel-item .card {
    background: transparent; /* Make card bg transparent if item has bg */
}

/* Awards Section Specifics */
#awards .card {
    box-shadow: none; /* Often awards are just text + icon, no heavy card */
}
#awards .card-image img { /* Center the award icon/logo */
    width: 100px; /* Adjust as needed */
    height: 100px;
    object-fit: contain; /* For logos */
}

/* External Resources List Group */
.list-group-item {
    transition: var(--transition-base);
    border-left: 4px solid transparent;
    padding: 1.25rem 1.5rem;
}
.list-group-item:hover {
    background-color: var(--color-background-section-alt);
    border-left-color: var(--color-primary);
    transform: translateX(5px);
}
.list-group-item h5 {
    color: var(--color-primary);
}

/* FAQ / Accordion */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--card-border-radius) !important; /* Override Bootstrap */
    overflow: hidden; /* Ensure button respects border radius */
}
.accordion-button {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    padding: 1.25rem 1.5rem;
}
.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb, 42, 127, 255), 0.05);
    box-shadow: inset 0 -1px 0 var(--color-border);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb, 42, 127, 255), 0.25);
    z-index: 3; /* Ensure focus outline is visible */
}
.accordion-body {
    padding: 1.5rem;
    background-color: var(--color-background-light);
    color: var(--color-text-medium);
}

/* Contact Form */
.form-label {
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}
.form-control, .modern-input { /* Modern input from HTML */
    border-radius: var(--input-border-radius);
    padding: var(--input-padding);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    background-color: var(--color-background-light);
    color: var(--color-text-base);
}
.form-control:focus, .modern-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 42, 127, 255), 0.25);
    background-color: var(--color-background-light); /* Ensure bg doesn't change on focus */
}
textarea.form-control, textarea.modern-input {
    min-height: 150px;
}

/* Footer */
.footer-section {
    background: var(--gradient-footer);
    color: var(--color-text-light);
    padding: 4rem 0 2rem; /* More top padding */
}
.footer-section h5 {
    color: var(--color-text-inverted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}
.footer-section p, .footer-section .list-unstyled li {
    color: var(--footer-link-color);
    font-size: 0.95rem;
}
.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block; /* For padding/margin */
    padding: 0.25rem 0;
}
.footer-link:hover {
    color: var(--footer-link-hover-color);
    text-decoration: none; /* Override global hover */
    transform: translateX(3px);
}
.footer-section hr {
    border-color: var(--color-border-light);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
/* Social media links in footer (text based) */
.footer-section .list-unstyled li a[target="_blank"]::after {
    /* Optional: Add a small external link icon for text links */
    /* content: ' \f08e'; FontAwesome example */
    /* font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 4px; */
}

/* "Read More" Link Style */
.read-more-link {
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}
.read-more-link::after {
    content: ' →'; /* Arrow */
    transition: var(--transition-base);
    opacity: 0.7;
}
.read-more-link:hover::after {
    transform: translateX(4px);
    opacity: 1;
}
.read-more-link:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}


/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Page Styles */
/* success.html */
body.page-success { /* Add class 'page-success' to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-success .page-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
body.page-success main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.page-success footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* privacy.html, terms.html */
body.page-legal main.container { /* Add class 'page-legal' to body of privacy/terms */
    padding-top: calc(var(--header-height) + 2rem); /* Header height + some margin */
    padding-bottom: 3rem;
}
body.page-legal main.container h1 {
    margin-bottom: 2rem;
}
body.page-legal main.container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--color-primary);
}
body.page-legal main.container p, body.page-legal main.container li {
    line-height: 1.8;
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.25rem 0;
    }
    .hero-section {
        min-height: 75vh;
    }
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 45px; margin-bottom: 30px; }
    .timeline-img { transform: translateX(calc(10px - 50%)); width: 30px; height: 30px; border-width: 3px;}
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem; /* Adjust for smaller screens */
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .footer-section .col-md-4, .footer-section .col-md-2, .footer-section .col-md-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    .footer-section .list-unstyled {
        padding-left: 0;
    }
}

/* Cookie Popup Specific Styles */
#cookiePopup {
    background-color: rgba(var(--color-text-dark-rgb, 34,34,34), 0.95) !important; /* Darker, use RGB var if set */
    color: var(--color-text-light) !important;
    font-size: 0.9rem !important;
}
#cookiePopup p {
    color: var(--color-text-light) !important;
    margin-bottom: 1rem !important;
}
#cookiePopup a {
    color: var(--color-primary-light) !important;
    font-weight: 500;
}
#cookiePopup button#acceptCookie {
    background-color: var(--color-accent-success) !important;
    color: var(--color-text-inverted) !important;
    border: none;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--button-border-radius) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    font-weight: var(--button-font-weight);
    transition: var(--transition-elastic) !important;
}
#cookiePopup button#acceptCookie:hover {
    background-color: var(--color-accent-success-dark) !important;
    transform: translateY(-2px) scale(1.02);
}

/* Helper for RGB variables if needed for rgba() without Sass */
/* Example: In your HTML or JS, you can set these if needed
<style>
  :root {
    --color-primary-rgb: 42, 127, 255;
  }
</style>
*/