/* === General Styles & Resets === */
:root {
    --primary-color: #007bff; 
    --secondary-color: #6c757d; 
    --accent-color: #ffc107; 
    --main-dark-bg: #1a1d24; 
    --card-dark-bg: #2c303a; 
    --text-on-dark: #e0e0e0; 
    --text-muted-on-dark: #a0a0a0; 
    --darker-color: #121212; 
    --text-light: #f8f9fa;
    --font-family: 'Poppins', sans-serif;
    --title-font-family: 'Lalezar', 'Poppins', sans-serif; 
    --container-width: 1140px;
    --section-padding: 100px 0; 
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7; 
    background-color: var(--main-dark-bg); 
    color: var(--text-on-dark); 
    direction: rtl;
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-light); 
    font-family: var(--title-font-family); 
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } 
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; color: var(--text-on-dark); font-family: var(--font-family); } 
a { text-decoration: none; transition: color 0.3s ease; color: var(--accent-color); }
a:hover { color: lighten(var(--accent-color), 10%); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
ul { list-style: none; }
.section-padding { padding: var(--section-padding); }

.section-title {
    text-align: center;
    margin-bottom: 60px; 
    font-size: 2.8rem; 
    position: relative;
    color: var(--text-light); 
    font-family: var(--title-font-family); 
}
.section-title::after {
    content: '';
    display: block;
    width: 80px; 
    height: 4px;
    background: var(--accent-color); 
    margin: 20px auto 0; 
    border-radius: 2px;
}

.bg-darker { background-color: var(--darker-color); } 
.text-light { color: var(--text-light) !important; }

.btn {
    display: inline-block;
    padding: 14px 30px; 
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    transition: all 0.3s ease; 
    border: 2px solid transparent; 
    cursor: pointer;
    font-size: 1.05rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    font-family: var(--font-family); 
}
.btn:hover {
    background-color: darken(var(--primary-color), 10%);
    color: #fff;
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}
.btn i { margin-left: 8px; margin-right: -2px; }

/* === Navbar === */
.navbar {
    background-color: rgba(20, 20, 20, 0.85); 
    padding: 0.75rem 0; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); 
}
.navbar.scrolled { background-color: var(--darker-color); padding: 0.6rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo-container { flex-grow: 0; }
.nav-logo-img { max-height: 40px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; flex-grow: 1; justify-content: center; }
.nav-menu li { margin: 0 15px; }
.nav-menu a {
    color: #e0e0e0; padding: 8px 12px; font-weight: 500; font-family: var(--font-family); 
    transition: color 0.3s ease, background-color 0.3s ease; border-radius: var(--border-radius);
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; background-color: var(--accent-color); }
.hamburger { display: none; cursor: pointer; margin-left: auto; }
.hamburger span { display: block; width: 28px; height: 3px; background-color: #fff; margin: 6px 0; transition: all 0.3s ease-in-out; }

/* === Hero Section (فيديو فقط) === */
.hero-section { 
    height: 100vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

.hero-video-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: 0; 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.15); 
    z-index: 1; 
    pointer-events: none;
}

/* === Brand Reveal Section (قسم الشعار) === */
.brand-reveal-section {
    background-color: var(--main-dark-bg); min-height: 80vh; display: flex; 
    align-items: center; justify-content: center; text-align: center;
    padding: 80px 0; border-bottom: 2px solid var(--accent-color); 
}
.brand-reveal-section .container { display: flex; flex-direction: column; align-items: center; }
.brand-logo-showcase { margin-bottom: 20px; padding: 20px; }
.main-brand-logo-enlarged { max-width: 390px; width: 85%; height: auto; margin: 0 auto; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); display: block; }
.brand-description { max-width: 700px; margin-top: 20px; }
.brand-tagline-royal {
    font-size: 1.8rem; font-weight: 600; color: var(--accent-color); margin-bottom: 10px; 
    letter-spacing: 1px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
    line-height: 1.5; font-family: var(--title-font-family); 
}

/* === About Section (الشكل المدمج) === */
.about-section { background-color: var(--main-dark-bg); }
.about-content { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.about-image { flex: 1 1 350px; }
.about-image img { border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.about-text { flex: 2 1 450px; }
.about-text h3 { color: var(--accent-color); font-family: var(--title-font-family); }
#discover-journey-btn { margin-top: 20px; background-color: var(--accent-color); color: var(--main-dark-bg); }
#about-full-view { opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.6s ease-in-out, max-height 1s ease-in-out; }
#about-full-view.visible { opacity: 1; max-height: 5000px; }

/* === الخط الزمني العمودي (النسخة النهائية المستقرة) === */
.journey-timeline { position: relative; max-width: 800px; margin: 80px auto; padding-right: 60px; }
.journey-timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--accent-color); opacity: 0.3; top: 15px; bottom: 15px; right: 25px; z-index: 0; }
.timeline-item { position: relative; padding-bottom: 50px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .timeline-icon { position: absolute; width: 50px; height: 50px; right: 0; top: 0; transform: translateX(50%); background-color: var(--card-dark-bg); border: 4px solid var(--accent-color); border-radius: 50%; z-index: 1; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--accent-color); }
.timeline-content { padding: 20px 30px; background-color: var(--card-dark-bg); position: relative; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.timeline-content::before { content: " "; height: 0; position: absolute; top: 15px; width: 0; z-index: 2; border-style: solid; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--card-dark-bg); right: 100%; }
.timeline-content h3 { color: var(--accent-color); margin-top: 0; }

