/*
Theme Name: Timar
Theme URI: https://example.com/timar
Author: Gemini AI
Version: 1.0.4
*/

/* --- متغیرهای CSS --- */
:root {
    --color-primary-blue: #4A90E2;
    --color-secondary-green: #50E3C2;
    --color-accent-orange: #F5A623;
    --color-text-dark: #4A4A4A;
    --color-text-light: #777;
    --color-background-light: #FFFFFF;
    --color-background-grey: #f9f9f9;
    --color-border-light: #eaeaea;
    --font-family-base: 'Vazirmatn', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

/* --- استایل‌های پایه و ریست --- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-family-base); background-color: var(--color-background-light); color: var(--color-text-dark); line-height: 1.6; font-size: 16px; direction: rtl; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--color-primary-blue); transition: color var(--transition-speed); }
a:hover { color: #3a7ac8; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
.text-center { text-align: center; }

/* ==============================================
--- CRITICAL FIX: Header Layout ---
============================================== */
.site-header { background-color: var(--color-background-light); padding: 10px 0; border-bottom: 1px solid var(--color-border-light); position: sticky; top: 0; z-index: 1000; }
.header-container { /* This is the fix */
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.site-branding { flex-shrink: 0; z-index: 10; }
.custom-logo { max-height: 50px; width: auto; }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul#primary-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 10px; }
.main-navigation .menu-item a { color: var(--color-text-dark); font-weight: 500; text-decoration: none; padding: 10px 15px; border-radius: 8px; transition: background-color var(--transition-speed), color var(--transition-speed); }
.main-navigation .menu-item:not(.cta-button) a:hover { background-color: var(--color-background-grey); color: var(--color-primary-blue); }
.main-navigation .current-menu-item > a { color: var(--color-primary-blue); font-weight: 700; }
.menu-toggle { display: none; } /* Mobile styles are further down */

/* ==============================================
--- NEW: Redesigned Front Page Styles ---
============================================== */

/* New Hero Section */
.hero-section-new {
    background: linear-gradient(rgba(74, 144, 226, 0.1), rgba(255, 255, 255, 0)), #fdfdff;
    padding: 6rem 0;
    text-align: center;
}
.hero-section-new .hero-title { font-size: 3.2rem; color: #333; margin-bottom: 1rem; }
.hero-section-new .hero-subtitle { font-size: 1.25rem; color: var(--color-text-light); max-width: 700px; margin: 0 auto 2.5rem auto; }
.hero-cta-buttons { display: flex; justify-content: center; gap: 1rem; }
.cta-button-primary, .cta-button-secondary {
    padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem; transition: all var(--transition-speed);
}
.cta-button-primary { background-color: var(--color-primary-blue); color: #fff; }
.cta-button-primary:hover { background-color: #3a7ac8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2); }
.cta-button-secondary { background-color: transparent; color: var(--color-primary-blue); box-shadow: inset 0 0 0 2px var(--color-primary-blue); }
.cta-button-secondary:hover { background-color: rgba(74, 144, 226, 0.05); }

/* New Pillars Section */
.pillars-section-new { padding: 5rem 0; background: var(--color-background-light); }
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 4rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar-item { text-align: center; }
.pillar-icon-wrapper {
    width: 70px; height: 70px; margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-green));
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: #fff; box-shadow: 0 5px 15px rgba(80, 227, 194, 0.3);
}
.pillar-icon-wrapper svg { width: 32px; height: 32px; }
.pillar-title { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Featured Courses Section */
.featured-courses-section { padding: 5rem 0; background-color: var(--color-background-grey); }
.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.item-card { background: #fff; border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.item-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.item-card-thumbnail img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.item-card-content { padding: 1.5rem; }
.item-card-title { font-size: 1.25rem; margin-top: 0; }
.item-card-title a { color: var(--color-text-dark); }
.item-card-meta { font-size: 0.9rem; color: var(--color-text-light); }

/* Testimonial Section */
.testimonial-section { background: var(--color-primary-blue); color: #fff; padding: 5rem 0; }
.testimonial-content { text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial-content img { border-radius: 50%; width: 100px; height: 100px; object-fit: cover; border: 4px solid #fff; margin-bottom: 1.5rem; }
.testimonial-content blockquote {
    font-size: 1.4rem; font-style: italic; border: none; padding: 0; margin: 0 0 1rem 0;
    line-height: 1.7;
}
.testimonial-content cite { font-style: normal; font-weight: 700; opacity: 0.9; }

/* Final CTA Section */
.final-cta-section { padding: 5rem 0; text-align: center; background: #fff; }
.cta-title { font-size: 2.2rem; }
.cta-subtitle { color: var(--color-text-light); margin-bottom: 2.5rem; }
.cta-buttons-split { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-split-button { padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem; border: 2px solid; min-width: 250px; }
.cta-split-button.seeker { border-color: var(--color-secondary-green); color: var(--color-secondary-green); }
.cta-split-button.seeker:hover { background: var(--color-secondary-green); color: #fff; }
.cta-split-button.employer { border-color: var(--color-accent-orange); color: var(--color-accent-orange); }
.cta-split-button.employer:hover { background: var(--color-accent-orange); color: #fff; }

/* --- استایل‌های قدیمی و واکنش‌گرایی --- */
.archive-header { text-align: center; margin-bottom: 3rem; }
.archive-title { font-size: 2.5rem; }
.site-footer { background-color: var(--color-text-dark); color: #ccc; padding: 3rem 0; text-align: center; }

@media (max-width: 992px) {
    .items-grid, .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .main-navigation ul#primary-menu { display: none; /* Other mobile styles */ }
    .menu-toggle { display: flex; background: none; border: none; cursor: pointer; }
    /* ... other mobile menu styles ... */
}

@media (max-width: 768px) {
    .hero-section-new .hero-title { font-size: 2.5rem; }
    .items-grid, .pillars-grid { grid-template-columns: 1fr; }
    .hero-cta-buttons { flex-direction: column; align-items: center; }
}

