/* Lohusuu Kool – Complete CSS */

:root {
  --brand: #0b6aa2;
  --brand-dark: #084e78;
  --accent: #f5b301;
  --bg: #f7fafc;
  --text: #0f172a;
  --muted: #6b7280;
  --white: #ffffff;
  --surface: #ffffff;
  --ring: rgba(11,106,162,0.15);
  --radius: 12px;
  --pill: 44px;
}

/* === GLOBAL STYLES === */
html, body {
  color: var(--text);
  background: var(--bg);
}

/* EEMALDAB ÜLELIIGSE RUUMI PÄISE ÜLEVALT */
html {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* WordPress admin bar kohandused */
.admin-bar html {
  margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar html {
    margin-top: 46px !important;
  }
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* === ICONS === */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

/* === NOTICE BAR === */
.notice-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b6aa2;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.notice-bar .container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.notice-bar button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.notice-bar button:hover {
  background: rgba(255,255,255,0.25);
}

.notice-bar .icon {
  width: 18px;
  height: 18px;
}

/* === KOMPAKTNE PÄIS === */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 0 !important;
}

/* Admin bar olemas */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Topbar: logo vasakul, actions paremal */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  min-height: 124px;
}

/* === BRAND/LOGO === */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand.brand-logo-only {
  align-items: center;
}

.logo, .lhk-logo-img {
  height: 100px;
  width: auto;
  max-width: 280px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #0b6aa2;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
  object-fit: contain;
}

.logo-only {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 20px;
  border-radius: 10px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.brand .tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0 0;
}

/* === ACTIONS RIBA === */
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* === OTSING - ELEGANTNE HELE DISAIN === */
.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  min-width: 200px;
  max-width: 400px;
  flex: 1 1 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 16px 0 42px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.search:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.search:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.search:focus-within .icon {
  color: #6366f1;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  height: 100%;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
}

.search input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* === KEELEVALIK - HELE MINIMALISTLIK === */
.lang-switch {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lang-switch:hover {
  border-color: #d1d5db;
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.lang-switch:active {
  background: #f1f5f9;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lang-switch .icon {
  color: #6b7280;
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
}

.lang-switch:hover .icon {
  color: #4f46e5;
}

.lang-switch .lang-code {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #374151;
}

.lang-switch .caret {
  font-size: 11px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.lang-switch:hover .caret {
  color: #6b7280;
}

/* === CTA NUPP - SOPHISTICATED HELE === */
.cta {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  white-space: nowrap;
  min-width: fit-content;
}

.cta:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.cta .icon {
  color: #6b7280;
  width: 14px;
  height: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cta:hover .icon {
  color: var(--brand);
  transform: scale(1.05);
}

/* === PRIMARY NAVIGATION === */
nav.primary {
  border-top: 1px solid #f0f2f5;
  padding: 6px 0;
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.menu a .icon {
  width: 13px;
  height: 13px;
  color: #0b6aa2;
  opacity: .9;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu a[aria-current="page"] {
  background: #eef6fb;
  color: var(--brand-dark);
  text-decoration: none;
}

/* === FOCUS STATES === */
.search input:focus,
.lang-switch:focus,
.cta:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 6px 0;
  }

  .actions {
    justify-content: stretch;
  }

  .search {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 32px;
  }

  .topbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    flex-shrink: 0;
  }

  .logo, .lhk-logo-img {
    height: 50px;
    max-width: 150px;
  }

  .logo-only {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .site-title {
    font-size: 16px;
  }

  .brand .tagline {
    display: none;
  }

  .actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .search {
    height: 32px;
    min-width: 120px;
    max-width: 180px;
    padding: 0 12px 0 34px;
    border-radius: 6px;
  }

  .search .icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .search input {
    font-size: 13px;
  }

  .lang-switch {
    display: none; /* Peidame keelevalik mobiilis */
  }

  .cta {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .cta .icon {
    width: 12px;
    height: 12px;
  }

  /* === HAMBURGER MENÜÜ === */
  nav.primary {
    border-top: 1px solid #f0f2f5;
    padding: 0;
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    color: var(--brand);
  }

  .mobile-menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
    height: 14px;
    transition: transform 0.3s ease;
  }

  .mobile-menu-toggle .menu-line {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    border-bottom: 1px solid #e5e7eb;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: white;
    border-radius: 0;
    transition: all 0.2s ease;
  }

  .menu a:hover,
  .menu .current-menu-item > a,
  .menu a[aria-current="page"] {
    background: #f0f9ff;
    color: var(--brand);
    padding-left: 24px;
  }

  .menu a .icon {
    width: 16px;
    height: 16px;
    color: var(--brand);
    opacity: 0.8;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 60px;
    padding: 6px 0;
  }

  .logo, .lhk-logo-img {
    height: 40px;
    max-width: 120px;
  }

  .logo-only {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .search {
    height: 30px;
    min-width: 100px;
    max-width: 140px;
    padding: 0 10px 0 30px;
    font-size: 12px;
  }

  .search .icon {
    left: 8px;
    width: 12px;
    height: 12px;
  }

  .cta {
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .cta .icon {
    width: 10px;
    height: 10px;
  }

  .cta .cta-text-full {
    display: none;
  }

  .cta .cta-text-short {
    display: inline;
  }
}

@media (max-width: 420px) {
  .search {
    min-width: 80px;
    max-width: 100px;
  }

  .cta {
    padding: 0 6px;
    font-size: 9px;
  }
}

/* Desktop - peidame hamburger nupu */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }

  .menu {
    display: flex !important;
    flex-direction: row !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
  }

  .menu li {
    border-bottom: none !important;
  }

  .menu a {
    background: transparent !important;
  }
}

/* Alternatiivne lühendatud tekst väikestele ekraanidele */
@media (max-width: 380px) {
  .cta .cta-text-full {
    display: none;
  }

  .cta .cta-text-short {
    display: inline;
  }
}

@media (min-width: 381px) {
  .cta .cta-text-full {
    display: inline;
  }

  .cta .cta-text-short {
    display: none;
  }
}

/* === FORCED MARGINS === */
#page-container {
  padding-top: 0 !important;
}

.admin-bar #page-container {
  padding-top: 0 !important;
}

body:not(.et-tb) #main-content .container,
body:not(.et-tb-has-header) #main-content .container {
  padding-top: 0 !important;
}

.et_pb_section {
  margin-top: 0 !important;
}

/* === CONTENT SECTIONS LAYOUT === */
.lhk-content-sections {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin: 55px 0 2rem 0 !important;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 30%, #e2e8f0 70%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* === SECTIONS === */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #111827;
}

/* === NOTICES === */
.lhk-notices {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  margin: 0rem 0;
}

.lhk-notices .section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}

