/*
Theme Name: TAYF – طيف Landing
Theme URI: https://tayf.works
Author: TAYF
Description: Full Site Editing (block) theme for the TAYF – طيف career path landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tayf
*/

@import url("templatemo-3d-coverflow.css");

/* Ensure RTL layout on the front-end regardless of site language settings */
html {
    direction: rtl;
}

/* =========================================================
   TAYF – Community dedicated page (page-community.html)
   Premium, calm, blueprint community UI
   ========================================================= */

/* Page wrapper spacing and rhythm */
.community-page {
    background: var(--tayf-bg-page);
}

.community-page .section {
    padding-top: 88px;
    padding-bottom: 88px;
}

/* Subtle copper divider between sections */
.community-page .section + .section {
    border-top: 1px solid rgba(199, 138, 85, 0.25);
}

/* Inner panel container for non-hero sections */
.community-page .section:not(.community-hero) > .section-inner {
    max-width: 1120px;
    padding: 32px 32px 30px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 70%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

/* Global typography refinements for community page */
.community-page .section-title {
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    color: #f9fafb;
    text-shadow:
        0 0 26px rgba(12, 22, 34, 0.9),
        0 0 32px rgba(100, 255, 178, 0.18);
}

.community-page .section-subtitle {
    font-size: 16px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    max-width: 720px;
}

/* HERO – مجتمع طيف */
.community-hero {
    background: radial-gradient(circle at top, #0c1622 0, #020617 55%, #020617 100%);
}

.community-hero .section-inner {
    max-width: 1120px;
    padding: 40px 40px 38px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, #111827 0, #020617 55%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.98),
        0 0 60px rgba(15, 23, 42, 0.95);
    position: relative;
    overflow: hidden;
}

/* Spotlight behind H1 */
.community-hero .section-inner::before {
    content: "";
    position: absolute;
    inset-inline: 15%;
    top: -40px;
    height: 200px;
    background:
        radial-gradient(circle at 50% 100%, rgba(100, 255, 178, 0.18), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

/* Grid texture behind content */
.community-hero .section-inner::after {
    content: "";
    position: absolute;
    inset: 12% 6%;
    background-image:
        linear-gradient(to right, rgba(31, 41, 55, 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 41, 55, 0.55) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.24;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.community-hero-layout {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 40px;
}

.community-hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* H1 hierarchy */
.community-hero-title {
    font-size: 44px;
    line-height: 1.25;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #f9fafb;
}

/* Hero subheadline */
.community-hero-subtitle {
    font-size: 17px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    max-width: 640px;
}

/* Hero CTAs */
.community-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

/* Slightly larger buttons on hero */
.community-page .community-hero .btn {
    font-size: 15px;
    padding: 13px 26px;
}

/* Micro-interactions for CTAs */
.community-page .btn-primary:hover,
.community-page .btn-secondary:hover {
    transform: translateY(-1px) scale(1.02);
}

/* Hero visual – blueprint community cluster */
.community-hero-visual-column {
    display: flex;
    justify-content: center;
}

.community-hero-visual {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(12, 22, 34, 1)),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.98),
        0 0 46px rgba(56, 189, 248, 0.35);
    padding: 22px 20px;
    overflow: hidden;
}

.community-hero-grid {
    position: absolute;
    inset: 16% 10% 12%;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    transform-origin: top;
    transform: perspective(780px) rotateX(58deg);
    box-shadow:
        0 30px 40px rgba(15, 23, 42, 0.98),
        0 0 40px rgba(37, 99, 235, 0.5);
}

.community-orbits {
    position: absolute;
    inset: 26% 16% 18%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.95);
}

.orbit-1 {
    width: 86%;
    height: 70%;
}

.orbit-2 {
    width: 66%;
    height: 54%;
    border-color: rgba(100, 255, 178, 0.9);
    box-shadow:
        0 0 24px rgba(95, 244, 179, 0.7),
        0 0 42px rgba(56, 189, 248, 0.6);
}

.orbit-3 {
    width: 44%;
    height: 36%;
    border-color: rgba(37, 99, 235, 0.85);
}

/* Crystal cluster */
.community-crystal-cluster {
    position: absolute;
    inset: 20% 18% 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.crystal {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.crystal-main {
    width: 84px;
    height: 108px;
    background: radial-gradient(circle at 50% 0, #e0f2fe 0, #67e8f9 28%, #22c55e 55%, #0ea5e9 100%);
    clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
    border: 1px solid rgba(191, 219, 254, 0.85);
    box-shadow:
        0 32px 50px rgba(15, 23, 42, 0.95),
        0 0 36px rgba(56, 189, 248, 0.7);
}

.crystal-small {
    position: absolute;
    width: 36px;
    height: 46px;
    background: radial-gradient(circle at 50% 0, #e0f2fe 0, #a5f3fc 40%, #22c55e 75%);
    clip-path: polygon(50% 0, 100% 40%, 76% 100%, 24% 100%, 0 40%);
    border: 1px solid rgba(191, 219, 254, 0.8);
    opacity: 0.9;
}

.crystal-1 {
    right: 72px;
    top: 38px;
}

.crystal-2 {
    left: 58px;
    bottom: 30px;
}

/* WHY COMMUNITY – luminous list */
.community-why .section-inner {
    max-width: 860px;
}

.community-pain-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-pain-list li {
    position: relative;
    padding-right: 30px;
    font-size: 15px;
    color: var(--tayf-text-main);
}

.community-pain-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.9em;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--tayf-accent-green) 0, #22c55e 40%, #16a34a 75%);
    box-shadow: 0 0 14px rgba(95, 244, 179, 0.9);
    transform: translateY(-50%);
}

/* Highlight box with copper edge */
.community-highlight {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(199, 138, 85, 0.8);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
}

.community-highlight-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
}

/* Inside community – cards grid */
.community-inside .section-inner {
    max-width: 1120px;
}

.community-spaces-grid {
    margin-top: 26px;
    gap: 18px;
}

.community-spaces-grid .wp-block-column {
    display: flex;
}

/* Base card style */
.community-card {
    position: relative;
    flex: 1;
    padding: 20px 18px 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 75%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.96),
        0 0 30px rgba(15, 23, 42, 0.95);
    color: var(--tayf-text-muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* Soft internal glow */
.community-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(100, 255, 178, 0.12), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

/* Copper corner accent */
.community-card::after {
    content: "";
    position: absolute;
    inset-inline-start: 18px;
    top: 16px;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(199, 138, 85, 0.7), transparent);
}

/* Icon as copper badge */
.community-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 0, #1e293b 0, #020617 65%, #000 100%);
    border: 1px solid rgba(199, 138, 85, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    box-shadow:
        0 0 16px rgba(199, 138, 85, 0.6),
        0 10px 22px rgba(15, 23, 42, 0.9);
}

.community-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.community-card-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
}

/* WHO IS IT FOR – luminous checklist */
.community-fit .section-inner {
    max-width: 920px;
}

.community-fit-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-fit-list li {
    position: relative;
    padding-right: 30px;
    font-size: 15px;
    color: var(--tayf-text-main);
}

.community-fit-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.9em;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    box-shadow:
        0 0 10px rgba(56, 189, 248, 0.9),
        0 0 16px rgba(34, 197, 94, 0.9);
    transform: translateY(-50%);
}

.community-fit-footnote {
    font-size: 14px;
    color: var(--tayf-text-muted);
    margin-top: 8px;
}

/* Steps section – pulse-green stepper */
.community-steps .section-inner {
    max-width: 960px;
}

.community-steps-track {
    margin-top: 24px;
    position: relative;
    padding: 22px 6px 0;
}

.community-steps-line {
    position: absolute;
    top: 18px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: linear-gradient(90deg, rgba(199, 138, 85, 0.0), rgba(95, 244, 179, 0.8), rgba(56, 189, 248, 0.9), rgba(199, 138, 85, 0.0));
    opacity: 0.9;
}

/* Steps grid */
.community-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.step-card {
    padding: 20px 16px 16px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, #0f1a28 0, #020617 80%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.96);
    font-size: 14px;
    color: var(--tayf-text-muted);
}

.step-index {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #bbf7d0 0, #22c55e 40%, #15803d 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #022c22;
    box-shadow:
        0 0 14px rgba(34, 197, 94, 0.9),
        0 0 20px rgba(56, 189, 248, 0.8);
    margin-bottom: 8px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 6px;
}

.step-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
    line-height: 1.8;
}

/* Activities – icon list with green dot */
.community-activities .section-inner {
    max-width: 960px;
}

.community-activities-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.community-activity-card {
    position: relative;
    padding: 18px 16px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.96);
    color: var(--tayf-text-muted);
    font-size: 14px;
}