/* === قسم الفيديو داخل "من أنا" === */
.about-video-section { margin: 80px auto; text-align: center; } 
.about-video-section h3 { margin-bottom: 20px; }
.about-video-wrapper { max-width: 800px; margin: 20px auto 0 auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); position: relative; padding-top: 56.25%; }
.about-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.about-cta { margin-top: 50px; text-align: center; }
.about-cta .btn { margin: 10px; min-width: 180px; }
.btn-secondary-custom { background-color: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
.btn-secondary-custom:hover { background-color: var(--accent-color); color: var(--main-dark-bg); }

/* === Projects Section (Logos Only Style) === */
.projects-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 30px; margin-top: 40px; align-items: center; justify-items: center; }
.project-logo-item { display: flex; justify-content: center; align-items: center; }
.project-logo-item img { max-width: 150px; max-height: 120px; height: auto; width: auto; }

/* === Articles Section (في الصفحة الرئيسية) === */
.articles-categories { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-around; }
.category { flex: 1 1 420px; background: var(--card-dark-bg); padding: 30px; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.08); }
.category h3 { border-bottom: 2px solid var(--accent-color); padding-bottom: 15px; margin-bottom: 20px; font-size: 1.6rem; }
.category h3 i { margin-left: 10px; color: var(--accent-color); }
.category ul li { margin-bottom: 12px; }
.category ul li a { color: var(--text-on-dark); font-weight: 500; display: block; padding: 5px 0; font-family: var(--font-family); }
.category ul li a:hover { color: var(--accent-color); padding-right: 5px; }

