h1{
    grid-column: span 12;
}

.cta-services {
    background: #FFFFFF;
    color: var(--Primary);
    padding: 15px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #FFFFFF;
}

.cta-services:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.servicesp p{
    grid-column: span 12;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.civil-services, .infra-services{
    grid-column: span 6;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Soft shadow for "border" look */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 20px;     
}

.civil-services:hover, .infra-services:hover{
      transform: translateY(-5px);    /* Lift the card slightly */
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.construction-services{
    grid-column: span 12;
    display: grid;
    grid-template-columns: subgrid;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Soft shadow for "border" look */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 20px; 
}

.construction-services:hover{
   transform: translateY(-5px);    /* Lift the card slightly */
  box-shadow: 0 8px 15px rgba(0,0,0,0.15); 
}

.construction-services > .core-services, .construction-services > .finishing-services{
    
    grid-column: span 6;
}

li{
    list-style: none;
    font-size: 1.1rem;
}

span{
    padding-left: 4px;
}

.serv-headings{
    display: flex;
    grid-column: span 12;
}

.serv-headings div{
    display: flex;
    justify-self: center;
    align-self: center;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(34, 59, 82, 0.8);  /* 50% */
}
.serv-headings img{
    width: 30px;
    height: 30px; 
}
.serv-headings h2{
    margin-left: 10px;
}

.call-to-action{
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--Primary);
    padding: 2rem;
    color: #fff;
    border-radius: 15px;
}

.call-to-action h4{
    color: #fff;
    padding-bottom: 5px;
}

.cta-btn{
    background-color: var(--Headings);
}

/* ===== RESPONSIVE SERVICES STYLES ===== */

/* Medium Desktop: 1200px - 992px */
@media (max-width: 1200px) {
    .civil-services, .infra-services {
        padding: 18px;
    }
    
    .construction-services {
        padding: 18px;
    }
    
    li {
        font-size: 1.05rem;
    }
    
    .serv-headings h2 {
        font-size: 2.3rem;
    }
    
    .call-to-action {
        padding: 1.8rem;
    }
}

/* Tablet: 991px - 768px */
@media (max-width: 992px) {
   .civil-services, .infra-services {
        grid-column: span 12;
        padding: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .construction-services {
        padding: 18px;
        display: block;
        text-align: center;
    }
    
    .construction-services > .core-services, 
    .construction-services > .finishing-services {
        grid-column: 1 / -1;
        margin-bottom: 25px;
        width: 100%;
    }
    
    .serv-headings {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .serv-headings h2 {
        margin-left: 0;
        font-size: 1.8rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* FIX: Center the entire list container instead of individual items */
    .civil-services ul,
    .infra-services ul,
    .core-services ul,
    .finishing-services ul {
        display: inline-block; /* Makes the list shrink-to-fit content */
        text-align: left; /* Left-align text inside the centered container */
        margin: 0 auto; /* Center the container */
    }
    
    li {
        font-size: 0.95rem;
        text-align: left; /* Left-align text within list items */
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align items to the left within the centered container */
    }
    
    .call-to-action {
        padding: 1.5rem;
        text-align: center; /* Center CTA content */
    }
    
    .call-to-action h4 {
        font-size: 1.1rem;
    }
    
    .servicesp p {
        font-size: 1rem;
        text-align: center;
    }
    
    h1 {
        text-align: center;
        font-size: 3.2rem;
    }

    .construction-services >.core-services, .construction-services> .finishing-services {
        grid-column: span 12; /* Stack core and finishing services vertically */
        margin-bottom: 20px; /* Add space between stacked sections */
    }
}

/* Mobile Landscape: 767px - 576px */
@media (max-width: 768px) {
    .civil-services, .infra-services {
        padding: 18px;
        margin-bottom: 15px;
        text-align: center; /* Center content */
    }
    
    .construction-services {
        padding: 18px;
        display: block; /* Change from grid to block layout for proper stacking */
        text-align: center; /* Center content */
    }
    
    .construction-services > .core-services, 
    .construction-services > .finishing-services {
        grid-column: 1 / -1; /* Full width */
        margin-bottom: 25px; /* Add space between stacked sections */
        width: 100%; /* Ensure full width */
    }
    
    .construction-services > .finishing-services:last-child {
        margin-bottom: 0;
    }
    
    .serv-headings {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        justify-content: center; /* Center headings */
        align-items: center; /* Center align items */
    }
    
    .serv-headings h2 {
        margin-left: 0;
        font-size: 1.8rem;
        padding: 0.5rem 0;
        text-align: center; /* Center heading text */
    }
    
    .serv-headings div {
        align-self: center;
    }
    
    li {
        font-size: 0.95rem;
        text-align: center; /* Center list items */
        display: flex;
        justify-content: center; /* Center the checkmark and text */
        align-items: center;
    }
    
    .call-to-action {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 1.5rem;
    }
    
    .call-toa-info {
        margin-bottom: 10px;
    }
    
    .call-to-action h4 {
        font-size: 1.1rem;
    }
    
    .call-to-action p {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .servicesp p {
        font-size: 0.95rem;
        text-align: center;
    }
}

/* Mobile Portrait: 575px and below */
@media (max-width: 576px) {
    .civil-services, .infra-services {
        padding: 15px;
        margin-bottom: 12px;
        text-align: center; /* Center content */
    }
    
    .construction-services {
        padding: 15px;
        text-align: center; /* Center content */
    }
    
    .construction-services > .core-services, 
    .construction-services > .finishing-services {
        margin-bottom: 20px; /* Maintain spacing between stacked sections */
    }
    
    .serv-headings h2 {
        font-size: 1.6rem;
        text-align: center; /* Center heading */
    }
    
    .serv-headings img {
        width: 25px;
        height: 25px;
    }
    
    .serv-headings div {
        padding: 8px;
    }
    
    li {
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: center; /* Center list items */
        display: flex;
        justify-content: center; /* Center the checkmark and text */
        align-items: center;
    }
    
    span {
        padding-left: 3px;
    }
    
    .call-to-action {
        padding: 1.2rem;
        border-radius: 10px;
        text-align: center; /* Center CTA */
    }
    
    .call-to-action h4 {
        font-size: 1rem;
    }
    
    .call-to-action p {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2.4rem;
        text-align: center;
    }
    
    .servicesp p {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Extra Small Mobile: 399px and below */
@media (max-width: 400px) {
    .civil-services, .infra-services {
        padding: 12px;
        margin-bottom: 10px;
        text-align: center; /* Center content */
    }
    
    .construction-services {
        padding: 12px;
        text-align: center; /* Center content */
    }
    
    .construction-services > .core-services, 
    .construction-services > .finishing-services {
        margin-bottom: 15px; /* Maintain spacing */
    }
    
    .serv-headings h2 {
        font-size: 1.4rem;
        text-align: center; /* Center heading */
    }
    
    .serv-headings img {
        width: 22px;
        height: 22px;
    }
    
    .serv-headings div {
        padding: 6px;
    }
    
    li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: center; /* Center list items */
        display: flex;
        justify-content: center; /* Center the checkmark and text */
        align-items: center;
    }
    
    span {
        padding-left: 2px;
    }
    
    .call-to-action {
        padding: 1rem;
        border-radius: 8px;
        text-align: center; /* Center CTA */
    }
    
    .call-to-action h4 {
        font-size: 0.95rem;
    }
    
    .call-to-action p {
        font-size: 0.85rem;
    }
    
    .cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .servicesp p {
        font-size: 0.85rem;
        text-align: center;
    }
}