/* ==========================================================================
   Anatolian Bites — Style
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #E63946;
    --red-hover: #C1121F;
    --white: #FFFFFF;
    --bg: #F8F8F8;
    --dark: #1A1A1A;
    --muted: #666666;
    --border: #E5E5E5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --font-body: 'Trebuchet MS', 'Helvetica Neue', Helvetica, sans-serif;
    --font-heading: 'Trebuchet MS', 'Helvetica Neue', Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .625rem 1.25rem; border-radius: var(--radius);
    font-size: .875rem; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; transition: all .2s;
    font-family: var(--font-body);
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* --- Header --- */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 1.5rem;
    padding: 0 25px; width: 100%; box-sizing: border-box;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.logo-accent { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; justify-content: center; }
.main-nav > a, .nav-dropdown > a {
    color: var(--dark); font-weight: 700; font-size: .95rem;
    text-transform: uppercase; letter-spacing: .5px;
    transition: color .2s, border-color .2s;
    padding: .25rem 0; border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex; align-items: center; line-height: 1.4;
}
.main-nav > a:hover, .nav-dropdown > a:hover {
    color: var(--red); border-bottom-color: var(--red);
}

.nav-dropdown { position: relative; }
.dropdown-arrow { vertical-align: middle; margin-left: 2px; transition: transform .2s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    min-width: 220px; padding: .5rem 0; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block; padding: .5rem 1rem; color: var(--dark);
    font-size: .875rem;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--red); }

.header-actions {
    display: flex; align-items: center; gap: .75rem;
    flex-shrink: 0; position: relative;
}

/* Header search form */
.header-search-form {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg);
    height: 36px;
}
.header-search-form input {
    border: none; background: transparent; padding: .375rem .625rem;
    font-size: .8125rem; font-family: var(--font-body);
    width: 340px; outline: none; color: var(--dark);
}
.header-search-form input::placeholder { color: #777; }
.header-search-form button {
    border: none; background: transparent; cursor: pointer;
    padding: .375rem .5rem; color: var(--muted); display: flex; align-items: center;
}
.header-search-form button:hover { color: var(--red); }

/* Live search results */
.search-results-live {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    min-width: 320px; margin-top: .375rem; z-index: 300;
}
.search-results-live.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .625rem .75rem; border-bottom: 1px solid var(--border);
    color: var(--dark); transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-item span { font-size: .8125rem; }

/* Language switcher — both visible */
.lang-switcher {
    display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.lang-btn {
    display: block; padding: .25rem .5rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .5px;
    color: var(--dark); background: var(--white);
    transition: all .2s; text-align: center; min-width: 32px;
}
.lang-btn:hover { color: var(--red); }
.lang-btn.active {
    background: var(--red); color: var(--white);
}
.lang-btn.active:hover { color: var(--white); }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px; background: var(--dark);
    transition: transform .2s;
}

/* --- Hero --- */
.hero { position: relative; overflow: hidden; }
.hero-link { display: block; }
.hero-image { position: relative; aspect-ratio: 16/7; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    padding: 3rem 2rem 2rem; color: var(--white);
}
.hero-tagline { font-size: .875rem; opacity: .9; margin-bottom: .5rem; }
.hero-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: .25rem; }
.hero-subtitle { font-style: italic; opacity: .8; }

/* --- Sections --- */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-title {
    font-size: 1.75rem; margin-bottom: 1.5rem; text-align: center;
}
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }

/* --- Categories grid --- */
.categories-grid {
    display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.category-chip {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; background: var(--white);
    border: 1px solid var(--border); border-radius: 2rem;
    font-size: .875rem; font-weight: 500; color: var(--dark);
    transition: all .2s;
}
.category-chip:hover { border-color: var(--red); color: var(--red); }
.category-icon { font-size: 1.25rem; }

/* --- Recipes grid --- */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* --- Recipe Card --- */
.recipe-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.recipe-card-link { display: block; color: var(--dark); }
.recipe-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.recipe-card-image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-time {
    position: absolute; bottom: .5rem; right: .5rem;
    background: rgba(0,0,0,.7); color: var(--white);
    padding: .125rem .5rem; border-radius: 4px; font-size: .75rem;
}
.recipe-card-body { padding: 1rem; }
.recipe-card-title { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; line-height: 1.4; }
.recipe-card-subtitle { font-size: .8125rem; color: var(--muted); font-style: italic; margin-bottom: .5rem; }
.recipe-card-meta { display: flex; gap: .75rem; font-size: .75rem; color: var(--muted); }

/* --- Recipes listing layout --- */
.recipes-layout { display: flex; gap: 2rem; }
.filter-sidebar { flex: 0 0 240px; }
.recipes-content { flex: 1; min-width: 0; }

.filter-form { display: flex; flex-direction: column; gap: 1rem; }
.filter-group label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .25rem; }
.filter-group select {
    width: 100%; padding: .5rem; border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-body); font-size: .875rem;
}

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pagination-info { font-size: .875rem; color: var(--muted); }