.activity-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 6px;
}

.activity-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
    line-height: 1.9;
}

/* Values cards */
.community-values .section-inner {
    max-width: 1120px;
}

.community-values-grid {
    gap: 16px;
}

.community-values-grid .wp-block-column {
    display: flex;
}

.value-card {
    flex: 1;
    padding: 18px 16px 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.96);
    font-size: 14px;
    color: var(--tayf-text-muted);
}

.value-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #1e293b 0, #020617 65%);
    border: 1px solid rgba(199, 138, 85, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow:
        0 0 14px rgba(199, 138, 85, 0.8),
        0 10px 20px rgba(15, 23, 42, 0.95);
}

.value-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 6px;
}

.value-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
    line-height: 1.9;
}

/* Testimonials – soft cards */
.community-testimonials .section-inner {
    max-width: 960px;
}

.community-testimonials-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.testimonial-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.96);
    font-size: 14px;
    color: var(--tayf-text-muted);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 0, #e5e7eb 0, #9ca3af 40%, #020617 100%);
    margin-bottom: 10px;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.9),
        0 0 14px rgba(148, 163, 184, 0.6);
}

.testimonial-text {
    font-size: 14px;
    color: var(--tayf-text-main);
    line-height: 1.9;
    margin-bottom: 8px;
}

