:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --background-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar .container {
    padding: 0 15px; /* Default padding */
}

@media (max-width: 991.98px) {
    .navbar .container {
        padding: 0 5px; /* Further reduce padding on smaller screens */
    }

    .brand-text {
        font-size: 1.2rem; /* Reduce logo font size on mobile */
    }

    .navbar-brand {
        margin-right: 0; /* Remove right margin from brand on mobile */
        padding: 0; /* Remove padding from brand on mobile */
        flex-shrink: 0; /* Prevent shrinking */
        flex-grow: 0; /* Prevent growing */
    }

    .navbar-toggler {
        display: flex; /* Use flexbox for centering */
        align-items: center;
        justify-content: center;
        padding: 0.25rem; /* Slightly reduce toggler padding */
        flex-shrink: 0; /* Prevent shrinking */
        flex-grow: 0; /* Prevent growing */
    }
}

@media (min-width: 1200px) {
    .navbar .container {
        max-width: 1140px; /* Ensure container doesn't exceed max width on large screens */
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    display: none; /* Hide by default */
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler i {
    color: var(--text-dark);
    font-size: 1.5rem;
    display: block;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 70%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .row {
    align-items: center;
    position: relative; /* Ensure row is positioned relative to hero */
    z-index: 2; /* Bring row content above background elements */
}

.hero-content {
    padding-right: 2rem;
    position: relative; /* Ensure content is positioned relative */
    z-index: 2; /* Bring content above background elements */
}

/* Adjust Hero content padding for tablets and smaller desktops */
@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 1rem; /* Reduce padding on smaller screens */
    }
}

.hero-image-wrapper {
    position: relative;
    margin-top: -4rem;
    z-index: 2; /* Bring image wrapper above background elements */
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    z-index: 1; /* Keep image container below row content if needed */
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
    position: relative; /* Ensure stats are positioned relative */
    z-index: 2; /* Bring stats above background elements */
}

.hero-image-stats h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-image-stats p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1; /* Ensure background element is behind foreground content */
}

.hero-badge {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative; /* Ensure badge is positioned relative */
    z-index: 2; /* Bring badge above background elements */
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 2rem;
}

.bg-primary-soft {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.bg-success-soft {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative; /* Ensure features are positioned relative */
    z-index: 2; /* Bring features above background elements */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.25rem;
}

.hero-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
    position: relative; /* Ensure stats are positioned relative */
    z-index: 2; /* Bring stats above background elements */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-image-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    position: relative; /* Ensure overlay is positioned relative */
    z-index: 2; /* Bring overlay above background image */
}

.overlay-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.overlay-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Ensure buttons are clickable */
.hero .btn {
    position: relative; /* Ensure buttons are positioned relative */
    z-index: 3; /* Bring buttons to the very front */
    pointer-events: auto; /* Ensure pointer events are enabled */
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image-wrapper {
        margin-top: 0;
    }
    
    .hero-image-container {
        margin-bottom: 1rem;
    }
    
    .hero-image-stats {
        margin-top: 1rem;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-features {
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-image-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
    }
    
    .overlay-item {
        font-size: 0.8rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
}

/* Hero Image Styles */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    z-index: 1; /* Ensure overlay is below image content */
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-image-container {
        max-height: 400px;
    }
}

@media (min-width: 1025px) {
    .hero-image-container {
        max-height: 500px;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Feature Cards Responsive Styles */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
}

/* Pricing Cards */
.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: var(--primary-color);
}

.pricing-footer {
    margin-top: auto;
}

.pricing-footer .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Pricing Section Responsive Styles */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-header h3 {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .features-list {
        padding-left: 1rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
    }
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 0;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Comparison Section */
.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.comparison-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 0.5rem;
}

.pros {
    background: rgba(37, 99, 235, 0.05);
}

.cons {
    background: rgba(100, 116, 139, 0.05);
}

.pros h4, .cons h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros i {
    color: #22c55e;
}

.cons i {
    color: #ef4444;
}

.privacy-note {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
}

.privacy-note i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.privacy-note h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.privacy-note .lead {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .comparison-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .comparison-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .comparison-card h3 {
        font-size: 1.25rem;
    }
    
    .comparison-content {
        flex-direction: column;
    }
    
    .pros, .cons {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .privacy-note {
        padding: 1.5rem;
    }
    
    .privacy-note h3 {
        font-size: 1.25rem;
    }
    
    .privacy-note .lead {
        font-size: 1rem;
    }
}

/* Section Divider */
.section-divider {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.divider-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    z-index: 2;
}

.divider-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

.divider-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.divider-text {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.divider-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .section-divider {
        height: auto;
        margin-top: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
    }
    
    .divider-text {
        font-size: 1rem;
    }
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.faq .accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq .accordion-button {
    background-color: white;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f8fafc;
    box-shadow: none;
}

.faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.faq .accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
    background-color: white;
    border-top: 1px solid #e2e8f0;
}

.faq .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234b5563'%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");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.faq .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='%232563eb'%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");
    transform: rotate(-180deg);
}

/* FAQ Section Responsive Styles */
@media (max-width: 768px) {
    .faq .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq .accordion-body {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .faq .accordion-button::after {
        width: 1rem;
        height: 1rem;
    }
}

/* Additional Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding-top: 5rem;
    }
    
    .hero-image-container {
        max-height: 400px;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .comparison-card {
        padding: 1.75rem;
    }
    
    .pricing-card {
        padding: 1.75rem;
    }
}

/* Contact Section Responsive Styles */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact h2 {
        font-size: 1.75rem;
    }
    
    .contact .lead {
        font-size: 1rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white; /* Ensure white background for smooth transition */
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 72px; /* Высота навбара */
        left: 0;
        right: 0;
        background-color: white;
        z-index: 1020;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    .navbar-nav .btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        display: inline-block;
    }
}

/* How It Works Section */
#how-it-works {
    background-color: white; /* Or a light background color */
    padding: 5rem 0;
}

