/* ======= Global Header/Sidebar Behavior (shared across pages) ======= */
/* Floating toggle button for sidebar */
.toggle-sidebar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1100;
}

/* Ensure sidebar overlays header */
.sidebar-menu {
    position: fixed;
    top: 0;
    z-index: 1200;
}

/* Ensure close button sits on top inside sidebar */
.sidebar-menu .close-sidebar {
    position: absolute;
    z-index: 1300;
}

/* Add top spacing so content doesn't hide under the fixed header */
main,
#main-content,
.consultants-section {
    padding-top: 90px;
}
/* Hero Slider Styles */
.hero-slider {
    position: relative;
    margin: 50px auto 60px;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-slider .carousel {
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-slider .carousel-item {
    height: 500px;
    position: relative;
}

.hero-slider .slider-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
}

.hero-slider .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transition: transform 0.5s ease;
}

.hero-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
    border-radius: 30px;
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 0;
}

/* إضافة خلفية زجاجية للنصوص */
/* تم إزالة التأثير الزجاجي - .hero-slider .carousel-caption::before */

.hero-slider .carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-slider .carousel-caption .lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 2rem;
}

.hero-slider .slider-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-slider .slider-buttons .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.hero-slider .slider-buttons .btn span {
    visibility: visible;
}

.hero-slider .slider-buttons .btn::before {
    content: none;
}

.hero-slider .slider-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-slider .slider-buttons .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-slider .slider-buttons .btn-outline-primary {
    color: white;
    border-color: white;
}

.hero-slider .slider-buttons .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-indicators {
    display: none;
}

.hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

/* تنسيق خاص لشاشات الكومبيوتر */
@media (min-width: 1025px) {
    .hero-slider {
        margin: 50px auto 60px;
    }
}

/* General Styles */
:root {
    --primary-color: #27b3f6;
    --secondary-color: #4bc2ff;
    --accent-color: #6ed0ff;
    --light-blue: #f5f8ff;
    --medium-blue: #e8eeff;
    --dark-blue: #1a9de0;
    --text-color: #2b3674;
    --light-gray: #f5f8ff;
    --border-radius: 6px;
    --box-shadow: 0 2px 10px rgba(39, 179, 246, 0.1);
    --transition: all 0.3s ease;
    --container-max-width: 1100px;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: #f5f8ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max-width);
    padding: 0 1rem;
}

/* Section Styles */
.section-title,
.section-header h2,
.why-choose-us-section .section-header h2,
.how-to-use-section .section-header h2 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    font-size: 2.2rem;
    padding-top: 0.5rem;
}

.section-title::after,
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services-section {
    padding: 30px 0;
    background: var(--light-blue);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.services-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    margin: 0;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
}

.services-row .col-md-2 {
    flex: 0 0 auto;
    width: 220px;
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
}

.services-row .col-md-2:not(:last-child)::after {
    display: none;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    height: 260px;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(39, 179, 246, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(39, 179, 246, 0.12);
}

.service-card i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.service-card i.fa-check::before {
    content: "\f00c"; /* رمز أيقونة علامة الاختيار في Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.service-card:hover i {
    transform: scale(1.1) rotate(3deg);
}

.service-card i.fa-calendar-check::before {
    content: "\f0e7"; /* رمز أيقونة البرق في Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.service-card i.fa-user-tie::before {
    content: "\f0c0"; /* رمز أيقونة مجموعة المستخدمين في Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.service-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.service-btn span {
    display: none;
}

.service-btn::before {
    content: none;
}

.service-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.service-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-btn:hover::before {
    color: white;
}

/* Consultants Section */
.consultants-section {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--medium-blue) 100%);
    overflow: visible;
    position: relative;
}

.consultants-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto;
    padding: 5px 0;
}

/* Swiper Styles for Consultants */
.consultants-swiper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

/* Swiper Styles for Testimonials */
.testimonials-swiper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.testimonials-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 10px 0;
    flex-shrink: 0;
}

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.testimonials-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    z-index: 10;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.testimonials-swiper .swiper-button-next.swiper-button-disabled,
.testimonials-swiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* تنسيقات إضافية لبطاقات التقييمات في Swiper */
.testimonials-swiper .testimonial-card {
    margin: 0 !important;
    width: 100%;
    max-width: 320px;
}

