/********** Template CSS **********/
/********** Persian Font **********/

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-RD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-RD-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-RD-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ======================================== */
/* ===== تنظیمات پایه ===== */
/* ======================================== */

html,
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
}

* {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100% !important;
}

/* ======================================== */
/* ===== متغیرها ===== */
/* ======================================== */

:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/* ======================================== */
/* ===== تنظیم وزن فونت‌ها ===== */
/* ======================================== */

h1, h2, .font-weight-bold {
    font-weight: 700 !important;
}

h3, h4, .font-weight-semi-bold {
    font-weight: 500 !important;
}

h5, h6, .font-weight-medium {
    font-weight: 500 !important;
}

/* ======================================== */
/* ===== دکمه‌ها ===== */
/* ======================================== */

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* ======================================== */
/* ===== اسپینر ===== */
/* ======================================== */

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ======================================== */
/* ===== دکمه بازگشت ===== */
/* ======================================== */

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* ======================================== */
/* ===== نوار ناوبری ===== */
/* ======================================== */

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -47px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    padding: 30px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 18px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* ======================================== */
/* ===== اسلایدر ===== */
/* ======================================== */

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .10);
    z-index: 1;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption p {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0.5, 0.4, 1.7), 0 0 10px rgba(128, 128, 128, 0.7);
}

.carousel-caption {
    align-items: flex-end !important;
}

.carousel-caption .p-3 {
    margin-right: 80px;
    margin-left: auto;
    text-align: right;
}

.carousel-caption h1,
.carousel-caption h5 {
    text-align: right;
}

.carousel-caption h1 {
    display: inline-block;
    background: rgba(120, 120, 120, 0.12);
    padding: 12px 30px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
    font-size: 3rem !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* ===== اسلایدر - موبایل ===== */
@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 12px !important;
        font-weight: 500 !important;
        margin-bottom: 5px !important;
    }

    .carousel-caption h1 {
        font-size: 1.5rem !important;
        padding: 8px 15px !important;
        border-radius: 8px;
    }

    .carousel-caption p {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .carousel-caption .btn {
        font-size: 12px !important;
        padding: 8px 20px !important;
    }

    .carousel-caption .p-3 {
        margin-right: 20px !important;
        padding: 10px !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem !important;
        height: 2rem !important;
    }
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 10px !important;
    }

    .carousel-caption h1 {
        font-size: 1.2rem !important;
        padding: 6px 12px !important;
    }

    .carousel-caption p {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }

    .carousel-caption .btn {
        font-size: 10px !important;
        padding: 6px 15px !important;
    }

    .carousel-caption .p-3 {
        margin-right: 10px !important;
        padding: 8px !important;
    }
}

/* ======================================== */
/* ===== عنوان بخش ===== */
/* ======================================== */

.section-title {
    text-align: right;
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

/* ======================================== */
/* ===== هدر ===== */
/* ======================================== */

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/* ======================================== */
/* ===== انیمیشن‌ها ===== */
/* ======================================== */

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius: 100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

/* ======================================== */
/* ===== تنظیمات RTL ===== */
/* ======================================== */

.navbar-brand {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.navbar .btn {
    margin-left: 0 !important;
    margin-right: 20px !important;
}

.top-shape {
    right: auto;
    left: -25px;
}

.top-shape::before {
    left: auto;
    right: -17px;
    transform: skew(-40deg);
}

.section-title h5::before {
    right: auto;
    left: -55px;
}

.section-title h5::after {
    right: auto;
    left: -75px;
}

p, h1, h2, h3, h4, h5, h6 {
    text-align: right;
}

/* ======================================== */
/* ===== انیمیشن لوگو ===== */
/* ======================================== */

.logo-tooth {
    animation: glow 2.5s infinite;
}

@keyframes glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #4db8ff);
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px #4db8ff);
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #4db8ff);
    }
}

.logo i {
    color: #0d6efd;
    display: inline-block;
    animation: toothGlow 2.5s infinite ease-in-out;
}

@keyframes toothGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 0px #0d6efd);
    }
    50% {
        transform: scale(1.12) rotate(-5deg);
        filter: drop-shadow(0 0 12px #7fd3ff);
    }
}

/* ======================================== */
/* ===== دکمه‌های واتساپ و اینستاگرام ===== */
/* ======================================== */

.whatsapp-btn,
.instagram-btn {
    position: fixed;
    width: 65px;
    height: 65px;
    border-radius: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 34px;
    z-index: 99999;
    background: none;
    border: none;
}

.whatsapp-btn {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 110px;
    z-index: 9999;
    animation: pulse 1.8s infinite;
}

.instagram-btn {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 30px;
    z-index: 9999;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

/* ======================================== */
/* ===== بخش ویدیوها ===== */
/* ======================================== */

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: #000;
}

