/* ============================
   District Courts Ghotki – CSS
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css');

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

:root {
  --green-dark:   #0a4a2f;
  --green-mid:    #166639;
  --green-light:  #1e8a4a;
  --green-pale:   #e8f5ed;
  --gold:         #c9a84c;
  --gold-light:   #f0d585;
  --text-dark:    #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-light:   #777;
  --border:       #ddd;
  --bg-light:     #f6f8f5;
  --white:        #ffffff;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 6px 32px rgba(0,0,0,0.13);
  --transition:   all 0.25s ease;
  --font:         'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); font-size: 15px; line-height: 1.7; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.bg-light { background: var(--bg-light); }
.bg-dark-green { background: var(--green-dark); }
.center { text-align: center; }

/* ---- TOPBAR ---- */
.topbar { background: var(--green-dark); color: rgba(255,255,255,0.85); font-size: 12.5px; padding: 0.4rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.topbar-left, .topbar-right { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.topbar-left span, .topbar-right a { display: flex; align-items: center; gap: 5px; }
.topbar-right a { color: var(--gold-light); transition: var(--transition); }
.topbar-right a:hover { color: #fff; }
.topbar .ti { font-size: 13px; }

/* ---- HEADER ---- */
.header { background: var(--white); border-bottom: 3px solid var(--green-dark); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.header-brand { display: flex; align-items: center; gap: 0.9rem; }
.header-logo { height: 64px; width: 64px; object-fit: contain; flex-shrink: 0; }
.header-title-main { display: block; font-size: 18px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.3px; }
.header-title-sub { display: block; font-size: 11.5px; color: var(--text-light); margin-top: 1px; }

.nav { display: flex; gap: 0.2rem; align-items: center; flex-wrap: wrap; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--text-dark); padding: 0.45rem 0.85rem; border-radius: var(--radius); transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--green-pale); color: var(--green-dark); }
.nav-link.active { font-weight: 600; color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--green-dark); }

/* ---- HERO ---- */
.hero { position: relative; background: linear-gradient(135deg, var(--green-dark) 0%, #0d6b3e 60%, #1a8a50 100%); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,30,15,0.45); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 5rem 1.5rem; }
.hero-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.9rem; }
.hero-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1.1rem; }
.hero-accent { color: var(--gold-light); }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 520px; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-images { position: absolute; right: 0; bottom: 0; width: 45%; opacity: 0.18; z-index: 1; }
.hero-banner-img { width: 100%; object-fit: cover; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.65rem 1.5rem; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--gold); color: var(--green-dark); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--green-mid); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-pale); }
.hero .btn-outline {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: var(--gold-light);
}

/* ---- NEWS TICKER ---- */
.ticker-wrap { background: var(--gold); padding: 0.6rem 0; }
.ticker-inner { display: flex; align-items: center; gap: 1.2rem; overflow: hidden; }
.ticker-label { background: var(--green-dark); color: #fff; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.ticker-text { font-size: 13.5px; font-weight: 500; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-text a { text-decoration: underline; font-weight: 600; }

/* ---- SECTION LABELS ---- */
.section-eyebrow { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--green-light); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--green-dark); line-height: 1.25; margin-bottom: 1.2rem; }

/* ---- ABOUT GRID ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-col { position: relative; }
.about-img { width: 100%; max-width: 360px; border-radius: var(--radius-lg); margin: 0 auto; }
.about-badge { position: absolute; bottom: -1.2rem; right: 0; background: var(--green-dark); color: #fff; border-radius: var(--radius-lg); padding: 1rem 1.5rem; text-align: center; box-shadow: var(--shadow-lg); }
.about-badge-num { display: block; font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.about-badge-label { font-size: 12px; opacity: 0.85; }
.about-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-list li { display: flex; align-items: flex-start; gap: 8px; }
.about-list .ti { color: var(--green-light); font-size: 16px; margin-top: 3px; }

/* ---- STATS ---- */
.stats-bar { background: var(--green-dark); padding: 2.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; color: #fff; }
.stat-item .ti { font-size: 30px; color: var(--gold-light); display: block; margin-bottom: 0.4rem; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: 12.5px; opacity: 0.8; }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.5rem; border: 1px solid var(--border); transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green-light); }
.service-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.service-icon .ti { font-size: 24px; color: var(--green-dark); }
.service-card h3 { font-size: 16px; font-weight: 600; color: var(--green-dark); margin-bottom: 0.6rem; }
.service-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green-light); font-size: 13.5px; font-weight: 600; margin-top: 1rem; }
.card-link:hover { color: var(--green-dark); }

/* ---- WORKFLOW ---- */
.workflow-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
.workflow-step { flex: 1; min-width: 160px; max-width: 220px; text-align: center; padding: 1.2rem 1rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.workflow-step h4 { font-size: 15px; font-weight: 600; color: var(--green-dark); margin-bottom: 0.5rem; }
.workflow-step p { font-size: 13.5px; color: var(--text-mid); }
.workflow-arrow { display: flex; align-items: center; padding-top: 1.2rem; color: var(--green-light); font-size: 22px; }

/* ---- TWO COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.hours-table { display: flex; flex-direction: column; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 1.2rem 0; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.1rem; background: var(--white); font-size: 14px; border-bottom: 1px solid var(--border); }
.hours-row:last-child { border-bottom: none; }
.hours-row.closed { background: #fff5f5; }
.hours-time { font-weight: 600; color: var(--green-dark); }
.hours-row.closed .hours-time { color: #c0392b; }
.contact-quick { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 14px; color: var(--text-mid); }
.contact-quick p { display: flex; align-items: center; gap: 8px; }
.contact-quick .ti { color: var(--green-light); }

/* ---- EVENTS ---- */
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.event-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); transition: var(--transition); }
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.event-date { background: var(--green-pale); color: var(--green-dark); font-size: 12px; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 4px; display: inline-block; margin-bottom: 0.75rem; }
.event-card h4 { font-size: 15px; font-weight: 600; color: var(--green-dark); margin-bottom: 0.5rem; }
.event-card p { font-size: 13.5px; color: var(--text-mid); }
.event-court { font-size: 12px; color: var(--text-light); display: block; margin-top: 0.75rem; }