.lhk-notices__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Paranda wpautop probleemid */
.lhk-notices__inner p:empty,
.notice-card p:empty,
.lhk-notices__inner br,
.lhk-notices p:empty,
.lhk-notices br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.notice-card {
  display: block !important;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: all 0.15s ease;
  text-decoration: none;
}

.notice-card:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 6px rgba(0,115,170,0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.notice-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-height: 50px;
}

.notice-link:hover {
  color: inherit;
  text-decoration: none;
}

/* Tunnuspilt */
.notice-thumb {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.notice-card:hover .notice-thumb img {
  transform: scale(1.05);
}

.notice-thumb:empty::before {
  content: "📄";
  font-size: 1.2rem;
  opacity: 0.4;
}

/* Sisu */
.notice-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notice-date {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  min-width: 70px;
}

.date-icon {
  color: #9ca3af;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.notice-title {
  font-weight: 500;
  color: #1f2937;
  line-height: 1.3;
  flex: 1;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid layout */
.layout-grid .lhk-notices__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.layout-grid .notice-link {
  flex-direction: row !important;
  align-items: center;
  text-align: left;
  padding: 0.75rem;
  min-height: 50px;
}

.layout-grid .notice-thumb {
  width: 45px;
  height: 45px;
}

.layout-grid .notice-content {
  flex-direction: row;
  align-items: center;
  text-align: left;
}

.layout-grid .notice-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* === QUICK LINKS === */
.lhk-quick-links {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.lhk-quick-links .section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}

.lhk-quick-links__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
}

.quick-link-item:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #374151;
}

.quick-link-item .icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
}

.quick-link-item .title {
  font-weight: 500;
  font-size: 14px;
}

/* === LOAD MORE BUTTON === */
.lhk-notices__load-more {
  margin-top: 1.5rem;
  text-align: center;
}

.lhk-load-more-btn {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lhk-load-more-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.lhk-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lhk-load-more-btn .btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lhk-load-more-btn .icon.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === FOOTER === */
.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 60px;
}

.footer-main {
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.footer-brand .brand-name {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.footer-tagline {
  font-weight: 600;
  color: #e5e7eb;
  margin: 0 0 12px 0;
}

.footer-description {
  margin: 0;
  line-height: 1.6;
}

.footer-section h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #6b7280;
}

.contact-item .content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item .label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 500;
}