.video-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* ===== فقط ویدیو کلینیک - نصف صفحه و وسط ===== */
.video-wrapper.clinic-video {
    max-width: 50% !important;
    margin: 0 auto !important;
}

/* ===== دکمه پخش ویدیو ===== */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(6, 163, 218, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 0 40px rgba(6, 163, 218, .5);
    animation: btnPulse 2s infinite;
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.3);
    z-index: 10;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary);
    border-color: rgba(255,255,255,0.6);
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 163, 218, .7);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(6, 163, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 163, 218, 0);
    }
}

/* ===== ریسپانسیو ویدیو کلینیک ===== */
@media (max-width: 991px) {
    .video-wrapper.clinic-video {
        max-width: 60% !important;
    }
}

@media (max-width: 768px) {
    .video-wrapper.clinic-video {
        max-width: 75% !important;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    .video-wrapper.clinic-video {
        max-width: 90% !important;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ======================================== */
/* ===== مودال ویدیو ===== */
/* ======================================== */

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

/* ======================================== */
/* ===== خبرنامه - نسخه نهایی ===== */
/* ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, #091E3E 0%, #06A3DA 100%);
    color: #fff;
    padding: 60px 0;
    overflow: hidden;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ===== فرم خبرنامه ===== */
.newsletter-form {
    width: 100%;
}

.newsletter-form .form-group {
    display: flex;
    flex-wrap: nowrap;
    max-width: 350px;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    direction: ltr;
}

.newsletter-form .form-control {
    flex: 1;
    height: 50px;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
    background: transparent;
    outline: none;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0;
}

.newsletter-form .form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.newsletter-form .btn {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0 !important;
    background: #F57E57;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: #e06a42;
    transform: scale(1.02);
}

.newsletter-image {
    max-height: 180px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ===== خبرنامه - ریسپانسیو ===== */
@media (max-width: 991px) {
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-form .form-group {
        max-width: 100%;
    }
    
    .newsletter-image {
        max-height: 150px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 30px 0;
    }
    
    .newsletter-content h3 {
        font-size: 22px;
    }
    
    .newsletter-content p {
        font-size: 14px;
    }
    
    .newsletter-form .form-group {
        border-radius: 30px;
        max-width: 100%;
    }
    
    .newsletter-form .form-control {
        height: 45px;
        font-size: 13px;
        padding: 0 15px;
    }
    
    .newsletter-form .btn {
        height: 45px;
        padding: 0 18px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .newsletter-section {
        padding: 20px 0;
    }
    
    .newsletter-content h3 {
        font-size: 18px;
    }
    
    .newsletter-form .form-group {
        border-radius: 25px;
    }
    
    .newsletter-form .form-control {
        height: 40px;
        font-size: 12px;
        padding: 0 12px;
    }
    
    .newsletter-form .btn {
        height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }
}

/* ======================================== */
/* ===== فوتر ===== */
/* ======================================== */

.footer-section {
    background: #091E3E;
    color: #fff;
    padding: 60px 0 20px;
    direction: rtl;
    text-align: right;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #06A3DA;
    border-radius: 2px;
}

.footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-text i {
    color: #06A3DA;
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #06A3DA;
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #06A3DA;
    color: #fff;
    transform: translateY(-3px);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.map-container img {
    width: 100%;
    height: auto;
}

.map-credit {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    text-align: center;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 2;
    text-align: center;
}

.design-credit {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.design-credit-en {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    direction: ltr;
    display: inline-block;
}

/* ===== ریسپانسیو فوتر ===== */
@media (max-width: 991px) {
    .footer-section {
        padding: 40px 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 30px 0 15px;
    }
    
    .footer-title {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .footer-section .col-md-6:first-child .footer-title {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding: 25px 0 10px;
    }
    
    .footer-title {
        font-size: 15px;
        margin-top: 15px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 11px;
    }
}

/* ======================================== */
/* ===== جلوگیری از اسکرول افقی ===== */
/* ======================================== */

.container,
.container-fluid,
.row {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

img,
video,
iframe,
svg {
    max-width: 100% !important;
    height: auto !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #06A3DA;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0487b8;
}

 .reviews-slider{
    width:100%;
    overflow:hidden;
    padding:25px 0;
    position:relative;
}

.reviews-track{
    display:flex;
    gap:20px;
    width:max-content;
}

.review-card{
    width:320px;
    min-width:320px;
    flex:none;
    background:#fff;
    border:3px solid #D4AF37;
    border-radius:18px;
    padding:20px;
    box-shadow:0 0 20px rgba(212,175,55,.35);
}

.review-card h5{
    color:#D4AF37;
    margin-bottom:10px;
}

@media(max-width:768px){

    .review-card{
        width:85vw;
        min-width:85vw;
    }

}
.back-to-top{
    display:none !important;
}
.back-to-top{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: block !important;
}