﻿/* ==================== PAGE ENTRANCE ANIMATIONS (above-fold only) ==================== */
@keyframes svcBannerReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes svcSectionUp {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

.banner-content {
    animation: svcBannerReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.banner-title {
    animation: svcBannerReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.banner-subtitle {
    animation: svcBannerReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.services-page-section {
    animation: svcSectionUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ==================== CATEGORY GROUPS ==================== */
.svc-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.svc-cat-header {
    width: 100%;
}

/* Left accent bar replaces the bottom underline */
.service-category-title {
    color: #192d50;
    font-size: var(--font-2xl);
    font-weight: var(--weight-heading);
    margin-bottom: 0;
    display: inline-block;
    padding-inline-start: 0.875rem;
    line-height: 1.35;
}

/* ==================== SCROLL-TRIGGERED ANIMATIONS ==================== */

/* Groups start hidden; JS sets data-animate then adds is-visible on scroll */
.svc-group[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-group[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cards within each group fade+rise with per-card stagger set by JS */
.svc-group[data-animate] .service-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-group[data-animate].is-visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== BANNER SECTION ==================== */
.banner-section {
    background: linear-gradient(135deg, rgba(25, 45, 80, 0.55) 0%, rgba(25, 45, 80, 1) 100%);
    background-size: cover;
    opacity: 1;
    padding: clamp(4rem, 8vw, 5rem) 0 clamp(5rem, 10vw, 7rem) 0;
    color: white;
    position: relative;
    min-height: clamp(14rem, 28vw, 18rem);
    margin: 0;
    z-index: 1;
    overflow: hidden;
}

    .banner-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        background: url('../../Images/bg/Inner-Page-Banner.svg') center center no-repeat;
        background-size: cover;
        z-index: 1;
    }

    .banner-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 50%, rgba(66, 165, 245, 0.15) 0%, transparent 50%);
        z-index: 1;
    }

    .banner-section .container {
        position: relative;
        z-index: 2;
    }

.banner-content {
    text-align: start;
    margin: 0 auto;
}

.banner-title {
    font-size: var(--font-4xl);
    font-weight: var(--weight-hero);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.2;
    color: white;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: var(--font-lg);
    font-weight: var(--weight-subtitle);
    margin: 0;
    opacity: 0.95;
    color: white;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.service-category-tab {
    min-width: 22rem;
}

.service-category-icon {
    width: 2.125rem;
    height: 2.125rem;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.service-icon {
    width: 3.125rem;
    height: 3.125rem;
    flex-shrink: 0;
    border-radius: 50%;
}

.service-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== GUIDES PAGE SECTION ==================== */
.services-page-section {
    padding: 0 0 clamp(3.5rem, 7vw, 5rem);
    margin-top: clamp(-3rem, -6vw, -4.5rem);
    position: relative;
    z-index: 3;
}

.services-page-section .container {
    position: relative;
    z-index: 1;
}


/* ==================== SELECT2 STYLING (Same as Questionnaire) ==================== */
.form-select-custom {
    width: 100%;
    padding: clamp(0.75rem, 1.2vw, 0.875rem) clamp(1rem, 1.8vw, 1.25rem);
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: var(--font-base);
    color: #212529;
    background-color: white;
    transition: all 0.3s;
}

    .form-select-custom:focus {
        border-color: #42a5f5;
        box-shadow: 0 0 0 0.15rem rgba(66, 165, 245, 0.1);
        outline: none;
    }

.select2-container--bootstrap-5 .select2-selection {
    min-height: clamp(2.5rem, 4.5vw, 3rem);
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    color: #42a5f5 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 1rem !important;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0 !important;
    transition: all 0.2s ease;
}

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice:hover {
        background-color: #DBEAFE !important;
        border-color: #93C5FD !important;
    }

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: #42a5f5 !important;
    margin-right: 0.5rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
        color: #dc3545 !important;
        opacity: 1;
    }

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #42a5f5;
    box-shadow: 0 0 0 0.15rem rgba(66, 165, 245, 0.1);
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}


/* ==================== MULTI-SELECT DROPDOWN ==================== */
.multi-select-wrapper {
    position: relative;
    width: 100%;
}

.multi-select-btn {
    width: 100%;
    padding: clamp(0.75rem, 1.2vw, 0.875rem) clamp(1rem, 1.8vw, 1.25rem);
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    font-size: var(--font-base);
    background-color: #fafafa;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .multi-select-btn:hover:not(:disabled) {
        border-color: #42a5f5;
        background-color: white;
        box-shadow: 0 2px 8px rgba(66, 165, 245, 0.15);
    }

    .multi-select-btn:focus {
        border-color: #42a5f5;
        outline: none;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1), 0 2px 8px rgba(66, 165, 245, 0.15);
    }

    .multi-select-btn:disabled {
        background-color: #f5f5f5;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .multi-select-btn i {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        margin-left: 0.5rem;
    }

.multi-select-wrapper.active .multi-select-btn i {
    transform: rotate(180deg);
}

.multi-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0.25rem;
    display: none;
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
}

    .multi-select-dropdown.show {
        display: flex;
    }

.multi-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

    .multi-select-search input {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 0.5rem;
        font-size: 0.875rem;
    }

        .multi-select-search input:focus {
            outline: none;
            border-color: #42a5f5;
            box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.1);
        }

.multi-select-select-all {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f8f9fa;
}

.select-all-option {
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    font-weight: 600;
}

    .select-all-option:hover {
        background-color: transparent !important;
    }

    .select-all-option span {
        color: #42a5f5;
        font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    }

.select-all-checkbox {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #42a5f5;
}

    .select-all-checkbox:checked {
        accent-color: #42a5f5;
    }

    .select-all-checkbox:indeterminate {
        accent-color: #42a5f5;
    }

.multi-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

    .multi-select-option:hover {
        background-color: #f8f9fa;
    }

    .multi-select-option input[type="checkbox"] {
        margin-right: 0.75rem;
        width: 1.125rem;
        height: 1.125rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .multi-select-option span {
        flex: 1;
        font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
        color: #212529;
    }

.multi-select-options::-webkit-scrollbar {
    width: 6px;
}

.multi-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.multi-select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .multi-select-options::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Search button - solid blue, same design as reset */
#searchGuidesBtn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
}

    #searchGuidesBtn:hover {
        background-color: var(--secondary-blue);
        color: white;
    }


