/* Section landing pages (top-nav parents: "ჩვენ შესახებ", "სწავლა",
   "სტუდენტებისთვის", "აბიტურიენტებისთვის", "სკოლები").
   These nodes carry no content of their own, so legacy rendered them as a
   blank article with a 40-item sidebar. Here they list their child pages as
   cards instead. Scoped .sec-* — no shared names with the legacy cascade. */

:root { --sec-brand: #E32D44; --sec-ink: #2c2c38; --sec-muted: #5A5A67; }

.sec-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    padding-bottom: 90px;
}

.sec-intro {
    /* also carries .art-prose for typography; that caps width at 820px */
    max-width: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 22, 40, .07);
    padding: 34px 38px;
    margin-bottom: 26px;
}

/* ---------- card grid ---------- */
.sec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.sec-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 118px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-left: 4px solid var(--sec-brand);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 6px 18px rgba(30, 22, 40, .05);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.sec-card:hover,
.sec-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(30, 22, 40, .12);
    border-color: rgba(227, 45, 68, .35);
    border-left-color: var(--sec-brand);
    text-decoration: none !important;
}
.sec-card:focus-visible {
    outline: 2px solid var(--sec-brand);
    outline-offset: 3px;
}

.sec-card__body {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}
.sec-card__title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    color: var(--sec-ink);
    transition: color .2s ease;
}
.sec-card:hover .sec-card__title {
    color: var(--sec-brand);
}
.sec-card__text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sec-muted);
}

.sec-card__go {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f6f6f9;
    color: var(--sec-brand);
    font-size: 16px;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.sec-card:hover .sec-card__go {
    background: var(--sec-brand);
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .sec-wrap { margin-top: -30px; padding-bottom: 56px; }
    .sec-intro { padding: 22px 20px; border-radius: 12px; }
    .sec-grid { grid-template-columns: 1fr; gap: 12px; }
    .sec-card { min-height: 0; padding: 20px 18px; border-radius: 12px; }
    .sec-card__title { font-size: 16px; }
}