/* === Partnerships Section (Announcement Style) === */
.partnerships-section { min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.partnerships-announcement { text-align: center; max-width: 700px; margin: 0 auto; padding: 40px 20px; }
.announcement-text { font-size: 1.3rem; line-height: 1.8; margin-bottom: 30px; font-style: italic; opacity: 0.9; }
.coming-soon-text { font-size: 2.5rem; color: var(--accent-color); font-weight: 700; letter-spacing: 1px; margin-bottom: 25px; text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.decorative-line { width: 100px; height: 3px; background-color: var(--accent-color); margin: 0 auto; border-radius: 2px; opacity: 0.8; }

/* === Podcast Section === */
.spotify-embed-container {
    margin: 0 auto 25px; /* مسافة بين مشغل سبوتيفاي ووصف الحلقة */
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.spotify-embed-container iframe { display: block; border-radius: 12px; }
.additional-episodes { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.additional-episodes h3 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 20px; }
.podcast-platform-links .btn { margin: 10px; font-size: 0.95rem; padding: 10px 20px; }
.btn-spotify { background-color: #1DB954; border-color: #1DB954; }
.btn-spotify:hover { background-color: #1aa34a; }
.btn-apple { background-color: #A246B4; border-color: #A246B4; }
.btn-apple:hover { background-color: #8f3b9e; }

/* === Page Header (للصفحات الداخلية) === */
.page-header { background-color: var(--card-dark-bg); padding-top: 120px; padding-bottom: 60px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.page-header h1 { font-size: 2.8rem; margin-bottom: 15px; }
.page-header .section-subtitle { font-size: 1.1rem; color: var(--text-on-dark); max-width: 700px; margin: 0 auto; }

/* === Articles Listing Section (صفحة قائمة المقالات) === */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.article-card { background-color: var(--card-dark-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.35); }
.article-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.article-card-image { width: 100%; height: 220px; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; border-radius: var(--border-radius) var(--border-radius) 0 0; }
.article-card:hover .article-card-image img { transform: scale(1.1); }
.article-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.article-card-title { font-size: 1.4rem; color: var(--text-light); margin-bottom: 15px; line-height: 1.4; }
.article-card-excerpt { font-size: 0.95rem; color: var(--text-on-dark); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.article-card-readmore { display: inline-block; color: var(--accent-color); font-weight: 600; text-decoration: none; align-self: flex-start; transition: color 0.3s ease; }
.article-card-readmore i { margin-right: 5px; transition: transform 0.3s ease; }
.article-card:hover .article-card-readmore i { transform: translateX(-5px); }

/* === Single Article Page === */
.single-article-page { padding-top: 100px; }
.single-article-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.article-main-title { font-size: 2.6rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.3; }
.article-meta { font-size: 0.9rem; color: var(--text-muted-on-dark); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; font-family: var(--font-family); }
.article-meta span { display: inline-flex; align-items: center; }
.article-meta i { margin-left: 8px; color: var(--accent-color); }
.article-meta a { color: var(--accent-color); text-decoration: underline; }
.article-meta a:hover { color: lighten(var(--accent-color), 10%); }
.article-featured-image { margin-bottom: 50px; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.article-featured-image img { width: 100%; height: auto; max-height: 500px; object-fit: cover; display: block; }
.article-content-container { max-width: 800px; margin-left: auto; margin-right: auto; }
.article-body { font-size: 1.1rem; line-height: 1.9; color: var(--text-on-dark); font-family: var(--font-family); }
.article-body p { margin-bottom: 1.8em; }
.article-body h2 { font-size: 1.8rem; color: var(--text-light); margin-top: 2.5em; margin-bottom: 1em; padding-bottom: 0.3em; border-bottom: 2px solid var(--accent-color); }
.article-body h3 { font-size: 1.5rem; color: var(--text-light); margin-top: 2em; margin-bottom: 0.8em; }
.article-body ul, .article-body ol { margin-bottom: 1.5em; padding-right: 20px; }
.article-body ul li, .article-body ol li { margin-bottom: 0.8em; padding-right: 15px; position: relative; }
.article-body ul li::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent-color); position: absolute; right: -5px; top: 5px; font-size: 0.6em; }
.article-body ol { list-style: decimal; list-style-position: inside; }
.article-body blockquote { margin: 2em 0; padding: 20px 30px 20px 50px; border-right: 5px solid var(--accent-color); border-left: none; background-color: var(--card-dark-bg); font-style: italic; font-size: 1.1rem; color: var(--text-on-dark); border-radius: var(--border-radius); }
.article-body blockquote p { margin-bottom: 0.5em; }
.article-body blockquote footer { font-size: 0.9rem; color: var(--text-muted-on-dark); text-align: left; }
.article-body blockquote footer::before{ content: "— "; }
.article-body blockquote.dialogue-quote { background-color: rgba(44, 48, 58, 0.85); border-right-color: var(--primary-color); padding: 15px 25px 15px 40px; font-style: normal; }
.article-body blockquote.dialogue-quote p { margin-bottom: 0.3em; color: var(--text-on-dark); }
.article-body a { color: var(--accent-color); text-decoration: underline; font-weight: 600; }
.article-body a:hover { text-decoration: none; }
.back-to-articles-link { margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }

/* === Footer Section === */
.footer-section { padding: 50px 0; text-align: center; background-color: var(--darker-color); }
.footer-content p { margin-bottom: 0.8rem; color: #ccc; }
.footer-content .social-links a { color: #a0a0a0; margin: 0 15px; font-size: 1.8rem; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-content .social-links a:hover { color: var(--accent-color); transform: translateY(-5px) scale(1.1); }
.footer-tagline { font-size: 1.3rem; font-style: italic; margin: 20px 0; color: #aaa; }

/* === Responsive Design === */
@media (max-width: 992px) { 
    .nav-menu { justify-content: flex-end; } 
    .nav-logo-container { margin-left: auto; margin-right: 15px; } 
    .main-brand-logo-enlarged { max-width: 320px; } 
    .article-main-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 92% !important;
        position: relative;
    }
    .nav-logo-container {
        margin: 0 !important;
        order: 1;
    }
    .hamburger {
        display: block !important;
        margin: 0 !important;
        order: 2;
        cursor: pointer;
        z-index: 1001;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--darker-color);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-menu.active {
        display: flex !important;
    }
    .nav-menu li {
        margin: 12px 0;
        text-align: center;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .section-title { font-size: 2.2rem; }
    .main-brand-logo-enlarged { max-width: 260px; } 
    .article-main-title { font-size: 2rem; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.6rem; }
    .about-content { flex-direction: column; }
    .articles-categories { flex-direction: column; }
    .page-header h1 { font-size: 2.2rem; } 
    .articles-grid { grid-template-columns: 1fr; } 
    .journey-timeline { padding-right: 50px; }
    .journey-timeline::after { right: 20px; }
    .timeline-item .timeline-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .timeline-content::before { top: 10px; }
}
@media (max-width: 576px) { 
    .section-title { font-size: 2rem; }
    .main-brand-logo-enlarged { max-width: 220px; } 
    .brand-tagline-royal { font-size: 1.3rem; }
    .projects-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .project-logo-item img { max-width: 100px; }
    .article-main-title { font-size: 1.7rem; }
}
/* === Podcast Section (Updated & Cleaned) === */
.podcast-episode {
    margin-bottom: 60px; /* مسافة بين كل حلقة والتي تليها */
}

.podcast-episode:last-child {
    margin-bottom: 0; /* إزالة المسافة بعد الحلقة الأخيرة */
}

.episode-info h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: var(--text-light);
}

.episode-info p {
    font-size: 1rem;
    color: var(--text-on-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}