/* ============================================================================
   Geotimes — საიტის ჰედერი
   იტვირთება new_css/style.css-ის შემდეგ, რომ ძველი ჰედერის წესები გადაფაროს.
   ============================================================================ */

.gth {
  --gth-navy:  #16334d;
  --gth-blue:  #2669a2;
  --gth-red:   #ee1c25;
  --gth-ink:   #1d2a36;
  --gth-mute:  #6d7c8a;
  --gth-line:  #e6ebf1;

  position: relative;
  z-index: 1000;
  background: #fff;
  border-bottom: 0;
  font-family: 'BPG Arial', 'BPG Mrgvlovani', Arial, Helvetica, sans-serif;
}
.gth *, .gth *::before, .gth *::after { box-sizing: border-box; }

.gth__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------------------------------------------------------------- ზედა ზოლი */
.gth__top { background: var(--gth-navy); color: rgba(255,255,255,.72); }
.gth__top .gth__wrap { height: 38px; justify-content: space-between; }
.gth__date { font-size: 13px; letter-spacing: .01em; white-space: nowrap; }
.gth__top-right { display: flex; align-items: center; gap: 18px; }

.gth-soc { display: flex; align-items: center; gap: 8px; }
.gth-soc a {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10);
  color: #fff !important;              /* reset.css a{color:inherit!important} */
  transition: background .16s ease;
}
.gth-soc a svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.gth-soc a:hover { background: rgba(255,255,255,.24); }

/* ძებნის ღილაკი ზედა ზოლში (დესკტოპი) */
.gth__top-search {
  display: flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 12px 0 10px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.78);
  font: 600 12.5px inherit; font-family: inherit; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.gth__top-search svg { width: 13px; height: 13px; display: block; }
.gth__top-search:hover { background: rgba(255,255,255,.20); color: #fff; border-color: rgba(255,255,255,.34); }

.gth-lang { display: flex; align-items: center; gap: 4px; }
.gth-lang a {
  padding: 4px 9px; border-radius: 5px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: rgba(255,255,255,.62) !important;
  transition: background .16s ease, color .16s ease;
}
.gth-lang a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.gth-lang a.is-active { background: var(--gth-red); color: #fff !important; }

/* --------------------------------------------------------------- მთავარი ზოლი */
.gth__main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--gth-line);
  transition: box-shadow .2s ease;
}
.gth__main .gth__wrap { height: 78px; transition: height .2s ease; }
.gth.is-stuck .gth__main { box-shadow: 0 4px 20px rgba(20,40,60,.10); }
.gth.is-stuck .gth__main .gth__wrap { height: 62px; }

.gth__logo { display: block; flex-shrink: 0; line-height: 0; }
.gth__logo img { width: 232px; height: auto; display: block; transition: width .2s ease; }
.gth.is-stuck .gth__logo img { width: 190px; }

/* ------------------------------------------------------------------ ნავიგაცია */
.gth-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.gth-nav__item { position: relative; }

.gth-nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--gth-ink) !important;
  transition: background .16s ease, color .16s ease;
}
.gth-nav__link:hover { background: #f2f6fa; color: var(--gth-blue) !important; }
.gth-nav__link.is-active { color: var(--gth-red) !important; }
.gth-nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--gth-red);
}
.gth-nav__chev { width: 11px; height: 11px; opacity: .55; transition: transform .18s ease; }
.gth-nav__item:hover .gth-nav__chev { transform: rotate(180deg); }

/* ჩამოსაშლელი */
.gth-nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 208px;
  padding-top: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.gth-nav__item:hover .gth-nav__sub,