/* إجبار تطبيق الفراغ في Swiper */
.testimonials-swiper .swiper-slide {
    padding: 0 7.5px !important;
    margin: 0 !important;
}

/* إجبار تطبيق الفراغ في Swiper wrapper */
.testimonials-swiper .swiper-wrapper {
    gap: 15px !important;
}

.consultants-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.consultants-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.consultants-swiper .swiper-button-next,
.consultants-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.consultants-swiper .swiper-button-next:hover,
.consultants-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.consultants-swiper .swiper-button-next::after,
.consultants-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.consultants-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    z-index: 10;
}

.consultants-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.consultants-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.consultants-track {
    display: inline-flex;
    white-space: nowrap;
    padding: 5px 0;
    transition: transform 0.1s linear;
}

.consultant-card {
    width: 280px;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(39, 179, 246, 0.1);
    margin: 0 15px;
    padding: 20px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* تنسيقات إضافية لبطاقات المستشارين في Swiper */
.consultants-swiper .consultant-card {
    margin: 0;
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* تحسينات إضافية لضمان العمل */
.consultants-container {
    position: relative;
    overflow: hidden;
}

.consultants-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 10px 0;
    flex-shrink: 0;
}

/* تحسينات إضافية لضمان عدم تغيير التنسيق */
.consultants-swiper .consultant-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.consultants-swiper .consultant-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.consultants-swiper .consultant-details {
    flex: 1;
}

.consultants-swiper .consultant-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 16px;
}

.consultants-swiper .consultant-specialization {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 3px;
}

.consultants-swiper .consultant-rating {
    color: #ffa000;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mySwiper .consultant-rating {
    color: #ffa000;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* تحسينات إضافية للتفاعل */
.consultants-swiper .consultant-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(39, 179, 246, 0.15);
}

.consultants-swiper .consultant-card:hover .consultant-avatar {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* تحسينات للتنقل */
.consultants-swiper .swiper-button-next.swiper-button-disabled,
.consultants-swiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

.consultant-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(39, 179, 246, 0.15);
}

.consultant-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.consultant-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.consultant-card:hover .consultant-avatar {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.consultant-details {
    flex: 1;
}

.consultant-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 16px;
}

.consultant-specialization {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 3px;
}

.consultant-experience {
    display: none; /* إخفاء سنوات الخبرة */
}

.consultant-rating {
    color: #ffa000;
    font-size: 14px;
    margin: 10px 0;
}

.consultant-price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: #66BB6A;
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0;
}

.consultant-rating .consultant-price::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/Saudi_Riyal_Symbol-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
    vertical-align: middle;
    transform: translateY(-4px);
}

.consultant-skills {
    display: none; /* إخفاء قسم التخصصات */
}

.skill-tag {
    display: none; /* إخفاء التخصصات الفردية */
}

.badge {
    display: none; /* إخفاء علامة متاح الآن */
}

.consultant-rating-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.consultant-rating-container .consultant-name {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.consultant-rating-container .testimonial-rating {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--medium-blue) 100%);
    overflow: hidden;
    position: relative;
}

.testimonials-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto;
    padding: 5px 0;
}

.testimonials-track {
    display: inline-flex;
    white-space: nowrap;
    padding: 20px 0;
    transition: transform 0.1s linear;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonials-track:active {
    cursor: grabbing;
}

#testimonials-track-clone {
    position: absolute;
    top: 0;
    right: -100%;
}

.testimonial-card {
    width: 320px;
    min-width: 320px;
    background: white;
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(39, 179, 246, 0.1);
    padding: 15px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin: 0 15px;
    min-height: 170px; /* ارتفاع أدنى للبطاقة */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(39, 179, 246, 0.15);
}

.testimonial-card .consultant-name {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 5px;
    text-align: center;
}

.testimonial-card .consultant-name::before {
    content: none;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-card .client-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .client-avatar {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.testimonial-card .client-details {
    flex: 1;
}

.testimonial-card .client-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 16px;
}

.testimonial-card .client-position {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
}

.testimonial-card .testimonial-rating {
    color: #ffa000;
    font-size: 14px;
    margin: 10px 0;
}

.testimonial-card .testimonial-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 0 0;
    position: relative;
    padding: 0 10px;
    max-height: 90px; /* أقصى ارتفاع للنص */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* عدد الأسطر المسموح بها */
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
}

