/* Personalize Page Styles */

.personalize-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-image: url('images/hero4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.personalize-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.3) 100%);
    display: flex;
    align-items: center;
}

.personalize-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 60px;
    width: 100%;
}

.personalize-hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark-blue);
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background-color: #fff;
}

.categories-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.categories-container h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 2.5rem;
    padding: 0 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.category-item {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border-right: 2px solid #d1d5db;
    border-bottom: 2px solid #d1d5db;
}

/* Remove right border for last item in each row */
.category-item:nth-child(4n) {
    border-right: none;
}

/* Remove bottom border for last row items */
.category-item:nth-last-child(-n+4) {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-image {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.category-image img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.category-item h3 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-weight: 600;
    margin: 0;
}

/* Description Section */
.description-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.description-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.description-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.9;
    text-align: center;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 3rem 4rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.contact-cta-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-cta-box p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.contact-cta-box a[href^="tel"] {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--white);
    transition: opacity 0.3s ease;
}

.contact-cta-box a[href^="tel"]:hover {
    opacity: 0.8;
}

.cta-tagline {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.95;
}

.btn-get-in-touch {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.btn-get-in-touch:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .personalize-hero-content {
        padding: 3rem 40px;
    }

    .personalize-hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .personalize-hero {
        min-height: 500px;
    }

    .personalize-hero-overlay {
        background: rgba(255, 255, 255, 0.92);
    }

    .personalize-hero-content {
        padding: 2rem 20px;
    }

    .personalize-hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset borders for 2-column layout */
    .category-item:nth-child(4n) {
        border-right: 2px solid #d1d5db;
    }

    .category-item:nth-last-child(-n+4) {
        border-bottom: 2px solid #d1d5db;
    }

    .category-item:nth-child(2n) {
        border-right: none;
    }

    .category-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .categories-container h2 {
        padding: 0 20px;
    }

    .description-container {
        padding: 0 20px;
    }

    .contact-cta-box {
        padding: 2rem 2rem;
        margin: 0 20px;
    }

    .contact-cta-box h3 {
        font-size: 1.5rem;
    }

    .contact-cta-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .personalize-hero {
        min-height: 450px;
    }

    .personalize-hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Reset all borders for single column */
    .category-item:nth-child(2n) {
        border-right: 2px solid #d1d5db;
    }

    .category-item:nth-last-child(-n+2) {
        border-bottom: 2px solid #d1d5db;
    }

    .category-item {
        padding: 1.5rem;
        border-right: none;
    }

    .category-item:last-child {
        border-bottom: none;
    }

    .description-container p {
        font-size: 1rem;
    }

    .contact-cta-box {
        padding: 2rem 1.5rem;
    }

    .btn-get-in-touch {
        width: 100%;
        padding: 0.9rem 2rem;
    }
}
