/* Service Page Custom Styles - CSR Image Consistency */

/* Top 3 Overview Cards - Image Sizing */
.service-card.style2 .box-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
}

.service-card.style2 .box-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.service-card.style2:hover .box-icon img {
    transform: scale(1.05);
}

/* Ensure consistent card heights and spacing */
.service-card.style2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card.style2:hover {
    border-color: var(--theme-color, #E63946);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.service-card.style2 .box-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.style2 .box-text {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 0;
}

/* Row spacing for top cards */
.service-card.style2 .row.gy-4 {
    row-gap: 30px !important;
}

/* Detailed Initiative Cards - Image Sizing */
.service-card .box-thumb {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 0;
    position: relative;
}

.service-card .box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.service-card:hover .box-thumb img {
    transform: scale(1.08);
}

/* Consistent card structure for detailed initiatives */
.service-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    border-color: var(--theme-color, #E63946);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.service-card .box-content {
    padding: 30px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.service-card .box-content .box-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.service-card .box-content .box-text {
    font-size: 15px;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 0;
    flex: 1;
}

/* Equal column heights */
.row.gy-40 > [class*="col-"],
.service-inner-row > [class*="col-"] {
    display: flex;
    margin-bottom: 40px;
}

.row.gy-40 {
    row-gap: 40px !important;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .service-card.style2 .box-icon {
        width: 100px;
        height: 100px;
    }
    
    .service-inner-wrap .service-inner-thumb {
        height: 240px;
    }card .box-thumb {
        height: 240px;
    }
}

@media (max-width: 991px) {
    .service-card.style2 .box-icon {
        width: 90px;
        height: 90px;
    }
    
    .service-card .box-thumb {
        height: 220px;
    }
    
    .service-card.style2 .box-title {
        min-height: auto;
        font-size: 18px;
    }
    
    .service-card .box-content .box-title {
        min-height: auto;
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .service-card.style2 {
        margin-bottom: 20px;
    }
    
    .service-card.style2 .box-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-card .box-thumb {
        height: 200px;
    }
    
    .service-card.style2 .box-text,
    .service-card .box-content .box-text {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .service-card .box-thumb {
        height: 180px;
    }
    
    .service-card .box
}

/* Additional spacing utilities */
.space-bottom {
    padding-bottom: 80px;
}

@media (max-width: 991px) {
    .space-bottom {
        padding-bottom: 60px;
    }
}

@media (max-width: 767px) {
    .space-bottom {
        padding-bottom: 40px;
    }
}

/* ========================================
   CSR SECTIONS STYLING
   ======================================== */

/* Giving Back to Society - Counter Cards */
.counter-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 25px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.counter-card:hover {
    border-color: var(--theme-color, #E63946);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.counter-card .box-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    border-radius: 12px;
    font-size: 32px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.counter-card:hover .box-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}

.counter-card .media-body {
    flex: 1;
}

.counter-card .box-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--theme-color, #E63946);
    margin-bottom: 5px;
    line-height: 1;
}

.counter-card .box-text {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Making a Difference - Service Cards Style 3 */
.service-card.style3 {
    text-align: center;
    padding: 35px 25px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card.style3:hover {
    border-color: var(--theme-color, #E63946);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.service-card.style3 .box-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 2px solid var(--theme-color, #E63946);
    border-radius: 50%;
    font-size: 40px;
    color: var(--theme-color, #E63946);
    transition: all 0.4s ease;
    position: relative;
}

.service-card.style3 .box-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--theme-color, #E63946);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.service-card.style3:hover .box-icon {
    background: var(--theme-color, #E63946);
    color: #ffffff;
    transform: rotateY(360deg);
}

.service-card.style3:hover .box-icon::before {
    opacity: 1;
    transform: scale(1.4);
}

.service-card.style3 .box-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.style3 .box-text {
    font-size: 15px;
    line-height: 1.7;
    color: #6c757d;
    margin: 0;
}

/* Measuring Our Success - Counter Cards Style 2 */
.counter-card.style2 {
    text-align: center;
    padding: 35px 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-card.style2:hover {
    border-color: var(--theme-color, #E63946);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.counter-card.style2 .box-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-radius: 50%;
    font-size: 36px;
    transition: all 0.3s ease;
    position: relative;
}

.counter-card.style2 .box-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.counter-card.style2 .box-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--theme-color, #E63946);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.counter-card.style2:hover .box-icon::before {
    opacity: 0.2;
    transform: scale(1);
}

.counter-card.style2:hover .box-icon {
    transform: scale(1.1);
}

.counter-card.style2 .media-body .box-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--theme-color, #E63946);
    margin-bottom: 8px;
    line-height: 1;
}

.counter-card.style2 .media-body .box-text {
    font-size: 17px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.counter-card.style2 .media-body .box-subtext {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Responsive adjustments for CSR sections */
@media (max-width: 991px) {
    .counter-card {
        padding: 25px 20px;
    }
    
    .counter-card .box-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 28px;
    }
    
    .counter-card .box-number {
        font-size: 36px;
    }
    
    .service-card.style3 .box-icon {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }
    
    .service-card.style3 .box-title {
        font-size: 20px;
        min-height: auto;
    }
    
    .counter-card.style2 .box-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .counter-card.style2 .media-body .box-number {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .counter-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
    }
    
    .counter-card .box-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 24px;
    }
    
    .counter-card .box-number {
        font-size: 32px;
    }
    
    .counter-card .box-text {
        font-size: 14px;
    }
    
    .service-card.style3 {
        padding: 30px 20px;
    }
    
    .service-card.style3 .box-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .service-card.style3 .box-title {
        font-size: 18px;
    }
    
    .service-card.style3 .box-text {
        font-size: 14px;
    }
    
    .counter-card.style2 {
        padding: 30px 15px;
    }
    
    .counter-card.style2 .box-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .counter-card.style2 .media-body .box-number {
        font-size: 38px;
    }
    
    .counter-card.style2 .media-body .box-text {
        font-size: 15px;
    }
    
    .counter-card.style2 .media-body .box-subtext {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .counter-card .box-number {
        font-size: 28px;
    }
    
    .service-card.style3 .box-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .counter-card.style2 .media-body .box-number {
        font-size: 34px;
    }
}
