﻿/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #c4161c;
    --dark-red: #8b0000;
    --accent-red: #ff4d4d;
    --bg-main: #f8fafc;
    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --border-light: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0; /* Remove any default margin applied to the body */
    padding: 0; /* Remove any default padding */
    background-color: var(--bg-main);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--slate-900);
    line-height: 1.5;
}

.container {
    width: 100%; /* Allow the container to stretch fully */
    max-width: 95%; /* Control maximum width to 95% of the viewport */
    margin: 0 auto; /* Center the container */
    padding: 15px 15px; /* Add padding for spacing */
}

/* ===== PAGE TITLE (Same Red Gradient Style) ===== */
.seo-content {
    max-width: 95%;
    margin: 10px auto;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

    /* Headings */
    .seo-content h1 {
        font-size: 28px;
        color: #1f2937;
        margin-bottom: 15px;
        border-left: 5px solid #2563eb; /* Blue accent */
        padding-left: 12px;
    }

    .seo-content h2 {
        font-size: 22px;
        color: #111827;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    /* Paragraph text */
    .seo-content p {
        font-size: 16px;
        line-height: 1.75;
        color: #374151;
        margin-bottom: 14px;
    }

/* Highlight keywords */
.seo-highlight {
    color: #2563eb;
    font-weight: 600;
}

/* =========================================
   3. THE EXECUTIVE TILE GRID
   ========================================= */
/* --- Wrapper & Grid Logic --- */
.services-wrapper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.services-grid {
    display: grid;
    /* Force 4 columns on Desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* --- Responsive Breakpoints for 4 Columns --- */

/* Desktop to Tablet (Switch to 3 columns) */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet to Large Mobile (Switch to 2 columns) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (Switch to 1 column) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-tile {
        padding: 20px; /* Slimmer padding for small screens */
    }
}

.service-tile {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

    .service-tile:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-red);
    }

/* --- Header Elements --- */
.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tile-icon {
    width: 60px;
    height: 60px;
    background: #fff1f2;
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(196, 22, 28, 0.1);
}

.status-indicator {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-600);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .status-indicator::before {
        content: "";
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        box-shadow: 0 0 8px #10b981;
    }

/* --- Content --- */
.tile-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--slate-900);
}

.service-description {
    font-size: 15px;
    color: var(--slate-600);
    margin-bottom: 20px;
    min-height: 45px;
}

.feature-tags {
    margin-bottom: 30px;
    flex-grow: 1;
}

    /* Logic for RenderFeatures tags */
    .feature-tags span {
        display: inline-block;
        background: #f8fafc;
        border: 1px solid var(--border-light);
        color: var(--slate-600);
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 12px;
        margin: 4px 4px 4px 0;
        font-weight: 500;
    }

/* =========================================
   4. THE HIGH-INTENSITY BLINKING BUTTON
   ========================================= */
.tile-footer {
    border-top: 1px dashed var(--border-light);
    padding-top: 24px;
}

.action-btn-pulse {
    width: 100%;
    background: var(--primary-red);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    /* The Blinking Animation */
    animation: intense-blink 2s infinite;
}

    .action-btn-pulse:hover {
        animation: none; /* Stabilize for click */
        background: var(--dark-red);
        transform: scale(1.02);
    }

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.action-btn-pulse:hover .btn-arrow {
    transform: translateX(5px);
}

/* --- ANIMATIONS --- */

/* 1. The Color & Glow Blink */
@keyframes intense-blink {
    0%, 100% {
        background-color: var(--primary-red);
        box-shadow: 0 4px 15px rgba(196, 22, 28, 0.2);
    }

    50% {
        background-color: var(--accent-red);
        box-shadow: 0 0 25px rgba(255, 77, 77, 0.7);
    }
}

/* 2. The Glossy Shimmer Swipe */
.action-btn-pulse::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient( to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100% );
    transform: skewX(-25deg);
    animation: shimmer-swipe 4s infinite;
}

@keyframes shimmer-swipe {
    0% {
        left: -100%;
    }

    15%, 100% {
        left: 150%;
    }
}

/* =========================================
   5. PAGINATION & RESPONSIVE
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pag-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .pag-btn:hover:not(:disabled) {
        border-color: var(--primary-red);
        color: var(--primary-red);
    }

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   5. PAGINATION & RESPONSIVE
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.pag-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .pag-btn:hover:not(:disabled) {
        border-color: var(--primary-red);
        color: var(--primary-red);
    }

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================== PAGINATION ================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 40px 0;
}

    .pagination button {
        padding: 10px 20px;
        border: 1px solid #c4161c;
        background: #ffffff;
        color: #c4161c;
        border-radius: 30px; /* pill shape */
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
    }
        /* Hover */

        .pagination button:hover:not(:disabled) {
            background: #c4161c;
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(196,22,28,0.35);
            transform: translateY(-1px);
        }
        /* Disabled state */

        .pagination button:disabled {
            background: #f3f4f6;
            color: #9ca3af;
            border-color: #d1d5db;
            cursor: not-allowed;
            box-shadow: none;
        }
    /* Page info text */

    .pagination span {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }
/* Image */
.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}