* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f4f7fb;
}

/* =========================================================
   Services Page Layout
   ========================================================= */
.services-main {
    flex: 1;
    border-top: 2px solid rgba(143, 36, 29, 0.75);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 45%, #edf2f9 100%);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-hero {
    padding: 46px 0 32px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(142, 187, 255, 0.18) 0%, rgba(142, 187, 255, 0) 65%);
}

.page-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    line-height: 1.15;
    color: #8f241d;
    text-shadow: 0 2px 10px rgba(143, 36, 29, 0.08);
}

.brand-divider {
    width: 104px;
    height: 3px;
    margin: 16px auto 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8f241d 0%, #5b9bf3 100%);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #475569;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-content {
    padding: 8px 0 56px;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.section-heading.centered {
    text-align: center;
    margin-bottom: 8px;
}

/* =========================================================
   Partner Brands Section (moved from About Us)
   ========================================================= */
.partners-section {
    margin-top: 8px;
}

.partners-header {
    text-align: center;
    margin-bottom: 24px;
}

.partners-sub {
    font-size: 0.96rem;
    color: #64748b;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.partner-card {
    position: relative;
    overflow: hidden;
    flex: 1 1 280px;
    max-width: 318px;
    background: #ffffff;
    border: 1px solid rgba(142, 187, 255, 0.36);
    border-radius: 14px;
    padding: 24px 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.partner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4d89 0%, #5b9bf3 100%);
    transition: background 0.18s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(27, 77, 137, 0.1);
}

.partner-card:hover::before {
    background: linear-gradient(90deg, #8f241d 0%, #5b9bf3 100%);
}

.partner-monogram {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(143, 36, 29, 0.1) 0%, rgba(91, 155, 243, 0.16) 100%);
    color: #8f241d;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.partner-info {
    min-width: 0;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.partner-category {
    margin-top: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1b4d89;
}

/* =========================================================
   Bottom Call-To-Action Strip
   ========================================================= */
.services-cta {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid rgba(142, 187, 255, 0.38);
    border-radius: 18px;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.cta-copy h2 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.cta-copy p {
    font-size: 0.95rem;
    color: #475569;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cta-btn {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 9px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.cta-primary {
    background-color: #8f241d;
    color: #ffffff;
    border: 1.5px solid #8f241d;
    box-shadow: 0 6px 16px rgba(143, 36, 29, 0.22);
}

.cta-primary:hover {
    background-color: #741b15;
    border-color: #741b15;
    transform: translateY(-1px);
}

.cta-secondary {
    background-color: #ffffff;
    color: #1b4d89;
    border: 1.5px solid #c5d4e8;
}

.cta-secondary:hover {
    background-color: #f0f6ff;
    border-color: #1b4d89;
    transform: translateY(-1px);
}

/* =========================================================
   Responsive Tablet & Mobile Rules
   ========================================================= */
@media (max-width: 900px) {
    .services-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .services-hero {
        padding: 34px 0 24px;
    }

    .services-cta {
        padding: 24px 20px;
    }

    .partner-card {
        max-width: 100%;
    }
}