.testimonial-text p {
    margin: 0;
    line-height: 1.6;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: -10px;
    right: -5px;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 24px;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Statistics Section */
.statistics-section {
    padding: 60px 0;
    position: relative;
    background-color: var(--light-blue) !important;
}

.statistics-section .section-title {
    color: var(--text-color);
    text-shadow: none;
}

.stat-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(39, 179, 246, 0.1);
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.08);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 179, 246, 0.12);
    border-color: rgba(39, 179, 246, 0.2);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-card p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

/* FAQ Section Styles */
.faq-section {
    padding: 15px 0 60px 0;
    background-color: var(--light-blue);
}

.faq-container {
    max-width: 700px;
    margin: 30px auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(39, 179, 246, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 179, 246, 0.15);
}

.faq-question {
    padding: 0;
}

.faq-button {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: none;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-button span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.faq-button i {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-button:not(.collapsed) i {
    transform: rotate(180deg);
}

.faq-button:hover {
    background: var(--light-blue);
}

.faq-button:not(.collapsed) {
    background: var(--light-blue);
    border-bottom: 2px solid var(--primary-color);
}

.faq-answer {
    padding: 15px 20px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    background: white;
}

/* Contact Section */
.contact-section {
    background: transparent;
    padding: 40px 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.08);
}

.form-control, .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(39, 179, 246, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Footer Styles */
.footer {
    background: #2B2C35;
    padding: 80px 0 40px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-brand img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    margin: 0 0 25px;
    max-width: 300px;
}

.footer-contact-info {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

.contact-item:hover i {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-item span {
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--light-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1rem;
}

.footer-links a:hover {
    color: white;
    padding-right: 8px;
}

.footer-links i {
    font-size: 0.8rem;
    color: var(--light-blue);
    transition: var(--transition);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 25px;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    border: none;
    transition: var(--transition);
}

.newsletter-form .btn:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

.social-link {
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* ألوان خاصة لكل منصة */
.social-link.snapchat:hover {
    color: #FFFC00;
    border-color: #FFFC00;
}

.social-link.tiktok:hover {
    color: #000000;
    border-color: #000000;
}

.social-link.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.social-link.instagram:hover {
    color: #E4405F;
    border-color: #E4405F;
}

.social-link.twitter:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-link:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Privacy Policy Page */
.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.policy-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.policy-section p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-section ul li {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.policy-section ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
}

.policy-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Navigation - تم توحيد التنسيقات */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.main-nav .nav-logo {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
}

.main-nav .nav-logo img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6rem;
    flex: 1;
    margin-right: 10rem;
}

.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    text-align: center;
    display: block;
}

.nav-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* ضمان محاذاة العناوين بشكل صحيح */
.main-nav {
    direction: rtl;
    text-align: right;
}

.main-nav .container {
    direction: rtl;
    text-align: right;
}

.nav-list {
    direction: rtl;
    text-align: right;
}

.nav-list a {
    direction: rtl;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
    white-space: nowrap;
    transform: none;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0;
    word-spacing: normal;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* إصلاح ميلان النص في المتصفحات المختلفة */
.nav-list a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga" 0;
    font-variant-ligatures: none;
}

/* ضمان عدم ميلان النص */
.nav-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 40px;
}

.nav-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.nav-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.nav-actions .btn-primary:hover {
    background: #1a9bd4;
    border-color: #1a9bd4;
    color: white;
}

.nav-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.nav-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* تنسيقات متجاوبة للهيدر */
@media (max-width: 1200px) {
    .main-nav .container {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 30px;
        margin-right: 8rem;
    }
    
    .nav-actions {
        margin-left: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 6px 0;
        min-height: 45px;
    }
    
    .main-nav .container {
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 10px;
        min-height: 45px;
        position: relative;
    }
    
    .nav-list {
        gap: 20px;
        flex: 1;
        min-width: 0;
        margin-right: 5rem;
    }
    
    .nav-list a {
        font-size: 14px;
        padding: 6px 0;
        text-align: center;
        vertical-align: middle;
    }
    
    .nav-actions {
        gap: 8px;
        margin-left: 20px;
        flex-shrink: 0;
    }
    
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-list {
        gap: 15px;
        justify-content: center;
        width: 100%;
        margin-right: 0;
    }
    
    .nav-list a {
        font-size: 13px;
        text-align: center;
        vertical-align: middle;
    }
    
    .nav-actions {
        gap: 5px;
        margin-left: 0;
        justify-content: center;
    }
    
    .nav-actions .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* إخفاء رابط حجز فوري من القائمة العلوية */
.nav-list a[href="booking.html"] {
    display: none;
}

/* Sidebar Menu Styles */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}

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

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--light-blue);
    color: var(--primary-color);
    padding-right: 20px;
}

