/*
Theme Name: BAU Hukuk İlan Theme
Theme URI: https://bauhukukmezunlardernegi.com
Author: BAU Hukuk
Description: BAU Hukuk Mezunlar Derneği görünümüne yakın ilan odaklı WordPress teması.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bauhukuk-ilan-theme
*/

:root {
  --bh-primary: #03264b;
  --bh-primary-2: #0b467f;
  --bh-bg: #f1f5fb;
  --bh-text: #1f334d;
  --bh-muted: #5e7085;
  --bh-white: #ffffff;
  --bh-border: #d8e2ef;
  --bh-radius: 14px;
  --bh-shadow: 0 10px 28px rgba(12, 37, 66, 0.08);
  --bh-wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  background: var(--bh-bg);
}

body {
  color: var(--bh-text);
  background: var(--bh-bg);
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#content {
  flex: 1 0 auto;
}

a {
  color: var(--bh-primary-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.main-nav a,
.main-nav a:hover,
.main-nav a:focus,
.main-nav a:active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bh-wrap {
  width: min(100% - 28px, var(--bh-wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(3, 38, 75, 0.98);
  color: var(--bh-white);
  box-shadow: 0 2px 12px rgba(7, 25, 46, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.custom-logo-link,
.site-logo {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.custom-logo-link img,
.site-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-title {
  margin: 0;
  color: #fff;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.site-title a {
  color: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav li a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border-bottom: 0;
  transition: background 0.2s ease;
}

.main-nav li a:hover,
.main-nav .current-menu-item > a {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.bh-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  transition: all 0.2s ease;
}

.bh-header-cta:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.bh-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: transparent;
  width: 22px;
  height: 20px;
  padding: 0;
}

.bh-nav-toggle-line {
  width: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(3, 38, 75, 0.95) 28%, rgba(3, 38, 75, 0.82) 100%),
    url("https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=1920,fit=crop/m6LwgEK58LhlaV06/abundant-collection-antique-books-wooden-shelves-generated-by-ai-AVL1b44eRgC7gJD8.jpg") center/cover no-repeat;
  padding: 26px 0 22px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.hero-main h1 {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-main p {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 640px;
  color: #e0ecfb;
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta,
.hero-ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
}

.hero-cta {
  background: #fff;
  color: var(--bh-primary);
}

.hero-ghost-cta {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
}

.hero-cta:hover,
.hero-ghost-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}


.entry-content {
  padding: 20px 0;
  flex: 1 0 auto;
}

.bh-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  color: var(--bh-primary);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.bh-section-head p {
  margin: 0;
  color: var(--bh-muted);
  font-size: 13px;
}

.content-card {
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 14px;
  box-shadow: var(--bh-shadow);
}

.bh-ilan-single-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bh-list-shell {
  padding: 18px;
  max-width: 1000px;
  margin: 16px auto 22px;
}

.bh-auth-hero {
  background: linear-gradient(108deg, rgba(3, 38, 75, 0.95) 18%, rgba(3, 38, 75, 0.83) 100%);
  color: #fff;
  padding: 12px 0 10px;
}

.bh-auth-hero h1 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.06;
}

.bh-auth-hero p {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: 14px;
  color: #d7e8fc;
}

.bh-auth-entry {
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.entry-content.bh-auth-entry {
  padding-top: 16px;
  padding-bottom: 42px;
}

.bh-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 740px;
  margin: 0 auto;
}


.bh-auth-inline {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--bh-muted);
}

.bh-auth-inline a {
  font-weight: 600;
}

.bh-auth-legal {
  margin-left: auto;
  color: var(--bh-primary-2);
}

.bh-solid-link,
.bh-outline-link {
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.bh-solid-link {
  background: var(--bh-primary);
  color: #fff;
}

.bh-solid-link:hover {
  text-decoration: none;
  background: var(--bh-primary-2);
}

.bh-outline-link {
  border: 1px solid #bfd2e7;
  color: var(--bh-primary);
  background: #f7fbff;
}

.bh-outline-link:hover {
  text-decoration: none;
  background: #edf5ff;
}

.bh-panel-shell {
  padding-top: 4px;
}

.site-footer {
  margin-top: auto;
  background: var(--bh-primary);
  color: #c5d8ef;
  padding: 24px 0 20px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer-inner {
  padding: 24px 0 20px;
}

.bh-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bh-footer-brand {
  display: grid;
  gap: 2px;
}

.bh-footer-brand strong {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}

.bh-footer-brand span {
  font-size: 16px;
  color: #b7cae0;
}

.bh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bh-footer-links a {
  color: #dbe9fb;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.bh-footer-links a:hover {
  text-decoration: none;
  text-decoration: underline;
}

.bh-footer-copy {
  margin: 8px 0 0;
  font-size: 11px;
  color: #8aa4bd;
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 44px;
    padding: 6px 0;
    flex-wrap: wrap;
  }

  .bh-nav-toggle {
    display: inline-flex;
    width: 34px;
    height: 30px;
    cursor: pointer;
  }

  .bh-nav-toggle-line {
    width: 14px;
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
  }

  .main-nav.is-open {
    max-height: 400px;
    opacity: 1;
  }

  .main-nav-inner {
    width: 100%;
    padding: 12px 16px 16px;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border-radius: 8px;
    transition: background 0.15s ease;
  }

  .main-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .bh-header-cta {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    margin-top: 4px;
    text-align: center;
    justify-content: center;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-main h1 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .hero-main p {
    margin-top: 11px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .bh-wrap {
    width: min(100% - 24px, var(--bh-wrap));
  }

  .site-title {
    max-width: 180px;
    white-space: normal;
    overflow: visible;
    font-size: 11px;
  }

  .content-card,
  .bh-list-shell {
    padding: 14px;
  }

  .bh-auth-hero {
    padding: 14px 0 12px;
  }

  .bh-auth-entry {
    margin-top: 10px;
  }

  .bh-footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .bh-footer-brand strong {
    font-size: 14px;
  }

  .bh-footer-links {
    gap: 12px;
  }

  .bh-footer-links a {
    font-size: 12px;
  }

  .bh-footer-copy {
    font-size: 10px;
  }

  .site-footer {
    padding: 18px 0 14px;
  }
}

@media (max-width: 480px) {
  .site-title {
    display: none;
  }
}
