/*==================================================
                GLOBAL CSS
==================================================*/
/* ==========================================================================
   UNIFIED SERVICES SECTION
   ========================================================================== */
/* ==========================================================================
   UNIFIED SERVICES SECTION
   ========================================================================== */

:root {
    --primary-blue: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --badge-bg: #eff6ff;
    --text-heading: #0f172a;
    --text-body: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    display: inline-block;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 34px;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-body);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch; /* Forces equal heights across grid items */
}

/* Service Card Design */
.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%; /* Allows card to expand fully based on grid cell */
    box-sizing: border-box;
    transition: var(--transition);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

/* Icon Container Badge */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--badge-bg);
    border: 1px solid #dbeafe;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: #dbeafe;
    border-color: var(--primary-blue);
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

/* Typography & Alignment */
.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Pushes content evenly */
}

/* ==========================================================================
   UPDATED RESPONSIVE FIXES (PREVENTS TEXT CLIPPING)
   ========================================================================== */
@media (max-width: 1024px) {
    .service-card h3 {
        min-height: auto; /* Removes fixed title height so headings flow naturally */
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 50px 0;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 20px;
    }

    .service-card {
        padding: 28px 20px; /* Generous vertical padding for text visibility */
    }

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.55;
    }
}

@media (max-width: 580px) {
    .service-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 18px;
    }

    .service-card {
        padding: 26px 18px;
    }

    .section-title h2 {
        font-size: 26px;
    }
}
/* ==========================================================================
   FIXED RESPONSIVE GRID & DYNAMIC CARD HEIGHT
   ========================================================================== */

.service-grid {
    display: grid;
    /* Automatically handles layout from 1 to 4 columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 24px; /* 32px vertical spacing between stacked cards */
    justify-content: center;
    align-items: stretch; /* Keeps all cards in the same row equal height */
    width: 100%;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
    /* Generous internal padding (top, right, bottom, left) */
    padding: 32px 24px 32px 24px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* CRITICAL FIXES FOR OVERFLOW: */
    height: auto !important;         /* Removes any fixed height */
    min-height: 0 !important;        /* Prevents flex overflow */
    max-height: none !important;     /* Allows card to grow dynamically */
    overflow: hidden;                /* Clips anything inside the border radius */
    box-sizing: border-box;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Icon Container Badge */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.service-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Card Heading */
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 12px 0;
    padding: 0;
}

/* Paragraph Text - Fully Contained */
.service-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    word-break: break-word;
}

/* ==========================================================================
   MOBILE & TABLET ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
    .service-grid {
        gap: 28px; /* Extra vertical space when cards stack on mobile */
    }

    .service-card {
        padding: 28px 20px 32px 20px;
    }
}
/* ==========================================================================
   FIXED RESPONSIVE GRID & DYNAMIC CARD HEIGHT
   ========================================================================== */

.service-grid {
    display: grid;
    /* Automatically handles layout from 1 to 4 columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 24px; /* 32px vertical spacing between stacked cards */
    justify-content: center;
    align-items: stretch; /* Keeps all cards in the same row equal height */
    width: 100%;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
    /* Generous internal padding (top, right, bottom, left) */
    padding: 32px 24px 32px 24px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* CRITICAL FIXES FOR OVERFLOW: */
    height: auto !important;         /* Removes any fixed height */
    min-height: 0 !important;        /* Prevents flex overflow */
    max-height: none !important;     /* Allows card to grow dynamically */
    overflow: hidden;                /* Clips anything inside the border radius */
    box-sizing: border-box;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Icon Container Badge */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.service-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Card Heading */
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 12px 0;
    padding: 0;
}

/* Paragraph Text - Fully Contained */
.service-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    word-break: break-word;
}

/* ==========================================================================
   MOBILE & TABLET ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
    .service-grid {
        gap: 28px; /* Extra vertical space when cards stack on mobile */
    }

    .service-card {
        padding: 28px 20px 32px 20px;
    }
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:#222;
    overflow-x:hidden;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/*==================================================
                NAVBAR
==================================================*/

/* .navbar{
    position:fixed;
    top:0;
    
    width:100%;
    height: 140px;
    display:flex;
    align-items:center;
    background:#f2f2f2;
    border-bottom:1px solid rgba(0,0,0,.08);
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    z-index:1000;
} */