.sidebar-nav i {
    margin-left: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.toggle-sidebar {
    position: absolute;
    top: 10px;
    right: 350px;
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-sidebar span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.toggle-sidebar:hover span {
    background-color: var(--dark-blue);
}

.sidebar-section {
    padding: 15px 20px 5px;
    border-bottom: none !important;
}

.sidebar-section h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav li:not(.sidebar-section) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--light-blue);
    color: var(--primary-color);
    padding-right: 25px;
}

.sidebar-nav i {
    width: 25px;
    margin-left: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Update sections background colors to match the new theme */
.services-section,
.consultants-section,
.testimonials-section,
.faq-section,
.contact-section {
    background: transparent;
}

.statistics-section {
    background: var(--light-blue) !important;
}

.footer {
    background: #2B2C35;
}

.service-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.2);
}

.service-btn:hover span {
    transform: scale(1.03);
}

.service-btn::before {
    content: none;
}

.service-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.service-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-btn:hover::before {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* تنسيقات قسم لماذا تختار منصة استشارة */
.why-choose-us-section {
    padding: 15px 0 60px 0;
    background: var(--light-blue);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(39, 179, 246, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(39, 179, 246, 0.2);
    border-color: var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* تنسيقات متجاوبة للبطاقات */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .why-choose-us-section {
        padding: 40px 0;
    }
    
    .features-grid {
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* تنسيقات قسم كيف تستخدم استشاراتك */
.how-to-use-section {
    padding: 15px 0 60px 0;
    background: var(--light-blue);
    position: relative;
}

.how-to-use-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.how-to-use-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(39, 179, 246, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.how-to-use-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(39, 179, 246, 0.2);
    border-color: var(--primary-color);
}

.how-to-use-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.how-to-use-card:hover::before {
    opacity: 1;
}

.how-to-use-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    position: relative;
}

.how-to-use-card:hover .how-to-use-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.how-to-use-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.how-to-use-card:hover .how-to-use-icon i {
    color: white;
}

.how-to-use-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.how-to-use-card:hover h3 {
    color: var(--primary-color);
}

.how-to-use-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

.how-to-use-card p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.how-to-use-card p a:hover {
    text-decoration: underline;
}

/* تنسيقات متجاوبة لقسم طريقة الاستخدام */
@media (max-width: 1200px) {
    .how-to-use-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .how-to-use-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .how-to-use-card {
        padding: 25px 20px;
    }
    
    .how-to-use-icon {
        width: 65px;
        height: 65px;
    }
    
    .how-to-use-icon i {
        font-size: 1.6rem;
    }
    
    .how-to-use-card h3 {
        font-size: 1.1rem;
    }
    
    .how-to-use-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .how-to-use-section {
        padding: 40px 0;
    }
    
    .how-to-use-grid {
        gap: 15px;
    }
    
    .how-to-use-card {
        padding: 20px 15px;
    }
    
    .how-to-use-icon {
        width: 60px;
        height: 60px;
    }
    
    .how-to-use-icon i {
        font-size: 1.4rem;
    }
    
    .how-to-use-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .how-to-use-card p {
        font-size: 0.85rem;
    }
}

.how-to-use-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.how-to-use-section .section-header h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.how-to-use-section .section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.how-to-use-section .step-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    margin-bottom: 30px;
}

.how-to-use-section .step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(39, 179, 246, 0.15);
}

.how-to-use-section .step-number {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(39, 179, 246, 0.3);
}

.how-to-use-section .step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-top: 8px;
}