/* --- Category hero --- */
.category-hero {
    height: 400px; width: 100%;
    background-size: cover; background-position: center; background-color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.category-hero::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
}
.category-hero-title {
    position: relative; z-index: 1;
    font-size: 6rem; color: #fff;
    text-shadow: 0 0 0 #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 4px 12px rgba(0,0,0,.5);
}

/* --- Recipe Single --- */
.recipe-hero { position: relative; aspect-ratio: 16/7; overflow: hidden; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    padding: 3rem 2rem 2rem;
}
.recipe-hero-title { color: var(--white); font-size: 2.5rem; }

.breadcrumb {
    padding: 1rem 0; font-size: .8125rem; color: var(--muted);
    display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

.recipe-title-block { margin-bottom: 1.5rem; }
.recipe-title-block h1 { font-size: 2rem; }
.recipe-title-tr { font-style: italic; color: var(--muted); margin: .25rem 0 .75rem; }
.recipe-short-desc { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

.recipe-meta-bar {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding: 1rem 1.5rem; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 1rem;
}
.meta-item { text-align: center; }
.meta-label { display: block; font-size: .6875rem; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.meta-value { font-weight: 600; font-size: 1rem; }
.meta-value.stars { color: #F59E0B; }

.recipe-actions { display: flex; gap: .75rem; margin-bottom: 1.5rem; }

.recipe-layout { display: flex; gap: 2rem; margin-top: 2rem; }
.recipe-content { flex: 1; min-width: 0; }
.recipe-sidebar { flex: 0 0 300px; }

.recipe-section { margin-bottom: 2.5rem; }
.recipe-section h2 { font-size: 1.5rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }

.recipe-story { line-height: 1.8; color: var(--dark); margin-bottom: 2rem; }
.recipe-story p { margin-bottom: 1rem; }

/* Ingredients */
.ingredients-list { display: flex; flex-direction: column; gap: .5rem; }
.ingredient-check { display: flex; align-items: center; gap: .75rem; cursor: pointer; padding: .375rem 0; }
.ingredient-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
.ingredient-check input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Steps */
.steps-list { counter-reset: step; padding-left: 0; }
.step-card {
    position: relative; padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 1rem;
    list-style: none;
}
.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; left: 1rem; top: 1.25rem;
    width: 28px; height: 28px; background: var(--red); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .875rem;
}
.step-title { font-family: var(--font-heading); font-size: 1.0625rem; margin-bottom: .375rem; }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tip-card {
    padding: 1.25rem; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.tip-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.tip-card h4 { font-size: .9375rem; margin-bottom: .5rem; }
.tip-card p { font-size: .875rem; color: var(--muted); }

/* Comments */
.comment {
    padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: .375rem; }
.comment-header strong { font-size: .9375rem; }
.comment-header time { font-size: .75rem; color: var(--muted); }

.comment-form-wrap { margin-top: 2rem; }
.comment-form {
    display: flex; flex-direction: column; gap: .75rem;
}
/* Turnstile + submit button row — right-aligned below form fields */
.form-row-inline {
    display: flex; align-items: center; gap: 1rem;
    justify-content: flex-end; flex-wrap: wrap;
}
.form-row input, .form-row textarea {
    width: 100%; padding: .625rem .75rem; border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-body); font-size: .9375rem;
}
.form-row textarea { resize: vertical; }
.form-message { font-size: .875rem; }
.form-message.success { color: #16a34a; }
.form-message.error { color: var(--red); }

/* --- Sidebar --- */
.sidebar-widget {
    margin-bottom: 1.5rem; padding: 1.25rem;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sidebar-widget h3 { font-size: 1.125rem; margin-bottom: .75rem; }

/* Star rating */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.star { font-size: 1.75rem; color: var(--border); cursor: pointer; transition: color .15s; }
.star.active, .star:hover, .star:hover ~ .star { color: #F59E0B; }
.rating-info { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }

/* Related */
.related-list { display: flex; flex-direction: column; gap: .75rem; }
.related-card {
    display: flex; align-items: center; gap: .75rem;
    color: var(--dark); font-size: .875rem;
}
.related-card img { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.related-card:hover { color: var(--red); }

.sidebar-categories { display: flex; flex-direction: column; gap: .375rem; }
.sidebar-categories a { color: var(--dark); font-size: .875rem; }
.sidebar-categories a:hover { color: var(--red); }

/* --- Search page --- */
.search-page-form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-page-form input {
    flex: 1; padding: .75rem 1rem; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body);
}
.search-count { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.no-results-block { text-align: center; padding: 3rem 1rem; }
.no-results-block p { margin-bottom: .5rem; }
.no-results { text-align: center; padding: 2rem; color: var(--muted); }

/* --- Popular Recipes row --- */
.popular-section { padding: 2.5rem 0; background: var(--white); }
.popular-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.popular-card {
    display: flex; flex-direction: column; border-radius: var(--radius);
    overflow: hidden; background: var(--bg); transition: transform .2s;
}
.popular-card:hover { transform: translateY(-3px); }
.popular-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.popular-title {
    padding: .5rem .625rem; font-size: .8125rem; font-weight: 600;
    color: var(--dark); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 2rem 0 1.5rem; margin-top: 3rem; }
.footer-inner { display: flex; gap: 3rem; align-items: flex-start; margin-bottom: 1.5rem; }
.footer-brand { flex: 1; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: .375rem; font-size: .8125rem; opacity: .7; }
.footer-links { flex: 0 0 auto; }
.footer-links h4 { font-family: var(--font-heading); margin-bottom: .5rem; color: var(--white); font-size: .9375rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .8125rem; }
.footer-links a:hover { color: var(--white); }
.footer-links li { margin-bottom: .25rem; }

/* Footer category select */
.footer-cat-select {
    width: 100%; min-width: 180px; padding: .5rem .625rem;
    border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    font-family: var(--font-body); font-size: .8125rem;
    appearance: auto; cursor: pointer;
}
.footer-cat-select:focus { outline: 1px solid var(--red); border-color: var(--red); }
.footer-cat-select option { background: var(--dark); color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; text-align: center; font-size: .8125rem; opacity: .5; }

/* --- Error page --- */
.error-page h1 { font-family: var(--font-heading); }

/* --- Print --- */
@media print {
    .site-header, .site-footer, .recipe-sidebar,
    .recipe-actions, .comment-form-wrap, .breadcrumb, .recipe-hero-overlay { display: none !important; }
    .recipe-layout { display: block; }
    .recipe-hero { aspect-ratio: auto; max-height: 300px; }
    body { font-size: 12pt; color: #000; }
    .step-card { break-inside: avoid; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .recipes-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-layout { flex-direction: column; }
    .recipe-sidebar { flex: auto; }
    .footer-inner { flex-wrap: wrap; gap: 1.5rem; }
    .popular-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .main-nav.active {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--white); border-bottom: 1px solid var(--border);
        padding: 1rem; gap: .75rem; z-index: 150;
    }
    .nav-dropdown .dropdown-menu {
        position: static; box-shadow: none; border: none;
        padding-left: 1rem;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .header-search-form input { width: 200px; }

    .hero-title { font-size: 1.5rem; }
    .hero-image { aspect-ratio: 16/9; }
    .recipe-hero { aspect-ratio: 16/9; }
    .recipe-hero-title { font-size: 1.5rem; }
    .category-hero { height: 280px; }
    .category-hero-title { font-size: 2rem; }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }

    .recipes-layout { flex-direction: column; }
    .filter-sidebar { flex: auto; }

    .recipe-meta-bar { gap: 1rem; }

    .form-row-inline { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .recipes-grid { grid-template-columns: 1fr; }
    .recipe-meta-bar { flex-direction: column; align-items: flex-start; }
    .tips-grid { grid-template-columns: 1fr; }
    .search-page-form { flex-direction: column; }
    .header-search-form { display: none; }
}

/* --- Contact form spacing --- */
.contact-spaced .form-row { margin-bottom: 15px; }
.contact-spaced .form-row-inline { margin-top: 15px; }

/* --- Favorite active state --- */
.btn-favorite.active { color: var(--red); border-color: var(--red); }
.btn-favorite.active svg { fill: var(--red); }

/* --- Header Favorites Heart --- */
.header-favorites {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #999;
    transition: color .2s, background .2s;
    cursor: pointer;
}
.header-favorites:hover {
    color: var(--red, #c0392b);
    background: rgba(192,57,43,.06);
}
.header-favorites.has-saved .heart-icon {
    fill: var(--red, #c0392b);
    stroke: var(--red, #c0392b);
}
.header-favorites.has-saved {
    color: var(--red, #c0392b);
}
.header-favorites .heart-icon {
    flex-shrink: 0;
    transition: fill .2s, stroke .2s;
}
.fav-count {
    font-size: 13px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}
.fav-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}
.fav-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #333;
}
.header-favorites:hover .fav-tooltip {
    display: block;
}

/* --- Saved Recipes Page --- */
.saved-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    z-index: 5;
}
.recipe-card:hover .saved-remove-btn {
    opacity: 1;
}
.saved-remove-btn:hover {
    background: var(--red, #c0392b);
}
.recipe-card {
    position: relative;
}
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}
.no-results p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Page --- */
.about-story .story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.about-story .story-content p {
    margin-bottom: 1.2rem;
}
.about-story .story-content p:last-child {
    margin-bottom: 0;
}

/* Team Grid: 4 cols desktop, 2 tablet, 1 mobile */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 10px;
}
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.team-card:hover .team-photo img {
    transform: scale(1.05);
}
.team-info {
    padding: 18px 20px 22px;
}
.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;
}
.team-flag {
    font-size: .9rem;
}
.team-role {
    font-size: .85rem;
    font-weight: 600;
    color: var(--red, #c0392b);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.team-bio {
    font-size: .875rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
