/* The tabbed section under the homepage heading (#start-here). The brand
   green (#74b743) and the fonts come from general.css / homepage.css. */

.itabs { max-width: 980px; margin: 0 auto; padding: 36px 16px 8px; text-align: center; }
.itabs h2 { font-family: IRANYekanBold, sans-serif; font-weight: normal; font-size: 26px; line-height: 1.7; color: #24331c; margin: 0 0 10px; }
.itabs h2 span { display: block; font-size: 18px; color: #4e8a2a; }
.itabs-lead { max-width: 62ch; margin: 0 auto 22px; font-size: 15px; line-height: 2.1; color: #556052; }

.itabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.itab {
    display: inline-block; padding: 9px 20px; border-radius: 12px; font-size: 15px; color: #4a544a;
    background: #fff; border: 1px solid #dfe8d6; transition: background .15s, color .15s, border-color .15s;
}
.itab:hover { border-color: #74b743; color: #2f6d1f; }
.itab[aria-selected="true"] { background: #74b743; border-color: #74b743; color: #fff; }
.itab:focus-visible { outline: 2px solid #4e8a2a; outline-offset: 2px; }

.itabs-panel { text-align: right; margin: 0 0 34px; padding: 22px 22px 24px; border-radius: 16px; background: #f7faf4; border: 1px solid #e6efdd; }
.itabs-panel + .itabs-panel { margin-top: 16px; }
.itabs-panel h3 { font-family: IRANYekanBold, sans-serif; font-weight: normal; font-size: 20px; line-height: 1.8; color: #24331c; margin: 0 0 6px; text-align: right; }
.itabs-text { font-size: 15px; line-height: 2.1; color: #556052; margin: 0 0 16px; text-align: right; max-width: 70ch; }

.itabs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.itabs-card { display: block; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e4eedb; transition: box-shadow .15s, border-color .15s, transform .15s; }
.itabs-card:hover { border-color: #74b743; box-shadow: 0 6px 18px rgba(78, 138, 42, .12); transform: translateY(-2px); }
.itabs-card b { display: block; font-family: IRANYekanBold, sans-serif; font-weight: normal; font-size: 15px; color: #2f6d1f; margin: 0 0 4px; }
.itabs-card span { display: block; font-size: 13px; line-height: 1.95; color: #667064; }

.itabs-cta { display: inline-block; margin-top: 18px; padding: 10px 24px; border-radius: 10px; background: #74b743; color: #fff; font-size: 15px; transition: background .15s; }
.itabs-cta:hover { background: #4e8a2a; color: #fff; }

/* With scripts: one panel at a time, so the panels need no gap between them. */
.itabs.is-tabs .itabs-panel[hidden] { display: none; }
.itabs.is-tabs .itabs-panel { margin-bottom: 0; }

@media (max-width: 640px) {
    .itabs { padding-top: 24px; }
    .itabs h2 { font-size: 21px; }
    .itabs h2 span { font-size: 16px; }
    .itabs-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
    .itabs-nav::-webkit-scrollbar { display: none; }
    .itab { flex: none; padding: 8px 15px; font-size: 14px; }
    .itabs-panel { padding: 16px 14px 18px; }
    .itabs-panel h3 { font-size: 17px; }
}
