/* Content Page Styles */

/* Hero Section - same structure as Egypt page, but 300px height */
.content-hero {
    position: relative;
    overflow: hidden;
    margin: calc(-1 * var(--header-height)) 0 0 0 !important;
    padding: 0 !important;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: clamp(180px, 15vw, 300px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: none;
}

.hero-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 1rem;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Content page specific: smaller, more compact hero text */
.content-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.25vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.4);
}

.content-hero .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6),
        0 2px 16px rgba(0, 0, 0, 0.4);
}

/* Quick Navigation - NOT sticky on content pages */
body[data-page="content"] .quick-nav {
    background-color: var(--bg-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.quick-nav-list {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.quick-nav-item:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* Active state for content pages - like hover, no dashed border */
body[data-page="content"] .quick-nav-item.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* Remove visited link color */
.quick-nav-item:visited {
    color: var(--text-secondary);
}

.quick-nav-item:visited:hover {
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

body[data-page="content"] .content-section .container {
    max-width: 1200px;
}


.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Content cards grid */
/* Content grid — SAME AS HOME */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.content-placeholders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


@media (max-width: 1024px) {
    .content-placeholders {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .content-placeholders {
        grid-template-columns: 1fr;
    }
}

.content-placeholder {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all var(--transition-base);
}

.content-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.placeholder-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-nav {
        top: 60px;
    }

    .quick-nav-list {
        gap: 0.75rem;
    }

    .quick-nav-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-placeholders {
        grid-template-columns: 1fr;
    }

    /* =========================================================
   ARTICLE CONTENT — VISUAL HIERARCHY (ENHANCED CONTRAST)
   ========================================================= */

    .article-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* === Main article point === */
    .article-content section,
    .article-content .article-point {
        background-color: rgba(255, 255, 255, 0.04);
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: var(--shadow-sm);
    }

    /* Point title */
    .article-content section>h3,
    .article-content .article-point>h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* === Subpoints === */
    .article-content h4 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        padding: 0.6rem 0.85rem;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.08);
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Text under subpoint */
    .article-content h4+p,
    .article-content h4+ul {
        margin-top: 0;
        padding: 0 0.5rem 0.5rem 0.5rem;
    }

    /* Lists */
    .article-content ul {
        padding-left: 1.2rem;
        margin: 0.5rem 0 0.75rem 0;
    }

    .article-content li {
        margin-bottom: 0.4rem;
        line-height: 1.55;
    }

    /* Images */
    .article-content img {
        display: block;
        width: 100%;
        height: auto;
        margin: 2rem 0;
        border-radius: 14px;
    }

    /* =========================================================
   RESPONSIVE
   ========================================================= */
    @media (max-width: 768px) {

        .article-content section,
        .article-content .article-point {
            padding: 1.25rem;
            border-radius: 12px;
        }

        .article-content section>h3,
        .article-content .article-point>h3 {
            font-size: 1.2rem;
        }

        .article-content h4 {
            font-size: 1rem;
        }
    }

    /* === ARTICLE POINTS — FORCE VISUAL HIERARCHY === */

    .article-content h3 {
        background: rgba(255, 255, 255, 0.06);
        padding: 1rem 1.25rem;
        border-radius: 14px 14px 0 0;
        margin-top: 2rem;
    }

    .article-content h3+p,
    .article-content h3+ul {
        background: rgba(255, 255, 255, 0.06);
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .article-content h4 {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.6rem 0.9rem;
        border-radius: 10px;
        margin-top: 1.25rem;
    }

}




.content-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: block;
}


.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.content-body {
    padding: 1.5rem;
}

.content-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.content-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================================
   HERO — FORCE CONTRAST (ALIGN WITH CONTENT PAGES)
   ========================================================= */

.content-hero .hero-title,
.content-hero .hero-subtitle {
    color: #ffffff;
    opacity: 1;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   HERO — APPEAR ANIMATION (GLOBAL FOR CONTENT PAGES)
   ========================================================= */

.content-hero .hero-content {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.7s ease-out forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}