.how-to-use-section .step-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}


.consultants-section .join-button {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid var(--primary-color);
    margin-top: 8px;
}

.consultants-section .join-button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(39, 179, 246, 0.2);
    }
    
.consultants-section .join-button i {
    margin: 0 8px;
        font-size: 1rem;
    }


/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: flex-end;
    gap: 15px;
}

.search-input {
    flex: 0 1 300px;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input input:focus {
    outline: none;
    border-color: #27b3f6;
    box-shadow: 0 0 0 3px rgba(39, 179, 246, 0.1);
}

.search-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

/* Categories Button */
.categories-button {
    background: #27b3f6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.categories-button:hover {
    background: #1a9ad8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 179, 246, 0.2);
}

.categories-button i {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        flex: 1;
    }

    .categories-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===================== Reusable CTA Component ===================== */
.cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(39, 179, 246, 0.12), rgba(39, 179, 246, 0.02));
    border: 1px solid rgba(39, 179, 246, 0.12);
    border-radius: 18px;
    padding: 2.5rem 1.75rem;
    margin: 1.5rem auto 3rem;
    max-width: 900px;
    box-shadow: 0 18px 45px rgba(15, 112, 188, 0.08);
}

.cta-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-actions a i {
    font-size: 1rem;
}

.cta-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.18);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(33, 150, 243, 0.24);
    color: #fff;
}

.cta-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid rgba(39, 179, 246, 0.3);
    box-shadow: 0 6px 18px rgba(39, 179, 246, 0.12);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(39, 179, 246, 0.2);
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .cta-card {
        padding: 2rem 1.25rem;
        margin: 2.5rem 1rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 0.85rem;
    }

    .cta-actions a {
        width: 100%;
        justify-content: center;
    }
}

.cta-card.cta-hidden {
    display: none !important;
}

.cta-card.cta-visible {
    margin-top: 0.5rem;
}

/* Noticeably smaller CTA under no-availability sections */
.time-slots + section[data-component="consultant-cta"] .cta-card,
#noConsultantsMessage + section[data-component="consultant-cta"] .cta-card,
.consultants-error + section[data-component="consultant-cta"] .cta-card,
#consultantsEmpty + section[data-component="consultant-cta"] .cta-card {
    padding: 0.5rem 0.75rem;
    max-width: 520px;
    border-radius: 10px;
    margin: 0.4rem auto 1.25rem;
}

.time-slots + section[data-component="consultant-cta"] .cta-card h3,
#noConsultantsMessage + section[data-component="consultant-cta"] .cta-card h3,
.consultants-error + section[data-component="consultant-cta"] .cta-card h3,
#consultantsEmpty + section[data-component="consultant-cta"] .cta-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.15;
}

.time-slots + section[data-component="consultant-cta"] .cta-actions,
#noConsultantsMessage + section[data-component="consultant-cta"] .cta-actions,
.consultants-error + section[data-component="consultant-cta"] .cta-actions,
#consultantsEmpty + section[data-component="consultant-cta"] .cta-actions {
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.time-slots + section[data-component="consultant-cta"] .cta-actions a,
#noConsultantsMessage + section[data-component="consultant-cta"] .cta-actions a,
.consultants-error + section[data-component="consultant-cta"] .cta-actions a,
#consultantsEmpty + section[data-component="consultant-cta"] .cta-actions a {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.time-slots + section[data-component="consultant-cta"] .cta-actions a i,
#noConsultantsMessage + section[data-component="consultant-cta"] .cta-actions a i,
.consultants-error + section[data-component="consultant-cta"] .cta-actions a i,
#consultantsEmpty + section[data-component="consultant-cta"] .cta-actions a i {
    font-size: 0.85rem;
}

/* Shrink CTA container when placed right after no-availability sections */
.time-slots + section[data-component="consultant-cta"],
#noConsultantsMessage + section[data-component="consultant-cta"],
.consultants-error + section[data-component="consultant-cta"],
#consultantsEmpty + section[data-component="consultant-cta"] {
    max-width: 520px;
    margin: 1rem auto 1.5rem;
    padding: 0;
}

