/**
 * Pages Styles (About, Contact, Doctors, Departments, Gallery)
 *
 * @package foukagroup.com
 */

/* ==========================================================================
   Container
   ========================================================================== */
.about-page .container,
.contact-page .container,
.doctors-page .container,
.departments-page .container,
.gallery-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Page Hero
   ========================================================================== */
.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--color-primary, #7c3aed) 0%, var(--color-primary-dark, #6d28d9) 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.page-hero__content {
    text-align: right;
}

[dir="ltr"] .page-hero__content {
    text-align: left;
}

.page-hero__subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.page-hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0;
    max-width: 500px;
}

.page-hero__image {
    position: relative;
}

.page-hero__image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    z-index: 0;
}

[dir="ltr"] .page-hero__image::before {
    right: auto;
    left: -20px;
}

.page-hero__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hero without image */
.page-hero--centered .container {
    display: block;
    text-align: center;
}

.page-hero--centered .page-hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.page-hero--centered .page-hero__description {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991px) {
    .page-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-hero__content {
        text-align: center;
        order: 1;
    }
    
    .page-hero__image {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .page-hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 5rem 0 3rem;
    }
    
    .page-hero__title {
        font-size: 2rem;
    }
    
    .page-hero__image::before {
        display: none;
    }
}

/* ==========================================================================
   Section Title
   ========================================================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin: 0 0 2rem;
}

.section-title.text-center {
    text-align: center;
}

/* ==========================================================================
   CTA Box
   ========================================================================== */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary, #7c3aed) 0%, var(--color-primary-dark, #6d28d9) 100%);
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
}

.cta-box__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.cta-box__desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    background: #fff!important;
    color: var(--color-primary, #7c3aed);
}

.cta-box .btn-primary:hover {
    background: #f0f7ff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary, #7c3aed);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark, #6d28d9);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary, #7c3aed);
    color: var(--color-primary, #7c3aed);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

[dir="rtl"] .btn svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   About Page - Story Section
   ========================================================================== */
.about-story {
    padding: 5rem 0;
}

.about-story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-story__image img {
    width: 100%;
    border-radius: 1rem;
}

.about-story__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light, #64748b);
}

@media (max-width: 991px) {
    .about-story .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   About Page - Mission & Vision
   ========================================================================== */
.about-mission-vision {
    padding: 5rem 0;
    background: #f8fafc;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mv-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.mv-card__icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary-light, #f3e8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #7c3aed);
    margin-bottom: 1.5rem;
}

.mv-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.mv-card__content {
    color: var(--color-text-light, #64748b);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   About Page - Values
   ========================================================================== */
.about-values {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.value-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.value-card__desc {
    color: var(--color-text-light, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   About Page - Stats
   ========================================================================== */
.about-stats {
    padding: 5rem 0;
    background: var(--color-primary, #7c3aed);
    color: #fff;
}

.about-stats .section-title {
    color: #fff;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-item__number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item__label {
    font-size: 1rem;
    opacity: 0.9;
}

.about-cta,
.doctors-cta,
.departments-cta {
    padding: 5rem 0;
    background: #f8fafc;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info-section {
    padding: 4rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card__icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary-light, #f3e8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #7c3aed);
    margin: 0 auto 1rem;
}

.contact-card__icon--whatsapp {
    background: #dcf8c6;
    color: #25d366;
}

.contact-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.contact-card__content {
    color: var(--color-text-light, #64748b);
    margin: 0;
}

.contact-card__content a {
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
}

/* Working Hours */
.contact-hours {
    padding: 4rem 0;
    background: #f8fafc;
}

.hours-grid {
    max-width: 500px;
    margin: 0 auto;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.hours-item__day {
    font-weight: 600;
}

.hours-item__time {
    color: var(--color-primary, #7c3aed);
}

/* Map */
.contact-map {
    padding: 4rem 0;
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-link {
    margin-top: 1rem;
}

/* Branches */
.contact-branches {
    padding: 4rem 0;
    background: #f8fafc;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.branch-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--color-primary, #7c3aed);
}

.branch-card__address,
.branch-card__phone {
    color: var(--color-text-light, #64748b);
    margin: 0 0 0.5rem;
}

.branch-card__phone a {
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
}

.branch-card__map {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary, #7c3aed);
    font-weight: 500;
    text-decoration: none;
    margin-top: 0.5rem;
}

/* Social */
.contact-social {
    padding: 4rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link--facebook:hover { background: #1877f2; color: #fff; }
.social-link--twitter:hover { background: #1da1f2; color: #fff; }
.social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-link--youtube:hover { background: #ff0000; color: #fff; }
.social-link--linkedin:hover { background: #0077b5; color: #fff; }
.social-link--tiktok:hover { background: #000; color: #fff; }

/* ==========================================================================
   Doctors Page
   ========================================================================== */
.doctors-grid-section {
    padding: 5rem 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-card__content {
    padding: 1.5rem;
}

.doctor-card__name {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.doctor-card__specialty {
    color: var(--color-primary, #7c3aed);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.doctor-card__experience {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light, #64748b);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.doctor-card__desc {
    color: var(--color-text-light, #64748b);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.doctor-card__education {
    font-size: 0.875rem;
    color: var(--color-text-light, #64748b);
    margin-bottom: 1rem;
}

.doctor-card__social {
    display: flex;
    gap: 0.75rem;
}

.doctor-card__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.2s ease;
}

.doctor-card__social a:hover {
    background: var(--color-primary, #7c3aed);
    color: #fff;
}

/* ==========================================================================
   Departments Page
   ========================================================================== */
.departments-grid-section {
    padding: 5rem 0;
}

.departments-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.department-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.department-card--reverse {
    direction: ltr;
}

[dir="rtl"] .department-card--reverse {
    direction: rtl;
}

.department-card--reverse .department-card__image {
    order: 2;
}

.department-card--reverse .department-card__content {
    order: 1;
}

.department-card__image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.department-card__content {
    padding: 2.5rem;
}

.department-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.department-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.department-card__name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.department-card__desc {
    color: var(--color-text-light, #64748b);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.department-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.department-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text, #1a1a2e);
}

.department-card__features svg {
    flex-shrink: 0;
    color: var(--color-success, #10b981);
    margin-top: 2px;
}

@media (max-width: 991px) {
    .department-card {
        grid-template-columns: 1fr;
    }
    
    .department-card--reverse .department-card__image,
    .department-card--reverse .department-card__content {
        order: unset;
    }
    
    .department-card__image img {
        min-height: 280px;
    }
}

/* ==========================================================================
   Gallery Page
   ========================================================================== */
.gallery-photos-section,
.gallery-videos-section {
    padding: 4rem 0;
}

.gallery-videos-section {
    background: #f8fafc;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    padding: 0.625rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
    background: var(--color-primary, #7c3aed);
    color: #fff;
    border-color: var(--color-primary, #7c3aed);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
}

.gallery-item__link {
    display: block;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-item__link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item__link img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__title {
    font-size: 0.9375rem;
    margin: 0.75rem 0 0;
    text-align: center;
}

/* Videos */
.videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.video-item__wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
}

.video-item__wrapper iframe,
.video-item__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    transition: background 0.3s ease;
}

.video-item__thumb:hover .video-item__play {
    background: rgba(0,0,0,0.6);
}

.video-item__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
