/* ===== Dayanma Dostum Running Club — Front page ===== */
/* Brand: Dark blue #1A237E, Forest green #2e7d32, White #FFFFFF */

:root {
  --navy: #1A237E;
  --green: #2e7d32;
  --green-dark: #1f5d24;
  --gold: #e0a400;
  --gold-dark: #c98a00;
  --white: #ffffff;
  --bg: #f5f7fb;
  --text: #1f2333;
  --muted: #6b7280;
  --border: #e4e7ef;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(26, 35, 126, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  /* Subtle misty mountain / trail pattern at ~5% opacity */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cg fill='none' stroke='%231A237E' stroke-opacity='0.05' stroke-width='2'%3E%3Cpath d='M0 260 L200 120 L340 220 L520 80 L700 230 L880 110 L1050 240 L1200 150'/%3E%3Cpath d='M0 290 L160 200 L300 270 L480 170 L660 280 L840 190 L1020 285 L1200 210'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
}

.container { width: 92%; max-width: 1180px; margin: 0 auto; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; }

a { color: inherit; text-decoration: none; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2.2rem;
  letter-spacing: .5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: .7rem 1.4rem;
  text-align: center;
  transition: background-color .2s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-cta { background-color: var(--gold); color: var(--white); }
.btn-cta:hover { background-color: var(--gold-dark); }

.btn-dark { background-color: var(--navy); color: var(--white); }
.btn-dark:hover { background-color: #11185c; }

.btn-block { display: block; width: 100%; }
.btn-lg { font-size: 1.15rem; padding: .9rem 2.4rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { height: 48px; width: auto; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { color: var(--navy); font-size: 1.05rem; font-weight: 900; letter-spacing: .5px; }
.logo-text small { color: var(--green); font-size: .68rem; font-weight: 700; letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--navy); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.main-nav a:not(.btn):hover { color: var(--green); }
.nav-cta { padding: .5rem 1.2rem; color: var(--white) !important; }

/* Language switcher (AZ / EN / RU) */
.lang-switch { display: inline-flex; gap: .25rem; align-items: center; margin-left: .6rem; }
.lang-switch a {
  font-size: .8rem; font-weight: 800; color: var(--gold-dark);
  padding: .2rem .45rem; border-radius: 4px; letter-spacing: .5px;
}
.lang-switch a.active { color: var(--white); background: var(--gold); }
.lang-switch a:not(.active):hover { color: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #1A237E 0%, #283593 45%, #2e7d32 130%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='500' viewBox='0 0 1200 500'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='2'%3E%3Cpath d='M0 420 L260 200 L420 340 L640 140 L860 360 L1080 180 L1200 300'/%3E%3Cpath d='M0 470 L220 320 L400 440 L620 280 L840 460 L1060 300 L1200 410'/%3E%3C/g%3E%3C/svg%3E");
  background-position: bottom; background-repeat: no-repeat; background-size: cover;
}
.hero-content { position: relative; text-align: center; color: var(--white); padding: 4rem 0; width: 100%; }
.hero-kicker { font-weight: 700; letter-spacing: 3px; opacity: .9; margin-bottom: .6rem; }
.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
  text-shadow: 0 3px 14px rgba(0,0,0,.25);
}

/* ===== Stats ===== */
.stats { padding: 3.5rem 0; background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1rem; }
.stat-num { display: block; color: var(--green); font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.stat-label { display: block; color: var(--navy); font-weight: 500; margin-top: .3rem; }

/* ===== Events ===== */
.events { padding: 3.5rem 0; background: var(--bg); }
.events-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.col-title {
  font-size: 1.2rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; padding-bottom: .6rem; margin-bottom: 1.2rem;
  border-bottom: 3px solid var(--navy);
}
.col-title--race { border-color: var(--navy); color: var(--navy); }
.col-title--train { border-color: var(--green); color: var(--green); }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.event-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.event-thumb { position: relative; height: 130px; }
.thumb-race { background: linear-gradient(135deg, #1A237E, #3949ab); }
.thumb-train { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.92); color: var(--navy);
  font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px;
}
.badge--green { color: var(--green); }
.event-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.event-body h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.event-meta { color: var(--muted); font-size: .88rem; margin-bottom: .2rem; }
.event-body .btn { margin-top: auto; }
.event-body .btn-block { margin-top: 1rem; }

/* ===== Blog ===== */
.blog { padding: 3.5rem 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.blog-thumb { position: relative; height: 160px; }
.thumb-blog1 { background: linear-gradient(135deg, #3949ab, #5c6bc0); }
.thumb-blog2 { background: linear-gradient(135deg, #2e7d32, #43a047); }
.thumb-blog3 { background: linear-gradient(135deg, #1A237E, #2e7d32); }
.tag {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(255,255,255,.92); color: var(--navy);
  font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px;
}
.blog-body { padding: 1.2rem; }
.blog-date { color: var(--muted); font-size: .82rem; margin-bottom: .35rem; }
.blog-body h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.blog-text { color: var(--text); font-size: .95rem; margin-bottom: .8rem; }
.read-more { color: var(--green); font-weight: 700; font-size: .9rem; }
.read-more:hover { color: var(--green-dark); }

/* ===== Contact band (dedicated section above footer) ===== */
.contact-band { background: linear-gradient(120deg, #1A237E 0%, #283593 60%, #2e7d32 140%); padding: 3.2rem 0; }
.contact-band .section-title { color: var(--white); margin-bottom: 1.6rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info { color: #cfd3ef; }
.contact-info p { margin-bottom: .6rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cfd3ef; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-form input, .footer-form textarea {
  width: 100%; padding: .7rem .9rem; margin-bottom: .8rem;
  border: 1px solid #3a4290; border-radius: var(--radius);
  background: #232c87; color: var(--white); font-family: inherit; font-size: .95rem;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #9aa1d6; }
.footer-form input:focus, .footer-form textarea:focus { outline: 2px solid var(--green); }

.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: #cfd3ef; }
.footer-links a:hover { color: var(--white); }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: #f57c00; color: var(--white); border-radius: 50%; font-weight: 700;
}
.socials a:hover { background: #e65100; }

.footer-contact p { margin-bottom: .5rem; }

.dev-credit { margin-top: .3rem; font-size: .8rem; }
.dev-credit a { color: #f57c00; font-weight: 700; }
.dev-credit a:hover { color: #ffa040; }

.footer-bottom {
  margin-top: 2.5rem; padding: 1.2rem 0; text-align: center;
  border-top: 1px solid #2c3596; font-size: .9rem; color: #9aa1d6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .events-columns { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: .5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1.2rem; }
  .nav-cta { margin: .5rem 1.2rem; text-align: center; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* Active nav state */
.main-nav a.active { color: var(--green); }
.main-nav a.btn.active { color: var(--white); }

/* Page header band */
.page-head {
  background: linear-gradient(120deg, #1A237E 0%, #283593 60%, #2e7d32 140%);
  color: var(--white);
  padding: 2.6rem 0;
}
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.page-head p { opacity: .9; margin-top: .4rem; }
.breadcrumb { font-size: .9rem; opacity: .85; margin-bottom: .5rem; }
.breadcrumb a { text-decoration: underline; }
.live-badge { font-size: .8rem; color: #a5ffb0; font-weight: 700; margin-left: .4rem; }

/* Filter bar */
.filter-section { background: var(--white); padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; }
.filter-bar select, .filter-bar input {
  flex: 1; min-width: 130px; padding: .6rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .92rem; background: var(--white); color: var(--text);
}
.filter-bar .btn { flex: 0 0 auto; }

/* 4-up card grids */
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.events--alt { background: var(--white); }
.col-title--archive { border-color: #9aa0b5; color: #6b7280; }
.thumb-archive { background: linear-gradient(135deg, #6b7280, #9aa0b5); }
.archive-card { opacity: .92; }

/* ===== Detail page ===== */
.detail-section { padding: 2.5rem 0; background: var(--white); }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.detail-hero { height: 280px; border-radius: var(--radius); margin-bottom: 1.4rem; }
.detail-main > p { margin-bottom: 1.2rem; }
.detail-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  background: var(--bg); border-radius: var(--radius); padding: 1.2rem; margin: 1.4rem 0 2rem;
}
.d-stat { display: flex; align-items: center; gap: .7rem; }
.d-icon { font-size: 1.5rem; }
.d-stat b { color: var(--navy); display: block; }
.d-stat p { color: var(--muted); font-size: .9rem; }
.block-title { font-size: 1.3rem; margin: 1.6rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--green); }
.detail-list { margin: 0 0 1.2rem 1.2rem; }
.detail-list li { margin-bottom: .4rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.sponsor {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem .6rem; text-align: center; font-weight: 700; color: var(--navy); font-size: .85rem;
}
.detail-aside { position: sticky; top: 90px; }
.aside-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h3 { margin-bottom: 1rem; }
.price { font-size: 1.1rem; margin-bottom: .8rem; }
.price b { color: var(--green); }
.aside-meta { color: var(--muted); margin-bottom: .5rem; }
.aside-card .btn { margin-top: .8rem; }

/* ===== Registration form ===== */
.reg-section { padding: 2.5rem 0; background: var(--bg); }
.reg-wrap { max-width: 860px; }
.reg-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.reg-step { border: none; margin-bottom: 1.8rem; }
.reg-step legend {
  font-weight: 900; color: var(--navy); font-size: 1.1rem;
  padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--green); width: 100%;
}
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .6rem; }
.form-row > label { flex: 1; min-width: 160px; display: flex; flex-direction: column; font-weight: 500; color: var(--navy); font-size: .9rem; gap: .35rem; }
.form-row input, .form-row select {
  padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; font-weight: 400; color: var(--text);
}
.form-hint { color: var(--muted); font-size: .82rem; margin-bottom: .8rem; }
.req { color: #d32f2f; font-weight: 700; }
.radio-group { border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem 1rem; flex: 1; min-width: 200px; }
.rg-label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: .9rem; }
.radio { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1.2rem; cursor: pointer; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; }
.pay { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1rem; cursor: pointer; }

/* ===== Tables (participants / results) ===== */
.table-section { padding: 2.5rem 0; background: var(--white); }
.table-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.table-tools select, .table-tools input {
  padding: .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .92rem; min-width: 220px;
}
.table-count { color: var(--muted); font-size: .9rem; font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: .8rem 1rem; font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
.data-table tbody tr:nth-child(even) { background: #fafbff; }
.data-table tbody tr:hover { background: #eef1fb; }
.row-me { background: #e8f5e9 !important; font-weight: 700; }
.me-tag { background: var(--green); color: var(--white); font-size: .7rem; padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; }
.rank-1 td { background: #fff8e1 !important; font-weight: 700; }
.rank-2 td { background: #f3f4f6 !important; font-weight: 700; }
.rank-3 td { background: #fbeee0 !important; font-weight: 700; }
.status-fin { color: var(--green); font-weight: 700; }
.status-dnf { color: #c62828; font-weight: 700; }
.table-foot { text-align: center; margin-top: 1.5rem; }
.table-summary { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 1.2rem; color: var(--muted); }
.table-summary b { color: var(--navy); }

/* ===== Gallery ===== */
.gallery-section { padding: 2.5rem 0; background: var(--white); }
.gallery-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.gallery-tools select { padding: .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; min-width: 240px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gphoto.is-hidden { display: none; }
.gphoto {
  position: relative; height: 180px; border-radius: var(--radius); overflow: hidden;
  margin: 0; cursor: pointer; transition: transform .15s ease;
}
.gphoto:hover { transform: scale(1.02); }
.gphoto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(26,35,126,.85));
  color: var(--white); font-size: .8rem; padding: 1.4rem .7rem .6rem;
}
.gallery-foot { text-align: center; margin-top: 2rem; }
.gallery-foot p { color: var(--muted); margin-bottom: .8rem; }

/* ===== Blog listing ===== */
.blog-layout { padding: 2.5rem 0; background: var(--bg); }
.blog-cols { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.blog-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 90px; }
.blog-sidebar h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.cat-list { list-style: none; }
.cat-list li { margin-bottom: .3rem; }
.cat-list a { display: block; padding: .5rem .7rem; border-radius: 6px; color: var(--navy); font-weight: 500; }
.cat-list a:hover, .cat-list a.active { background: var(--green); color: var(--white); }
.blog-grid--list { grid-template-columns: repeat(3, 1fr); }

/* ===== Article detail ===== */
.article-section { padding: 2.5rem 0; background: var(--white); }
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.article-hero { height: 320px; border-radius: var(--radius); margin-bottom: 1.6rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body .lead { font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.article-body blockquote {
  border-left: 4px solid var(--green); background: var(--bg);
  padding: 1rem 1.3rem; margin: 1.5rem 0; font-style: italic; color: var(--navy); border-radius: 0 var(--radius) var(--radius) 0;
}
.article-cta { text-align: center; margin: 2rem 0; }
.article-byline { font-size: .9rem; }
.article-share { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.socials-inline { width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: var(--white); border-radius: 50%; font-weight: 700; }
.socials-inline:hover { background: var(--green); }
.article-aside { position: sticky; top: 90px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.article-aside h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.mini-post { display: flex; gap: .7rem; margin-bottom: 1rem; align-items: center; }
.mini-thumb { width: 64px; height: 48px; border-radius: 6px; flex: 0 0 auto; }
.mini-post b { display: block; font-size: .9rem; color: var(--navy); line-height: 1.3; }
.mini-post small { color: var(--muted); font-size: .8rem; }

/* ===== Inner-page responsive ===== */
@media (max-width: 900px) {
  .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-cols { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 560px) {
  .card-grid--4 { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid--list { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

/* ============================================================
   HERO SLIDER (max 7 slides, image or video, swipeable)
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .5s ease; touch-action: pan-y; }
.hero-slide {
  position: relative; min-width: 100%; min-height: 480px;
  display: flex; align-items: center;
  background: linear-gradient(120deg, #1A237E 0%, #283593 45%, #2e7d32 130%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.hero-video-link {
  display: inline-block; color: var(--white); font-weight: 700;
  border: 2px solid rgba(255,255,255,.7); border-radius: 30px; padding: .35rem 1rem;
}
.hero-video-link:hover { background: rgba(255,255,255,.15); }
.hero-slide__scrim { position: absolute; inset: 0; background: rgba(26,35,126,.45); }
.hero-slide .hero-content { position: relative; z-index: 2; }
.hero-slide .hero-overlay { z-index: 1; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--navy);
  border-radius: 50%; font-size: 1.6rem; line-height: 1; font-weight: 700;
  display: grid; place-items: center; transition: background .2s ease;
}
.hero-arrow:hover { background: var(--white); }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; display: flex; gap: .5rem; justify-content: center; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); padding: 0;
}
.hero-dots button.active { background: var(--white); }
@media (max-width: 560px) {
  .hero-slide { min-height: 380px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ============================================================
   HOME EVENTS — header row, "Daha çox" link, scroll arrows
   ============================================================ */
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.col-head .col-title { margin-bottom: 0; }
.col-more { font-size: .85rem; font-weight: 700; color: var(--green); white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.col-more:hover { color: var(--green-dark); }
.events-col { min-width: 0; }
.scroller { position: relative; min-width: 0; }
.scroller-track { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.scroller-track > .event-card { min-width: 0; }
/* The horizontal scroll arrows are only needed when cards overflow; with
   two cards per sub-section everything fits, so hide them by default. */
.scroll-btn { display: none; }
.scroll-btn {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border: 1px solid var(--border); cursor: pointer;
  background: var(--white); color: var(--navy); border-radius: 50%;
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow);
}
.scroll-btn--prev { left: -10px; }
.scroll-btn--next { right: -10px; }

/* ============================================================
   SPONSORS — auto-rotating, clickable logos
   ============================================================ */
.sponsors { padding: 3rem 0; background: var(--bg); }
.sponsors-viewport { overflow: hidden; position: relative; }
.sponsors-track { display: flex; gap: 2.5rem; align-items: center; width: max-content; animation: sponsor-scroll 28s linear infinite; }
.sponsors-viewport:hover .sponsors-track { animation-play-state: paused; }
.sponsor-logo {
  flex: 0 0 auto; display: grid; place-items: center; height: 70px; min-width: 150px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 1.4rem; color: var(--navy); font-weight: 900; letter-spacing: .5px;
  filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease;
}
.sponsor-logo img { max-height: 46px; max-width: 130px; object-fit: contain; }
.sponsor-logo:hover { filter: none; opacity: 1; }
@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Rotating variants that reuse the sponsors marquee (stats + testimonials) */
.stats-track { gap: 3rem; }
.stats-track .stat { flex: 0 0 auto; min-width: 170px; text-align: center; }
.testi-track { gap: 1.4rem; align-items: stretch; }
.testi-track .testi-card { flex: 0 0 340px; }
@media (max-width: 560px) { .testi-track .testi-card { flex-basis: 260px; } }

/* ============================================================
   CONTACT — required asterisk, char counter, map
   ============================================================ */
.footer-form .req { color: #ff6b6b; }   /* lighter red reads better on the dark footer */
.char-count { font-size: .78rem; color: #9aa1d6; text-align: right; margin: -.4rem 0 .6rem; }
.footer-map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.footer-map iframe { width: 100%; height: 180px; border: 0; }
.footer-policy { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 1rem 0 .2rem; }
.footer-policy a { color: #9aa1d6; font-size: .88rem; }
.footer-policy a:hover { color: var(--white); }

/* Sponsors / Partners divider + member testimonials */
.sponsors-divider { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0 1.4rem; }
.testimonials { padding: 3rem 0; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.testi-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; display: block; }
.testi-ph { display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 900; font-size: 1.7rem; }
.testi-text { color: var(--text); font-style: italic; margin-bottom: .8rem; line-height: 1.5; }
.testi-name { font-weight: 800; color: var(--navy); }
@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } }

/* Team tabs (About / Members) */
.team-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.team-tabs a { padding: .6rem 1rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.team-tabs a.active { color: var(--navy); border-bottom-color: var(--gold); }
.team-tabs a:hover { color: var(--navy); }

/* Events pagination */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; text-align: center; padding: .45rem .7rem; border-radius: 7px;
  border: 1px solid var(--border); font-weight: 700; color: var(--navy); background: var(--white);
}
.pager a:hover { border-color: var(--gold); }
.pager .current { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ============================================================
   DONATE — standalone checkout-style page (no site chrome)
   ============================================================ */
.btn-green { background-color: var(--green); color: var(--white); }
.btn-green:hover { background-color: var(--green-dark); }

.donate-page { min-height: 100vh; padding: 2.5rem 0 3rem; background: var(--bg); }
.donate-wrap { max-width: 780px; }
.donate-logo { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.6rem; text-align: center; }
.donate-logo .logo-mark { height: 84px; }
.donate-logo .logo-text { align-items: center; }
.donate-logo .logo-text strong { font-size: 1.4rem; }
.donate-logo .logo-text small { font-size: .8rem; }
.donate-title { text-align: center; font-size: 1.5rem; font-weight: 900; letter-spacing: .5px; margin-bottom: 1.4rem; }
.donate-intro { margin-bottom: 1.2rem; color: var(--text); }
.donate-intro p { margin-bottom: .8rem; }
.reg-form textarea {
  padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--text); resize: vertical; width: 100%;
}
.amount-group { display: flex; }
.amount-group input { flex: 1; min-width: 0; border-radius: var(--radius) 0 0 var(--radius); }
.amount-cur {
  display: grid; place-items: center; padding: 0 .9rem; background: var(--bg);
  border: 1px solid var(--border); border-left: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700; color: var(--muted); font-size: .9rem;
}
/* Result banner shown after the payer returns from the bank */
.pay-result {
  padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1.2rem;
  font-weight: 600; font-size: .95rem; line-height: 1.5;
}
.pay-result.is-ok   { background: #e8f5e9; color: #1f5d24; border: 1px solid #b8e0bd; }
.pay-result.is-wait { background: #fff8e1; color: #8a5a00; border: 1px solid #f0dca8; }
.pay-result.is-fail { background: #fdecea; color: #b3261e; border: 1px solid #f3c2bd; }
.pay-result .pay-order { font-weight: 400; font-size: .85rem; opacity: .85; }

.pay-strip { text-align: center; margin-top: 1rem; }
.pay-badge {
  display: inline-block; border: 1px solid var(--border); border-radius: 6px;
  padding: .15rem .55rem; font-weight: 800; font-size: .78rem; color: var(--navy);
  margin: 0 .15rem; background: var(--white);
}
.pay-strip p { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.donate-sponsors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.donate-sponsors .sponsor-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; place-items: center; height: 74px;
  padding: 0 1rem; font-weight: 900; color: var(--navy); text-align: center;
}
.donate-sponsors img { max-height: 44px; max-width: 150px; object-fit: contain; }
@media (max-width: 560px) { .donate-sponsors { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM MEMBERS — grid (Peşəkar / Həvəskar) + member profile
   ============================================================ */
.members-section { padding: 2.5rem 0 3.5rem; background: var(--bg); }
.muted { color: var(--muted); }
.member-group-title {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.2rem;
  font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--navy);
}
.member-group-title::after { content: ''; flex: 1; border-top: 1px solid #c6ccdf; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; display: flex; flex-direction: column;
}
.member-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: .2rem .55rem; border-radius: 20px; background: var(--navy); color: var(--white);
}
.member-badge--amateur { background: var(--green); }
.member-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; padding-right: 3.4rem; }
.member-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.member-ph { display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 900; font-size: 1.4rem; }
.member-head h4 { font-size: 1.15rem; }
.member-focus { color: var(--navy); font-weight: 700; font-size: .88rem; margin-bottom: .5rem; }
.member-bio { color: var(--text); font-size: .88rem; margin-bottom: .8rem; flex: 1; }
.member-links { display: flex; gap: .5rem; margin-bottom: .8rem; }
.member-links a {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: #f57c00; color: var(--white); border-radius: 8px;
}
.member-links a:hover { background: #e65100; }
.member-more { color: var(--navy); font-weight: 700; font-size: .88rem; text-decoration: underline; align-self: flex-end; }
.member-more:hover { color: var(--green); }

/* Profile (detail) */
.member-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.member-side { text-align: center; position: relative; }
.member-side .member-badge { position: static; display: inline-block; margin-bottom: .9rem; }
.member-detail-photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto .9rem;
}
.member-side h2 { font-size: 1.8rem; }
.member-main .block-title { margin-top: 0; }
.member-main .block-title + .block-title,
.member-main > * + .block-title { margin-top: 1.6rem; }
.member-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-bottom: 1.2rem; }
.member-two-col h4 { margin-bottom: .5rem; }
.member-list { width: 100%; border-collapse: collapse; font-size: .9rem; }
.member-list td { padding: .3rem .4rem .3rem 0; border-bottom: 1px dashed var(--border); }
.member-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 .4rem; }
.member-stat { text-align: center; background: var(--bg); border-radius: var(--radius); padding: .8rem; }
.member-stat b { display: block; color: var(--green); font-size: 1.5rem; font-weight: 900; }
.member-stat span { color: var(--muted); font-size: .82rem; }
.member-contacts { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.2rem; }
.member-contacts a { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); font-weight: 600; font-size: .92rem; }
.member-contacts a:hover { color: var(--green); }
.member-contacts .ic {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: #f57c00; color: var(--white); border-radius: 8px; flex: 0 0 auto;
}
.member-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 900px) {
  .member-grid { grid-template-columns: 1fr 1fr; }
  .member-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .member-grid { grid-template-columns: 1fr; }
  .member-two-col { grid-template-columns: 1fr; }
  .member-stat-grid { grid-template-columns: 1fr; }
}

/* Simple article/legal page */
.legal-section { padding: 2.5rem 0 3.5rem; background: var(--white); }
.legal-wrap { max-width: 820px; }
.legal-wrap h2 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.legal-wrap p { margin-bottom: 1rem; color: var(--text); }
.legal-wrap ul { margin: 0 0 1.1rem 1.3rem; }
.legal-wrap li { margin-bottom: .4rem; }
