.profession-grid-card {
    height: 100%;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(11, 36, 71, .08);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profession-grid-card:hover {
    color: var(--primary);
    transform: translateY(-6px);
    border-color: rgba(247, 201, 72, .35);
    box-shadow: var(--shadow);
}

.profession-grid-card .icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(25, 55, 109, .12), rgba(247, 201, 72, .25));
    color: var(--primary);
    font-size: 1.3rem;
}

.profession-grid-card h2 {
    font-size: 1.16rem;
    margin: 0;
}

.profession-grid-card p {
    margin: 0;
}

.profession-grid-card .arrow {
    align-self: flex-start;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .12em;
}

.branch-card,
.detail-card {
    height: 100%;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(11, 36, 71, .08);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.branch-card-link {
    color: var(--primary);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.branch-card-link:hover {
    color: var(--primary);
    transform: translateY(-6px);
    border-color: rgba(247, 201, 72, .35);
    box-shadow: var(--shadow);
}

.branch-card .branch-image {
    display: block;
    height: 190px;
    margin: -32px -32px 8px;
    overflow: hidden;
    background: var(--soft);
}

.branch-card .branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.branch-card-link:hover .branch-image img {
    transform: scale(1.05);
}

.branch-card .icon,
.detail-card .icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(247, 201, 72, .22);
    color: var(--primary);
    font-size: 1.2rem;
}

.branch-card h2,
.detail-card h2 {
    font-size: 1.18rem;
    margin: 0;
}

.profession-promo-card {
    position: relative;
    overflow: hidden;
}

.profession-promo-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(247, 201, 72, .18);
}

.profession-promo-card > * {
    position: relative;
    z-index: 1;
}

.profession-promo-text {
    color: var(--text);
    font-size: 1.06rem;
    line-height: 1.85;
    max-width: 820px;
}

/* =========================================================================
   Hero subtitle + Tanıtım (about) kartı
   ========================================================================= */
.page-hero .hero-subtitle {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 14px 0 0;
}

.profession-about-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(11, 36, 71, .08);
    box-shadow: var(--shadow-sm);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

.profession-about-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.profession-about-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px dashed rgba(11, 36, 71, .12);
}

.profession-about-header h2 {
    font-size: 1.55rem;
    margin: 0;
    color: var(--primary);
    font-weight: 800;
    line-height: 1.3;
}

.profession-about-header p {
    color: var(--muted);
    font-size: .95rem;
}

.profession-about-body { color: var(--text); }

@media (max-width: 768px) {
    .profession-about-card { padding: 26px 22px; }
    .profession-about-header h2 { font-size: 1.25rem; }
}

/* =========================================================================
   Rich HTML render (DB / AI uretimi h2/h3/ul/p/strong icin tipografi)
   ========================================================================= */
.rich-html { line-height: 1.8; word-wrap: break-word; }
.rich-html > *:first-child { margin-top: 0; }
.rich-html > *:last-child  { margin-bottom: 0; }
.rich-html h2 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
    font-weight: 800;
    color: inherit;
}
.rich-html h3 {
    font-size: 1.05rem;
    margin: 18px 0 8px;
    font-weight: 700;
    color: inherit;
}
.rich-html p { margin: 0 0 14px; }
.rich-html ul,
.rich-html ol { margin: 0 0 14px; padding-left: 22px; }
.rich-html li { margin-bottom: 6px; }
.rich-html strong { font-weight: 700; color: inherit; }
.rich-html a { color: var(--accent-dark); text-decoration: underline; }
.rich-html a:hover { color: var(--accent); }

/* Hero icindeki rich-html: beyaz metin + biraz daha kompakt */
.page-hero .hero-description.rich-html {
    color: rgba(255, 255, 255, .92);
    font-size: 1.02rem;
    max-width: 760px;
    margin-top: 14px;
}
.page-hero .hero-description.rich-html h2,
.page-hero .hero-description.rich-html h3,
.page-hero .hero-description.rich-html strong { color: #fff; }
.page-hero .hero-description.rich-html a { color: var(--accent); }

/* Promo card icindeki rich-html: maks 4 paragraf goster, geri kalan acilir */
.profession-promo-text.rich-html { font-size: 1.04rem; }
.profession-promo-text.rich-html h2 { font-size: 1.18rem; margin-top: 18px; }
.profession-promo-text.rich-html h3 { font-size: 1rem; }

.branch-card p {
    margin: 0;
    color: var(--muted);
}

.branch-card .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.branch-card .info-row i {
    color: var(--accent-dark);
}

.branch-card .arrow {
    align-self: flex-start;
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .12em;
}

.branch-detail-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}

.branch-detail-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.branch-detail-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(5, 15, 35, .72) 100%);
}

.branch-detail-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.branch-service-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.branch-service-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
}

.branch-service-list i {
    color: var(--accent-dark);
    margin-top: 4px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-bar .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(11, 36, 71, .12);
    color: var(--primary);
    font-weight: 700;
    font-size: .88rem;
    transition: background .18s ease, border-color .18s ease;
}

.filter-bar .pill.active,
.filter-bar .pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.filter-bar .pill {
    cursor: pointer;
    user-select: none;
}

.profession-grid-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.profession-grid-card .badge-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(25, 55, 109, .08);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profession-grid-card .badge-jobs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(247, 201, 72, .22);
    color: #b45309;
    font-size: .72rem;
    font-weight: 700;
}

.profession-grid-card .badge-jobs i {
    font-size: .7rem;
}

.meslekler-search .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: 999px;
    overflow: hidden;
}

.meslekler-search .input-group-text,
.meslekler-search .form-control {
    border-color: rgba(11, 36, 71, .12);
    background: #fff;
}

.meslekler-search .form-control:focus {
    box-shadow: none;
    border-color: rgba(11, 36, 71, .12);
}