.testimonial-meta {
    font-size: 12px;
    color: var(--tayf-text-muted);
}

/* FAQ */
.community-faq .section-inner {
    max-width: 880px;
}

.community-faq .wp-block-details {
    margin-top: 8px;
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: radial-gradient(circle at top left, #0f1a28 0, #020617 80%);
    padding: 10px 14px;
}

.community-faq summary {
    font-size: 14px;
    color: #e5e7eb;
}

.community-faq p {
    font-size: 14px;
    color: var(--tayf-text-muted);
}

/* Final CTA */
.community-final-cta .section-inner {
    max-width: 820px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(100, 255, 178, 0.2), #020617 60%),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.96),
        0 0 40px rgba(100, 255, 178, 0.16);
}

.community-final-cta-buttons {
    margin-top: 18px;
    justify-content: center;
}

/* Responsive adjustments for community page */
@media (max-width: 1024px) {
    .community-page .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .community-hero .section-inner {
        padding-inline: 32px;
    }

    .community-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .community-page .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .community-hero .section-inner {
        padding-inline: 22px;
    }

    .community-hero-title {
        font-size: 32px;
    }

    .community-page .section-title {
        font-size: 24px;
    }

    .community-spaces-grid,
    .community-activities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-values-grid,
    .community-testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .community-page .section {
        padding-inline: 16px;
    }

    .community-hero .section-inner {
        padding: 26px 18px 24px;
    }

    .community-hero-visual {
        max-width: 320px;
    }

    .community-testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   TAYF – Courses / Journeys page (page-courses.html)
   Calm, guided course selection
   ========================================================= */

.courses-page {
    background: var(--tayf-bg-page);
}

.courses-page .section {
    padding-top: 88px;
    padding-bottom: 88px;
}

/* Inner panels for non-hero sections */
.courses-page .section:not(.courses-hero) > .section-inner {
    max-width: 1120px;
    padding: 32px 32px 30px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 70%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

/* Typography on courses page */
.courses-page .section-title {
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    color: #f9fafb;
    text-shadow:
        0 0 26px rgba(12, 22, 34, 0.9),
        0 0 32px rgba(100, 255, 178, 0.18);
}

.courses-page .section-subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    max-width: 720px;
}

/* HERO – Courses / Journeys */
.courses-hero {
    background: radial-gradient(circle at top, #0c1622 0, #020617 55%, #020617 100%);
}

.courses-hero .section-inner {
    max-width: 1120px;
    padding: 40px 40px 36px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, #111827 0, #020617 55%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.98),
        0 0 60px rgba(15, 23, 42, 0.95);
    position: relative;
    overflow: hidden;
}

/* Grid texture + soft spotlight */
.courses-hero .section-inner::before {
    content: "";
    position: absolute;
    inset-inline: 14%;
    top: -40px;
    height: 200px;
    background: radial-gradient(circle at 50% 100%, rgba(100, 255, 178, 0.16), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.courses-hero .section-inner::after {
    content: "";
    position: absolute;
    inset: 12% 6%;
    background-image:
        linear-gradient(to right, rgba(31, 41, 55, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 41, 55, 0.5) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.24;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.courses-hero-layout {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 40px;
}

.courses-hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hero title + subtitle */
.courses-hero .section-title {
    font-size: 38px;
    margin-bottom: 8px;
}

.courses-hero .section-subtitle {
    font-size: 16px;
    max-width: 600px;
}

/* Hero CTAs and helper text */
.courses-page .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.courses-page .courses-hero .btn {
    font-size: 15px;
    padding: 13px 26px;
}

.hero-helper-text {
    font-size: 13px;
    color: var(--tayf-text-muted);
    max-width: 540px;
}

/* Hero visual – segmented path + crystal */
.courses-hero-visual-column {
    display: flex;
    justify-content: center;
}

.courses-hero-visual {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.22), rgba(12, 22, 34, 1)),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.98),
        0 0 46px rgba(56, 189, 248, 0.35);
    padding: 22px 20px;
    overflow: hidden;
}

.courses-hero-grid {
    position: absolute;
    inset: 22% 12% 16%;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    transform-origin: top;
    transform: perspective(780px) rotateX(58deg);
    box-shadow:
        0 30px 40px rgba(15, 23, 42, 0.98),
        0 0 40px rgba(37, 99, 235, 0.5);
}

/* Path of panels */
.courses-hero-path {
    position: absolute;
    inset: 34% 10% 18%;
}

.path-panel {
    position: absolute;
    width: 96px;
    height: 40px;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.45), rgba(15, 23, 42, 1));
    border: 1px solid rgba(94, 234, 212, 0.9);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.95) inset,
        0 16px 28px rgba(34, 197, 94, 0.9),
        0 0 22px rgba(56, 189, 248, 0.8);
}

.panel-1 {
    bottom: 6%;
    left: 6%;
    transform: skewX(-12deg);
}

.panel-2 {
    bottom: 24%;
    left: 28%;
    transform: skewX(-10deg);
}

.panel-3 {
    bottom: 42%;
    left: 50%;
    transform: skewX(-10deg);
}

.panel-4 {
    bottom: 60%;
    left: 32%;
    transform: skewX(-8deg);
}

.courses-hero-crystal {
    position: absolute;
    top: 8%;
    right: 18%;
    width: 80px;
    height: 100px;
    background: radial-gradient(circle at 50% 0, #e0f2fe 0, #67e8f9 28%, #22c55e 55%, #0ea5e9 100%);
    clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
    border: 1px solid rgba(191, 219, 254, 0.85);
    box-shadow:
        0 26px 40px rgba(15, 23, 42, 0.95),
        0 0 36px rgba(56, 189, 248, 0.7);
}

.courses-hero-caption {
    position: absolute;
    bottom: 14px;
    right: 16px;
    left: 16px;
    font-size: 11px;
    color: #e5e7eb;
    text-align: center;
    opacity: 0.86;
}

/* WHY TAYF – icon row */
.courses-why .section-inner {
    max-width: 1000px;
}

.courses-why-grid {
    margin-top: 22px;
    gap: 16px;
}

.why-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.96);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--tayf-text-muted);
}

