/* 
 * About Page - Pixel-Perfect Implementation
 * Figma: 1440x4348px, Background: #E0D5CF
 */

@font-face {
    font-family: 'FbMatador';
    src: url('webfont/FbMatador-Bold.woff2') format('woff2'),
         url('webfont/FbMatador-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.about-page {
    background: rgb(224, 213, 207);
}

.about-content-wrapper {
    max-width: 1232px;
    margin: 0 auto;
}

/* ==================== HERO IMAGE - X=51, Y=57, 779x203px ==================== */
.about-hero-section {
    max-width: 1438px;
    margin: 0 auto;
    padding: 57px 0 0 51px;
    position: relative;
    min-height: 260px;
}

.about-hero-image {
    width: 779px;
    height: 203px;
    display: block;
    position: absolute;
    left: 51px;
    top: 57px;
}

/* ==================== МИ АНХНУ - Title X=1256 Y=70, Text X=884 Y=141 ==================== */
.about-who-section {
    max-width: 1438px;
    margin: -197px auto 0;
    padding: 0 51px 70px;
    position: relative;
}

.about-main-title {
    font-family: 'FbMatador', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgb(0, 51, 70);
    text-align: right;
    margin: 0 0 1px 0;
    line-height: 1.33;
    float: right;
}



.about-intro-paragraph {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.67;
    color: rgb(0, 51, 70);
    text-align: right;
    width: 504px;
    float: right;
    clear: both;
    margin-right: 0;
}

/* ==================== ОПИСАНИЕ - Y=422, 814x334px, radius=45px ==================== */
.about-mission-section {
    padding: 0 0 162px;
    background-image: url(../../../images/verevka2.png);
    background-repeat: no-repeat;
    
    background-position: right 380px top 153px;
    background-size: 365px auto;
}

.mission-decorative {
    display: none;
}

.mission-rounded-box {
    max-width: 814px;
    margin: 0 auto;
    background: rgb(232, 227, 221);
    border-radius: 45px;
    padding: 82px 104px;
    text-align: center;
    margin-top: 250px;
}

.mission-rounded-box p {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.67;
    color: rgb(0, 51, 70);
    margin: 0;
}

/* ==================== ИИХОДИОТ - Y=916, Container 1234x376px ==================== */
.about-uniqueness-section {
    padding: 0 0 117px;
}

.uniqueness-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* RTL: flex-start is right edge */
    text-align: right;
    gap: 75px;
    margin-bottom: 50px;
}

.about-section-title {
    font-family: 'FbMatador', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgb(0, 51, 70);
    text-align: right;
    margin: 0;
    line-height: 1.33;
    width: 336px;
    flex-shrink: 0;
}

.sik1
{
    width: 476px;
}

.about-section-subtitle {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.67;
    color: rgb(0, 51, 70);
    text-align: right;
    width: 595px;
    margin: 0;
    flex-shrink: 0;
}

.uniqueness-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    max-width: 1234px;
    margin: 0 auto;
}

.uniqueness-card {
    width: 243px;
    height: 376px;
    background: rgb(232, 227, 221);
    border-radius: 24px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Base description hidden */
.card-desc {
    display: none;
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-dark);
    text-align: center;
    margin-top: 3px;
}

/* Wide card state - managed by JS */
.uniqueness-card.card-wide {
    width: 430px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.uniqueness-card.card-wide .card-desc {
    display: block;
}

.card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: block;
}

.card-title-accent {
    font-family: 'Heebo', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgb(215, 121, 90);
    margin: 0 0 5px 0;
    line-height: 1.21;
    text-align: center;
    position: relative;
}

.uniqueness-card.card-wide .card-title-accent {
    font-size: 28px;
}

.card-description {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.56;
    color: rgb(0, 51, 70);
    margin: 0;
}

/* ==================== תפיסת העבודה - Y=1515, Image 1232x283px ==================== */
.about-approach-section {
    padding: 0 0 107px;
}

.approach-image {
    width: 100%;
    max-width: 1232px;
    height: auto;
    display: block;
    margin: 30px auto 0;
}

/* ==================== הצוות שלנו - Y=1982, Container 1234x467px ==================== */
.about-our-team-section {
    padding: 0 0 46px;
}