/* ==================== GUIDES GRID ==================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 2rem;
}

.loading-state {
    grid-column: 1 / -1;
}

/* ==================== GUIDE CARD ==================== */
.guide-card-page {
    position: relative;
    background: rgba(25, 45, 80, 1);
    background-position: center;
    border-radius: clamp(0.75rem, 1.5vw, 1rem);
    padding: clamp(1.5rem, 3vw, 2rem);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: clamp(12rem, 24vw, 16rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .guide-card-page::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.5;
        z-index: 1;
        background-image: url('../../Images/bg/Guide-Card-Background.svg');
        background-size: cover;
        transition: opacity 0.4s ease;
    }


    .guide-card-page > * {
        position: relative;
        z-index: 2;
    }

    .guide-card-page:hover {
        transform: translateY(-0.5rem) scale(1.02);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.15);
    }

        .guide-card-page:hover::after {
            opacity: 1;
        }


.guide-card-badge {
    display: inline-block;
    background: white;
    color: rgba(25, 45, 80, 1);
    padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
    border-radius: 0.5rem;
    font-size: var(--text-2xs);
    font-weight: 600;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
    transition: all 0.3s ease;
}

.guide-card-page:hover .guide-card-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

.guide-card-title {
    font-size: var(--font-xl);
    font-weight: var(--weight-title);
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    color: white;
    line-height: 1.3;
    flex-grow: 1;
}

