/*
Theme Name: Doctor Medical Theme
Theme URI: https://example.com
Author: Medical Web Team
Author URI: https://example.com
Description: A complete custom RTL theme for doctor website with video gallery, image gallery, doctor profiles, and dedicated pages.
Version: 1.1.0
Text Domain: doctor-theme
*/

:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --secondary-color: #0284c7;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

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

/* Header */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
    padding: 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.resume-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.resume-box ul {
    list-style-type: square;
    padding-right: 20px;
    margin: 15px 0;
    color: var(--text-muted);
}

/* Doctors Section */
.doctors-section {
    padding: 70px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.doctor-info {
    padding: 20px;
}

.doctor-info h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.doctor-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    padding: 70px 0;
    background: #f1f5f9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 15px;
    font-weight: bold;
    font-size: 0.95rem;
}

.center-btn {
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    padding: 70px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: filter 0.3s;
}

.gallery-item img:hover {
    filter: brightness(0.9);
}

/* Page layouts */
.page-header {
    background: #e0f2fe;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
}

.content-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .hero-grid, .doctors-grid, .video-grid, .gallery-grid, .footer-content {
        grid-template-columns: 1fr;
    }
}