.contact-item .value {
  color: #d1d5db;
  text-decoration: none;
}

.contact-item .value:hover {
  color: #2563eb;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  margin: 0;
  font-size: 14px;
}

.footer-links-bottom {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-bottom a {
  font-size: 14px;
  color: #d1d5db;
  text-decoration: none;
}

.footer-links-bottom a:hover {
  color: #2563eb;
}

/* === MODAL === */
.lhk-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lhk-modal[hidden] {
  display: none;
}

.lhk-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
}

.lhk-modal__dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.lhk-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.lhk-modal__close:hover {
  background: rgba(0,0,0,0.2);
}

.lhk-modal__content {
  padding: 2rem;
}

.lhk-modal__loader {
  width: 48px;
  height: 48px;
  margin: 40px auto;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  border-top-color: var(--brand);
  animation: lhkspin 1s linear infinite;
}

@keyframes lhkspin {
  to { transform: rotate(360deg); }
}

/* === RESPONSIVE CONTENT === */
@media (max-width: 768px) {
  .lhk-content-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .notice-link {
    padding: 0.6rem;
    gap: 0.6rem;
    min-height: 45px;
  }

  .notice-thumb {
    width: 40px;
    height: 40px;
  }

  .notice-title {
    font-size: 0.9rem;
  }

  .notice-date {
    font-size: 0.75rem;
    min-width: 60px;
  }

  .date-icon {
    width: 12px;
    height: 12px;
  }

  .layout-grid .lhk-notices__inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .lhk-content-sections {
    padding: 1rem;
  }

  .lhk-notices,
  .lhk-quick-links {
    padding: 1rem;
  }

  .notice-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .notice-date {
    min-width: auto;
    order: -1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .notice-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}

/* === GRID LAYOUT FIX - teated ja kiirlingid sama kõrgusega === */

/* Grid container */
.lhk-content-sections {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 2rem !important;
  align-items: stretch !important; /* Kõik lapsed sama kõrgusega */
}

/* Sektsioonid - sama kõrgus */
.lhk-notices,
.lhk-quick-links {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important; /* Täida grid ala */
  min-height: 400px !important; /* Minimaalne kõrgus */
}

/* Sisu võtab kogu vaba ruumi */
.lhk-notices__inner,
.lhk-quick-links__grid {
  flex: 1 !important; /* Võta ülejäänud ruum */
  display: flex !important;
  flex-direction: column !important;
}

/* Responsive - mobiilis üks veerg */
@media (max-width: 768px) {
  .lhk-content-sections {
    grid-template-columns: 1fr !important; /* Üks veerg */
  }

  .lhk-notices,
  .lhk-quick-links {
    min-height: auto !important; /* Automaatne kõrgus mobiilis */
  }
}

/* === SLAIDER MOBIILIS - ei jää päise alla === */
@media (max-width: 768px) {
  .lhk-slider-section {
    margin-top: 70px !important; /* Päise kõrgus + veidi ruumi */
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 560px) {
  .lhk-slider-section {
    margin-top: 60px !important; /* Väiksem margin väiksematel ekraanidel */
  }
}

@media (max-width: 420px) {
  .lhk-slider-section {
    margin-top: 55px !important; /* Veel väiksem margin kõige väiksematel */
  }
}

/* Admin bar olemas - lisa lisaruumi */
.admin-bar .lhk-slider-section {
  margin-top: 102px !important; /* 70px + 32px admin bar */
}

@media screen and (max-width: 782px) {
  .admin-bar .lhk-slider-section {
    margin-top: 116px !important; /* 70px + 46px admin bar mobiilis */
  }
}

@media screen and (max-width: 560px) {
  .admin-bar .lhk-slider-section {
    margin-top: 106px !important; /* 60px + 46px admin bar */
  }
}

@media screen and (max-width: 420px) {
  .admin-bar .lhk-slider-section {
    margin-top: 101px !important; /* 55px + 46px admin bar */
  }
}

/* Sticky header jaoks - dünaamiline tuvastamine */
.site-header.sticky + .lhk-slider-section,
.site-header[data-sticky="true"] + .lhk-slider-section {
  margin-top: 70px !important;
}

/* Kui slaider on otse body sees (fallback automaatne) */
body > .lhk-slider-section {
  margin-top: 70px !important;
}

@media (max-width: 560px) {
  body > .lhk-slider-section {
    margin-top: 60px !important;
  }
}

@media (max-width: 420px) {
  body > .lhk-slider-section {
    margin-top: 55px !important;
  }
}