.guide-card-description {
    font-size: var(--font-base);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 clamp(1rem, 2vw, 1.5rem) 0;
    line-height: 1.5;
    flex-grow: 1;
}

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: clamp(0.75rem, 1.5vw, 1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-attachments {
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.guide-view-link {
    color: white;
    text-decoration: underline;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .guide-view-link:hover {
        color: rgba(255, 255, 255, 0.9);
        text-decoration-thickness: 2px;
        transform: translateX(4px);
    }

    .guide-view-link:active {
        transform: translateX(2px);
    }

/* ==================== NO RESULTS ==================== */
.no-results-message {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ==================== GUIDE MODAL ==================== */
.guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.guide-modal-container {
    background: white;
    border-radius: 1rem;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 2rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.guide-modal-header-content {
    flex: 1;
    padding-right: 1rem;
}

.guide-modal-title-row {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.guide-modal-title {
    font-size: var(--font-2xl);
    font-weight: var(--weight-title);
    color: #212529;
    margin: 0;
}

.guide-modal-description {
    font-size: var(--font-base);
    color: #495057;
    line-height: 1.6;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
}

.guide-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
    flex-shrink: 0;
}

    .guide-modal-close:hover {
        color: #212529;
    }

.guide-modal-body {
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1;
}

.guide-modal-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: clamp(0.25rem, 0.5vw, 0.375rem) clamp(0.625rem, 1.25vw, 0.875rem);
    border-radius: 0.25rem;
    font-size: var(--text-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
}

.guide-modal-attachments-section {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.guide-modal-attachments-title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: var(--weight-title);
    color: #212529;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem) 0;
}

.guide-modal-attachments-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.guide-modal-attachment-item {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid #e5e5e5;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}

    .guide-modal-attachment-item:hover {
        background-color: #f8f9fa;
    }

.guide-modal-attachment-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

    .guide-modal-attachment-icon i {
        font-size: 1.5rem;
        color: #6c757d;
    }

.guide-modal-attachment-info {
    flex: 1;
    min-width: 0;
}

.guide-modal-attachment-name {
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.guide-modal-attachment-caption {
    font-size: clamp(0.75rem, 1.25vw, 0.8125rem);
    color: #495057;
    font-style: italic;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.guide-modal-attachment-size {
    font-size: clamp(0.75rem, 1.25vw, 0.8125rem);
    color: #6c757d;
}

.guide-modal-attachment-download {
    flex-shrink: 0;
    color: #6c757d;
    text-decoration: none;
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    font-weight: 500;
    padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .guide-modal-attachment-download i {
        font-size: 1.5em;
    }

    .guide-modal-attachment-download:hover {
        color: #0052a3;
        text-decoration: underline;
    }

.guide-modal-footer {
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
}

.guide-modal-close-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: clamp(0.625rem, 1.2vw, 0.75rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 0.5rem;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

    .guide-modal-close-btn:hover {
        background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    }

    .guide-modal-close-btn:active {
        transform: translateY(0);
    }



.gd-tabs-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(62, 116, 210, 0.4);
    box-shadow: 0 5px 8px 0 rgba(62, 116, 210, 0.15);
    margin-top: 0;
    margin-inline-end: auto;
    margin-bottom:2.25rem;
    margin-inline-start: 0;
    overflow: hidden;
    width: fit-content;
    max-width: 1250px;
}

.gd-tabs-nav {
    display: flex;
    flex-wrap:wrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.gd-tabs-nav::-webkit-scrollbar {
    display: none;
}


.gd-tab-btn {
    width: 100%;
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.375rem, 0.8vw, 0.625rem);
    padding: clamp(0.75rem, 1.8vw, 1.25rem) clamp(0.75rem, 1.5vw, 1.25rem);
    border: none;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: clamp(0.875rem, 1.35vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    overflow: hidden;
}

.gd-tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

.gd-tab-btn.active {
    background: linear-gradient(180deg, #3E74D2 0%, #203B6C 100%);
    color: white;
}

.gd-tab-icon {
    width: clamp(1.125rem, 1.8vw, 1.5rem);
    height: clamp(1.125rem, 1.8vw, 1.5rem);
    object-fit: contain;
    flex-shrink: 0;
}

.gd-tab-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
}


/* ==================== CORE SERVICES SECTION ==================== */
.services-section {
    padding: clamp(1.25rem, 2.5vw, 2rem) 0;
    background: url('../../Images/bg/Our-Core-Services.svg') center center no-repeat;
    background-size: cover;
    position: relative;
}

.section-title {
    font-size: var(--text-section);
    font-weight: var(--weight-section);
    line-height: 1.2;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

    .section-title:hover {
        cursor: pointer;
        color: #1e3a5fa6;
    }

.service-card {
    background: #192D50;
    border-radius: clamp(0.625rem, 1.25vw, 0.875rem);
    padding: clamp(1rem, 2vw, 1.25rem);
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--gap-lg);
    border: 1px solid rgba(255, 255, 255, 0);
    cursor: pointer;
    justify-content: space-between;
}

    .service-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 0.4rem 1rem 0 rgba(12, 12, 13, 0.15), 0 0.2rem 0.5rem 0 rgba(12, 12, 13, 0.1);
    }

.svc-group[data-animate].is-visible .service-card:hover {
    transform: translateY(-0.25rem);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

.service-icon {
    width: 3.125rem;
    height: 3.125rem;
    flex-shrink: 0;
    border-radius: 50%;
}

    .service-icon img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.service-title {
    color: white;
    font-size: var(--font-xl);
    font-weight: var(--weight-title);
    margin: 0;
    font-style: normal;
    line-height: 120%;
    letter-spacing: -0.1px;
    text-transform: capitalize;
}

.service-description {
    color: white;
    font-size: 0.9375rem;
    font-weight: 400;
    margin-bottom: var(--gap-sm);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    line-height: 1.4rem;
    letter-spacing: -0.0041rem;
    text-align: justify;
    height: 8.5rem;
    max-height: 8.5rem;
}

.service-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 0.875rem;
    text-transform: capitalize;
    gap: var(--gap-sm);
    margin-top: 0;
}

    .service-link:hover {
        color: white;
        opacity: 0.8;
    }

    .service-link i {
        font-size: var(--font-xs);
        transition: transform 0.3s;
    }

    .service-link:hover i {
        transform: translateX(0.15rem);
    }

/* View All Button */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: var(--font-sm);
    text-decoration: none;
    padding: clamp(0.5rem, 1vw, 0.625rem) clamp(1.25rem, 2.5vw, 1.75rem);
    border: 2px solid var(--primary-blue);
    border-radius: 60px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-view-all:hover {
        background-color: var(--primary-blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(62, 116, 210, 0.3);
        text-decoration: none;
    }

    .btn-view-all i {
        font-size: var(--font-xs);
        transition: transform 0.3s ease;
    }

    .btn-view-all:hover i {
        transform: translateX(4px);
    }

.guide-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.5rem, 2.5vw, 2rem);
    height: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary-blue);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

    .guide-download-btn:hover {
        color: var(--secondary-blue);
        transform: scale(1.2);
        text-decoration: none;
        background: transparent;
    }

.badge-new {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
    padding: clamp(0.25rem, 0.5vw, 0.375rem) clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 0.5rem;
    font-size: var(--font-xs);
    font-weight: 700;
    white-space: nowrap;
    height: auto;
    min-height: clamp(0.875rem, 1.5vw, 1rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.guide-card:hover .badge-new {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

a.section-title {
    display: block;
    text-decoration: none;
    color: #1e3a5f;
    cursor: pointer;
}

    a.section-title:hover {
        color: #1e3a5f;
        text-decoration: underline;
    }

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet Landscape */
@media (max-width: 991px) {
    .service-card {
        margin-bottom: var(--gap-md);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
    }

    .service-icon {
        margin-top: 0.125rem;
    }

    .services-section {
        padding: clamp(1rem, 2vw, 1.5rem) 0;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .form-control-custom {
        min-height: 2.5rem;
    }

    .service-card {
        padding: var(--gap-md);
        margin-bottom: var(--gap-md);
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {

    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-find-service {
        min-height: 2.5rem;
        font-size: var(--text-sm);
    }

    .service-card {
        padding: var(--gap-sm);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card {
        cursor: pointer;
    }

        .service-card:active {
            transform: scale(0.98);
        }

    .btn-primary-custom:active,
    .btn-secondary-custom:active,
    .btn-find-service:active {
        transform: scale(0.98);
    }

    .service-card:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==================== REDUCED MOTION PREFERENCE ==================== */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-find-service {
        transition: none;
    }

        .service-card:hover {
            transform: none;
        }
}



/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .guide-modal-container {
        max-width: 90%;
        border-radius: 0.875rem;
    }

}

@media (max-width: 767px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .guide-card-page {
        min-height: auto;
        border-radius: 0.75rem;
    }

    .guide-modal-container {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 0.75rem;
    }

    .guide-modal-header {
        padding: 1.25rem;
    }

    .guide-modal-body {
        padding: 1.25rem;
    }

    .guide-modal-footer {
        padding: 1rem 1.25rem;
    }

    .guide-modal-attachment-item {
        flex-wrap: wrap;
    }

    .guide-modal-attachment-download {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .banner-section {
        padding: clamp(3rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 5rem) 0;
    }
}

@media (max-width: 575px) {
    .guides-grid {
        gap: 1rem;
    }

    .guide-card-page {
        padding: 1.25rem;
    }

    .guide-view-link {
        font-size: 0.75rem;
    }
}