.why-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #1e293b 0, #020617 65%);
    border: 1px solid rgba(199, 138, 85, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow:
        0 0 14px rgba(199, 138, 85, 0.8),
        0 10px 20px rgba(15, 23, 42, 0.95);
}

.why-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
}

/* HOW TO CHOOSE helper section */
.courses-helper .section-inner {
    max-width: 1040px;
}

.courses-helper-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.helper-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.96);
    font-size: 14px;
    color: var(--tayf-text-muted);
}

.helper-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 6px;
}

.helper-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.helper-link {
    font-size: 13px;
    color: var(--tayf-accent-green);
    text-decoration: none;
}

.helper-link:hover {
    text-decoration: underline;
}

/* Filters and journey line */
.courses-filters {
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.courses-filters-label {
    font-size: 13px;
    color: var(--tayf-text-muted);
    margin-bottom: 4px;
}

.courses-filter-row,
.courses-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.courses-filters .blog-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.courses-filters .blog-chip.is-active {
    background: radial-gradient(circle at 30% 0, rgba(100, 255, 178, 0.2), #020617 80%);
    border-color: rgba(100, 255, 178, 0.9);
    box-shadow: 0 0 18px rgba(100, 255, 178, 0.8);
    color: #bbf7d0;
}

.courses-filters .blog-chip:hover {
    border-color: rgba(148, 163, 184, 0.95);
}

/* Journey indicator under filters */
.courses-journey-indicator {
    margin-top: 18px;
    padding: 16px 14px 12px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, #020617 0, #020617 75%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.9);
    position: relative;
    overflow: hidden;
}

.courses-journey-line {
    position: absolute;
    top: 18px;
    right: 10%;
    left: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(199, 138, 85, 0.0), rgba(95, 244, 179, 0.8), rgba(56, 189, 248, 0.9), rgba(199, 138, 85, 0.0));
    opacity: 0.9;
}

.courses-journey-nodes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    z-index: 1;
}

