/* Modern Premium CSS for Arackal SCB Bank */
:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(211, 47, 47, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

/* Header */
.main-header {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border: none;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.header-hidden {
    opacity: 0;
    transform: translateY(-150%) !important;
    pointer-events: none;
}

.header-container {
    pointer-events: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
}

.logo {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 6px; */
    color: var(--gray-900);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.bank-title {
    font-size: 24px;
    color: var(--gray-900);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.5px;
}

.bank-subtitle {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-bar-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 30px 12px 50px;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-left: -35px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: 10px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-btn {
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: var(--transition);
}

.admin-btn:hover {
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    transform: translateY(-2px);
}

.admin-btn i {
    color: white;
    font-size: 20px;
}

.admin-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.mobile-only-nav-item {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-900);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #ad8c8c;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px - 300px);
}

/* Hero Section */
.hero {
    background-color: var(--primary-dark);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('../images/bank_vscob.webp');
    background-size: cover;
    background-position: center 20%;
    padding: 20rem 0 10rem;
    text-align: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Page Headers */
.page-header {
    /* background-color: var(--primary-dark); */
    background-color: #f9fafb;
    padding: 15rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.card .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-100);
}

.card .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.horizontal-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.horizontal-card .card-image {
    width: 50%;
    height: auto;
    min-height: 300px;
    border-bottom: none;
    border-right: 1px solid var(--gray-100);
}

.horizontal-card .card-content {
    width: 50%;
    justify-content: center;
}

.horizontal-card.reverse {
    flex-direction: row-reverse;
}

.horizontal-card.reverse .card-image {
    border-right: none;
    border-left: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
    .horizontal-card {
        flex-direction: column !important;
    }

    .horizontal-card .card-image {
        width: 100%;
        height: 250px;
        min-height: auto;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--gray-100);
    }

    .horizontal-card .card-content {
        width: 100%;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* Branches */
.branch-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.branch-card h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0.5rem;
}

.branch-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-800);
}

.branch-detail i {
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-200);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Footer */
.main-footer {
    background-color: var(--white);
    color: var(--gray-900);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-top-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-800);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-meta-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-meta-links a {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-meta-links a:hover {
    color: var(--primary);
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: var(--gray-200);
    margin-bottom: 1.5rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-copyright p {
    color: var(--gray-800);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.footer-copyright a {
    color: var(--primary);
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--gray-900);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-only-nav-item {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
        border: 1px solid rgba(211, 47, 47, 0.15);
        padding: 1.25rem;
        gap: 0.65rem;
        z-index: 1001;
        animation: mobileMenuSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links.active,
    .nav-links.mobile-open {
        display: flex !important;
    }

    @keyframes mobileMenuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.85rem 1.15rem;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        color: var(--gray-800);
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        transition: all 0.25s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
        color: var(--primary);
        border-color: #fca5a5;
        transform: translateX(4px);
    }

    .nav-links a::after {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-bar-wrapper {
        flex-grow: 1;
        margin-left: 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        justify-content: space-between;
        gap: 10px;
    }

    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .logo {
        padding: 4px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .logo img {
        height: 60px !important;
    }

    .bank-title {
        font-size: 18px;
    }

    .bank-subtitle {
        /* display: none; */
    }

    .admin-text {
        display: none;
    }

    .admin-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 50px !important;
    }

    .bank-title {
        font-size: 15px;
    }

    .footer-top-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Red & White Theme Slider */
.rw-slider-section {
    padding: 4rem 0;
    margin-top: 2rem;
}

.rw-slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rw-slider-header h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.rw-slider-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.rw-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}

.rw-slider-container::-webkit-scrollbar {
    height: 8px;
}

.rw-slider-container::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.rw-slider-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.rw-slider-card {
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.rw-slider-card .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-100);
}

.rw-slider-card .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.rw-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.rw-slider-card .card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.rw-slider-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.25rem;
}

.rw-slider-card p {
    color: var(--gray-800);
    font-size: 0.95rem;
}

.rw-slider-card.branch-card {
    gap: 0.5rem;
}

.rw-slider-card.branch-card h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0.5rem;
    width: 100%;
}

.rw-slider-card.branch-card p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rw-slider-card.branch-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* =========================================================
   Single-Row Compact Services Image Slider (Homepage)
   ========================================================= */
.compact-services-section {
    padding: 4.5rem 0 3.5rem;
}

.compact-services-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0.5rem 0 2rem;
    margin: 1.5rem 0 1rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.compact-services-track {
    display: flex;
    gap: 1.75rem;
    width: max-content;
    animation: infiniteServicesScroll 75s linear infinite;
}

.compact-services-slider-wrapper:hover .compact-services-track {
    animation-play-state: paused;
}

.compact-services-track.scroll-reverse {
    animation-direction: reverse;
}

.compact-services-slide-group {
    display: flex;
    gap: 1.75rem;
    flex-shrink: 0;
}

@keyframes infiniteServicesScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-100% - 1.75rem), 0, 0);
    }
}

