/*
Theme Name: Jazan Psychiatric Center
Theme URI: https://jazanspc.com
Author: Jazan SPC Team
Author URI: https://jazanspc.com
Description: قالب مخصص للمركز التخصصي للطب النفسي الأول بجازان - تصميم عصري بالكامل باستخدام Tailwind CSS
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jazan-theme
Tags: rtl, arabic, medical, psychiatry, tailwindcss
*/

:root {
    --primary: #00a19a;
    --primary-dark: #00847e;
    --secondary: #004a99;
    --accent: #e0f2f1;
    --bg-light: #f8fafc;
}

* {
    letter-spacing: 0 !important;
}

body {
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.hero-gradient {
    background: radial-gradient(circle at top right, #f0fdfa 0%, #ffffff 50%, #f1f5f9 100%);
}

.card-modern {
    background: white;
    border: 1px solid rgba(0, 161, 154, 0.05);
    border-radius: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(0, 161, 154, 0.12);
    border-color: var(--primary);
}

.card-modern:hover .service-icon-box {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Testimonials Slider */
.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.slide-item {
    flex: 0 0 100%;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .slide-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .slide-item {
        flex: 0 0 33.333%;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Section Headings */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.logo-img {
    width: 100%;
    transition: transform 0.3s ease;
}


/* Testimonial Quote Bubble Style */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 3rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 161, 154, 0.05);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px -15px rgba(0, 161, 154, 0.12);
}

.quote-icon-bg {
    position: absolute;
    top: 2rem;
    left: 2rem;
    opacity: 0.05;
    color: var(--primary);
    pointer-events: none;
}

/* ============================================
   WordPress Content / Prose Styling
   يضمن عرض المقالات بنفس التنسيق من محرر ووردبريس
   ============================================ */

/* --- Base Typography --- */
.prose {
    direction: rtl;
    text-align: right;
    color: #334155;
    font-size: 1.05rem;
    line-height: 2.1;
}

.prose>*+* {
    margin-top: 1.5em;
}

/* --- Headings --- */
.prose h1 {
    font-size: 2.2em;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5em;
}

.prose h2 {
    font-size: 1.7em;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.45;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    position: relative;
    padding-right: 1em;
}

.prose h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.15em;
    width: 5px;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.prose h3 {
    font-size: 1.4em;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.5;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.prose h4 {
    font-size: 1.2em;
    font-weight: 800;
    color: #334155;
    line-height: 1.5;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

.prose h5,
.prose h6 {
    font-size: 1.05em;
    font-weight: 700;
    color: #475569;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

/* --- Paragraphs --- */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    text-align: justify;
    text-align-last: right;
}

/* --- Bold / Strong / Italic --- */
.prose strong,
.prose b {
    font-weight: 800;
    color: #1e293b;
}

.prose em,
.prose i {
    font-style: italic;
    color: #475569;
}

/* --- Links --- */
.prose a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(0, 161, 154, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.prose a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary);
}

/* --- Lists --- */
.prose ul {
    list-style: none;
    padding-right: 0;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.prose ul li {
    position: relative;
    padding-right: 1.8em;
    margin-bottom: 0.7em;
    line-height: 1.9;
}

.prose ul li::before {
    content: '';
    position: absolute;
    right: 0.3em;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.prose ol {
    list-style: none;
    counter-reset: custom-counter;
    padding-right: 0;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.prose ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-right: 2.5em;
    margin-bottom: 0.7em;
    line-height: 1.9;
}

.prose ol li::before {
    content: counter(custom-counter);
    position: absolute;
    right: 0;
    top: 0.15em;
    width: 1.7em;
    height: 1.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.8em;
    font-weight: 800;
    border-radius: 50%;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose ul ul li::before {
    width: 6px;
    height: 6px;
    background: transparent;
    border: 2px solid var(--primary);
}

/* --- Blockquote --- */
.prose blockquote {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border-right: 5px solid var(--primary);
    border-left: none;
    border-radius: 0.75rem;
    padding: 1.5em 2em;
    margin: 2em 0;
    font-size: 1.05em;
    color: #475569;
    font-weight: 600;
    position: relative;
}

.prose blockquote::before {
    content: '\201D';
    position: absolute;
    top: -0.2em;
    right: 0.5em;
    font-size: 4em;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.prose blockquote p {
    margin: 0;
}

.prose blockquote cite {
    display: block;
    margin-top: 0.8em;
    font-size: 0.85em;
    color: var(--primary);
    font-weight: 800;
    font-style: normal;
}

/* --- Images --- */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    margin: 1.5em auto;
    display: block;
}

.prose figure {
    margin: 2em 0;
    text-align: center;
}

.prose figcaption {
    font-size: 0.85em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.8em;
    text-align: center;
}

/* --- Tables --- */
.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    margin: 2em 0;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.prose thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.prose th {
    color: white;
    font-weight: 800;
    padding: 1em 1.2em;
    text-align: right;
    font-size: 0.9em;
}

.prose td {
    padding: 0.9em 1.2em;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95em;
}

.prose tbody tr:nth-child(even) {
    background: #f8fafc;
}

.prose tbody tr:hover {
    background: #f0fdfa;
}

/* --- Horizontal Rule --- */
.prose hr {
    border: none;
    height: 3px;
    background: linear-gradient(to left, transparent, var(--primary), transparent);
    margin: 2.5em 0;
    border-radius: 10px;
}

/* --- Code --- */
.prose code {
    background: #f1f5f9;
    color: var(--primary-dark);
    padding: 0.2em 0.5em;
    border-radius: 0.4em;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5em;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2em 0;
    direction: ltr;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.7;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 1em;
}

/* --- WordPress Alignment Classes --- */
.prose .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.prose .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.prose .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.prose .alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
    width: calc(100% + 4rem);
}

.prose .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* --- WordPress Caption --- */
.prose .wp-caption {
    max-width: 100%;
    margin: 2em auto;
    text-align: center;
}

.prose .wp-caption img {
    margin-bottom: 0.5em;
}

.prose .wp-caption-text {
    font-size: 0.85em;
    color: #94a3b8;
    font-weight: 600;
}

/* --- Gutenberg Blocks --- */

/* Columns */
.prose .wp-block-columns {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    margin: 2em 0;
}

.prose .wp-block-column {
    flex: 1 1 0;
    min-width: 200px;
}

/* Group */
.prose .wp-block-group {
    margin: 2em 0;
}

/* Separator */
.prose .wp-block-separator {
    border: none;
    height: 3px;
    background: linear-gradient(to left, transparent, var(--primary), transparent);
    margin: 2.5em 0;
}

.prose .wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}

.prose .wp-block-separator.is-style-dots::before {
    content: '···';
    font-size: 2em;
    color: var(--primary);
    letter-spacing: 1em !important;
}

/* Cover */
.prose .wp-block-cover {
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 2em 0;
}

/* Quote */
.prose .wp-block-quote {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border-right: 5px solid var(--primary);
    border-left: none;
    border-radius: 0.75rem;
    padding: 1.5em 2em;
    margin: 2em 0;
}

.prose .wp-block-quote.is-style-large {
    font-size: 1.3em;
    padding: 2em 2.5em;
}

.prose .wp-block-quote cite,
.prose .wp-block-quote .wp-block-quote__citation {
    display: block;
    margin-top: 1em;
    font-size: 0.8em;
    color: var(--primary);
    font-weight: 800;
    font-style: normal;
}

/* Pullquote */
.prose .wp-block-pullquote {
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
    padding: 2em 0;
    margin: 2.5em 0;
    text-align: center;
}

.prose .wp-block-pullquote blockquote {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.3em;
    color: #1e293b;
    font-weight: 800;
}

.prose .wp-block-pullquote blockquote::before {
    display: none;
}

/* Button */
.prose .wp-block-button .wp-block-button__link {
    background: var(--primary);
    color: white;
    padding: 0.8em 2em;
    border-radius: 1rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.prose .wp-block-button .wp-block-button__link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 161, 154, 0.3);
}

/* Gallery */
.prose .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.prose .wp-block-gallery .wp-block-image {
    margin: 0;
}

.prose .wp-block-gallery img {
    border-radius: 1rem;
    margin: 0;
}

/* Embed / Video */
.prose .wp-block-embed {
    margin: 2em 0;
}

.prose .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.prose .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Clear floats --- */
.prose::after {
    content: '';
    display: table;
    clear: both;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .prose {
        font-size: 0.95rem;
        line-height: 2;
    }

    .prose h1 {
        font-size: 1.7em;
    }

    .prose h2 {
        font-size: 1.4em;
    }

    .prose h3 {
        font-size: 1.2em;
    }

    .prose .alignright,
    .prose .alignleft {
        float: none;
        margin: 1em auto;
        display: block;
    }

    .prose .wp-block-columns {
        flex-direction: column;
    }

    .prose .alignwide {
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: calc(100% + 2rem);
        width: calc(100% + 2rem);
    }
}

/* ============================================
   Offers Section Styles
   ============================================ */

/* Offer card entrance animation */
@keyframes offerFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    animation: offerFadeUp 0.6s ease-out both;
}

/* Offer modal content animation */
.offer-modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Price pulse animation */
@keyframes pricePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.offer-card:hover .text-primary.font-black.text-xl {
    animation: pricePulse 1s ease-in-out infinite;
}

/* Scrollbar for modal */
.offer-modal-content::-webkit-scrollbar {
    width: 4px;
}

.offer-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.offer-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Fix for buttons text color overriding */
a.bg-primary, button.bg-primary, 
a.bg-secondary, button.bg-secondary {
    color: #ffffff !important;
}

/* Slider Nav Buttons */
.slider-nav-btn {
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
}
.slider-nav-btn svg {
    color: var(--primary) !important;
    transition: all 0.3s ease !important;
}
.slider-nav-btn:hover {
    background-color: var(--primary) !important;
}
.slider-nav-btn:hover svg {
    color: #ffffff !important;
}