.gth-nav__item:focus-within .gth-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.gth-nav__sub-in {
  background: #fff; border: 1px solid var(--gth-line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20,40,60,.14);
  padding: 7px; display: flex; flex-direction: column;
}
.gth-nav__sub-in a {
  padding: 9px 12px; border-radius: 7px; font-size: 14px; line-height: 1.35;
  color: var(--gth-ink) !important; white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.gth-nav__sub-in a:hover { background: #f2f6fa; color: var(--gth-blue) !important; }
.gth-nav__sub-in a.is-active { color: var(--gth-red) !important; }

/* ბოლო პუნქტების ჩამოსაშლელი მარჯვნიდან გაესწოროს, რომ ეკრანს არ გასცდეს */
.gth-nav__item:nth-last-child(-n+2) .gth-nav__sub { left: auto; right: 0; }

/* ----------------------------------------------------------------- ღილაკები */
.gth__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.gth__icon {
  width: 40px; height: 40px; border: 1px solid var(--gth-line); border-radius: 9px;
  background: #fff; color: var(--gth-ink); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.gth__icon:hover { background: #f2f6fa; border-color: #cfdae5; color: var(--gth-blue); }
.gth__icon svg { width: 18px; height: 18px; display: block; }

/* ------------------------------------------------------------------- ძებნა */
.gth__search {
  display: none;
  border-bottom: 1px solid var(--gth-line);
  background: #fbfcfd;
}
.gth__search.is-open { display: block; }
.gth__search .gth__wrap { height: 74px; gap: 10px; }
.gth__search form { display: flex; width: 100%; gap: 10px; }
.gth__search input[type="text"] {
  flex: 1; height: 46px; padding: 0 16px; font-size: 15px; font-family: inherit;
  color: var(--gth-ink); background: #fff;
  border: 1px solid #d7dfe7; border-radius: 9px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gth__search input[type="text"]:focus { border-color: var(--gth-blue); box-shadow: 0 0 0 3px rgba(38,105,162,.13); }
.gth__search button {
  height: 46px; padding: 0 26px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--gth-blue); color: #fff; font: 700 15px inherit;
  font-family: inherit; transition: background .15s ease;
}
.gth__search button:hover { background: #1f5686; }

/* ------------------------------------------------------- burger (მობილური) */
.gth__burger { display: none; }

.gthm {
  position: fixed; top: 0; right: -100%; z-index: 9999;
  width: 88%; max-width: 340px; height: 100vh; height: 100dvh;
  background: #fff; box-shadow: -6px 0 34px rgba(15,25,40,.20);
  display: flex; flex-direction: column;
  transition: right .32s ease;
}
.gthm.is-open { right: 0; }
.gthm__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--gth-line); flex-shrink: 0;
}
.gthm__head img.logo { width: 158px; height: auto; display: block; }
.gthm__close {
  width: 36px; height: 36px; border: 0; background: #f2f6fa; border-radius: 9px;
  cursor: pointer; color: var(--gth-ink); display: flex; align-items: center; justify-content: center;
}
.gthm__close svg { width: 15px; height: 15px; }
.gthm__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 26px; }

/* ძებნა პანელის თავში (მობილურზე ჰედერში ღილაკი აღარაა) */
.gthm__search {
  display: flex; align-items: center; gap: 9px;
  margin: 8px 18px 14px; padding: 0 14px; height: 44px;
  background: #f2f6fa; border: 1px solid var(--gth-line); border-radius: 10px;
}
.gthm__search svg { width: 16px; height: 16px; color: var(--gth-mute); flex-shrink: 0; }
.gthm__search input[type="text"] {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 14.5px; font-family: inherit; color: var(--gth-ink);
}

.gthm-nav__item { position: relative; border-bottom: 1px solid #f0f3f6; }
.gthm-nav__link {
  display: block; padding: 14px 52px 14px 18px; font-size: 15.5px; font-weight: 600;
  color: var(--gth-ink) !important;
}
.gthm-nav__item.is-active > .gthm-nav__link { color: var(--gth-red) !important; }
.gthm-nav__toggle {
  position: absolute; top: 4px; right: 6px; width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer; color: var(--gth-mute);
  display: flex; align-items: center; justify-content: center;
}
.gthm-nav__toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.gthm-nav__item.is-open .gthm-nav__toggle svg { transform: rotate(180deg); }
.gthm-nav__sub { display: none; padding: 2px 0 10px; background: #fafcfd; }
.gthm-nav__item.is-open .gthm-nav__sub { display: block; }
.gthm-nav__sub a {
  display: block; padding: 10px 18px 10px 32px; font-size: 14.5px;
  color: var(--gth-mute) !important;
}
.gthm-nav__sub a:hover { color: var(--gth-blue) !important; }

.gthm__extra { padding: 16px 18px 0; }
.gthm__extra-t { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #9aa7b4; margin-bottom: 8px; }
.gthm__extra a { display: block; padding: 9px 0; font-size: 14.5px; color: var(--gth-mute) !important; }
/* ქვედა მენიუს ბლოკი bootstrap-ის d-flex/align-items utility-ებით მოდის
   და სათაურები <h2>-ია — პანელისთვის ვასწორებთ */
.gthm__extra .menu_block { display: block !important; align-items: stretch !important; }
.gthm__extra .menu_title { font-size: 14.5px; font-weight: 400; line-height: 1.35; margin: 0; color: inherit; }

.gthm__foot { padding: 16px 18px 4px; border-top: 1px solid var(--gth-line); margin-top: 14px; }
.gthm__foot .gth-lang { gap: 6px; }
.gthm__foot .gth-lang a { background: #f2f6fa; color: var(--gth-mute) !important; padding: 7px 14px; font-size: 13px; }
.gthm__foot .gth-lang a.is-active { background: var(--gth-red); color: #fff !important; }
.gthm__foot .gth-soc { margin-top: 14px; }
.gthm__foot .gth-soc a { width: 34px; height: 34px; border-radius: 8px; background: #f2f6fa; color: var(--gth-ink) !important; }
.gthm__foot .gth-soc a svg { width: 16px; height: 16px; }

.gth-backdrop {
  position: fixed; inset: 0; z-index: 9998; background: rgba(15,25,40,.45);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s;
}
.gth-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- რესპონსივი */
/* ნავიგაცია არასდროს უნდა გადაფაროს მარჯვენა ღილაკებს — ვიწროვდება ეტაპობრივად */
@media (max-width: 1399px) {
  .gth-nav__link { padding: 10px 10px; font-size: 14px; }
  .gth__logo img { width: 212px; }
}

@media (max-width: 1280px) {
  .gth__wrap { padding: 0 18px; gap: 12px; }
  .gth-nav__link { padding: 9px 8px; font-size: 13px; gap: 4px; }
  .gth-nav__chev { width: 10px; height: 10px; }
  .gth__logo img { width: 190px; }
}

@media (max-width: 1120px) {
  .gth-nav__link { padding: 9px 6px; font-size: 12.5px; }
  .gth__logo img { width: 168px; }
}

@media (max-width: 991px) {
  .gth__top .gth__wrap { height: 34px; }
  .gth__date { font-size: 12px; }
  .gth__top .gth-soc { display: none; }
  .gth__main .gth__wrap { height: 62px; }
  .gth.is-stuck .gth__main .gth__wrap { height: 56px; }
  .gth__logo img { width: 170px; }
  .gth.is-stuck .gth__logo img { width: 150px; }
  .gth-nav { display: none; }
  .gth__burger { display: flex; }
  .gth__top-search { display: none; }
  .gth__search .gth__wrap { height: 66px; }
  .gth__search button { padding: 0 18px; }
}

@media (max-width: 575px) {
  .gth__wrap { padding: 0 14px; }
  .gth__logo img { width: 148px; }
  .gth__top-right .gth-lang a { padding: 4px 7px; font-size: 12px; }
}