#how-it-works .row {
    align-items: center; /* Ensure vertical centering */
}

.how-it-works-text-col {
    padding: 20px; /* Add padding inside the border */
    border: 1px solid #e2e8f0; /* Add a border */
    border-radius: 0.5rem; /* Optional: add rounded corners */
    /* Ensure text is left-aligned */
    text-align: left;
}

@media (max-width: 991.98px) {
    .how-it-works-text-col {
        padding: 15px; /* Adjust padding for smaller screens */
        margin-bottom: 20px; /* Add space below text on mobile */
        padding-right: 15px; /* Keep existing padding adjustment */
        padding-bottom: 20px; /* Keep existing padding adjustment */
    }
}

.how-it-works-img {
    margin: 20px auto;
    max-width: 400px;
    display: block; /* Center image */
    /* Add padding-left to balance the text column's padding-right on larger screens */
    /* Removed padding-left: 20px as it will be handled by the container padding */
    position: relative; /* Needed for the overlay */
    border-radius: 0.5rem; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    overflow: hidden; /* Hide overflowing content, like the pseudo-element */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2); /* Dark overlay */
    z-index: 1; /* Place above the image */
    opacity: 1; /* Ensure visibility */
    transition: opacity 0.3s ease;
}

.how-it-works-img:hover {
    transform: translateY(-5px); /* Add a slight lift effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.how-it-works-img:hover::before {
     opacity: 0; /* Make overlay disappear on hover */
}

@media (max-width: 991.98px) {
    .how-it-works-img {
        padding-left: 0; /* Remove padding-left on smaller screens */
        margin-top: 0; /* Remove extra top margin on mobile */
        margin-bottom: 20px; /* Add space below image on mobile */
    }
}

.how-it-works-steps .step-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem; /* Adjust icon vertical alignment */
}

.how-it-works-steps .step-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.how-it-works-steps .step-content p {
    color: var(--text-light);
}

/* Responsive adjustments for How It Works section */
@media (max-width: 768px) {
    #how-it-works .row {
        flex-direction: column-reverse; /* Stack columns with image first on mobile */
    }
    
    #how-it-works .col-lg-6 {
        margin-bottom: 2rem; /* Add space between stacked columns */
    }
    
    .how-it-works-img {
        max-width: 100%; /* Allow image to take full width on mobile */
    }
}

/* General Responsive Adjustments */

/* Adjust section padding for smaller screens */
@media (max-width: 768px) {
    section {
        padding: 3rem 0; /* Reduce vertical padding on smaller screens */
    }
}

/* Adjust heading font sizes on smaller screens */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* Smaller font size for main heading */
    }
    h2 {
        font-size: 1.75rem; /* Smaller font size for section headings */
    }
    h3 {
        font-size: 1.5rem; /* Smaller font size for card/feature headings */
    }
}

/* Ensure images within content areas are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Adjust padding for columns in rows on smaller screens if needed (Bootstrap default handles a lot) */
@media (max-width: 768px) {
    .row > div {
        padding-left: 15px;
        padding-right: 15px;
    }
} 