/**
 * Page Template Styles
 *
 * @package elegant
 */

/* ========================================
   Page Hero Section
   ======================================== */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

/* Hero Background */
.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(47, 63, 60, 0.61) 0%, rgba(47, 63, 60, 0.94) 100%);
}

/* Simple Hero (no image) */
.page-hero-simple {
    background: linear-gradient(135deg, #2f3f3c 0%, #2f3f3cd4 100%);
    min-height: 300px;
}

/* Hero Content */
.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Title */
.page-hero-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #c9a227;
}

.page-breadcrumb .separator {
    color: #c9a227;
    font-size: 0.75rem;
}

.page-breadcrumb .current {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.95rem;
    color: #c9a227;
}

/* ========================================
   Page Main Content
   ======================================== */
.page-main {
    padding: 80px 20px;
    background: #ffffff;
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    background: #ffffff;
}

.page-content .entry-content {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.05rem;
    line-height: 2;
    color: #333333;
}

/* Typography */
.page-content .entry-content h1,
.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4,
.page-content .entry-content h5,
.page-content .entry-content h6 {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-weight: 700;
    color: #1a3a5c;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.page-content .entry-content h2 {
    font-size: 1.8rem;
}

.page-content .entry-content h3 {
    font-size: 1.5rem;
}

.page-content .entry-content h4 {
    font-size: 1.25rem;
}

.page-content .entry-content p {
    margin-bottom: 1.5em;
}

.page-content .entry-content a {
    color: #c9a227;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content .entry-content a:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

/* Lists */
.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-bottom: 1.5em;
    padding-right: 1.5em;
}

.page-content .entry-content li {
    margin-bottom: 0.5em;
}

/* Images */
.page-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.page-content .entry-content .wp-caption {
    max-width: 100%;
}

.page-content .entry-content .wp-caption-text {
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
    margin-top: 0.5em;
}

/* Blockquote */
.page-content .entry-content blockquote {
    margin: 2em 0;
    padding: 25px 30px;
    background: #f8f9fa;
    border-right: 4px solid #c9a227;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #5a6a7a;
}

.page-content .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.page-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content .entry-content th,
.page-content .entry-content td {
    padding: 12px 15px;
    border: 1px solid #e8ecf0;
    text-align: right;
}

.page-content .entry-content th {
    background: #1a3a5c;
    color: #ffffff;
    font-weight: 600;
}

.page-content .entry-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* Page Links */
.page-links {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e8ecf0;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .page-hero,
[dir="rtl"] .page-main {
    direction: rtl;
}

[dir="rtl"] .page-content .entry-content ul,
[dir="rtl"] .page-content .entry-content ol {
    padding-right: 1.5em;
    padding-left: 0;
}

[dir="rtl"] .page-content .entry-content blockquote {
    border-right: 4px solid #c9a227;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    .page-hero {
        min-height: 350px;
    }
    
    .page-hero-simple {
        min-height: 250px;
    }
    
    .page-hero-content {
        padding: 100px 20px 50px;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .page-breadcrumb {
        gap: 10px;
    }
    
    .page-breadcrumb a,
    .page-breadcrumb .current {
        font-size: 0.9rem;
    }
    
    .page-main {
        padding: 60px 20px;
    }
    
    .page-content .entry-content {
        font-size: 1rem;
    }
    
    .page-content .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content .entry-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 300px;
    }
    
    .page-hero-simple {
        min-height: 220px;
    }
    
    .page-hero-content {
        padding: 90px 15px 40px;
    }
    
    .page-hero-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .page-main {
        padding: 50px 15px;
    }
    
    .page-content .entry-content blockquote {
        padding: 20px;
    }
}

