/* css/seo.css - Page-specific styles for SEO Services Page */

/* --- Hero Section --- */
.seo-hero {
    position: relative;
    height: clamp(450px, 60vh, 600px); /* Responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.seo-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.seo-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 32, 53, 0.6); /* Match existing carousel overlay */
    z-index: 1;
}

.seo-hero .container {
    position: relative;
    z-index: 2; /* Bring content above the overlay */
    height: 100%; /* Ensure container fills hero height for centering */
}

/* --- Breadcrumbs --- */
.seo-breadcrumb {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    padding: .5rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 1.5rem; /* Add some space below breadcrumbs */
}

.seo-breadcrumb .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.seo-breadcrumb .breadcrumb-item.active {
    color: var(--light);
}

.seo-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/* --- SEO Feature Cards --- */
.seo-feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    border: 1px solid var(--light);
}

.seo-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    border-color: var(--primary);
}

/* --- SEO Process Steps --- */
.seo-process {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center; /* Center items when they wrap */
    gap: 1rem; /* Space between steps */
}

.seo-process-step {
    text-align: center;
    position: relative;
    flex: 1 1 180px; /* Allow items to grow/shrink, with a base width */
    max-width: 200px; /* Max width for each step */
    padding-bottom: 30px; /* Space for connector on mobile */
}

.seo-process-step .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto; /* Center number and add margin below */
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--primary);
    position: relative; /* For z-index to be above line */
    z-index: 1;
}

/* Connector line for desktop */
@media (min-width: 768px) {
    .seo-process {
        flex-wrap: nowrap; /* Keep on one line on larger screens */
    }
    .seo-process-step {
        padding-bottom: 0; /* No extra padding needed for mobile line */
    }
    .seo-process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px; /* Align with center of step-number */
        left: calc(50% + 30px); /* Start after the step-number */
        width: calc(100% - 60px); /* Adjust width to connect numbers */
        height: 2px;
        background-color: var(--light);
        z-index: 0;
    }
}

/* --- SEO Packages --- */
.seo-package {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.seo-package:hover {
    transform: scale(1.05);
}

.seo-package h3 {
    color: var(--primary);
    font-weight: 700;
}

.seo-package ul {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 0; /* Remove default padding for ul */
}

.seo-package ul li {
    margin-bottom: 10px;
    list-style: none; /* Remove default list style */
}

.seo-package.popular {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: 20px; /* Adjust top position */
    right: -40px;
    background-color: var(--primary);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 500;
    width: 150px; /* Ensure badge width */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Add subtle shadow */
}

/* Ensure consistent button styling */
.seo-package .btn {
    width: 100%;
    margin-top: auto; /* Push button to bottom */
}

/* Minor adjustments for mobile responsiveness in the Bootstrap grid */
@media (max-width: 767.98px) {
    .seo-process-step {
        flex: 1 1 45%; /* Two columns on smaller mobiles */
    }
}

@media (max-width: 575.98px) {
    .seo-process-step {
        flex: 1 1 100%; /* Single column on smallest mobiles */
        max-width: 300px; /* Keep a reasonable max width */
    }
}