.courses-journey-node {
    font-size: 11px;
    color: var(--tayf-text-muted);
}

.courses-journey-node .node-title {
    margin-bottom: 2px;
    font-weight: 600;
    color: #e5e7eb;
}

.courses-journey-node .node-courses {
    font-size: 11px;
}

/* Courses grid – 3 columns on desktop */
.courses-page .courses-grid--nine {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Course card styling specifically for courses page */
.courses-page .course-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #020617 0, #020617 75%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.96);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--tayf-text-muted);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.courses-page .course-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.9);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.98),
        0 0 26px rgba(56, 189, 248, 0.6);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.course-label {
    align-self: flex-start;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-label-primary {
    background: radial-gradient(circle at 30% 0, #bbf7d0 0, #4ade80 35%, #22c55e 70%, #16a34a 100%);
    color: #022c22;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.9),
        0 14px 32px rgba(34, 197, 94, 0.7);
}

.course-label-recommended {
    background: radial-gradient(circle at 30% 0, #fed7aa 0, #f97316 45%, #9a3412 80%);
    color: #0f172a;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.9),
        0 14px 32px rgba(180, 83, 9, 0.7);
}

.course-category-tag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.course-title {
    font-size: 17px;
    color: #e5e7eb;
}

.course-text {
    font-size: 14px;
    color: var(--tayf-text-muted);
    line-height: 1.9;
}

/* Fit & outcomes lists */
.course-fit-list,
.course-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-fit-list li,
.course-outcomes-list li {
    position: relative;
    padding-right: 18px;
    font-size: 13px;
    color: var(--tayf-text-muted);
}

.course-fit-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.9em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tayf-accent-green), #22c55e);
    box-shadow: 0 0 10px rgba(95, 244, 179, 0.9);
    transform: translateY(-50%);
}

.course-outcomes-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.9em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    box-shadow:
        0 0 8px rgba(56, 189, 248, 0.8),
        0 0 12px rgba(34, 197, 94, 0.8);
    transform: translateY(-50%);
}

.course-outcomes-label {
    font-size: 12px;
    color: var(--tayf-accent-ochre);
    margin-top: 6px;
}

/* Meta & CTA inside course card */
.courses-page .course-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: rgba(156, 163, 175, 0.9);
    margin-top: 6px;
}

