/* ==========================================================
   SERVICES PAGE
   Load this file AFTER main.css
   ========================================================== */

:root {
    --service-card-bg: #142653;
    --service-card-bg-hover: #192F61;
    --service-card-border: rgba(161, 183, 218, 0.34);
    --service-card-border-hover: rgba(91, 140, 255, 0.78);

    --service-title: #FFFFFF;
    --service-text: #D9E2F0;
    --service-muted: #AEBBD0;
}

/* ----------------------------------------------------------
   Services dark page background-
   ---------------------------------------------------------- */

.section-padding.section-bg-3 {
  position: relative;
  background-color: var(--lux-dark-bg);
  background-image: radial-gradient(circle at 18% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 45%), radial-gradient(circle at 82% 85%, rgba(14, 38, 87, 0.6) 0%, transparent 55%), radial-gradient(circle at 50% 50%, rgba(11, 25, 56, 0.8) 0%, transparent 70%);
  overflow: hidden;
}

/* ----------------------------------------------------------
   Service card
   ---------------------------------------------------------- */

.section-bg-3 .service-box-items-style-2 {
    height: 100%;
    margin-top: 0;
    padding: 10px;
    overflow: hidden;

    background: var(--service-card-bg);
    border: 1px solid var(--service-card-border);
    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);

    transition:
            transform 0.35s ease,
            background-color 0.35s ease,
            border-color 0.35s ease,
            box-shadow 0.35s ease;
}

.section-bg-3 .service-box-items-style-2:hover {
    background: var(--service-card-bg-hover);
    border-color: var(--service-card-border-hover);

    transform: translateY(-6px);

    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.30),
            0 0 0 1px rgba(47, 107, 255, 0.10);
}

/* Keyboard accessibility */
.section-bg-3 .service-box-items-style-2:focus-within {
    border-color: var(--luxury-accent);
    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.30),
            0 0 0 3px rgba(232, 211, 154, 0.18);
}

/* ----------------------------------------------------------
   Image
   Existing two-image hover animation is preserved
   ---------------------------------------------------------- */

.section-bg-3 .service-box-items-style-2 .service-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background-color: #08142F;
}

.section-bg-3 .service-box-items-style-2 .service-thumb .hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Softer image overlay for better premium appearance */
.section-bg-3 .service-box-items-style-2 .service-thumb::after {
    position: absolute;
    content: "";
    z-index: 2;
    inset: 0;

    pointer-events: none;
    background: linear-gradient(
            180deg,
            rgba(5, 11, 43, 0.00) 35%,
            rgba(5, 11, 43, 0.35) 100%
    );
}

/* ----------------------------------------------------------
   Image icon tile
   ---------------------------------------------------------- */

.section-bg-3 .service-box-items-style-2 .service-thumb .icon {
    z-index: 3;
    width: 64px;
    height: 64px;
    line-height: 64px;

    right: 10px;
    bottom: 10px;

    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}

/* Keep images/icons crisp */
.section-bg-3 .service-box-items-style-2 .service-thumb .icon img {
    max-width: 30px;
    max-height: 30px;
}

/* ----------------------------------------------------------
   Content typography
   ---------------------------------------------------------- */

.section-bg-3 .service-box-items-style-2 .service-content {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 22px 16px 16px;
}

/* ----------------------------------------------------------
   Luxury Academy Card Meta (Date & Author)
   Brand tokens: Navy + Gold (--luxury-accent)
   ---------------------------------------------------------- */

.service-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;

    margin-bottom: 14px;
    padding: 7px 12px;

    background: linear-gradient(135deg, rgba(8, 20, 47, 0.72) 0%, rgba(14, 38, 87, 0.48) 100%);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 9px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-meta:hover,
.service-box-items-style-2:hover .service-meta {
    background: linear-gradient(135deg, rgba(10, 26, 62, 0.88) 0%, rgba(20, 48, 107, 0.62) 100%);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 18px rgba(0, 0, 0, 0.28),
        0 0 14px rgba(212, 175, 55, 0.15);
}

.service-meta .service-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--service-muted, #AEBBD0);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.service-meta .service-meta-item time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-meta .service-meta-item i {
    color: var(--luxury-accent, #D4AF37);
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.service-meta:hover .service-meta-item i,
.service-box-items-style-2:hover .service-meta .service-meta-item i {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.75));
    transform: scale(1.08);
}