.compact-slider-card {
    flex: 0 0 340px;
    width: 340px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.compact-slider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px -8px rgba(0, 0, 0, 0.09);
    border-color: rgba(211, 47, 47, 0.25);
}

.compact-slider-image-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.compact-slider-image-wrap img.compact-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.compact-slider-card:hover .compact-slider-image-wrap img.compact-slider-img {
    transform: scale(1.06);
}

.compact-slider-body {
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: var(--white);
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(211, 47, 47, 0.3);
}

@media (max-width: 640px) {
    .compact-slider-card {
        flex: 0 0 295px;
        width: 295px;
    }
}

.compact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.compact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: transform 0.3s ease;
}

.compact-service-card:hover .compact-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.compact-service-card.basic-card .compact-card-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--primary);
    border: 1px solid #fca5a5;
}

.compact-service-card.special-card .compact-card-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
}

.compact-card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.compact-service-card.basic-card .compact-card-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.compact-service-card.special-card .compact-card-tag {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.compact-card-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.65rem 0;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.compact-service-card:hover .compact-card-title {
    color: var(--primary-dark);
}

.compact-card-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.compact-card-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.compact-service-card:hover .compact-card-link {
    gap: 0.65rem;
}

/* =========================================================
   Attractive & Simple Service Card System (Services Page)
   ========================================================= */
.service-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(211, 47, 47, 0.22);
}

.service-card-content {
    flex: 1 1 52%;
    padding: 2.75rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    width: 100%;
}

.service-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.basic-service-card .service-card-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--primary);
    border: 1px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.12);
}

.special-service-card .service-card-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

.service-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.basic-service-card .service-card-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.special-service-card .service-card-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.service-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.85rem 0;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: var(--primary-dark);
}

.service-card-description {
    font-size: 1.02rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.service-card-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.service-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.service-feature-tag i {
    color: var(--primary);
    font-size: 1.05rem;
}

.special-service-card .service-feature-tag i {
    color: #059669;
}

.service-card-media {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.service-card-media img.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-media img.service-image {
    transform: scale(1.05);
}

/* Default Animated Service Image Placeholder */
.service-animated-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-animated-placeholder.placeholder-basic {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #1f122b 100%);
}

.service-animated-placeholder.placeholder-special {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 55%, #042f2e 100%);
}

.placeholder-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    opacity: 0.5;
}

.placeholder-basic .placeholder-orb.orb-1 {
    width: 220px;
    height: 220px;
    top: -40px;
    right: -40px;
    background: radial-gradient(circle, #ef4444 0%, transparent 70%);
    animation: floatOrb1 7s ease-in-out infinite alternate;
}

.placeholder-basic .placeholder-orb.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation: floatOrb2 8s ease-in-out infinite alternate;
}

.placeholder-special .placeholder-orb.orb-1 {
    width: 220px;
    height: 220px;
    top: -40px;
    right: -40px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    animation: floatOrb1 7s ease-in-out infinite alternate;
}

.placeholder-special .placeholder-orb.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    animation: floatOrb2 8s ease-in-out infinite alternate;
}

