/* =====================================================
   farabi-bento.css  —  Foreign Applicants page styles
   ===================================================== */

:root {
    --fa-blue:    #1A263C;
    --fa-accent:  #485BFF;
    --fa-light:   #F4F6FB;
    --fa-white:   #fff;
    --fa-text:    #1a2340;
    --fa-muted:   #6b7280;
    --fa-radius:  12px;
    --fa-shadow:  0 4px 20px rgba(0,0,0,.08);
    --fa-gap:     24px;
}

/* ---- SHARED ---- */
.page__section { padding: 64px 0; }
.sectionHead { margin-bottom: 40px; }
.sectionHead__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--fa-blue); margin: 0 0 8px; }
.sectionHead__sub { color: var(--fa-muted); font-size: 1rem; margin: 0; }

.fa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: .2s; }
.fa-btn--primary { background: var(--fa-accent); color: #fff; }
.fa-btn--primary:hover { background: #3748ee; color: #fff; }
.fa-btn--outline { border: 2px solid var(--fa-blue); color: var(--fa-blue); }
.fa-btn--outline:hover { background: var(--fa-blue); color: #fff; }

.fileBtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: var(--fa-accent); color: #fff; border-radius: 6px; font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .2s; }
.fileBtn:hover { background: #3748ee; color: #fff; }

/* ---- HERO ---- */
.fa-hero { background: linear-gradient(135deg, var(--fa-blue) 0%, #2a3a5c 100%); color: #fff; padding: 96px 0; }
.fa-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin: 0 0 16px; color: #fff; }
.fa-hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.85); margin: 0 0 32px; max-width: 640px; }
.fa-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- STEPS ---- */
.fa-steps { background: linear-gradient(180deg, #eef1ff 0%, #f4f6fb 100%); }

.fa-steps-wrap { position: relative; }
.fa-steps-line {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #485BFF, #a5b4fc);
    opacity: .22;
    pointer-events: none;
    z-index: 0;
}

.stepsCards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.stepCard {
    background: #fff;
    border-radius: 18px;
    padding: 28px 16px 24px;
    text-align: center;
    border: 1.5px solid #e6eaf8;
    box-shadow: 0 2px 14px rgba(26,38,60,.055);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stepCard:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(72,91,255,.13);
    border-color: #485BFF;
}

.stepCard__badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #485BFF 0%, #7c8fff 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 5px 20px rgba(72,91,255,.38);
    transition: transform .25s, box-shadow .25s;
    flex-shrink: 0;
}
.stepCard:hover .stepCard__badge {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(72,91,255,.5);
}

.stepCard__title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--fa-blue);
    margin-bottom: 8px;
    line-height: 1.35;
}
.stepCard__desc {
    font-size: .82rem;
    color: var(--fa-muted);
    line-height: 1.55;
    flex: 1;
}
.stepCard__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 8px 20px;
    background: #485BFF;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: .82rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.stepCard__btn:hover { background: #3748ee; color: #fff; transform: translateY(-1px); }

.fa-steps-cta { text-align: center; margin-top: 52px; }
.fa-steps-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: #007AE5;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,122,229,.28);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.fa-steps-cta__btn:hover {
    background: #0064c0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(0,122,229,.38);
}

@media (max-width: 992px) {
    .stepsCards { grid-template-columns: repeat(3, 1fr); }
    .fa-steps-line { display: none; }
}
@media (max-width: 600px) {
    .stepsCards { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---- EXAM TABLE ---- */
.examRows { display: flex; flex-direction: column; gap: 2px; border-radius: var(--fa-radius); overflow: hidden; border: 1px solid #e5e7eb; }
.examRow { display: grid; grid-template-columns: 48px 1fr repeat(4, 120px); gap: 0; }
.examRow--head { background: var(--fa-blue); color: #fff; font-weight: 700; font-size: .85rem; }
.examRow--head > div { padding: 12px 10px; }
.examRow:not(.examRow--head) { background: #fff; }
.examRow:not(.examRow--head):nth-child(even) { background: var(--fa-light); }
.examRow > div { padding: 12px 10px; font-size: .9rem; display: flex; align-items: center; border-right: 1px solid #e5e7eb; }
.examRow > div:last-child { border-right: none; }
.examNo { justify-content: center; color: var(--fa-muted); font-weight: 600; }
.examFaculty { font-weight: 600; color: var(--fa-text); }
.examCell { justify-content: center; }

@media (max-width: 768px) {
    .examRows { overflow-x: auto; }
    .examRow { min-width: 600px; }
}

/* ---- DOCS ---- */
.docsGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--fa-gap); }
.docCard { background: #fff; border-radius: var(--fa-radius); padding: 20px; box-shadow: var(--fa-shadow); display: flex; align-items: flex-start; gap: 16px; }
.docCard__icon { font-size: 2rem; flex-shrink: 0; }
.docCard__body { flex: 1; }
.docCard__title { font-weight: 700; color: var(--fa-blue); margin-bottom: 4px; }
.docCard__desc { font-size: .85rem; color: var(--fa-muted); }

/* ---- FEES ---- */
.fa-fees { background: var(--fa-light); }
.feesGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--fa-gap); }
.feeCard { background: #fff; border-radius: var(--fa-radius); padding: 28px 20px; box-shadow: var(--fa-shadow); text-align: center; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 8px; }
.feeCard:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.feeCard__icon { font-size: 2.5rem; }
.feeCard__title { font-weight: 700; color: var(--fa-blue); }
.feeCard__action { font-size: .85rem; color: var(--fa-accent); font-weight: 600; }

/* ---- INFO BLOCK (visa/arrival) ---- */
.fa-info-block { background: #fff; border-radius: var(--fa-radius); padding: 32px; box-shadow: var(--fa-shadow); max-width: 800px; line-height: 1.7; color: var(--fa-text); }
.fa-info-block a { color: var(--fa-accent); }

/* ---- LANGUAGE COURSES ---- */
.fa-lang { background: var(--fa-light); }
.langGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--fa-gap); }
.langCard { background: #fff; border-radius: var(--fa-radius); padding: 28px 20px; box-shadow: var(--fa-shadow); text-align: center; }
.langCard__icon { font-size: 2.5rem; margin-bottom: 8px; }
.langCard__title { font-weight: 700; color: var(--fa-blue); margin-bottom: 6px; }
.langCard__desc { font-size: .85rem; color: var(--fa-muted); }

/* ---- ORDERS ---- */
.ordersList { display: flex; flex-direction: column; gap: 12px; }
.orderItem { background: #fff; border-radius: var(--fa-radius); padding: 20px 24px; box-shadow: var(--fa-shadow); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.orderItem__title { font-weight: 700; color: var(--fa-blue); }
.orderItem__desc { font-size: .85rem; color: var(--fa-muted); margin-top: 4px; }

/* ---- BRANCHES ---- */
.fa-branches { background: var(--fa-light); }
.branchesGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--fa-gap); }
.branchCard { background: #fff; border-radius: var(--fa-radius); padding: 28px 24px; box-shadow: var(--fa-shadow); }
.branchCard__title { font-weight: 800; font-size: 1.1rem; color: var(--fa-blue); margin-bottom: 6px; }
.branchCard__subtitle { font-size: .9rem; color: var(--fa-accent); font-weight: 600; margin-bottom: 8px; }
.branchCard__desc { font-size: .88rem; color: var(--fa-muted); line-height: 1.6; }

/* ---- PAID LIST ---- */
.paidListGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--fa-gap); }
.paidListCard { background: #fff; border-radius: var(--fa-radius); padding: 24px 20px; box-shadow: var(--fa-shadow); text-align: center; text-decoration: none; color: inherit; transition: transform .2s; display: flex; flex-direction: column; gap: 6px; }
.paidListCard:hover { transform: translateY(-4px); }
.paidListCard__year { font-size: 2rem; font-weight: 900; color: var(--fa-accent); }
.paidListCard__title { font-weight: 600; color: var(--fa-blue); font-size: .9rem; }
.paidListCard__action { font-size: .82rem; color: var(--fa-muted); margin-top: 4px; }

/* ---- PARTNERS ---- */
.fa-partners { background: var(--fa-light); }
.partnersGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--fa-gap); }
.partnerCard { background: #fff; border-radius: var(--fa-radius); padding: 24px; box-shadow: var(--fa-shadow); display: flex; flex-direction: column; gap: 10px; }
.partnerCard__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.partnerCard__name { font-weight: 700; color: var(--fa-blue); font-size: 1rem; }
.partnerCard__status { font-size: .78rem; background: var(--fa-accent); color: #fff; padding: 2px 10px; border-radius: 50px; font-weight: 600; white-space: nowrap; }
.partnerCard__preview { font-size: .88rem; color: var(--fa-muted); }
.partnerCard__details summary { font-size: .85rem; font-weight: 600; color: var(--fa-accent); cursor: pointer; }
.partnerCard__detailsBody { font-size: .85rem; color: var(--fa-text); margin-top: 8px; line-height: 1.6; }
.partnerCard__links { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.partnerCard__links a { color: var(--fa-accent); text-decoration: none; }
.partnerCard__links a:hover { text-decoration: underline; }

/* ---- SELECTION (unauthorized) ---- */
.fa-selection { background: #fff8f0; border-top: 4px solid #f59e0b; }
.selectionList { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.selectionList__item { background: #fff; border-radius: 8px; padding: 12px 16px; font-size: .95rem; border-left: 4px solid #f59e0b; color: var(--fa-text); }

/* ---- REVIEWS ---- */
.fa-reviews { background: var(--fa-light); }
.reviewsGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--fa-gap) ;  }
.reviewCard { background: #fff; border-radius: var(--fa-radius); padding: 24px; box-shadow: var(--fa-shadow); display: flex; flex-direction: column; gap: 14px; }
.reviewCard__header { display: flex; align-items: center; gap: 14px; }
.reviewCard__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--fa-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.reviewCard__photo--placeholder { border: 2px dashed #e5e7eb; }
.reviewCard__name { font-weight: 700; color: var(--fa-blue); }
.reviewCard__country { font-size: .85rem; color: var(--fa-muted); }
.reviewCard__text { margin: 0; font-size: .92rem; color: var(--fa-text); line-height: 1.7; border-left: 3px solid var(--fa-accent); padding-left: 12px; font-style: italic; }

/* ---- CONTACTS ---- */
.contactsGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--fa-gap); }
.contactCard { background: #fff; border-radius: var(--fa-radius); padding: 24px 20px; box-shadow: var(--fa-shadow); text-align: center; }
.contactCard__icon { font-size: 2rem; margin-bottom: 8px; }
.contactCard__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fa-muted); margin-bottom: 6px; }
.contactCard__value { font-size: .95rem; color: var(--fa-blue); font-weight: 600; }
.contactCard__value a { color: var(--fa-accent); text-decoration: none; }
.contactCard__value a:hover { text-decoration: underline; }
