/* ======================================================
   POST PAGE STYLES - PROFESSIONAL WITH TAJAWAL FONT
====================================================== */

/* Import Tajawal font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* Import CSS Variables from blog.css */
:root {
    --primary-blue: #0d2d5c;
    --secondary-blue: #1e4a8c;
    --accent-gold: #c9a357;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ======================================================
   HEADER STYLES (for post page)
====================================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a1f3d 100%);
    padding: 20px 0;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.emblem i {
    font-size: 28px;
    color: var(--accent-gold);
}

.header-titles h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.header-titles p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
}

.official-stamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    border-right: 2px solid var(--accent-gold);
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
}

/* ======================================================
   HERO SECTION
====================================================== */
.hero-section {
    background: linear-gradient(rgba(13, 45, 92, 0.9), rgba(13, 45, 92, 0.95));
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: 'Tajawal', sans-serif;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 20px auto;
}

/* ======================================================
   BREADCRUMB
====================================================== */
.breadcrumb {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
}

.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb span {
    color: var(--gray-text);
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.breadcrumb i {
    color: var(--accent-gold);
    margin: 0 8px;
}

/* ======================================================
   POST CONTENT STYLES - PROFESSIONAL LAYOUT
====================================================== */
.post-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 992px) {
    .post-container {
        grid-template-columns: 1fr;
    }
}

/* Main post content */
.post-content-main {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.post-content-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
}

.post-hero {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.post-hero:hover .post-hero-img {
    transform: scale(1.03);
}

.post-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--accent-gold), #d4a537);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Tajawal', sans-serif;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.post-date i {
    color: var(--accent-gold);
    font-size: 16px;
}

.post-category {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark-text);
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
}

.post-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--primary-blue);
    text-align: right;
    letter-spacing: -0.5px;
    font-family: 'Tajawal', sans-serif;
}

.post-content {
    font-size: 19px;
    line-height: 1.9;
    color: var(--dark-text);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.post-content p {
    font-family: 'Tajawal', 'Almarai', Arial, sans-serif !important;
    margin-bottom: 1.5rem;
    text-align:justify;
}

/* Target all text elements in the post content */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content li,
.post-content span,
.post-content div {
    font-family: 'Tajawal', 'Almarai', Arial, sans-serif !important;
}

.post-content h2 {
    font-size: 30px;
    font-weight: 900;
    margin: 45px 0 25px;
    color: var(--primary-blue);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.post-content h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 35px 0 20px;
    color: var(--secondary-blue);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.post-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--dark-text);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.post-content ul, .post-content ol {
    margin-bottom: 30px;
    padding-right: 25px;
    text-align: right;
}

.post-content li {
    margin-bottom: 12px;
    padding-right: 10px;
    position: relative;
    font-weight: 400;
}

.post-content ul li::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    right: -15px;
    top: 0;
}

.post-content blockquote {
    border-right: 4px solid var(--accent-gold);
    padding: 30px 40px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #f1f5f9);
    border-radius: 12px;
    font-style: italic;
    color: var(--gray-text);
    font-size: 22px;
    line-height: 1.7;
    text-align: right;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
}

.post-content blockquote::before {
    content: "❝";
    color: var(--accent-gold);
    font-size: 40px;
    position: absolute;
    right: 20px;
    top: 10px;
    opacity: 0.3;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-content table th {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}

.post-content table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.post-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Sidebar */
.post-sidebar {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.post-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
}

.sidebar-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--primary-blue);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.related-posts {
    list-style: none;
}

.related-post {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateX(-10px);
}

.related-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.related-post-title:hover {
    color: var(--secondary-blue);
}

.related-post-date {
    font-size: 14px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(13, 45, 92, 0.2);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.contact-info p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: right;
    font-weight: 400;
    font-family: 'Tajawal', sans-serif;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 25px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    font-family: 'Tajawal', sans-serif;
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Share buttons */
.share-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-text);
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: 'Tajawal', sans-serif;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0a66c2;
    color: white;
}

/* Navigation button */
.post-navigation {
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 5px 15px rgba(13, 45, 92, 0.2);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 45, 92, 0.3);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

/* ======================================================
   RESPONSIVE DESIGN
====================================================== */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .official-stamp {
        border: none;
        padding: 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .post-content-main {
        padding: 30px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 17px;
    }
    
    .post-hero-img {
        height: 300px;
    }
    
    .post-sidebar {
        padding: 25px;
    }
    
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .post-badge {
        top: 15px;
        right: 15px;
        padding: 8px 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 0 15px;
    }
    
    .post-content-main {
        padding: 25px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content h2 {
        font-size: 22px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .emblem {
        width: 50px;
        height: 50px;
    }
    
    .emblem i {
        font-size: 24px;
    }
    
    .header-titles h1 {
        font-size: 20px;
    }
    
    .header-titles p {
        font-size: 13px;
    }
    
    .nav-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .post-hero-img {
        height: 250px;
    }
}