.courses-page .course-btn {
    margin-top: 10px;
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    font-size: 13px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.courses-page .course-btn:hover {
    border-color: rgba(94, 234, 212, 0.9);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 18px rgba(56, 189, 248, 0.6);
}

/* Final CTA section */
.courses-final-cta .section-inner {
    max-width: 820px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(100, 255, 178, 0.2), #020617 60%),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.96),
        0 0 40px rgba(100, 255, 178, 0.16);
}

.courses-final-cta .section-title {
    font-size: 26px;
}

.courses-final-cta .section-subtitle {
    max-width: 640px;
    margin-inline: auto;
}

.courses-final-cta .assessment-cta-buttons {
    margin-top: 18px;
    justify-content: center;
}

/* Responsive adjustments for courses page */
@media (max-width: 1024px) {
    .courses-page .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .courses-hero .section-inner {
        padding-inline: 32px;
    }

    .courses-page .courses-grid--nine {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .courses-helper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .courses-journey-nodes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .courses-page .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .courses-hero .section-inner {
        padding-inline: 22px;
    }

    .courses-hero .section-title {
        font-size: 30px;
    }

    .courses-page .section-title {
        font-size: 24px;
    }

    .courses-page .courses-grid--nine {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-helper-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-filters {
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .courses-page .section {
        padding-inline: 16px;
    }

    .courses-hero .section-inner {
        padding: 28px 18px 24px;
    }

    .courses-hero-visual {
        max-width: 320px;
    }
}

/* =========================================================
   TAYF – Blog page (page-blog.html)
   Calm reading + guided discovery
   ========================================================= */

.blog-page {
    background: var(--tayf-bg-page);
}

.blog-page .section {
    padding-top: 88px;
    padding-bottom: 88px;
}

/* Inner panels for non-hero sections */
.blog-page .section:not(.blog-hero) > .section-inner {
    max-width: 1120px;
    padding: 32px 32px 30px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 70%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

/* Typography */
.blog-page .section-title {
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    color: #f9fafb;
    text-shadow:
        0 0 26px rgba(12, 22, 34, 0.9),
        0 0 32px rgba(100, 255, 178, 0.18);
}

.blog-page .section-subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    max-width: 720px;
}

/* HERO – Blog */
.blog-hero {
    background: radial-gradient(circle at top, #0c1622 0, #020617 55%, #020617 100%);
}

.blog-hero .section-inner {
    max-width: 1120px;
    padding: 40px 40px 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, #111827 0, #020617 55%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.98),
        0 0 60px rgba(15, 23, 42, 0.95);
    position: relative;
    overflow: hidden;
}

.blog-hero .section-inner::before {
    content: "";
    position: absolute;
    inset-inline: 14%;
    top: -40px;
    height: 200px;
    background: radial-gradient(circle at 50% 100%, rgba(100, 255, 178, 0.16), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.blog-hero .section-inner::after {
    content: "";
    position: absolute;
    inset: 12% 6%;
    background-image:
        linear-gradient(to right, rgba(31, 41, 55, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 41, 55, 0.5) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.24;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.blog-hero-layout {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 40px;
}

.blog-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-hero-title {
    font-size: 38px;
    margin-bottom: 4px;
}

.blog-hero-kicker {
    font-size: 16px;
    color: #e5e7eb;
}

.blog-hero-subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    max-width: 620px;
}

/* Hero CTAs */
.blog-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.blog-page .blog-hero .btn {
    font-size: 15px;
    padding: 13px 26px;
}

/* Hero visual */
.blog-hero-visual-column {
    display: flex;
    justify-content: center;
}

.blog-hero-visual {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.22), rgba(12, 22, 34, 1)),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.98),
        0 0 46px rgba(56, 189, 248, 0.35);
    padding: 22px 20px;
    overflow: hidden;
}

.blog-hero-grid {
    position: absolute;
    inset: 22% 12% 16%;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    transform-origin: top;
    transform: perspective(780px) rotateX(58deg);
    box-shadow:
        0 30px 40px rgba(15, 23, 42, 0.98),
        0 0 40px rgba(37, 99, 235, 0.5);
}

.blog-hero-lines {
    position: absolute;
    inset: 34% 10% 20%;
}

.hero-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(95, 244, 179, 0.0), rgba(95, 244, 179, 0.9), rgba(56, 189, 248, 0.9), rgba(95, 244, 179, 0.0));
    box-shadow: 0 0 18px rgba(95, 244, 179, 0.8);
}

.hero-line.line-1 {
    width: 70%;
    bottom: 20%;
    left: 10%;
}

.hero-line.line-2 {
    width: 60%;
    bottom: 36%;
    left: 18%;
}

.hero-line.line-3 {
    width: 50%;
    bottom: 52%;
    left: 26%;
}

.blog-hero-crystal {
    position: absolute;
    top: 10%;
    right: 18%;
    width: 80px;
    height: 100px;
    background: radial-gradient(circle at 50% 0, #e0f2fe 0, #67e8f9 28%, #22c55e 55%, #0ea5e9 100%);
    clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
    border: 1px solid rgba(191, 219, 254, 0.85);
    box-shadow:
        0 26px 40px rgba(15, 23, 42, 0.95),
        0 0 36px rgba(56, 189, 248, 0.7);
}

.blog-hero-caption {
    position: absolute;
    bottom: 14px;
    right: 16px;
    left: 16px;
    font-size: 11px;
    color: #e5e7eb;
    text-align: center;
    opacity: 0.86;
}

/* Filters + search */
.blog-filters {
    margin-top: 24px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-filters-label {
    font-size: 13px;
    color: var(--tayf-text-muted);
    margin-bottom: 4px;
}

.blog-filters-left .blog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-filters .blog-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filters .blog-chip.is-active {
    background: radial-gradient(circle at 30% 0, rgba(100, 255, 178, 0.2), #020617 80%);
    border-color: rgba(100, 255, 178, 0.9);
    box-shadow: 0 0 18px rgba(100, 255, 178, 0.8);
    color: #bbf7d0;
}

.blog-filters .blog-chip:hover {
    border-color: rgba(148, 163, 184, 0.95);
}

.blog-filters-right {
    margin-inline-start: auto;
}

.blog-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.blog-search-icon {
    font-size: 12px;
    opacity: 0.75;
}

.blog-search-input {
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    min-width: 180px;
}

.blog-search-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.blog-search-input:focus {
    outline: none;
}

/* Featured article */
.blog-featured-card {
    margin-top: 10px;
    margin-bottom: 26px;
    border-radius: 24px;
    padding: 20px 18px 18px;
    background:
        radial-gradient(circle at top left, #0f1a28 0, #020617 80%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.96),
        0 0 40px rgba(56, 189, 248, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: center;
}

.blog-featured-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(243, 178, 107, 0.9);
    color: var(--tayf-accent-ochre);
    font-size: 11px;
    margin-bottom: 8px;
}

.blog-featured-title {
    font-size: 20px;
    color: #f9fafb;
    margin-bottom: 8px;
}

.blog-featured-excerpt {
    font-size: 14px;
    line-height: 1.9;
    color: var(--tayf-text-muted);
    margin-bottom: 10px;
}

.blog-featured-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--tayf-text-muted);
}

.blog-featured-list li::before {
    content: "•";
    margin-left: 4px;
    color: var(--tayf-accent-green);
}

.blog-featured-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-featured-button:hover {
    border-color: rgba(94, 234, 212, 0.9);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.96),
        0 0 22px rgba(56, 189, 248, 0.7);
}

.blog-featured-visual {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    margin-inline-start: auto;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.32), #020617),
        radial-gradient(circle at bottom, #020617 0, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.blog-featured-grid {
    position: absolute;
    inset: 16% 10% 18%;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
    transform-origin: top;
    transform: perspective(700px) rotateX(56deg);
}

.blog-featured-path {
    position: absolute;
    inset: 40% 14% 20%;
    border-radius: 999px;
    border: 1px dashed rgba(94, 234, 212, 0.9);
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.8);
}

.blog-featured-crystal {
    position: absolute;
    top: 10%;
    right: 18%;
    width: 54px;
    height: 70px;
    background: radial-gradient(circle at 50% 0, #e0f2fe 0, #67e8f9 30%, #22c55e 60%, #0ea5e9 100%);
    clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow:
        0 20px 34px rgba(15, 23, 42, 0.95),
        0 0 28px rgba(56, 189, 248, 0.7);
}

/* Latest grid */
.blog-latest-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, #020617 0, #020617 75%),
        radial-gradient(circle at bottom right, #020617 0, #020617 100%);
    border: 1px solid rgba(51, 65, 85, 0.95);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.96);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--tayf-text-muted);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.9);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.98),
        0 0 26px rgba(56, 189, 248, 0.6);
}

