/* ═══════════════════════════════════════════════════════
   ققنوس سیاه — Dark Psychology YouTube Channel
   Professional Website Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ───── CSS Variables ───── */
:root {
    /* Brand Colors */
    --accent: #DC2626;
    --accent-hover: #EF4444;
    --accent-dark: #991B1B;
    --accent-glow: rgba(220, 38, 38, 0.3);
    --accent-subtle: rgba(220, 38, 38, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-tertiary: #1A1A1D;
    --bg-card: #141416;
    --bg-card-hover: #1C1C1F;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #F5F5F5;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 64px rgba(0,0,0,0.6);
    --navbar-bg: rgba(10, 10, 11, 0.85);
}

[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4F4F5;
    --bg-tertiary: #E4E4E7;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9FAFB;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #18181B;
    --text-secondary: #52525B;
    --text-muted: #A1A1AA;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 64px rgba(0,0,0,0.12);
    --navbar-bg: rgba(250, 250, 250, 0.85);
}

/* ───── Reset & Base ───── */
/* Ensure font-display swap for Vazir to avoid FOIT */
@font-face {
    font-family: 'Vazirmatn';
    font-display: swap;
    src: local('Vazirmatn');
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    direction: rtl;
}

::selection {
    background-color: var(--accent);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ───── Preloader ───── */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.phoenix-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    animation: pulse-glow 1.5s infinite ease-in-out;
}

.phoenix-svg {
    color: var(--accent);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.preloader-text {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ───── Navbar ───── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-svg {
    width: 100%;
    height: 100%;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-subtle);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ───── Theme Toggle ───── */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ───── Mobile Toggle ───── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ───── Buttons ───── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ───── Sections ───── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ───── Hero ───── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 6s infinite ease-in-out;
}

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.8; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--accent-glow), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.1), transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-subtle);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ───── Hero Visual ───── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phoenix {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.phoenix-main-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px var(--accent-glow));
    animation: phoenix-float 4s infinite ease-in-out;
}

.phoenix-glow {
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes phoenix-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* ───── Scroll Indicator ───── */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    width: 28px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-mouse:hover { opacity: 1; }

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ───── About ───── */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 2;
    font-size: 1.02rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateX(-4px);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    color: var(--accent);
    font-size: 1.3rem;
}

.about-feature-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-feature-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ───── Topics ───── */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.topic-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--accent-glow);
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.topic-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ───── Stats ───── */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ───── Videos ───── */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--accent-glow);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.video-play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: scale(1.15);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-right: -2px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

.video-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

.video-content {
    padding: 24px;
}

.video-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.6;
}

.video-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.videos-cta {
    text-align: center;
}

/* ───── Testimonials ───── */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #F59E0B;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ───── Newsletter ───── */
.newsletter {
    padding: 60px 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    direction: rtl;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

/* ───── Contact ───── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    direction: rtl;
}

.form-group label {
    position: absolute;
    top: 16px;
    right: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.78rem;
    color: var(--accent);
}

.form-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 12px;
    color: var(--accent);
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-body h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-info-body a {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info-body a:hover {
    color: var(--accent);
}

.contact-social h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ───── Footer ───── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: 64px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ───── Back To Top ───── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ───── Animations ───── */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .navbar-menu {
        position: fixed;
        top: 72px;
        right: 0;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-card {
        flex-direction: column;
        padding: 32px;
        text-align: center;
    }

    .newsletter-form {
        min-width: auto;
        width: 100%;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .topic-card {
        padding: 24px 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   POST CARDS — New Post System
   ═══════════════════════════════════════════════════════ */

/* ───── Posts Grid ───── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.posts-grid-full {
    margin-bottom: 0;
}

.posts-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ───── Post Card ───── */
.post-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.post-card.post-pinned {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 24px rgba(220, 38, 38, 0.08);
}

.post-card.post-pinned:hover {
    box-shadow: 0 20px 60px var(--accent-glow);
}

/* Pin Badge */
.post-pin-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Thumbnail */
.post-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-play-overlay {
    opacity: 1;
}

.post-play-btn {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--accent-glow);
    transition: transform 0.3s ease;
}

.post-card:hover .post-play-btn {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Post Body */
.post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.7;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-tag {
    padding: 3px 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.12);
    transition: all 0.3s;
}

.post-tag:hover {
    background: var(--accent);
    color: white;
}

/* Read More */
.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: auto;
}

.post-read-more:hover {
    gap: 10px;
}

.post-read-more svg {
    transition: transform 0.3s;
}

.post-read-more:hover svg {
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════
   ALL POSTS PAGE
   ═══════════════════════════════════════════════════════ */

/* Page Hero */
.page-hero {
    padding: 120px 0 48px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-hero-content {
    text-align: center;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb svg {
    opacity: 0.5;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

/* Filter Buttons */
.posts-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Posts Count */
.posts-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
}

/* All Posts Section */
.all-posts-section {
    padding-top: 48px;
}

/* ───── Posts Responsive ───── */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-hero {
        padding: 100px 0 32px;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

    .posts-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .post-body {
        padding: 18px;
    }

    .post-title {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════
   POST CARD ACTIONS (Two buttons: Read Post + Watch Video)
   ═══════════════════════════════════════════════════════ */

.post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.post-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-watch-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.post-watch-btn svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   POST DETAIL PAGE
   ═══════════════════════════════════════════════════════ */

.post-detail-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 80vh;
}

.post-detail-page .breadcrumb {
    margin-bottom: 32px;
}

/* ───── Post Detail Header ───── */
.post-detail-header {
    margin-bottom: 40px;
    max-width: 800px;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-detail-category {
    display: inline-block;
    padding: 5px 16px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.post-detail-date {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.post-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-detail-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
}

.post-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ───── Video Embed ───── */
.post-detail-video {
    margin-bottom: 40px;
    max-width: 900px;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Clickable YouTube Thumbnail */
.video-thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-thumbnail-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.25);
}

.video-thumbnail-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.video-thumbnail-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.video-play-overlay svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s;
}

.video-thumbnail-link:hover .video-play-overlay svg {
    transform: scale(1.15);
}

/* ───── Post Content ───── */
.post-detail-content {
    max-width: 800px;
    margin-bottom: 48px;
}

.post-detail-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 2.2;
    margin-bottom: 20px;
}

.post-detail-content strong,
.post-detail-content b {
    color: var(--text-primary);
    font-weight: 700;
}

.post-content-list {
    margin: 16px 0 24px;
    padding-right: 24px;
    list-style: none;
}

.post-content-list li {
    position: relative;
    padding: 8px 20px 8px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2;
}

.post-content-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.post-content-subheading {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 28px 0 8px;
}

.post-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.post-hashtag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.post-hashtag:hover {
    background: var(--accent);
    color: #fff;
}

.post-link {
    color: var(--accent);
    text-decoration: underline;
    word-break: break-all;
    transition: opacity 0.2s;
}

.post-link:hover {
    opacity: 0.8;
}

/* ───── YouTube CTA ───── */
.post-detail-cta {
    margin-bottom: 64px;
    max-width: 800px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ───── Related Posts ───── */
.post-detail-related {
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ───── Post Not Found ───── */
.post-not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.post-not-found a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* ───── Post Detail Responsive ───── */
@media (max-width: 768px) {
    .post-detail-page {
        padding-top: 88px;
    }

    .post-detail-title {
        font-size: 1.5rem;
    }

    .post-detail-description {
        font-size: 0.95rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-detail-cta .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-detail-title {
        font-size: 1.3rem;
    }

    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
