/* =========================================================
   SERVICES PAGE CSS (Final Fixed)
   ========================================================= */

body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #334155;
}

/* --- FIX: Dropdown White Background --- */
.site-header .main-nav .has-dropdown .dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
.site-header .main-nav .has-dropdown .dropdown a {
    color: #334155 !important;
    background-color: transparent !important;
}
.site-header .main-nav .has-dropdown .dropdown a:hover {
    background-color: #eff6ff !important;
    color: #0b5cff !important;
}

/* --- Page Header --- */
.page-header {
    background: #0a1a33;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
}
.page-header h1 {
    color: #ffffff;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}
.page-header p {
    color: #94a3b8;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Services Section --- */
.services-page-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

/* Header for section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}
.section-badge {
    display: inline-block;
    background: #e0e8ff;
    color: #4f46e5;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.text-primary { color: #0b5cff; }
.section-desc {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

/* =========================================
   GRID & CARD FIX (Equal Heights)
   ========================================= */

/* Grid Container */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* 🔴 Yeh Grid ko barabar height dega */
}

/* Card Design */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);

    /* 🔴 Flexbox for equal height */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 27, 59, 0.08);
    border-color: rgba(11, 92, 255, 0.2);
}

.service-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Image shrink na ho */
}
.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

/* Content Area */
.service-content {
    padding: 30px;

    /* 🔴 Flexbox to push button to bottom */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;

    /* 🔴 Text area ko grow karein taake button neeche chala jaye */
    flex-grow: 1;
}

/* Learn More Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0b5cff;
    text-decoration: none;
    transition: color 0.3s ease;

    /* 🔴 Hamesha bottom mein rahe */
    margin-top: auto;
}

.service-link span {
    transition: transform 0.3s ease;
}
.service-card:hover .service-link {
    color: #0846c4;
}
.service-card:hover .service-link span {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-header h1 { font-size: 36px; }
    .services-page-section { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 32px; }
}
