/* ===================================
   SERVICES PAGE — HERO BANNER
   Reuses .sre-hero-wrap, .wrap, .left,
   .sub, .line, .title, .txt, .btns,
   .btn1, .btn2 from style.css.
   Only defines the static slide container.
   =================================== */

/* Static slide — mirrors .hero-slider .slide from style.css */
.sre-slide {
    height: 500px;
    background-position: bottom;
    background-size: cover;
    position: relative;
}

/* Dark overlay — same as .slide::before in style.css */
.sre-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
}

/*
 * Override .left gradient so the blue panel reads as near-solid
 * regardless of how bright the background image is —
 * same fix applied to the About Us banner.
 */
.sre-slide .left {
    background: linear-gradient(45deg, rgba(7, 29, 67, 0.94), #0b3783);
}

/* ===================================
   RESPONSIVE — mirrors style.css hero
   =================================== */

@media (max-width: 992px) {
    .sre-slide {
        height: 620px;
    }
}

/* ===================================
   SERVICES SECTION & LAYOUT
   =================================== */

.sre-services-section {
    padding: 100px 0;
    background-color: #f6f8fb;
}

.sre-services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.sre-services-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #1f63db;
    margin-bottom: 18px;
    position: relative;
    padding: 0 20px;
}

.sre-services-subtitle::before,
.sre-services-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    background: #1f63db;
}

.sre-services-subtitle::before {
    left: 0;
}

.sre-services-subtitle::after {
    right: 0;
}

.sre-services-title {
    font-size: 46px;
    font-weight: 800;
    color: #071d43;
    line-height: 1.1;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sre-services-title span {
    color: #1f63db;
}

.sre-services-desc-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #556b85;
    margin: 0;
}

/* ===================================
   SERVICE CARD DESIGN
   =================================== */

/* Card Wrapper with Drop Shadow (avoids shadow clipping by card's clip-path) */
.sre-service-card-wrapper {
    position: relative;
    filter: drop-shadow(0 12px 28px rgba(7, 29, 67, 0.08));
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sre-service-card-wrapper:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 20px 40px rgba(7, 29, 67, 0.14));
}

/* Card Container (fixed height ensures equal height across each row) */
.sre-service-card {
    background-color: #ffffff;
    border-radius: 0 20px 20px 20px;
    clip-path: polygon(45px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 45px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 440px; /* Reduced from 480px to eliminate excess bottom padding */
}

/* Image Wrapper */
.sre-card-img-wrapper {
    position: relative;
    height: 240px; /* Reduced from 250px */
    overflow: hidden;
    flex-shrink: 0;
}

.sre-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   HOVER OVERLAY & INTERACTION
   =================================== */

/* Semi-transparent blue overlay over the image */
.sre-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 99, 219, 0.45);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.35s ease-in-out;
}

/* Circular Icon Badge Overlap (moves naturally with card-body because it is a child) */
.sre-card-badge {
    position: absolute;
    left: 28px;
    top: 0; /* Positioned at the top border of the card body */
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #071d43;
    border: 4px solid #ffffff;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(7, 29, 67, 0.12);
}

/* Card Body (Positioned absolute to bottom; shifts top edge up on hover) */
.sre-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 240px; /* Starts right below the image wrapper */
    background-color: #ffffff;
    padding: 35px 28px 25px 28px; /* Adjusted padding for better balance */
    display: flex;
    flex-direction: column;
    z-index: 5;
    transition: top 0.35s ease-in-out;
}

.sre-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #071d43;
    margin-top: 10px; /* Gives spacing for the badge */
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Description (Single paragraph - restricted max-height in default state, expands on hover) */
.sre-card-desc {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-height: 70px; /* Limits view to 2-3 lines in default state */
    overflow: hidden;
    transition: max-height 0.35s ease-in-out, color 0.35s ease-in-out;
}

/* ===================================
   HOVER ACTIONS (NEW EFFECT)
   =================================== */

/* Reveal blue tint on image on hover, active, and touch states */
.sre-service-card-wrapper:hover .sre-hover-overlay,
.sre-service-card-wrapper:active .sre-hover-overlay,
.sre-service-card:hover .sre-hover-overlay,
.sre-service-card:active .sre-hover-overlay {
    opacity: 1 !important;
}

/* Slide content section upward over the image wrapper on hover, active, and touch states */
.sre-service-card-wrapper:hover .sre-card-body,
.sre-service-card-wrapper:active .sre-card-body,
.sre-service-card:hover .sre-card-body,
.sre-service-card:active .sre-card-body {
    top: 180px !important;
}

/* Expand description on hover, active, and touch states */
.sre-service-card-wrapper:hover .sre-card-desc,
.sre-service-card-wrapper:active .sre-card-desc,
.sre-service-card:hover .sre-card-desc,
.sre-service-card:active .sre-card-desc {
    max-height: 250px !important;
    color: #475569 !important;
}

/* ===================================
   RESPONSIVE DESIGN ADAPTATIONS
   =================================== */

@media (max-width: 991px) {
    .sre-services-section {
        padding: 80px 0;
    }
    
    .sre-services-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .sre-services-section {
        padding: 60px 0;
    }
    
    .sre-services-title {
        font-size: 28px;
    }
}