.placeholder-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.placeholder-rings {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    animation: spinSlow 24s linear infinite;
    pointer-events: none;
}

.placeholder-rings::after {
    content: '';
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: spinReverse 16s linear infinite;
}

.placeholder-emblem {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 1.7rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    animation: floatEmblem 4.2s ease-in-out infinite;
}

.emblem-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: pulseIconGlow 3s ease-in-out infinite;
}

.emblem-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.emblem-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 18px;
}

.emblem-wave span {
    width: 3px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    animation: waveBars 1.2s ease-in-out infinite alternate;
}

.emblem-wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.emblem-wave span:nth-child(3) {
    animation-delay: 0.4s;
}

.emblem-wave span:nth-child(4) {
    animation-delay: 0.6s;
}

.emblem-wave span:nth-child(5) {
    animation-delay: 0.3s;
}

.placeholder-chip {
    position: absolute;
    z-index: 4;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    padding: 0.45rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.placeholder-chip.chip-top {
    top: 24px;
    right: 24px;
    animation: floatChip1 5s ease-in-out infinite;
}

.placeholder-chip.chip-bottom {
    bottom: 24px;
    left: 24px;
    animation: floatChip2 6s ease-in-out infinite;
}

.placeholder-chip i {
    font-size: 1rem;
    color: #facc15;
}

.placeholder-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    transform: rotate(30deg);
    pointer-events: none;
    animation: shimmerSweep 7s infinite;
}

@keyframes floatEmblem {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20px, 20px) scale(1.15);
    }
}

@keyframes floatOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.15);
    }
}

@keyframes spinSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulseIconGlow {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 255, 255, 0.28);
    }
}

@keyframes waveBars {
    0% {
        height: 4px;
        opacity: 0.45;
    }

    100% {
        height: 18px;
        opacity: 1;
    }
}

@keyframes floatChip1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatChip2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(5px);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

@media (max-width: 991px) {

    .service-card,
    .service-card.reverse {
        flex-direction: column !important;
    }

    .service-card-content {
        padding: 2rem 1.6rem;
    }

    .service-card-media {
        width: 100%;
        min-height: 260px;
        height: 260px;
    }

    .placeholder-chip {
        display: none;
    }
}

/* =========================================================
   Clean & Simple Services Page Layout
   ========================================================= */
.services-section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.services-section-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
}

/* Background Ambient Effects */
.services-page-container {
    position: relative;
    overflow: hidden;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    background: radial-gradient(circle at 10% 10%, rgba(211, 47, 47, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 20% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
}

.services-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: floatAmbientOrb 18s ease-in-out infinite alternate;
}

@keyframes floatAmbientOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(35px, -25px) scale(1.08);
    }

    100% {
        transform: translate(-25px, 30px) scale(0.95);
    }
}

@keyframes serviceCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
    gap: 2.25rem;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 1;
}

.service-card-clean {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: serviceCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.service-card-clean::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 45%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    pointer-events: none;
    transition: left 0.75s ease;
    z-index: 10;
}

.service-card-clean:hover::after {
    left: 145%;
}

.service-card-clean:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 45px -10px rgba(211, 47, 47, 0.15), 0 12px 20px -6px rgba(0, 0, 0, 0.05);
    border-color: rgba(211, 47, 47, 0.35);
}

.service-clean-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.service-clean-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-clean:hover .service-clean-img-wrap img {
    transform: scale(1.07);
}

.service-clean-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 0.38rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.service-clean-body {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.service-clean-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card-clean:hover .service-clean-icon {
    transform: scale(1.14) rotate(6deg);
}

.service-clean-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.88rem;
    font-weight: 700;
}

.service-clean-footer i {
    transition: transform 0.3s ease;
}

.service-card-clean:hover .service-clean-footer i {
    transform: translateX(6px);
}