.our-team-box {
    max-width: 1234px;
    margin: 50px auto 0;
    background: rgb(232, 227, 221);
    border-radius: 45px;
    padding: 60px;
    display: flex;
    gap: 100px;
    justify-content: center;
}

.our-team-item {
    text-align: center;
    max-width: 456px;
    position: relative;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0;
    display: block;
}

.team-name {
    font-family: 'FbMatador', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgb(215, 121, 90);
    margin: 0 0 6px 0;
    line-height: 1.27;
}

.team-title-text {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgb(215, 121, 90);
    margin: 0 0 10px 0;
    line-height: 1.39;
}

.team-bio-text {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    color: rgb(0, 51, 70);
    margin: 0;
}

.team-name-badge {
    display: inline-block;
    background: url('../../../images/Vectorz.png') no-repeat center;
    background-size: 100% 100%;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgb(215, 121, 90);
    padding: 8px 50px;
    margin: -30px auto 20px;
    position: relative;
    z-index: 2;
}

.team-read-more {
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: opacity 0.3s;
}

.team-read-more img {
    width: 30px;
    height: auto;
}

.team-read-more:hover {
    opacity: 0.7;
}

/* Popup */
.team-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.team-popup[style*="block"] {
    display: flex !important;
}

.team-popup-content {
    background: rgb(240, 233, 225);
    padding: 60px 80px;
    border-radius: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}

.team-popup-close {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.team-popup-close img {
    width: 50px;
    height: 50px;
}

.team-popup-header {
    margin-bottom: 40px;
}

.popup-member-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    position: relative;
    top: 30px;
    z-index: 1;
}

.popup-member-name {
    font-family: 'Heebo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: rgb(215, 121, 90);
    margin: 0 0 10px 0;
    background: url('../../../images/Vectorz.png') no-repeat center;
    background-size: contain;
    padding: 8px 50px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.popup-member-title {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgb(215, 121, 90);
    margin: 0 0 20px 0;
}

.team-popup-body {
    text-align: right;
    direction: rtl;
}

.team-popup-body p {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgb(0, 51, 70);
    margin: 0;
}

/* ==================== הוועדה המייעצת - Y=2573 ==================== */


.advisory-flex-wrapper {
    display: flex;
    gap: 98px;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1234px;
    margin: 0 auto;
}

.advisory-single-member {
    width: 527px;
    background: rgb(232, 227, 221);
    border-radius: 45px;
    padding: 25px 90px 35px;
    text-align: center;
    flex-shrink: 0;
    order: 2;
    position: relative;
    top: -40px;
}

.advisory-text-content {
    flex: 1;
    max-width: 607px;
    order: 1;
    padding-top: 30px;
}

.advisory-text-content p {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.56;
    color: rgb(0, 51, 70);
    margin: 0 0 15px 0;
    text-align: right;
}
.advisory-text-content p:last-child {
    margin-bottom: 0;
}

.advisory-single-member .team-read-more {
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: opacity 0.3s;
}

.advisory-single-member .team-read-more img {
    width: 40px;
    height: auto;
}

.advisory-single-member .team-read-more:hover {
    opacity: 0.7;
}

/* ==================== חברי הוועדה - Y=2911, Container 1234x1135px ==================== */
.about-committee-members-section {
    padding: 0 0 40px;
}

.committee-members-box {
    max-width: 1234px;
    margin: 50px auto 0;
    background: rgb(232, 227, 221);
    border-radius: 45px;
    padding: 78px 90px;
    display: grid;
    grid-template-columns: repeat(48, 1fr);
    gap: 65px 0;
    justify-items: center;
}

.committee-single-item {
    text-align: center;
    width: 180px;
}

/* First row - 3 items (12 cols each, 6 margin left + 6 margin right) */
.committee-single-item:nth-child(1) {
    grid-column: 7 / span 12;
}
.committee-single-item:nth-child(2) {
    grid-column: 19 / span 12;
}
.committee-single-item:nth-child(3) {
    grid-column: 31 / span 12;
}

/* Second row - 4 items (9 cols each, 6 margin left + 6 margin right) */
.committee-single-item:nth-child(4) {
    grid-column: 7 / span 9;
}
.committee-single-item:nth-child(5) {
    grid-column: 16 / span 9;
}
.committee-single-item:nth-child(6) {
    grid-column: 25 / span 9;
}
.committee-single-item:nth-child(7) {
    grid-column: 34 / span 9;
}

/* Third row - 3 items (12 cols each, 6 margin left + 6 margin right) */
.committee-single-item:nth-child(8) {
    grid-column: 7 / span 12;
}
.committee-single-item:nth-child(9) {
    grid-column: 19 / span 12;
}
.committee-single-item:nth-child(10) {
    grid-column: 31 / span 12;
}

.committee-single-item .team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    top: 8px;
}

