/*! الخطوط */
@font-face {
    font-family: "font_main";
    src: url("../assets/fonts/Changa/Changa-Regular.ttf");
}
@font-face {
    font-family: "font_bold";
    src: url("../assets/fonts/Changa/Changa-Bold.ttf");
}
@font-face {
    font-family: "font_semi-bold";
    src: url("../assets/fonts/Changa/Changa-SemiBold.ttf");
}
@font-face {
    font-family: "font_extra-bold";
    src: url("../assets/fonts/Changa/Changa-ExtraBold.ttf");
}
@font-face {
    font-family: "font_light";
    src: url("../assets/fonts/Changa/Changa-Light.ttf");
}
@font-face {
    font-family: "font_medium";
    src: url("../assets/fonts/Changa/Changa-Light.ttf");
}

/*! الألوان الرئيسية */
:root {
    --white-color: #fff;
    --black-color: #000;
    --main-color: rgba(0, 138, 170, 1);
    --text-color: rgba(0, 0, 0, 0.9);
    --bg-section: rgba(234, 251, 255, 1);
}

body,
html {
    font-family: "font_main";
    overflow-x: hidden;
    direction: rtl;
}

::selection {
    background-color: var(--main-color);
    color: var(--white-color);
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

*:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button:focus,
a {
    outline: none;
}

button {
    border: none;
}

*:focus {
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
    margin: 0;
}

p {
    color: var(--text-color);
    font-size: 20px;
}

img {
    width: 100%;
    height: 100%;
}

/*! Globals */
.main-container {
    width: 90%;
    margin: auto;
}

section {
    margin: 100px 0;
}

.specialty-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 28px 8px 16px;
    border: 5px solid;
    border-image-source: linear-gradient(180deg, #008aaa 0%, #ffffff 100%);
    border-image-slice: 1;
    border-left: none;
    border-bottom: none;
    color: #008aaa;
    font-weight: 700;
    overflow: hidden;
    animation: tag-pulse 2.5s ease-in-out infinite;
    background: transparent;
}

.specialty-tag h2 {
    font-size: 35px;
    font-weight: 700;
    color: #008aaa;
}
.gradient-frame-card {
    border: 5px solid;
    border-image-source: linear-gradient(180deg, #008aaa 0%, #ffffff 100%);
    border-image-slice: 1;
    background: transparent;
    padding: 16px;
}

.head-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 50px 20px 0 0;
}
.head-title h2 {
    position: relative;
    width: fit-content;
    color: var(--main-color);
    font-weight: 700;
    font-size: 35px;
}
.head-title h2::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 5px;
    background-color: var(--main-color);
    right: -15px;
    top: -12px;
    animation: lineMove 2s ease-in-out infinite alternate;
    transform-origin: right;
}
.head-title h2::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 110%;
    right: -16px;
    top: -10px;
    background: linear-gradient(to bottom, #008aaa, #58595b);
    animation: lineHeight 2s ease-in-out infinite alternate;
    transform-origin: top;
}
.head-title .head-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes lineMove {
    from {
        transform: scaleX(0.5);
    }
    to {
        transform: scaleX(1);
    }
}
@keyframes lineHeight {
    from {
        transform: scaleY(0.5);
    }
    to {
        transform: scaleY(1);
    }
}

/*! =============================== Pagination =============================== */
.site-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 16px;
}

.site-pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(0, 138, 170, 0.25);
    background: var(--white-color);
    color: var(--main-color);
    font-family: "font_semi-bold", "font_main", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 138, 170, 0.08);
    transition: all 0.25s ease;
}

.site-pagination__btn:hover {
    background: var(--bg-section);
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 138, 170, 0.16);
}

.site-pagination__item.is-active .site-pagination__btn {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--white-color);
    box-shadow: 0 8px 20px rgba(0, 138, 170, 0.28);
    cursor: default;
}

.site-pagination__item.is-active .site-pagination__btn:hover {
    transform: none;
}

.site-pagination__item.is-disabled .site-pagination__btn {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    background: #f5f8fa;
    border-color: rgba(0, 138, 170, 0.12);
    color: var(--main-color);
}

.site-pagination__item.is-disabled .site-pagination__btn:hover {
    transform: none;
    box-shadow: none;
    background: #f5f8fa;
}

.site-pagination__btn--nav {
    min-width: 44px;
    background: var(--bg-section);
}

.site-pagination__btn--dots {
    min-width: 36px;
    border: none;
    background: transparent;
    box-shadow: none;
    color: rgba(0, 138, 170, 0.55);
    padding: 0 4px;
}

.site-pagination__btn--dots:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 576px) {
    .site-pagination__btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .site-pagination__list {
        gap: 8px;
    }
}

.whatsapp-wrapper {
    position: fixed;
    bottom: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

html[dir="rtl"] .whatsapp-wrapper {
    right: 25px;
    flex-direction: row;
}

html[dir="ltr"] .whatsapp-wrapper {
    left: 25px;
    flex-direction: row-reverse;
}

.whatsapp {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    text-decoration: none;
    animation: whatsappFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.whatsapp img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: whatsappRing 2s infinite;
    pointer-events: none;
}

.whatsapp:hover {
    transform: scale(1.06);
}

.whatsapp-text {
    background: var(--white-color);
    color: #128c7e;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-wrapper:hover .whatsapp-text {
    opacity: 1;
    transform: translateY(0);
}

@keyframes whatsappFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.map-wrapper #map,
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