.blog-card-category {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.75);
    color: #e5e7eb;
    margin-bottom: 4px;
}

.blog-card-cover {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.3), #020617);
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.95),
        0 0 24px rgba(37, 99, 235, 0.5);
}

.blog-card-title {
    font-size: 17px;
    color: #e5e7eb;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--tayf-text-muted);
    line-height: 1.9;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 4px;
}

.blog-card-meta span::before {
    content: "•";
    margin-inline-start: 4px;
    margin-inline-end: 2px;
    color: rgba(148, 163, 184, 0.6);
}

.blog-card-meta span:first-child::before {
    content: "";
    margin: 0;
}

.blog-card-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.blog-card-tag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(199, 138, 85, 0.9);
    color: var(--tayf-accent-ochre);
}

.blog-card-link {
    font-size: 13px;
    color: var(--tayf-accent-green);
    text-decoration: none;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Responsive for blog */
@media (max-width: 1024px) {
    .blog-page .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .blog-hero .section-inner {
        padding-inline: 32px;
    }

    .blog-featured-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-page .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .blog-hero .section-inner {
        padding-inline: 22px;
    }

    .blog-hero-title {
        font-size: 30px;
    }

    .blog-page .section-title {
        font-size: 24px;
    }

    .blog-filters {
        border-radius: 18px;
    }

    .blog-latest-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-page .section {
        padding-inline: 16px;
    }

    .blog-hero .section-inner {
        padding: 28px 18px 24px;
    }

    .blog-hero-visual {
        max-width: 320px;
    }
}

/* =========================================================
   Header behavior override – make header non-fixed
   ========================================================= */

.header {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

/* When scrolled, keep same visual treatment but no transform */
.header.scrolled {
    transform: none;
}

/* Reduce top padding now that header is not fixed */
main {
    padding-top: 80px;
}