/* About Page Specific Styles - Using new design system */

/* Language Switcher */
.language-switcher {
    position: absolute;
    z-index: 10000;
    top: 0.5rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 15px;
    border-radius: 5px;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher a:hover {
    color: #00d4ff;
}

html[lang="he"] .language-switcher {
    z-index: 999;
}

/* Posts Section */
.posts {
    padding: 4rem 0;
    background: var(--color-white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.post-item {
    background: var(--color-white);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

/* Featured post - spans 8 columns */
.post-item.featured {
    grid-column: span 8;
}

.post-item:nth-child(5) {
    grid-column: span 6;
}

.post-item.featured img {
    height: 280px;
}

/* Medium posts - span 4 columns */
.post-item:nth-child(2),
.post-item:nth-child(6) {
    grid-column: span 4;
}

/* Small posts - span 3 columns */
.post-item:nth-child(3),
.post-item:nth-child(4),
.post-item:nth-child(7),
.post-item:nth-child(8),
.post-item:nth-child(9) {
    grid-column: span 3;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 1rem;
    background: var(--color-white);
}

.post-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-default);
    font-weight: 500;
    line-height: 1.4;
}

.post-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.post-content .read-more {
    display: inline-block;
    color: var(--color-default);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.navigation {border-top:1px solid #eeeeee;}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid;
    border-image-slice: 1;
    border-image-source: radial-gradient(circle farthest-corner at 100% 0, #ffaccf 28%, #5cb6f8 51%, #ba75e0 87%, #dd5183 96%);
}

/* Who I Am Section - Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number,
.stat-icon {
    font-size: 2.2rem;
    font-weight: 300;
    font-family: var(--font-heading);
    color: var(--color-black);
    margin-bottom: 0.5rem;
    line-height: 1;
    min-height: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    opacity: 0.9;
}

.stat-icon .material-symbols-rounded {
    font-size: 2.2rem;
    color: var(--color-black);
    font-weight: 300;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    opacity: 0.9;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-black);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    flex-shrink: 0;
}


/* Expertise Section */
.expertise-section {
    background-color: #f8f8f8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.expertise-item {
    padding: 1.5rem;
    background: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.expertise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.expertise-item h3, .expertise-item h4 {
    margin-bottom:0.2rem;
    letter-spacing:0;
}

.expertise-item p {
    color: var(--color-gray);
}

/* Content Grid - Used for What I Bring and What Matters sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.content-item {
    padding: 2rem;
}

.content-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-item ul li {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray);
    font-weight: 300;
}

.content-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--color-default);
    border-radius: 50%;
}

/* What Matters Section */
.what-matters {
    background-color: #f8f8f8;
}

/* Career Section */

.career-timeline {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.career-item {
    margin-bottom: 1rem;
    padding: 1.5rem 0;
}

.career-item:last-child {
    border-bottom: none;
}

.career-item h4 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid;
    border-image-slice: 1;
    border-image-source: radial-gradient(circle farthest-corner at 100% 0, #ffaccf 28%, #5cb6f8 51%, #ba75e0 87%, #dd5183 96%);
}

.date {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.career-item p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--color-default);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
}

.company-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 300;
    background: linear-gradient(90deg, rgba(26,183,241,1) 0%, rgb(48, 126, 154) 30%, rgb(19, 118, 154) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}

.company-link:hover {
    background-position: 90%, 10%;
}

/* Header Section - Match project pages (.project .header) */
.header {
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
}


.header-text {
    display: flex;
    flex-direction: column;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}


.header-text p {
    font-size: 1.1rem;
    color: var(--color-gray);
    font-weight: 300;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid .content-item:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {


    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header {
        padding: 4rem 1rem 2rem 1rem;
    }
}

@media (max-width: 480px) {


    .stat-number {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.75rem;
    }

    .post-item,
    .post-item.featured,
    .post-item:nth-child(n) {
        grid-column: span 3;
    }

    .post-item img,
    .post-item.featured img {
        height: 160px;
    }

    .post-content {
        padding: 0.75rem;
    }

    .post-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .post-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .post-content .read-more {
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .post-item.featured {
        grid-column: span 6;
    }
    
    .post-item:nth-child(2),
    .post-item:nth-child(3),
    .post-item:nth-child(6),
    .post-item:nth-child(7),
    .post-item:nth-child(4),
    .post-item:nth-child(5),
    .post-item:nth-child(8),
    .post-item:nth-child(9) {
        grid-column: span 6;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        gap: 0.5rem;
    }

    .post-item,
    .post-item.featured,
    .post-item:nth-child(n) {
        grid-column: span 6;
        margin: 10px 0;
    }

    .post-item img,
    .post-item.featured img {
        height: 180px;
    }
}

/* ============================================
   HEBREW FONTS & TEXT STYLES
   ============================================
   Transferred from styles.css and about.css
   ============================================ */

/* Hebrew Font Variable */
:root {
    --hebrew-font: 'Rubik', sans-serif;
    --hebrew-heading-font: 'Assistant', sans-serif;
}

/* ===== Hebrew Text Styles (from styles.css) ===== */
/* General Hebrew text styling for RTL content */
.hebrew-txt {
    font-family: var(--hebrew-font);
    direction: rtl;
    text-align: right;
    font-weight: 400;
}

/* Hebrew text headings */
.hebrew-txt h3 {
    font-family: var(--hebrew-font);
    font-weight: 400;
    font-size: 1rem;
    line-height: normal;
    margin-bottom: 0.5rem;
    text-align: right;
}

/* Hebrew text paragraphs */
.hebrew-txt p {
    font-family: var(--hebrew-font);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== Hebrew Services Page Styles (from about.css) ===== */
/* Body font for Hebrew pages */
html[lang="he"] body {
    font-family: 'Rubik', sans-serif;
}

/* Hebrew heading fonts - using Assistant for titles */
html[lang="he"] .header-text h1,
html[lang="he"] .section-title,
html[lang="he"] .expertise-item h4,
html[lang="he"] .expertise-item h6,
html[lang="he"] .content-item h4,
html[lang="he"] .hebrew-summary-box h3 {
    font-family: 'Assistant', sans-serif;
}

/* Hebrew header title sizing */
html[lang="he"] .header-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.1rem);
}

/* Right-aligned text for Hebrew content */
html[lang="he"] .expertise-item p,
html[lang="he"] .content-item ul,
html[lang="he"] .expertise-section p,
html[lang="he"] .hebrew-intro-text {
    text-align: right;
    font-family: 'Rubik', sans-serif;
}

/* Center-aligned stats for Hebrew */
html[lang="he"] .stat-label {
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

/* RTL direction for Hebrew grids */
html[lang="he"] .stats-grid,
html[lang="he"] .expertise-grid,
html[lang="he"] .content-grid {
    direction: rtl;
}

/* Keep navigation LTR for Hebrew pages */
html[lang="he"] .nav-list,
html[lang="he"] .top-navigation,
html[lang="he"] .nav-content {
    direction: ltr;
}

/* Hebrew summary box styling - Updated to match site design */
html[lang="he"] .hebrew-summary-box {
    background: var(--color-gray-lightest);
    padding: 2rem;
    border-radius: 0;
    margin: 2rem 0;
    text-align: right;
    font-family: 'Rubik', sans-serif;
}

/* Hebrew summary box heading */
html[lang="he"] .hebrew-summary-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-black);
    font-weight: 400;
}

/* Hebrew summary intro text */
html[lang="he"] .hebrew-summary-intro {
    font-size: var(--font-size-large);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-sm);
}

/* Hebrew summary content container */
html[lang="he"] .hebrew-summary-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Hebrew summary point items - Updated to match site design */
html[lang="he"] .hebrew-summary-point {
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--color-gray-lighter);
    direction: rtl;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-default);
    font-weight: 300;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    display: block;
}

/* Hebrew summary point hover effect - Matches expertise-item pattern */
html[lang="he"] .hebrew-summary-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hebrew summary point strong text */
html[lang="he"] .hebrew-summary-point strong {
    display: inline;
    margin-left: 0.5rem;
    color: var(--color-black);
    font-weight: 400;
}

/* Hebrew summary conclusion text */
html[lang="he"] .hebrew-summary-conclusion {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    font-weight: 300;
    color: var(--color-default);
}

/* Hebrew content item lists */
html[lang="he"] .content-item ul {
    list-style: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    direction: rtl !important;
}

/* Hebrew content item list items */
html[lang="he"] .content-item ul li {
    text-align: right;
    direction: rtl;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
}

/* Remove list item markers for Hebrew content */
html[lang="he"] .content-item ul li::before {
    display: none !important;
    visibility: hidden !important;
    content: '' !important;
    width: 0 !important;
    height: 0 !important;
}

/* ===== Responsive Hebrew Text Styles ===== */
@media (max-width: 768px) {
    /* Hebrew text headings on mobile */
    .hebrew-txt h3 {
        font-size: 1rem;
    }
    
    /* Hebrew text paragraphs on mobile */
    .hebrew-txt p {
        font-size: 0.8rem;
    }
}