/*==================================================
                PAGE BANNER
==================================================*/

.page-banner{
    position:relative;
    padding:180px 0 100px;
    background:linear-gradient(135deg,#2563eb,#4f8df7);
    overflow:hidden;
    color:#fff;
}

.page-banner::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    top:-220px;
    right:-150px;
}

.page-banner::after{
    content:"";
    position:absolute;
    width:350px;
    height:350px;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    left:-120px;
    bottom:-160px;
}

.page-banner .container{
    position:relative;
    z-index:2;
    text-align:center;
}

.page-banner span{
    display:inline-block;
    padding:8px 20px;
    border-radius:40px;
    background:rgba(255,255,255,.15);
    font-size:15px;
    font-weight:600;
    margin-bottom:20px;
}

.page-banner h1{
    font-size:54px;
    font-weight:800;
    margin-bottom:20px;
}

.page-banner p{
    max-width:700px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
}

/*==================================================
                SERVICES
==================================================*/

.services-section{
    padding:100px 0;
    background:#f8faff;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title span{
    color:#2563eb;
    font-weight:700;
    font-size:15px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.section-title h2{
    margin:15px 0;
    font-size:42px;
    font-weight:800;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:#666;
    font-size:17px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

/*==================================================
                SERVICE CARD
==================================================*/

.service-card{
    background:#fff;
    border-radius:20px;
    padding:40px 30px;
    border:1px solid #edf0f5;
    box-shadow:0 10px 30px rgba(0,0,0,.06);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    text-align:center;

    transition:.35s;
}

.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

/*==================================================
                SERVICE ICON
==================================================*/

.service-icon{

    width:180px;
    height:180px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:0 auto 30px;

    background:transparent;
}

.service-icon img{

    width:150px;
    height:150px;

    object-fit:contain;

    transition:.35s;
}

.service-card:hover .service-icon img{
    transform:scale(1.08);
}

.service-card h3{
    font-size:24px;
    margin-bottom:15px;
    font-weight:700;
}

.service-card p{
    color:#666;
    font-size:16px;
    line-height:1.8;
}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1100px){

.service-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.page-banner h1{
    font-size:38px;
}

.page-banner p{
    font-size:16px;
}

.section-title h2{
    font-size:32px;
}

.service-grid{
    grid-template-columns:1fr;
}

.service-card{
    padding:30px;
}

.service-icon{
    width:140px;
    height:140px;
}

.service-icon img{
    width:110px;
    height:110px;
}

}

@media(max-width:480px){

.service-icon{
    width:120px;
    height:120px;
}

.service-icon img{
    width:90px;
    height:90px;
}

}
/*==================================================
                WHY CHOOSE US
==================================================*/

.why-us{
    padding:100px 0;
    background:#ffffff;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin-top:60px;
}

.why-box{
    background:#fff;
    padding:40px 30px;
    border-radius:20px;
    border:1px solid #edf0f5;
    box-shadow:0 10px 30px rgba(0,0,0,.06);

    text-align:center;

    transition:.35s;
}

.why-box:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.why-box i{
    width:90px;
    height:90px;
    line-height:90px;

    border-radius:50%;
    background:#2563eb;
    color:#fff;

    font-size:36px;

    margin:0 auto 25px;

    transition:.35s;
}

.why-box:hover i{
    transform:rotate(10deg) scale(1.08);
}

.why-box h3{
    font-size:24px;
    color:#222;
    margin-bottom:15px;
    font-weight:700;
}

.why-box p{
    color:#666;
    font-size:16px;
    line-height:1.8;
}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1100px){

.why-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.why-us{
    padding:70px 0;
}

.why-grid{
    grid-template-columns:1fr;
    gap:25px;
}

.why-box{
    padding:35px 25px;
}

.why-box i{
    width:80px;
    height:80px;
    line-height:80px;
    font-size:32px;
}

.why-box h3{
    font-size:22px;
}

.why-box p{
    font-size:15px;
}

}

@media(max-width:480px){

.why-box{
    padding:30px 20px;
}

.why-box h3{
    font-size:20px;
}

.why-box p{
    font-size:14px;
}

}
