.star-rating {
    display: flex;
    align-items: center;
}

.star-rating i {
    font-size: 1rem;
    margin-right: 2px;
}

.bi-star-fill {
    color: #ffc000 !important;
}

.bi-star {
    color: #6c757d;
}

:root {
    /* Primary theme colors - Vibrant Purple */
    --bs-primary: #9c5fff;
    --bs-primary-rgb: 156, 95, 255;
    
    /* Success color - Vibrant Teal */
    --bs-success: #00d4a0;
    --bs-success-rgb: 0, 212, 160;
    
    /* Background colors - Deep Charcoal */
    --bs-dark: #1a1a24;
    --bs-dark-rgb: 26, 26, 36;
    
    /* Text colors - Bright White */
    --bs-light: #f8f8ff;
    --bs-light-rgb: 248, 248, 255;
    
    /* Warning colors - Bold Orange */
    --bs-warning: #ff9035;
    --bs-warning-rgb: 255, 144, 53;
    
    /* Secondary colors - Electric Blue */
    --bs-secondary: #42a5f5;
    --bs-secondary-rgb: 66, 165, 245;
    
    /* Card background - Slightly lighter charcoal */
    --bs-card-bg: #242433;
}

/* Body Styles */
body {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

/* Override Button styles */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #1a1a24;
}

.btn-primary:hover {
    background-color: #b285ff;
    border-color: #b285ff;
    color: #1a1a24;
}

.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    color: #1a1a24;
}

.btn-success:hover {
    background-color: #00f2b8;
    border-color: #00f2b8;
    color: #1a1a24;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #1a1a24;
}

/* Override text colors */
.text-primary {
    color: var(--bs-primary) !important;
}

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

/* Override background colors */
.bg-dark {
    background-color: var(--bs-dark) !important;
}

/* Card styling */
.card.bg-dark {
    background-color: var(--bs-card-bg) !important;
    border: 1px solid rgba(156, 95, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card hover effect */
.card.bg-dark:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Content section backgrounds */
section {
    position: relative;
}

section:nth-child(even) {
    background-color: rgba(45, 45, 61, 0.5);
}

/* Hero section styling */
header.bg-dark {
    background-color: var(--bs-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Testimonial card styling */
.testimonial-card p.bg-dark {
    border-color: var(--bs-primary) !important;
    border-width: 1px !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Testimonial styling improvements - Speech bubble fix */
.testimonial-content {
    background-color: var(--bs-card-bg) !important;
    border: 1px solid rgba(156, 95, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important; /* Increased margin to accommodate the arrow */
    color: var(--bs-light);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-content::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--bs-card-bg) transparent transparent;
    display: block;
    width: 0;
    z-index: 2; /* Ensure it's above other elements */
}

/* Add a border arrow to match the border of the speech bubble */
.testimonial-content::before {
    content: "";
    position: absolute;
    bottom: -12px; /* 1px more than the after to account for border */
    left: 20px;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: rgba(156, 95, 255, 0.3) transparent transparent;
    display: block;
    width: 0;
    z-index: 1;
}

/* Star rating color override */
.star-rating i.bi-star-fill {
    color: #ffc000 !important;
}

.star-rating i.bi-star {
    color: rgba(156, 95, 255, 0.3) !important;
}

/* Rounded avatar images - ensure they're properly styled */
.rounded-circle.fit-cover {
    object-fit: cover;
    border: 2px solid #9c5fff;
}

/* Step card icon styling */
.bs-icon-circle {
    transition: transform 0.3s ease;
}

.card:hover .bs-icon-circle {
    transform: scale(1.1);
}

/* Footer styling */
footer.bg-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .text-muted {
    color: rgba(248, 248, 255, 0.65) !important;
}

footer hr.bg-light {
    opacity: 0.1;
}

/* Navbar enhancement */
.navbar-dark {
    background-color: rgba(26, 26, 36, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Fix Bootstrap dark theme */
html[data-bs-theme="light"] {
    --bs-body-bg: var(--bs-dark);
    --bs-body-color: var(--bs-light);
}

/* CTA section enhancement */
.col-12.text-center .lead {
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form submit buttons - make them more prominent */
form .btn-primary, 
form .btn-success {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Text links in cards */
.card a:not(.btn) {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card a:not(.btn):hover {
    color: #b285ff;
    text-decoration: underline;
}

/* Container spacing consistency */
.container.py-5 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

/* Fix other Bootstrap components */
.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: #1a1a24;
}

.nav-link {
    color: var(--bs-light);
}

.nav-link:hover {
    color: var(--bs-primary);
}

.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Form controls */
.form-control.bg-dark {
    background-color: #242433 !important;
    border-color: #3d3d4d;
    color: var(--bs-light);
}

.form-control.bg-dark:focus {
    border-color: #9c5fff;
    box-shadow: 0 0 0 0.25rem rgba(156, 95, 255, 0.25);
}

/* Progress bars */
.progress {
    background-color: #242433;
}

.progress-bar {
    background-color: var(--bs-primary);
}

/* Tables */
.table {
    color: var(--bs-light);
}

.table-dark {
    background-color: #242433;
}

/* Custom pastel divider */
.pastel-divider {
    height: 3px;
    background: linear-gradient(90deg, 
        #9c5fff, 
        #00d4a0, 
        #42a5f5, 
        #ff9035);
    margin: 2rem 0;
    opacity: 0.9;
    border-radius: 3px;
}

/* Dark mode navbar */
.navbar-dark {
    background-color: rgba(26, 26, 36, 0.95);
}

/* Custom glow effect for highlights */
.pastel-glow {
    text-shadow: 0 0 8px rgba(156, 95, 255, 0.6);
}