.service-meta .meta-divider {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--luxury-accent, #D4AF37);
    opacity: 0.55;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.service-meta .meta-label {
    color: rgba(217, 226, 240, 0.75);
    font-weight: 400;
    font-size: 0.8rem;
}

.service-meta .meta-value {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-meta .meta-time-sep {
    display: inline-block;
    margin: 0 4px;
    color: rgba(212, 175, 55, 0.45);
    font-weight: 300;
}

.service-meta .meta-time-val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--service-muted, #AEBBD0);
    font-size: 0.78rem;
}

.service-meta .meta-time-val i {
    font-size: 0.88rem;
}

/* RTL refinements */
[dir="rtl"] .service-meta {
    letter-spacing: 0;
}

[dir="rtl"] .service-meta .meta-value {
    letter-spacing: 0;
}

/* ----------------------------------------------------------
   Single Academy Page Hero Meta Badge
   ---------------------------------------------------------- */

.breadcrumb-wrapper .service-meta.academy-page-meta {
    width: auto;
    display: inline-flex;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    background: linear-gradient(135deg, rgba(8, 20, 47, 0.85) 0%, rgba(14, 38, 87, 0.65) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 16px rgba(212, 175, 55, 0.12);
}

.breadcrumb-wrapper .service-meta.academy-page-meta .service-meta-item {
    font-size: 0.875rem;
}

.breadcrumb-wrapper .service-meta.academy-page-meta .service-meta-item i {
    font-size: 1.15rem;
}

.breadcrumb-wrapper .service-meta.academy-page-meta .meta-label {
    font-size: 0.84rem;
}

.breadcrumb-wrapper .service-meta.academy-page-meta:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 22px rgba(212, 175, 55, 0.22);
}

/* Mobile responsive behavior */
@media (max-width: 576px) {
    .service-meta {
        padding: 6px 10px;
        gap: 6px 10px;
        margin-bottom: 12px;
    }

    .service-meta .service-meta-item {
        font-size: 0.75rem;
    }

    .service-meta .service-meta-item i {
        font-size: 0.95rem;
    }

    .service-meta .meta-label {
        font-size: 0.73rem;
    }

    .service-meta .meta-time-val {
        font-size: 0.73rem;
    }
}

.section-bg-3 .service-box-items-style-2 .service-content h2 {
    margin: 0;
    font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
}

.section-bg-3 .service-box-items-style-2 .service-content h2 a {
    color: var(--service-title);
    text-decoration: none;
}

.section-bg-3 .service-box-items-style-2 .service-content h2 a:hover {
    color: var(--luxury-accent-soft);
}

.section-bg-3 .service-box-items-style-2 .service-content p {
    display: -webkit-box;
    overflow: hidden;

    margin-top: 12px;
    margin-bottom: 0;

    color: var(--service-text);
    font-size: 0.95rem;
    line-height: 1.9;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Push button to the bottom to align all cards */
.section-bg-3 .service-box-items-style-2 .service-btn-area {
    margin-top: auto;
    padding-top: 22px;
}

/* ----------------------------------------------------------
   CTA Button
   This selector intentionally beats `.service-btn-area a`
   from the end of main.css.
   ---------------------------------------------------------- */

.section-bg-3 .service-box-items-style-2 .service-btn-area a.theme-btn {
    min-height: 52px;
    padding: 0 18px;

    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;

    color: #FFFFFF;
    box-shadow: 0 9px 20px rgba(47, 107, 255, 0.28);
}

.section-bg-3 .service-box-items-style-2 .service-btn-area a.theme-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);

    box-shadow: 0 12px 26px rgba(47, 107, 255, 0.42);
}

/* Circular arrow element */
.section-bg-3 .service-box-items-style-2 .theme-btn .btn-arrow-right,
.section-bg-3 .service-box-items-style-2 .theme-btn .btn-arrow-left {
    width: 34px;
    height: 34px;
    line-height: 34px;

    background-color: #F8FAFC;
    color: var(--theme);
}

/* ----------------------------------------------------------
   Pagination
   ---------------------------------------------------------- */

#pagination-wrap.page-nav-wrap {
    margin-top: 56px;
}

#pagination-wrap.page-nav-wrap ul li .page-numbers {
    width: 46px;
    height: 46px;
    line-height: 44px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;

    color: var(--text-light);
    box-shadow: none;
}

#pagination-wrap.page-nav-wrap ul li .page-numbers:hover,
#pagination-wrap.page-nav-wrap ul li.active .page-numbers,
#pagination-wrap.page-nav-wrap ul li .page-numbers.current {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

#pagination-wrap.page-nav-wrap ul li.active .page-numbers {
    width: 46px !important;
}
/* ==========================================================
   SERVICES BUTTON
   Preserve the original main.css button animation
   ========================================================== */

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn {
    /* Keep the original button layout */
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    width: auto;
    min-width: 0;
    height: auto;

    padding: 16px 70px 16px 40px;
}

/* Keep the original title behavior */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 0;

    white-space: nowrap;
}

/* Original right arrow */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-right {
    position: absolute;

    top: 50%;
    right: 10px;
    left: auto;

    width: 46px;
    height: 46px;
    margin: 0;

    transform: translateY(-50%);
    scale: 1;
}

/* Original left arrow */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-left {
    position: absolute;

    top: 50%;
    left: 10px;
    right: auto;

    width: 46px;
    height:  0;
}

/*: 0;

    transform: translateY(-50%);
    scale: 0;
}

/* Restore the original smooth swap animation */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-arrow-left {
    scale: 1;
}

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-arrow-right {
    scale: 0;
}

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-title {
    transform: translateX(30px);
}
/* ==========================================================
   SERVICES BUTTON - RESTORE ORIGINAL ARROW ANIMATION
   ========================================================== */

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;

    width: auto;
    min-width: 0;

    /* Original main.css spacing */
    padding: 16px 70px 16px 40px;

    overflow: hidden;
}

/* Apply the same design to BOTH arrows */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-left,

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-right {
    position: absolute;
    top: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    margin: 0;

    border-radius: 50%;

    background-color: #F8FAFC !important;
    color: var(--theme) !important;

    line-height: 1;
    font-size: 20px;

    transform: translateY(-50%);
    transition:
            scale 400ms ease,
            background-color 250ms ease,
            color 250ms ease;
}

/* Right arrow: visible by default */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-right {
    right: 10px;
    left: auto;

    scale: 1;
}

/* Left arrow: hidden by default */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-left {
    left: 10px;
    right: auto;

    scale: 0;
}

/* Original smooth swap animation */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-arrow-right {
    scale: 0;
}

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-arrow-left {
    scale: 1;
}

/* Preserve the original title animation */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-title {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    padding: 0;
    margin: 0;

    white-space: nowrap;
    transition: transform 400ms ease;
}

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn:hover
.btn-title {
    transform: translateX(30px);
}

/* Ensure the Font Awesome icon itself uses the correct color */
.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-left i,

.section-bg-3
.service-box-items-style-2
.service-btn-area
a.theme-btn
.btn-arrow-right i {
    color: var(--theme) !important;
}