/* ---- USEFUL LINKS ---- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.link-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; color: #fff; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.link-card .ti { font-size: 30px; color: var(--gold-light); }
.link-card span { font-size: 14px; font-weight: 500; }
.link-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer { background: #0d1f14; color: rgba(255,255,255,0.8); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; }
.footer-logo { height: 58px; width: auto; margin-bottom: 1rem; }
.footer-col p { font-size: 13.5px; line-height: 1.7; margin-bottom: 0.4rem; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--gold-light); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 13.5px; opacity: 0.8; transition: var(--transition); }
.footer-col ul a:hover { opacity: 1; color: var(--gold-light); }
.footer-col .ti { color: var(--gold-light); margin-right: 6px; font-size: 14px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--green-dark); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding: 1.1rem 0; text-align: center; font-size: 12.5px; opacity: 0.6; }

/* ---- PAGE BANNER ---- */
.page-banner { background: linear-gradient(135deg, var(--green-dark) 0%, #1e6b3e 100%); padding: 3.5rem 0; text-align: center; }
.page-banner h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.page-banner .breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb a { color: var(--gold-light); }
.page-banner .breadcrumb .ti { font-size: 14px; }

/* ---- TABLES ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 1.5rem; }
.data-table th { background: var(--green-dark); color: #fff; padding: 0.85rem 1rem; text-align: left; font-weight: 600; font-size: 13px; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:hover td { background: var(--green-pale); }
.data-table a { color: var(--green-light); font-weight: 600; text-decoration: underline; }

/* ---- JUDGE CARDS ---- */
.judges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.judge-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.judge-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.judge-card-img { background: var(--green-pale); height: 160px; display: flex; align-items: center; justify-content: center; }
.judge-card-img .ti { font-size: 64px; color: var(--green-light); }
.judge-card-body { padding: 1.25rem 1.5rem; }
.judge-card-body h3 { font-size: 15.5px; font-weight: 700; color: var(--green-dark); margin-bottom: 0.35rem; }
.judge-card-body .role { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }

/* ---- CONTACT FORM ---- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); outline: none; transition: var(--transition); background: var(--white); color: var(--text-dark); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(30,138,74,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-card { background: var(--green-dark); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-info-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--gold-light); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.contact-detail .ti { font-size: 22px; color: var(--gold-light); margin-top: 2px; }
.contact-detail-label { font-size: 12px; opacity: 0.7; margin-bottom: 3px; }
.contact-detail-val { font-size: 14.5px; font-weight: 500; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--green-pale); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.gallery-item .ti { font-size: 40px; color: var(--green-light); }

/* ---- GALLERY PHOTOS ---- */
.gallery-item-photo { padding: 0; background: var(--white); border: 1px solid var(--border); }
.gallery-item-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-item-photo figcaption { padding: 0.6rem 0.75rem; font-size: 12.5px; color: var(--text-mid); background: var(--bg-light); }
.event-photo-grid { margin-top: 1.5rem; }
.gallery-note { background: var(--green-pale); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2.5rem; text-align: center; }
.gallery-note p { font-size: 14.5px; color: var(--text-mid); }
.gallery-note a { color: var(--green-dark); font-weight: 600; }

/* ---- JUDGES ---- */
.judge-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; border: 2px solid var(--green-pale); }
.judge-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--green-pale); color: var(--green-light); font-size: 28px; }
.judges-table td { vertical-align: middle; }
.judge-featured { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; max-width: 720px; margin: 2rem auto 0; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.judge-featured-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--green-pale); }
.judge-featured-photo img { width: 100%; height: 100%; object-fit: cover; }
.judge-featured-placeholder { width: 120px; height: 120px; align-items: center; justify-content: center; font-size: 48px; color: var(--green-light); }
.judge-featured-info h3 { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 0.35rem; }
.judge-featured-role { color: var(--text-mid); font-size: 14.5px; margin-bottom: 0.25rem; }
.judge-featured-meta { font-size: 13px; color: var(--text-light); }

/* ---- EVENT META ---- */
.event-meta-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; align-items: center; }

/* ---- PROSE ---- */
.prose-content { max-width: 880px; margin: 0 auto; }
.prose-content p { margin-bottom: 1rem; color: var(--text-mid); }

/* ---- CONTACT PAGE ---- */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-hours-block { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; margin-top: 0.5rem; }
.contact-hours-block h4 { color: var(--gold-light); margin-bottom: 1rem; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.contact-hours-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 0.5rem; }
.contact-hours-row.closed span:last-child { color: #ef9f9f; font-weight: 600; }


/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid, .two-col, .contact-layout, .contact-page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { gap: 0; }
  .workflow-arrow { display: none; }
}
@media (max-width: 680px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--green-dark); padding: 1rem; z-index: 200; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-images { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 0.5rem; }
}
