/* ====== GENERAL STYLES ====== */
:root {
    --primary-color: #AF5A3D;
    --secondary-color: #ffffea;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrollbar during animations */
    background-color: var(--secondary-color)!important;
    background-color: #ffffea;
    background-image: url("https://transparenttextures.com/patterns/arches.png");
}

/*======below hero section==========*/

.hero-service-wrapper {
    margin-top: 10px;
    padding: 30px 5%;
    text-align: center;
    background-color: #ffffea37;
    
}

.service-title {
    font-size: 2rem; /* Reduced font size */
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: -10px;
    line-height: 1.3;
}

.service-subtitle {
    display: none; /* Hidden as per new design */
}

.services-divider-icon {
    display: inline-block;
    margin: 8px auto 5px;
    position: relative;
}

.services-divider-icon img {
    height: 100px;
    width: auto;
    vertical-align: middle;
}

.services-divider-icon::before,
.services-divider-icon::after {
    width: 100%;
    border: none;
    border-top: 1.2px solid #AF5A3D; /* Made the line thicker */
    border-radius: 50px; /* yaha round effect milega */
    content: '';
    position: absolute;
    top: 50%;
}

.services-divider-icon::before { left: -110px; }
.services-divider-icon::after { right: -110px; }

.hero-services {
    display: flex; 
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Reduced gap */
    flex-wrap: wrap;
    margin-top: 10px; /* Reduced top margin */
}

.service-box {
    background: none;
    text-align: center;
    padding: 0 15px; /* Adjusted padding */
    border-radius: 0;
    transition: all 0.3s ease;
    width: 240px; /* Reduced width */
}

.service-box h3 {
    color: #AF5A3D;
    font-weight: 600;
    font-size: 1rem; /* Reduced font size */
    margin-bottom: 10px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid #AF5A3D;
}

.service-box .icon {
    width: 80px; /* Reduced size */
    height: 80px; /* Reduced size */
    border: 3px solid #AF5A3D; /* Made border thicker */
    border-radius: 50%;
    font-size: 30px; /* Reduced icon size */
    color: #AF5A3D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* Adjusted bottom margin */
    background-color: transparent;
    transition: all 0.3s ease;
}

.service-box:hover .icon, .service-box.auto-hover .icon {
    background-color: #AF5A3D;
    color: var(--secondary-color);
    transform: rotate(360deg);
}

.service-box p {
    font-size: 14px; /* Reduced font size */
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Divider line (dotted) between cards */
.divider {
    margin: 0;
    align-self: flex-start; /* Aligned to top */
    margin-top: 35px; /* Aligns with middle of icon */
    width: 50px; /* Reduced width for dots */
    height: 6px; /* Height of dots */
    background-image: radial-gradient(circle at center, #AF5A3D 2px, transparent 2px);
    background-size: 15px 6px; /* (dot + space) width, dot height */
    background-repeat: repeat-x;
    border: none;
}

/* ====== NEW ANIMATION STYLES ====== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive styles for the new section */
@media (max-width: 992px) {
    .services-divider-icon::before,
    .services-divider-icon::after {
        width: 100px;
    }
}

@media (max-width: 612px) {
    .hero-service-wrapper {
        padding: 20px 5% 20px;
    }
    .hero-services {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: start;
        gap: 5px; 
    }
    .divider {
        margin-top: 18px; 
        width: 20px; 
        background-size: 7px 5px; 
    }
    .service-box {
        width: auto; /* Grid handles the width */
        padding: 0;
    }
    .service-box .icon {
        width: 65px; 
        height: 65px; 
        font-size: 20px; 
        margin-bottom: 10px; 
        border: 2px solid #AF5A3D;
    }
    .service-box h3 {
        font-size: 0.7rem; 
        white-space: nowrap; 
        border-bottom: 1px solid #AF5A3D;
        padding-bottom: 0;
        margin-bottom: 8px;
    }
    .service-box p {
        display: block; 
        font-size: 0.6rem; 
        line-height: 1.4;
    }
    .service-title {
        font-size: 1.4rem; 
    }
    .services-divider-icon::before,
    .services-divider-icon::after {
        width: 100%;
        border: none;
        border-top: 1.2px solid #AF5A3D; /* Made the line thicker */
        border-radius: 50px; /* yaha round effect milega */
    }
}