.committee-single-item .team-name {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgb(215, 121, 90);
    margin: -25px auto 10px auto;
    background: url('../../../images/Vectorz.png') no-repeat center;
    background-size: 100% 100%;
    padding: 6px 25px;
    display: inline-block;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    min-width: 150px;
    display: block;
    max-width: 200px;
}

.committee-single-item .team-read-more {
    display: inline-block;
    margin-top: 15px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: opacity 0.3s;
}

.committee-single-item .team-read-more img {
    width: 30px;
    height: auto;
}

.committee-single-item .team-read-more:hover {
    opacity: 0.7;
}

/* ==================== Team Popup ==================== */
.team-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.team-popup-content {
    background: rgb(232, 227, 221);
    margin: 5% auto;
    padding: 40px 50px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

.team-popup-close {
    color: rgb(215, 121, 90);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -10px;
    margin-right: 0px;
    transition: transform 0.3s;
}

.team-popup-close:hover {
    transform: rotate(90deg);
}

.team-popup-body {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgb(74, 74, 74);
    text-align: right;
}

.team-popup-body p {
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */

/* Tablet and below */
@media (max-width: 1400px) {
    /* General */
    .about-page {
        overflow-x: hidden;
    }
    
    .about-content-wrapper {
        padding: 0 40px;
    }
    
    /* Hero section */
    .about-hero-section {
        padding: 40px 0 0 20px;
    }
    
    .about-hero-image {
        width: 90%;
        max-width: 600px;
        height: auto;
        position: relative;
        left: 0;
        top: 0;
    }
    
    /* Who section */
    .about-who-section {
        max-width: 100%;
        padding: 40px 20px 50px;
        margin-top: 20px;
    }
    
    .about-main-title {
        float: none;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about-intro-paragraph {
        float: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Mission section */
    .about-mission-section {
        background-position: right 100px center;
        background-size: 250px auto;
        padding: 0 20px 80px;
    }
    
    .mission-rounded-box {
        margin-top: 120px;
        padding: 50px 40px;
    }
    
    /* Uniqueness section */
    .uniqueness-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .about-section-title {
        width: 100%;
        text-align: center;
    }
    
    .about-section-subtitle {
        width: 100%;
        text-align: center;
    }
    
    .uniqueness-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .uniqueness-card {
        width: calc(50% - 10px);
        min-width: 280px;
        padding: 40px 30px;
    }
    
    .uniqueness-card.card-wide {
        width: 100%;
        max-width: 600px;
    }
    
    /* Approach section */
    .approach-image {
        width: 95%;
    }
    
    /* Team section */
    .our-team-box {
        padding: 40px;
        flex-direction: column;
        gap: 60px;
    }
    
    .our-team-item {
        max-width: 100%;
    }
    
    /* Advisory section */
    .advisory-flex-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .advisory-single-member {
        width: 100%;
        max-width: 500px;
        padding: 30px 40px;
        top: 0;
    }
    
    .advisory-text-content {
        max-width: 100%;
        padding-top: 0;
    }
    
    /* Committee section */
    .committee-members-box {
        padding: 50px 30px;
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }
    
    .committee-single-item {
        width: calc(33.33% - 27px);
        min-width: 140px;
    }
}

/* Large Mobile / Small Tablet */
@media (max-width: 992px) {
    /* Typography scale down */
    .about-main-title {
        font-size: 36px;
    }
    
    .about-section-title {
        font-size: 32px;
    }
    
    .sik1 {
        width: 100%;
    }
    
    /* Uniqueness cards */
    .uniqueness-card {
        width: 100%;
        max-width: 400px;
    }
    
    /* Committee responsive grid */
    .committee-single-item {
        width: calc(50% - 20px);
    }
    
    .committee-single-item .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .committee-single-item .team-name {
        font-size: 16px;
        padding: 5px 15px;
        min-width: 170px;
    }
    
}

/* Mobile */
@media (max-width: 768px) {
    /* General padding */
    .about-content-wrapper {
        padding: 0 20px;
    }
    
    /* Section spacing */
    .about-who-section,
    .about-mission-section,
    .about-uniqueness-section,
    .about-approach-section,
    .about-our-team-section,
    .about-advisory-board-section,
    .about-committee-members-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    /* Typography */
    .about-main-title {
        font-size: 32px;
    }
    
    .about-section-title {
        font-size: 28px;
    }
    
    .about-intro-paragraph,
    .date-text-main,
    .date-text-secondary {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Mission box */
    .mission-rounded-box {
        padding: 30px 20px;
        margin-top: 80px;
    }
    
    .mission-rounded-box p {
        font-size: 16px;
    }
    
    /* Uniqueness cards - single column */
    .uniqueness-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .uniqueness-card,
    .uniqueness-card.card-wide {
        width: 100%;
        max-width: 350px;
        padding: 30px 25px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    /* Team section */
    .our-team-box {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-name-badge {
        font-size: 16px;
        padding: 6px 30px;
    }
    
    .team-title-text {
        font-size: 16px;
    }
    
    .team-bio-text {
        font-size: 14px;
    }
    
    /* Advisory member */
    .advisory-single-member {
        border-radius: 25px;
        padding: 25px 30px;
    }
    
    /* Committee grid - 2 columns */
    .committee-members-box {
        padding: 40px 20px;
        gap: 30px;
    }
    
    .committee-single-item {
        width: calc(50% - 15px);
        min-width: 120px;
    }
    
    .committee-single-item .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Popup */
    .team-popup-content {
        width: 95%;
        margin: 10% auto;
        padding: 30px;
    }
    
    .team-popup-body {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Small Mobile */
@media (max-width: 580px) {
    /* Hero section */
    .about-hero-section {
        padding: 30px 0 0 10px;
    }
    
    .about-hero-image {
        width: 95%;
    }
    
    /* Typography */
    .about-main-title {
        font-size: 28px;
    }
    
    .about-section-title {
        font-size: 24px;
    }
    
    /* Mission section */
    .about-mission-section {
        background-size: 180px auto;
        background-position: right 20px center;
    }
    
    /* Cards */
    .uniqueness-card {
        padding: 25px 20px;
    }
    
    .card-title-accent {
        font-size: 20px;
    }
    
    /* Team */
    .team-name-badge {
        font-size: 14px;
        padding: 5px 20px;
    }
    
    .team-read-more {
        font-size: 14px;
    }
    
    /* Committee - single column on very small screens */
    .committee-single-item {
        width: 100%;
        max-width: 180px;
    }
    
    .committee-single-item .team-name {
        font-size: 14px;
        padding: 4px 12px;
        margin: -20px auto 8px;
    }

    .about-hero-section {
     
        display: none;
    }

    .about-who-section, .about-mission-section, .about-uniqueness-section, .about-approach-section, .about-our-team-section, .about-advisory-board-section, .about-committee-members-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .about-section-title {
        font-size: 24px;
        margin-top: 50px;
    }

    .about-intro-paragraph, .date-text-main, .date-text-secondary {
        font-size: 17px;
    }

    .about-main-title {
        margin-bottom: 10px !important;
    }
    
    /* Show card descriptions on mobile without hover */
    .uniqueness-card .card-desc {
        display: block !important;
    }
    
    .uniqueness-card {
        width: 100% !important;
        max-width: 350px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    
    .uniqueness-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .about-section-title,
 .about-main-title  {
        font-size: 30px;
    }


    .team-name-badge {
        font-size: 20px;
        padding: 5px 20px;
    }

    .team-title-text 
    {
        font-size: 17px;
    }

    .committee-members-box,
    .our-team-box  {

        margin: 20px auto 0;
    }


    .committee-single-item .team-name 
    {
        margin: -6px auto 8px;
    }


}





    

