/*/
Theme Name: Jaunpils Municipality
Author: Rodrigo Amatnieks
Version: 1.0
Description: Custom WordPress theme converted from static HTML.
*/


*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;height:100%}
@media(min-width:861px){html{zoom:1.1}}
body{font-family:'DM Sans',sans-serif;color:#111827;background:#ffffff;overflow-x:hidden;display:flex;flex-direction:column;min-height:100vh}
h1,h2,h3,h4{font-family:'DM Sans',sans-serif;font-weight:700;}
a{text-decoration:none;color:inherit}

/* ── GRAIN OVERLAY ── */
.grain{position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.02;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ── TOP UTILITY BAR ── */
.header-topbar{
  position:fixed;
  top:0;left:0;width:100%;
  z-index:1001;
  background:#1f2937;
  height:36px;
  display:flex;
  align-items:center;
}
.admin-bar .header-topbar{top:32px}
.admin-bar .header{top:32px}
.admin-bar .hero{margin-top:96px}
.admin-bar .subpage-hero{margin-top:96px}
@media screen and (max-width:782px){
  .admin-bar .header{top:46px}
  .admin-bar .hero{margin-top:110px}
  .admin-bar .subpage-hero{margin-top:110px}
}
.header-topbar-inner{
  max-width:1280px;margin:0 auto;padding:0 32px;
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
}
.htb-left,.htb-right{
  display:flex;align-items:center;gap:10px;
  font-family:'DM Sans',sans-serif;font-size:12px;color:rgba(255,255,255,.6);
}
.htb-right a{
  display:flex;align-items:center;gap:5px;
  color:rgba(255,255,255,.6);text-decoration:none;
  transition:color .2s;
}
.htb-right a:hover{color:#fff}
.htb-divider{width:1px;height:14px;background:rgba(255,255,255,.2)}

/* ── MAIN HEADER ── */
.header{
  position:fixed;
  top:0;left:0;width:100%;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

.header-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 32px;height:64px;
}

.logo{display:flex;align-items:center;gap:10px;text-decoration:none;}

.logo-img-wrap{
  background:#f4f6f8;border-radius:50%;
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}

.logo-text{
  font-size:15px;font-weight:700;letter-spacing:.2px;
  color:#111827;line-height:1.15;
}

.logo-sub{
  font-size:10px;letter-spacing:1.5px;text-transform:uppercase;
  color:#6b7280;margin-top:3px;
}

.nav{display:flex;align-items:center;gap:4px;}

.nav-link{
  position:relative;
  font-family:'DM Sans',sans-serif;
  font-size:13px;font-weight:600;
  color:#374151;
  text-decoration:none;
  padding:8px 12px;
  border-radius:0;
  transition:color .2s,background .2s;
}

.nav-link:hover{color:#111827;background:#f4f6f8;}

.nav-link::after{display:none;}

/* "Scrolled" class no longer needed — header is always solid */
.header.scrolled{background:#fff;}

/* Static pages / single posts — same styling (already solid) */
.single .header,.blog .header,.archive .header,.search .header,.page .header{
  background:#fff;border-bottom:1px solid #e5e7eb;
}
.single .nav-link,.blog .nav-link,.archive .nav-link,.search .nav-link,.page .nav-link{color:#374151;}
.single .mobile-toggle span,.blog .mobile-toggle span,.archive .mobile-toggle span,
.search .mobile-toggle span,.page .mobile-toggle span{background:#111827;}

/* NAV DROPDOWN */

.nav-item{
  position:relative;
}

.nav-has-drop > .nav-link{
  display:flex;
  align-items:center;
  gap:4px;
}

.nav-drop-arrow{
  flex-shrink:0;
  transition:transform .2s ease;
  opacity:.7;
}

.nav-item:hover .nav-drop-arrow{
  transform:rotate(180deg);
}

.nav-dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  min-width:200px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:2px;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  padding:14px 0 6px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .15s ease;
}

.nav-item:hover .nav-dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.nav-dropdown a{
  display:block;
  padding:9px 18px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:500;
  color:#374151;
  transition:background .15s, color .15s;
}

.nav-dropdown a:hover{
  background:#f0fdf4;
  color:#65a30d;
}

/* Info card with image on top */
.pm-info-card--img{
  padding:0;
  overflow:hidden;
  border-radius:0 !important;
  background:none !important;
  border:none !important;
  box-shadow:none !important;
}
.pm-card-img{
  display:block;
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:0;
}
.pm-card-body{
  padding:16px 18px;
}
.pm-info-card--img h4{
  margin-bottom:8px;
}

/* Person card with portrait image */
.pm-info-card--person{
  padding:0;
  overflow:hidden;
  border-radius:0 !important;
}
.pm-person-img{
  display:block;
  width:100%;
  height:380px;
  object-fit:cover;
  object-position:center;
}
.pm-info-card--person .pm-card-body{
  padding:14px 18px 16px;
}
.pm-person-dates{
  font-size:12px;
  font-weight:400;
  color:#6b7280;
  margin-left:6px;
}

/* Tourism card map button */
.tp-card{ cursor:pointer; }
.tp-map-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:10px;
  font-size:12px;
  font-weight:600;
  color:#65a30d;
}
.tp-card:hover .tp-map-btn{ text-decoration:underline; }

/* Map modal */
.map-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index:9999;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.map-modal--open{ display:flex; }
.map-modal-box{
  background:#fff;
  width:100%;
  max-width:700px;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  display:flex;
  flex-direction:column;
}
.map-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid #e5e7eb;
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  font-weight:700;
  color:#111827;
}
.map-modal-close{
  background:none;
  border:none;
  cursor:pointer;
  font-size:18px;
  color:#6b7280;
  padding:0 4px;
  line-height:1;
}
.map-modal-close:hover{ color:#111827; }
.map-modal-frame{
  width:100%;
  height:420px;
  border:none;
}
.map-modal-footer{
  padding:12px 18px;
  border-top:1px solid #e5e7eb;
  display:flex;
  justify-content:flex-end;
}
.map-modal-gmaps-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:600;
  color:#fff;
  background:#65a30d;
  padding:8px 16px;
  border-radius:4px;
  text-decoration:none;
}
.map-modal-gmaps-btn:hover{ background:#4d7c0f; }
@media(max-width:600px){
  .map-modal-frame{ height:280px; }
}

/* Nav item with no click (Par mums label) */
.nav-link--noclick{
  cursor:default;
  user-select:none;
}

/* Wide 3-column dropdown for Par mums */
.nav-dropdown--wide{
  display:flex;
  gap:0;
  min-width:560px;
  left:50%;
  transform:translateX(-50%);
  padding:0;
}
.nav-dd-group{
  flex:1;
  padding:16px 0 12px;
  border-right:1px solid #f3f4f6;
}
.nav-dd-group:last-child{border-right:none}
.nav-dd-heading{
  font-family:'DM Sans',sans-serif;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.2px;
  color:#9ca3af;
  padding:0 18px 8px;
}
.nav-dropdown--wide a{
  padding:7px 18px;
}

/* Contacts nav link — green button */
.nav-link-contact{
  background:#65a30d;
  color:#fff !important;
  padding:8px 16px;
  border-radius:0;
  transition:background .2s ease !important;
}

.nav-link-contact:hover{
  background:#4d7c0f !important;
}

.nav-link-contact::after{
  display:none !important;
}

/* Logo image wrapper */
.logo-img-wrap{
  background:#f4f6f8;
  border-radius:50%;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

/* Mobile menu close button */
.mobile-menu-close{
  position:absolute;
  top:24px;
  right:24px;
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
  color:#6b7280;
  line-height:1;
}

/* ═══ SUBPAGE HERO ═══ */

.subpage-hero{
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
  padding:28px 40px;
  margin-top:64px;
}

.subpage-hero-inner{
  max-width:1200px;
  margin:0 auto;
  text-align:left;
}

.subpage-breadcrumb{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#9ca3af;
  margin-bottom:10px;
}

.subpage-breadcrumb a{
  color:#6b7280;
  text-decoration:none;
  transition:color .2s;
}

.subpage-breadcrumb a:hover{
  color:#65a30d;
}

.subpage-breadcrumb svg{
  color:#d1d5db;
  flex-shrink:0;
}

.subpage-hero h1{
  font-size:clamp(22px,3vw,34px);
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin:0;
  padding-left:16px;
  border-left:4px solid #65a30d;
  text-align:left;
  letter-spacing:-.3px;
}

.subpage-hero p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#6b7280;
  margin:8px 0 0 20px;
  line-height:1.6;
}

.subpage-main{
  padding:72px 40px 72px;
}

.subpage-inner{
  max-width:1200px;
  margin:0 auto;
}

.subpage-section-head{
  margin-bottom:48px;
}

/* ═══ TOURISM PAGE GRID ═══ */

.tourism-page-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}

.tp-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:0;
  overflow:hidden;
  transition:box-shadow .2s, transform .2s;
}

.tp-card:hover{
  box-shadow:0 6px 24px rgba(0,0,0,.10);
  transform:translateY(-3px);
}

.tp-card-img{
  width:100%;
  aspect-ratio:4/3;
  background:#f4f6f8 center/cover no-repeat;
}

.tp-card-body{
  padding:18px 20px 22px;
}

.tp-card-year{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:700;
  color:#65a30d;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}

.tp-card-body h3{
  font-size:17px;
  font-weight:700;
  color:#111827;
  margin-bottom:8px;
  line-height:1.3;
}

.tp-card-body p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#6b7280;
  line-height:1.65;
  margin:0;
}

/* Tourism contact strip on subpage */
.subpage-contact-strip{
  margin-top:64px;
  background:#f0fdf4;
  border:1px solid #d1fae5;
  border-radius:0;
  padding:28px 32px;
}

.subpage-contact-strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.subpage-contact-label{
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#65a30d;
  margin-bottom:6px;
}

.subpage-contact-name{
  font-size:17px;
  font-weight:700;
  color:#111827;
  margin-bottom:2px;
}

.subpage-contact-role{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#6b7280;
}

.subpage-contact-links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.subpage-contact-links a{
  display:flex;
  align-items:center;
  gap:7px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#65a30d;
  transition:color .2s;
}

.subpage-contact-links a:hover{
  color:#4d7c0f;
}

/* ═══ TOURISM TEASER (front page) ═══ */

.tourism-teaser-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.tt-card{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  background-size:cover;
  background-position:center;
  border-radius:0;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  transition:transform .3s ease, box-shadow .3s ease;
}

.tt-card:hover{
  transform:scale(1.02);
  box-shadow:0 8px 28px rgba(0,0,0,.25);
}

.tt-card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}

.tt-card-body{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:20px 22px;
}

.tt-year{
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#86efac;
  margin-bottom:6px;
}

.tt-card-body h3{
  font-size:18px;
  font-weight:700;
  line-height:1.25;
  margin-bottom:6px;
}

.tt-card-body p{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:rgba(255,255,255,.8);
  line-height:1.5;
  margin:0;
}

/* "Skatīt vairāk" link used in section headers */
.section-more-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#65a30d;
  text-decoration:none;
  white-space:nowrap;
  transition:gap .2s ease, color .2s;
}

.section-more-link:hover{
  gap:10px;
  color:#4d7c0f;
}

/* ═══ CONTACT STRIP (front page) ═══ */

.contact-strip-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.cs-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:0;
  padding:22px 20px 24px;
}

.cs-card-head{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#6b7280;
  margin-bottom:14px;
}

.cs-card-addr{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  line-height:1.5;
  margin-bottom:14px;
}

.cs-card-name{
  font-size:16px;
  font-weight:700;
  color:#111827;
  margin-bottom:14px;
}

.cs-card-rows{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cs-row{
  display:flex;
  align-items:center;
  gap:7px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#374151;
  transition:color .2s;
}

.cs-row:hover{
  color:#65a30d;
}

.cs-hours{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.cs-hours > div{
  display:flex;
  justify-content:space-between;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#374151;
}

.cs-hours > div span:first-child{
  color:#6b7280;
}

.cs-card-emergency{
  border-color:#fee2e2;
  background:#fff5f5;
}

.cs-emergency-num{
  font-size:36px;
  font-weight:700;
  color:#dc2626;
  line-height:1;
  margin-bottom:8px;
  display:block;
  text-decoration:none;
  transition:opacity .2s;
}

.cs-emergency-num:hover{
  opacity:.8;
}

.cs-emergency-label{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#9ca3af;
  line-height:1.4;
}

/* MOBILE */

.mobile-toggle{
  display:none;
}

.mobile-menu{
  position:fixed;
  top:0;
  right:-100%;

  width:280px;
  height:100vh;

  background:#ffffff;

  z-index:2000;

  padding:120px 32px;

  display:flex;
  flex-direction:column;
  gap:28px;

  transition:right .35s ease;
}

.mobile-menu.active{
  right:0;
}

.mobile-menu .nav-link{
  color:#111827;
  font-size:18px;
}

@media(max-width:980px){

  .nav{
    display:none;
  }

  .mobile-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;

    background:none;
    border:none;

    cursor:pointer;
  }

  .mobile-toggle span{
    width:24px;
    height:2px;

    background:#fff;

    transition:background .3s ease;
  }

  .header.scrolled .mobile-toggle span{
    background:#111827;
  }

  .single .mobile-toggle span{
    background:#111827;
  }

  .header-inner{
    padding:18px 22px;
  }

}

/* ── MOBILE TOGGLE & MENU ── */
.mobile-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px}
.mobile-toggle span{width:22px;height:2px;background:#374151;border-radius:1px;transition:all .3s}
.mobile-menu{
  display:none;
  position:fixed;
  inset:0;
  top:64px;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(16px);
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  overflow-y:auto;
  z-index:999;
  padding:16px 0 32px;
}
.mobile-menu.active{display:flex}
.mobile-menu .nav-link{
  color:#111827;
  font-size:15px;
  font-weight:600;
  padding:11px 24px;
  border-radius:0;
  text-align:left;
  border-bottom:1px solid #f3f4f6;
}
.mobile-menu .nav-link-sub{
  font-size:13px;
  font-weight:500;
  color:#6b7280;
  padding:8px 24px 8px 36px;
  border-bottom:1px solid #f9fafb;
}
.mobile-menu .nav-link--noclick{
  color:#9ca3af;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:14px 24px 6px;
  border-bottom:none;
  font-weight:700;
}
.mobile-menu .nav-link:hover,.mobile-menu .nav-link-sub:hover{background:#f4f6f8}
.mobile-menu-close{position:absolute;top:16px;right:24px;background:none;border:none;font-size:24px;cursor:pointer;color:#6b7280}

/* Mobile menu accordion */
.mob-acc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 24px;
  background:none;
  border:none;
  border-bottom:1px solid #f3f4f6;
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  font-weight:600;
  color:#111827;
  cursor:pointer;
  text-align:left;
}
.mob-acc-btn:hover{background:#f4f6f8}
.mob-acc-arrow{
  font-size:16px;
  color:#9ca3af;
  transition:transform .2s;
  display:inline-block;
}
.mob-acc-btn--open .mob-acc-arrow{transform:rotate(90deg);color:#65a30d}
.mob-acc-body{
  display:none;
  flex-direction:column;
  background:#f9fafb;
}
.mob-acc-body--open{display:flex}
.mob-acc-body a{
  padding:10px 24px 10px 36px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:500;
  color:#374151;
  text-decoration:none;
  border-bottom:1px solid #f3f4f6;
}
.mob-acc-body a:hover{background:#f0fdf4;color:#65a30d}

@media(max-width:860px){
  .nav{display:none!important}
  .mobile-toggle{display:flex!important}
  .header-topbar{display:none!important}
  .header{top:0!important}
  body{padding-top:64px;overflow-x:hidden}

  /* Hero margins */
  .hero{margin-top:0!important}
  .subpage-hero{margin-top:0!important;padding:20px 20px 20px}
  .subpage-main{padding:32px 16px 48px}

  /* Breadcrumb — wrap on mobile */
  .subpage-breadcrumb{flex-wrap:wrap;gap:4px;font-size:11px}

  /* Sidebar layout — stack vertically */
  .subpage-with-sidebar{grid-template-columns:1fr!important;gap:16px}
  .subpage-sidebar{position:static!important}

  /* Prevent horizontal overflow everywhere */
  .subpage-inner,.subpage-main,.subpage-hero-inner,
  .section,.section-inner,.subpage-content{
    max-width:100%!important;
    overflow-x:hidden;
    box-sizing:border-box;
  }
  img,table,iframe{max-width:100%!important}

  /* Footer */
  .footer{width:100%!important;box-sizing:border-box}
  .footer-grid{grid-template-columns:1fr!important;gap:20px}

  /* Tourism overlay cards — stronger gradient + smaller text */
  .tt-card-overlay{
    background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.4) 55%,rgba(0,0,0,.1) 100%);
  }
  .tt-card-body{padding:12px 14px}
  .tt-card-body h3{font-size:14px;margin-bottom:4px}
  .tt-card-body p{font-size:12px}

  /* Tourism page grid — 1 column */
  .tourism-page-grid{grid-template-columns:1fr!important}

  /* Events — desktop layout scaled down for mobile */
  .events-wrap{padding:0}
  .event-card{
    width:100%!important;min-width:0!important;flex:none!important;
    margin-bottom:14px!important;
  }
  .event-meta-bar{display:flex!important;flex-wrap:wrap}
  .event-meta-cell{padding:7px 12px!important;flex:none!important}
  .event-meta-label{font-size:10px!important}
  .event-meta-val{font-size:12px!important}
  .event-body{flex-direction:row!important;align-items:stretch}
  .event-thumb{
    width:110px!important;height:110px!important;
    flex-shrink:0;align-self:stretch;
  }
  .event-thumb img{width:100%!important;height:100%!important;object-fit:cover}
  .event-text{
    padding:10px 14px!important;
    gap:5px!important;
    justify-content:center!important;
  }
  .event-text h3{font-size:14px!important;line-height:1.3}
  .event-text p{font-size:12px!important;-webkit-line-clamp:2;color:#6b7280}
  .event-date-mobile{display:none!important}

  /* Section spacing */
  .section{padding:40px 16px}
  .section-inner{padding:0}

  /* PM layout (Par mums subpages) */
  .pm-layout{grid-template-columns:1fr!important;gap:20px}
  .pm-sidebar{position:static!important}
  .pm-facts{grid-template-columns:repeat(2,1fr)!important}
  .pm-two-col{grid-template-columns:1fr!important}
}

/* ── BUTTONS ── */
.btn{font-family:'DM Sans',sans-serif;font-weight:600;font-size:14px;letter-spacing:.8px;padding:14px 32px;border:none;cursor:pointer;transition:all .35s ease;display:inline-block}
.btn-primary{background:#2563eb;color:#fff;border-radius:0}
.btn-primary:hover{background:#1d4ed8;transform:translateY(-2px);box-shadow:0 8px 16px rgba(17,24,39,.2)}
.btn-outline{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.6);border-radius:0}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.1)}
.btn-light{background:#e5e7eb;color:#111827;border-radius:0}

/* ── HERO ── */
.hero{position:relative;min-height:58vh;display:flex;align-items:center;overflow:hidden;margin-top:64px}
.hero::before{
  content:'';
  position:absolute;inset:0;
  background:url('jaunpils-hero.jpg') center/cover no-repeat;
  filter:brightness(1.0);
  z-index:0;
}
.hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(170deg,rgba(30,18,5,.82),rgba(50,28,8,.58) 50%,rgba(60,35,5,.32))}
.hero-circle1{position:absolute;top:10%;right:5%;width:400px;height:400px;border:1px solid rgba(147,197,253,.08);border-radius:50%}
.hero-circle2{position:absolute;bottom:15%;right:15%;width:200px;height:200px;border:1px solid rgba(147,197,253,.05);border-radius:50%}
.hero-content{position:relative;z-index:3;max-width:1440px;margin:0 auto;padding:52px 32px 52px}
.hero-tag{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:3px;color:rgba(255,255,255,.55);text-transform:uppercase;margin-bottom:20px}
.hero h1{font-size:clamp(36px,5vw,64px);font-weight:700;color:#fff;line-height:1.1;margin-bottom:20px;letter-spacing:-.5px}
.hero h1 span{color:#86efac}
.hero p{font-family:'DM Sans',sans-serif;font-size:17px;color:rgba(255,255,255,.7);line-height:1.7;max-width:520px;margin-bottom:36px}
.hero-btns{display:flex;flex-wrap:wrap;gap:14px}
.hero-stats{display:flex;gap:40px;margin-top:56px;flex-wrap:wrap;padding-top:32px;border-top:1px solid rgba(255,255,255,.12)}
.stat-num{font-size:30px;font-weight:700;color:#fff;line-height:1}
.stat-label{font-family:'DM Sans',sans-serif;font-size:12px;color:rgba(255,255,255,.45);margin-top:5px;letter-spacing:.5px}
.scroll-hint{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;transition:opacity .4s ease;background:rgba(0,0,0,.35);backdrop-filter:blur(6px);padding:12px 16px;border-radius:40px}
.scroll-hint.hidden{opacity:0;pointer-events:none}
.scroll-hint-mouse{width:22px;height:34px;border:1.5px solid rgba(255,255,255,.85);border-radius:0;display:flex;justify-content:center;padding-top:5px}
.scroll-hint-wheel{width:3px;height:6px;background:#fff;border-radius:2px;animation:scrollWheel 1.6s ease-in-out infinite}
.scroll-hint-arrow{animation:scrollArrow 1.6s ease-in-out infinite}
@keyframes scrollWheel{0%{opacity:1;transform:translateY(0)}80%{opacity:0;transform:translateY(10px)}100%{opacity:0;transform:translateY(0)}}
@keyframes scrollArrow{0%,100%{opacity:.5;transform:translateY(0)}50%{opacity:1;transform:translateY(4px)}}

/* ── SECTIONS COMMON ── */
.section{padding:52px 40px}
.section-inner{max-width:1440px;margin:0 auto}
.section-alt{background:#f4f6f8}

/* Par mums — background image with fade */
#par-mums{
  background-image:url('images/par-mums-bg.jpg');
  background-size:cover;
  background-position:top center;
  position:relative;
}
#par-mums::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(244,246,248,.55) 0%,
    rgba(244,246,248,.75) 30%,
    rgba(244,246,248,.96) 55%,
    rgba(244,246,248,1) 70%
  );
  z-index:0;
}
#par-mums .section-inner{
  position:relative;
  z-index:1;
}
.section-bg-aerial{position:relative;background:url('putna-lidojums.jpg') top center/contain no-repeat;}
.section-bg-aerial::before{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,255,255,.40) 0%,rgba(255,255,255,.60) 45%,rgba(255,255,255,.95) 70%,rgba(255,255,255,1) 82%);z-index:0}
.section-bg-aerial .section-inner{position:relative;z-index:1}
.divider{display:flex;align-items:center;gap:16px;margin:0 auto 16px;width:fit-content}
.divider::before,.divider::after{content:'';width:60px;height:1px;background:#111827}
.divider span{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:3px;color:#111827;text-transform:uppercase}
.section-title{font-size:clamp(26px,3vw,38px);font-weight:700;text-align:center;margin-bottom:44px;color:#111827}

/* ── ANIMATE ON SCROLL ── */
.anim{opacity:0;transform:translateY(36px);transition:opacity .7s ease,transform .7s ease}
.anim.visible{opacity:1;transform:translateY(0)}

/* ═══ QUICK LINKS GRID ═══ */
.quick-links-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-bottom:40px}
.ql-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:22px 16px 20px;text-decoration:none;color:inherit;transition:box-shadow .2s,transform .2s}
.ql-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.10);transform:translateY(-2px)}
.ql-icon{width:48px;height:48px;border-radius:0;display:flex;align-items:center;justify-content:center;margin-bottom:12px;flex-shrink:0}
.ql-label{font-size:13px;font-weight:700;color:#111827;line-height:1.3;margin-bottom:4px}
.ql-desc{font-family:'DM Sans',sans-serif;font-size:11px;color:#9ca3af}

/* VPVKAC compact */
.vpvkac-compact{background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:28px 32px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center}
.vpvkac-label{font-size:14px;font-weight:700;color:#111827;margin-bottom:8px;line-height:1.4}
.vpvkac-addr{font-family:'DM Sans',sans-serif;font-size:13px;color:#6b7280;margin-bottom:12px}
.vpvkac-contacts{display:flex;gap:16px}
.vpvkac-contacts a{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:#65a30d;text-decoration:none}
.vpvkac-contacts a:hover{color:#4d7c0f}
.vpvkac-hours-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;margin-bottom:10px}
.vpvkac-hours-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-family:'DM Sans',sans-serif;font-size:13px}
.vpvkac-hours-grid span:nth-child(odd){color:#6b7280;white-space:nowrap}
.vpvkac-hours-grid span:nth-child(even){color:#374151}


/* ═════════ CTA BANNER ═════════ */
.cta-banner{
  padding:60px 32px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#65a30d 200%);
  position:relative;
  overflow:hidden;
  color:#fff;
}
.cta-banner-bg{position:absolute;inset:0;pointer-events:none}
.cta-circle1{position:absolute;top:-100px;right:-50px;width:300px;height:300px;border:1px solid rgba(134,239,172,.15);border-radius:50%}
.cta-circle2{position:absolute;bottom:-80px;right:200px;width:200px;height:200px;border:1px solid rgba(134,239,172,.08);border-radius:50%}
.cta-banner-inner{max-width:1440px;margin:0 auto;position:relative}
.cta-banner-content{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px;
  align-items:center;
  position:relative;
  z-index:2;
}
.cta-tag{
  font-family:'DM Sans',sans-serif;
  font-size:11px;letter-spacing:3px;text-transform:uppercase;
  color:#86efac;
  margin-bottom:12px;
}
.cta-left h2{
  font-family:'DM Sans',sans-serif;
  font-size:clamp(26px,3.2vw,38px);
  font-weight:700;
  color:#fff;
  margin-bottom:12px;
  line-height:1.15;
}
.cta-left p{
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  color:rgba(255,255,255,.7);
  line-height:1.65;
  max-width:480px;
}
.cta-right{display:flex;flex-direction:column;gap:14px}
.cta-phone{
  display:flex;align-items:center;gap:16px;
  background:#65a30d;
  color:#fff;
  padding:18px 24px;
  text-decoration:none;
  transition:background .2s,transform .2s;
}
.cta-phone:hover{background:#4d7c0f;transform:translateY(-2px)}
.cta-phone-label{
  font-family:'DM Sans',sans-serif;
  font-size:11px;letter-spacing:1.5px;text-transform:uppercase;
  color:rgba(255,255,255,.75);
}
.cta-phone-num{
  font-family:'DM Sans',sans-serif;
  font-size:22px;font-weight:700;
  color:#fff;
}
.cta-email{
  display:flex;align-items:center;gap:10px;
  background:transparent;
  color:#fff;
  border:1.5px solid rgba(255,255,255,.25);
  padding:14px 24px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;font-weight:600;
  text-decoration:none;
  transition:background .2s,border-color .2s;
}
.cta-email:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5)}

@media(max-width:768px){
  .cta-banner{padding:40px 20px}
  .cta-banner-content{grid-template-columns:1fr;gap:24px}
  .cta-phone{padding:14px 18px}
  .cta-phone-num{font-size:18px}
}

/* ═════════ NEWS CARDS GRID ═════════ */

.news-cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  max-width:1200px;
  margin:0 auto;
}

.news-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background:transparent;
  transition:opacity .2s ease;
}

.news-card:hover{
  opacity:.85;
}

.news-card-img{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f4f6f8;
  position:relative;
}

.news-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

.news-card:hover .news-card-img img{
  transform:scale(1.04);
}

.news-card-no-img{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#e5f5ec,#d1fae5);
}

.news-card-tag{
  position:absolute;
  bottom:12px;
  left:12px;
  background:#111827;
  color:#fff;
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:3px;
  pointer-events:none;
}

.news-card-body{
  padding:14px 0 0;
  display:flex;
  flex-direction:column;
  flex:1;
  gap:8px;
}

.news-card-body h3{
  font-size:21px;
  line-height:1.3;
  font-weight:700;
  color:#111827;
  margin:0;
}

.news-card-meta{
  display:flex;
  align-items:center;
  gap:6px;
  color:#6b7280;
}

/* Shared meta (date + tag) */

.news-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;

  margin-top:auto;
}

.news-date{
  font-family:'DM Sans',sans-serif;
  font-size:13px;

  color:#6b7280;
}

.news-tag{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:600;

  color:#65a30d;
  background:rgba(59,122,59,.1);

  padding:3px 10px;
  border-radius:0;
}

/* VIEW ALL BUTTON */

.news-all-wrap{
  text-align:center;
  margin-top:50px;
}

.news-all-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:14px 28px;

  border:1.5px solid #111827;
  border-radius:0;

  color:#111827;
  background:#fff;

  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;

  transition:all .25s ease;
}

.news-all-btn:hover{
  background:#111827;
  color:#fff;
}

/* ── SINGLE NVO PAGE ── */

.nvo-single-header{background:#1f2937;padding:110px 32px 48px;color:#fff}
.nvo-single-header-inner{max-width:860px;margin:0 auto}
.nvo-single-header .breadcrumb{color:rgba(255,255,255,.5);margin-bottom:20px}
.nvo-single-header .breadcrumb a{color:rgba(255,255,255,.6)}
.nvo-single-header .breadcrumb a:hover{color:#fff}
.nvo-single-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.nvo-badge{background:rgba(255,255,255,.12);color:#fff;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;padding:4px 12px;border-radius:0}
.nvo-badge-outline{background:transparent;border:1px solid rgba(255,255,255,.25)}
.nvo-single-header h1{font-size:clamp(26px,4vw,42px);font-weight:800;color:#fff;line-height:1.2;margin:0}
.nvo-motto{font-family:'DM Sans',sans-serif;font-size:15px;color:rgba(255,255,255,.65);font-style:italic;margin-top:14px}

.nvo-single-main{padding:60px 32px 80px;background:#f4f6f8}
.nvo-single-inner{max-width:860px;margin:0 auto}
.nvo-single-grid{display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:start}
.nvo-single-content h2{font-size:20px;font-weight:700;color:#111827;margin-bottom:16px}
.nvo-single-body{font-family:'DM Sans',sans-serif;font-size:15px;color:#4b5563;line-height:1.85}
.nvo-single-body p{margin-bottom:14px}
.nvo-single-body h3{font-size:16px;font-weight:700;color:#111827;margin:20px 0 8px}
.nvo-single-body ul{padding-left:20px;margin-bottom:14px}
.nvo-single-body ul li{margin-bottom:6px}
.nvo-single-image{margin-bottom:28px;border-radius:0;overflow:hidden}
.nvo-single-image img{width:100%;height:auto;display:block;max-height:360px;object-fit:cover}
.nvo-contact-divider{border:none;border-top:1px solid #f3f4f6;margin:12px 0}

.nvo-contact-card{background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:24px;box-shadow:0 4px 16px rgba(17,24,39,.07);margin-bottom:16px}
.nvo-contact-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6b7280;margin-bottom:18px}
.nvo-contact-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f3f4f6;font-family:'DM Sans',sans-serif;font-size:14px;color:#374151}
.nvo-contact-row:last-child{border-bottom:none;padding-bottom:0}
.nvo-contact-row svg{flex-shrink:0;color:#6b7280}
.nvo-contact-row a{color:#111827;font-weight:500;word-break:break-all}
.nvo-contact-row a:hover{color:#65a30d}
.nvo-back-btn{display:block;text-align:center;padding:12px 20px;background:#111827;color:#fff;border-radius:0;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;transition:background .2s}
.nvo-back-btn:hover{background:#374151}

@media(max-width:640px){
  .nvo-single-grid{grid-template-columns:1fr}
  .nvo-single-header{padding:90px 20px 36px}
  .nvo-single-main{padding:40px 20px 60px}
}

/* ── SINGLE POST HEADER ── */

.single-post-header{
  background:#f4f6f8;
  padding:110px 32px 36px;
  border-bottom:1px solid #e5e7eb;
}

.single-post-header-inner{
  max-width:860px;
  margin:0 auto;
}

.single-post-title{
  
  font-size:clamp(24px,3.5vw,38px);
  font-weight:700;
  color:#111827;
  line-height:1.25;
  margin:12px 0 0;
}

/* ═════════ SINGLE NEWS PAGE ═════════ */

.single-news{
  padding:40px 32px 90px;
  background:#ffffff;
  min-height:100vh;
}

.single-news-inner{
  max-width:1100px;
  margin:0 auto;
}

.single-layout{
  display:flex;
  gap:0;
  align-items:flex-start;
}

/* Back link */

.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#111827;
  text-decoration:none;
  margin-bottom:28px;
  opacity:.8;
  transition:opacity .2s;
}

.back-link:hover{
  opacity:1;
}

/* Article */

.single-article{
  flex:1;
  min-width:0;
}

.single-article h1{
  font-size:clamp(26px,3.5vw,40px);
  line-height:1.2;
  font-weight:700;
  color:#111827;
  margin-bottom:24px;
}

/* TTS bar */

.single-top-bar{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:10px;
}

.btn-tts{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#111827;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  opacity:.75;
  transition:opacity .2s;
}

.btn-tts:hover{
  opacity:1;
}

/* Published date */

.single-pub-date{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#6b7280;
  margin-bottom:20px;
}

/* Category tags */

.single-cats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:36px;
}

/* Content */

.single-content{
  font-family:'DM Sans',sans-serif;
  font-size:17px;
  line-height:1.85;
  color:#1f2937;
}

.single-content p{
  margin-bottom:24px;
}

.single-content h2,
.single-content h3{
  font-weight:700;
  color:#111827;
  margin:36px 0 14px;
}

.single-content h2{
  font-size:22px;
}

.single-content h3{
  font-size:18px;
}

.single-content img{
  max-width:100%;
  height:auto;
}

/* Floating images (WP alignment classes) */

.single-content .alignright{
  float:right;
  margin:6px 0 24px 32px;
  max-width:45%;
}

.single-content .alignleft{
  float:left;
  margin:6px 32px 24px 0;
  max-width:45%;
}

.single-content .aligncenter{
  display:block;
  margin:32px auto;
}

/* Gallery */

.single-content .wp-block-gallery{
  display:grid !important;
  grid-template-columns:repeat(2,1fr) !important;
  gap:16px !important;
  margin:36px 0 !important;
  width:100% !important;
  clear:both;
}

.single-content .wp-block-gallery figure{
  width:100% !important;
  margin:0 !important;
}

.single-content .wp-block-gallery img{
  width:100% !important;
  height:280px !important;
  object-fit:cover !important;
  display:block;
}

/* Standalone image block */

.single-content > figure:not(.wp-block-gallery),
.single-content > .wp-block-image{
  margin:32px 0;
  clear:both;
}

.single-content > figure img,
.single-content > .wp-block-image img{
  width:100%;
  height:auto;
}

/* Featured image floated right */

.single-featured-img{
  float:right;
  margin:4px 0 24px 36px;
  max-width:48%;
}

.single-featured-img img{
  width:100%;
  height:auto;
  display:block;
}

@media(max-width:600px){
  .single-featured-img{
    float:none;
    max-width:100%;
    margin:0 0 20px;
  }
}

/* Subtitle */

.single-subtitle{
  font-family:'DM Sans',sans-serif;
  font-size:18px;
  line-height:1.5;
  color:#6b7280;
  margin:-8px 0 24px;
}

/* Intro / lead paragraph */

.single-intro{
  font-family:'DM Sans',sans-serif;
  font-size:17px;
  line-height:1.8;
  color:#1f2937;
  border-left:3px solid #111827;
  padding:16px 20px;
  background:rgba(37,99,235,.05);
  margin-bottom:32px;
}

/* Event info box */

.single-event-box{
  display:inline-flex;
  flex-direction:column;
  gap:10px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  padding:18px 24px;
  margin-bottom:32px;
}

.event-box-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  font-weight:600;
  color:#111827;
}

.event-box-row svg{
  flex-shrink:0;
  color:#111827;
}

/* Photo gallery */

.single-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px;
  margin-top:40px;
}

.single-gallery-item{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f4f6f8;
}

.single-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}

.single-gallery-item:hover img{
  transform:scale(1.05);
}

/* Attachment download */

.single-attachment{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:32px;
  padding:14px 22px;
  border:1px solid rgba(37,99,235,.25);
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#111827;
  text-decoration:none;
  transition:background .2s, color .2s;
}

.single-attachment:hover{
  background:#111827;
  color:#fff;
}

/* Action sidebar */

.single-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-left:24px;
  padding-top:130px;
  position:sticky;
  top:120px;
  flex-shrink:0;
}

.action-btn{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #e5e7eb;
  color:#374151;
  cursor:pointer;
  transition:border-color .2s, color .2s;
}

.action-btn:hover{
  border-color:#111827;
  color:#111827;
}

/* ═════════ MOBILE ═════════ */

@media(max-width:700px){

  .single-news{
    padding:110px 18px 60px;
  }

  .news-cards-grid{grid-template-columns:1fr;gap:16px}

  .single-layout{
    flex-direction:column-reverse;
  }

  .single-actions{
    flex-direction:row;
    position:static;
    padding:0 0 20px;
  }

  .single-content .alignright,
  .single-content .alignleft{
    float:none;
    max-width:100%;
    margin:16px 0;
  }

  .single-content .wp-block-gallery{
    grid-template-columns:1fr !important;
  }

  .single-content .wp-block-gallery img{
    height:220px !important;
  }

}
/* ── SERVICES ── */
.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.service-card{background:#fff;padding:32px 28px;border:1px solid #e5e7eb;transition:all .4s ease;cursor:pointer;position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:3px;background:#111827;transform:scaleX(0);transform-origin:left;transition:transform .4s ease}
.service-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(17,24,39,.08)}
.service-card:hover::before{transform:scaleX(1)}
.service-icon{font-size:32px;margin-bottom:16px}
.service-card h3{font-size:19px;font-weight:600;margin-bottom:8px;color:#111827}
.service-card p{font-family:'DM Sans',sans-serif;font-size:14px;color:#6b7280;line-height:1.6}
.service-more{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;color:#111827;margin-top:16px}

/* ── ABOUT ── */
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:48px;align-items:start}

/* Facts row */
.about-facts-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
  margin-bottom:8px;
}
.about-fact-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:0;
  padding:24px 20px;
  text-align:center;
  transition:box-shadow .2s,transform .2s;
  box-shadow:0 4px 16px rgba(17,24,39,.08);
}
.about-fact-card:hover{
  box-shadow:0 6px 24px rgba(17,24,39,.08);
  transform:translateY(-2px);
}
.about-fact-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  background:#f0fdf4;
  border-radius:0;
  margin:0 auto 12px;
  color:#65a30d;
}
.about-fact-num{
  font-size:22px;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin-bottom:4px;
}
.about-fact-label{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
  line-height:1.4;
}

/* Info blocks */
.about-info-block{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:0;
  padding:24px 28px;
  border-left:3px solid #111827;
  box-shadow:0 4px 16px rgba(17,24,39,.08);
}
.about-info-block h3{
  font-size:16px;
  font-weight:700;
  color:#111827;
  margin-bottom:8px;
}
.about-info-block p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#6b7280;
  line-height:1.75;
  margin:0;
}
.about-text p{font-family:'DM Sans',sans-serif;font-size:15px;color:#6b7280;line-height:1.8;margin-bottom:20px}
.about-box{
  background:#1f2937;
  padding:48px;
  position:relative;
  overflow:hidden;
  background-image:url('images/about-bg.jpg');
  background-size:cover;
  background-position:center;
}
.about-box::after{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(10,16,28,.60);
  z-index:0;
}
.about-box > *{position:relative;z-index:1;}
.about-box-circle{position:absolute;top:-40px;right:-40px;width:160px;height:160px;border:1px solid rgba(147,197,253,.15);border-radius:50%}
.about-year{font-size:42px;font-weight:800;color:#fff;opacity:1;line-height:1.2;text-shadow:0 2px 16px rgba(0,0,0,.7);margin-bottom:8px;letter-spacing:-0.5px}
.about-box p{font-family:'DM Sans',sans-serif;font-size:16px;font-weight:600;color:#ffffff;line-height:1.8;margin-top:12px;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.about-stats{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.about-stats .num{font-size:28px;font-weight:800;color:#ffffff;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.about-stats .label{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;color:rgba(255,255,255,.95);text-shadow:0 1px 6px rgba(0,0,0,.6)}

/* ── PARTICIPATION ── */
.participation{padding:52px 32px;background:#f4f6f8}
.participation-inner{max-width:1440px;margin:0 auto}

/* ── PARTICIPATION LAYOUT ── */
.lidzdaliba-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.lidzdaliba-col-label{display:flex;align-items:center;gap:8px;font-family:'DM Sans',sans-serif;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#9ca3af;margin-bottom:16px}
.nvo-count{background:#65a30d;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:0;margin-left:2px;letter-spacing:0}

/* NVO scroll list */
.nvo-scroll-list{max-height:520px;overflow-y:auto;border:1px solid #e5e7eb;background:#fff;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}
.nvo-scroll-list::-webkit-scrollbar{width:4px}
.nvo-scroll-list::-webkit-scrollbar-track{background:transparent}
.nvo-scroll-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:2px}
.nvo-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #f3f4f6;text-decoration:none;background:#fff;transition:background .15s}
.nvo-row:last-child{border-bottom:none}
.nvo-row:hover{background:#f9fafb}
.nvo-row-body{flex:1;min-width:0}
.nvo-row-name{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:500;color:#111827;line-height:1.3}
.nvo-row-year{font-family:'DM Sans',sans-serif;font-size:11px;color:#9ca3af;margin-top:2px}
.nvo-row-arrow{color:#d1d5db;flex-shrink:0;transition:color .15s,transform .15s}
.nvo-row:hover .nvo-row-arrow{color:#65a30d;transform:translateX(3px)}

/* KP blocks */
.kp-block{margin-bottom:20px}
.kp-block-title{font-family:'DM Sans',sans-serif;font-size:15px;color:#374151;margin-bottom:8px;line-height:1.4}
.kp-block-title strong{color:#111827;font-weight:700}
.kp-acc{border:1px solid #e5e7eb;margin-bottom:4px;background:#fff}
.kp-acc-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;cursor:pointer;list-style:none;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:700;color:#111827;user-select:none;transition:background .15s}
.kp-acc-head::-webkit-details-marker{display:none}
.kp-acc-head:hover{background:#f9fafb}
.kp-acc[open] .kp-acc-head{background:#f9fafb;border-bottom:1px solid #e5e7eb}
.kp-acc-chevron{flex-shrink:0;color:#9ca3af;transition:transform .2s}
.kp-acc[open] .kp-acc-chevron{transform:rotate(180deg);color:#65a30d}
.kp-acc-body{padding:16px 18px;display:flex;flex-direction:column;gap:0}

/* Nolikums download row */
.kp-doc-row{display:inline-flex;align-items:center;gap:8px;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:700;color:#65a30d;text-decoration:none;margin-bottom:12px;padding:8px 12px;border:1px solid #d1fae5;background:#f0fdf4;transition:background .15s}
.kp-doc-row:hover{background:#ecfccb}
.kp-pdf-icon{flex-shrink:0}
.kp-doc-name{letter-spacing:.5px}
.kp-email-row{font-family:'DM Sans',sans-serif;font-size:13px;color:#374151;font-weight:600;margin-bottom:12px}
.kp-email-link{color:#65a30d;text-decoration:none}
.kp-email-link:hover{text-decoration:underline}
.kp-members-title{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:700;color:#111827;margin-bottom:8px}
.kp-members{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.kp-members li{font-family:'DM Sans',sans-serif;font-size:13px;color:#374151;display:flex;align-items:baseline;gap:8px}
.kp-members li::before{content:'';width:8px;height:8px;min-width:8px;background:#65a30d;border-radius:50%;display:inline-block;position:relative;top:0px}

/* Protocol table */
.kp-year-heading{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:700;color:#111827;margin:12px 0 8px}
.kp-year-heading:first-child{margin-top:0}
.kp-proto-table{width:100%;border-collapse:collapse;margin-bottom:4px}
.kp-proto-table th{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:700;color:#374151;text-align:left;padding:8px 12px;background:#f9fafb;border:1px solid #e5e7eb}
.kp-proto-table td{font-family:'DM Sans',sans-serif;font-size:13px;color:#374151;padding:10px 12px;border:1px solid #e5e7eb;vertical-align:middle}
.kp-proto-table tr:hover td{background:#f9fafb}
.kp-proto-link{display:inline-flex;align-items:center;gap:6px;color:#65a30d;text-decoration:none;font-weight:600;font-size:13px;transition:color .15s}
.kp-proto-link:hover{color:#4d7c0f}

@media(max-width:860px){.lidzdaliba-layout{grid-template-columns:1fr;gap:32px}}
@media(max-width:480px){.nvo-scroll-list{max-height:320px}}

/* ── TOURISM ── */
.places-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.place-card{position:relative;padding:36px 32px;background:#1f2937;color:#fff;overflow:hidden;transition:transform .4s;min-height:260px}
.place-card:hover{transform:scale(1.02)}
.place-card::before{content:'';position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.65));z-index:0}
.place-card::after{content:'';position:absolute;top:-50%;right:-50%;width:100%;height:100%;background:radial-gradient(circle,rgba(147,197,253,.15),transparent 70%)}
.place-year{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:2px;color:rgba(147,197,253,.8);text-transform:uppercase;margin-bottom:12px;position:relative;z-index:1}
.place-card h3{font-size:22px;font-weight:600;margin-bottom:12px;position:relative;z-index:1}
.place-card p{font-family:'DM Sans',sans-serif;font-size:14px;color:rgba(255,255,255,.7);line-height:1.6;position:relative;z-index:1}
.place-link{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;color:#e5e7eb;margin-top:20px;position:relative;z-index:1}

/* ── PAKALPOJUMI LAYOUT ── */
.pakalpojumi-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
@media(max-width:900px){.pakalpojumi-layout{grid-template-columns:1fr}}

/* ── CONTACT FORM ── */
.contact-form-box{background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:32px;width:100%}
.contact-form-box h2{font-size:22px;font-weight:700;color:#111827;margin-bottom:20px}
.cf-field{margin-bottom:14px}
.cf-field label{display:block;font-size:12px;font-weight:600;color:#374151;margin-bottom:4px;letter-spacing:.3px}
.cf-field input,.cf-field textarea{width:100%;border:none;border-bottom:1.5px solid #d1d5db;padding:7px 0;font-size:14px;font-family:'DM Sans',sans-serif;color:#111827;background:transparent;outline:none;transition:border-color .2s;resize:none}
.cf-field input:focus,.cf-field textarea:focus{border-bottom-color:#111827}
.cf-submit{width:100%;margin-top:6px;border-radius:0;text-align:center;padding:10px 24px}
.cf-success{display:none;margin-top:12px;font-size:13px;color:#65a30d;font-weight:600}

/* ── VPVKAC ── */
.vpvkac-full{background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:40px;max-width:none;margin:0}
.vpvkac-full h3{font-size:22px;font-weight:700;color:#111827;margin-bottom:8px}
.vpvkac-full h4{font-size:16px;font-weight:700;color:#111827;margin:24px 0 12px}
.vpvkac-full p{font-family:'DM Sans',sans-serif;font-size:15px;color:#374151;line-height:1.7}
.vpvkac-full a{color:#111827}
.vpvkac-full ol{font-family:'DM Sans',sans-serif;font-size:15px;color:#374151;line-height:1.8;padding-left:20px}
.vpvkac-hours{width:100%;border-collapse:collapse;margin-top:10px}
.vpvkac-hours td{font-family:'DM Sans',sans-serif;font-size:14px;padding:6px 12px;color:#374151;border-bottom:1px solid #e5e7eb}
.vpvkac-hours td:first-child{font-weight:600;color:#111827;width:130px}

/* ── CONTACTS ── */
.contacts-section{max-width:860px;margin:0 auto;padding:0 20px}
.contacts-search-wrap{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:10px 16px;margin-bottom:20px;max-width:400px}
.contact-search{border:none;outline:none;width:100%;font-size:15px;font-family:'DM Sans',sans-serif;color:#111827;background:transparent}
.search-icon{font-size:16px;opacity:.5}
.contacts-layout{display:grid;grid-template-columns:200px 1fr;gap:32px;align-items:start}
.contacts-sidebar{display:flex;flex-direction:column}
.dept-tab{display:block;width:100%;text-align:left;background:none;border:none;padding:11px 14px;font-family:'DM Sans',sans-serif;font-size:14px;color:#111827;cursor:pointer;border-radius:0;margin-bottom:2px;transition:background .2s,color .2s}
.dept-tab:hover{background:#f4f6f8}
.dept-tab.active{background:#111827;color:#fff;font-weight:600}
.dept-section{display:none}
.dept-section.active{display:block}
.dept-section-title{font-size:16px;font-weight:700;color:#111827;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #111827}
.contact-accordion{border-bottom:1px solid #e5e7eb}
.contact-acc-header{display:flex;justify-content:space-between;align-items:center;padding:13px 0;cursor:pointer;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;color:#111827;user-select:none}
.contact-acc-header span{font-size:18px;color:#6b7280;transition:transform .25s}
.contact-acc-header.open span{transform:rotate(45deg)}
.contact-acc-body{display:none;padding-bottom:6px}
.contact-acc-body.open{display:block}
.contact-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0 10px 12px;gap:12px;border-top:1px solid #f4f6f8}
.contact-name{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:#111827}
.contact-role{font-family:'DM Sans',sans-serif;font-size:13px;color:#6b7280}
.contact-info{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.contact-info a{font-family:'DM Sans',sans-serif;font-size:13px;color:#374151;text-decoration:none;white-space:nowrap;transition:color .2s}
.contact-info a:hover{color:#111827}
.visi-only{display:none}
.emergency{display:flex;align-items:center;gap:12px}
.no-results{text-align:center;padding:48px;font-family:'DM Sans',sans-serif;color:#6b7280;display:none}

@media(max-width:768px){
  .contacts-layout{grid-template-columns:1fr}
  .contacts-sidebar{flex-direction:row;flex-wrap:wrap;gap:8px;margin-bottom:16px}
  .dept-tab{width:auto}
  .contact-row{flex-direction:column;gap:8px}
  .contact-info{align-items:flex-start}
  .about-grid{grid-template-columns:1fr}
  .hero-stats{gap:32px}
}

/* ── EVENTS ── */

.events-wrap{
  max-width:1080px;
  margin:0 auto;
}

/* ── EVENTS FRONT-PAGE GRID ── */
.ev-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}

.ev-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e5e7eb;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
  transition:box-shadow .25s,transform .25s;
  position:relative;
}

.ev-card:hover{
  box-shadow:0 10px 32px rgba(17,24,39,.10);
  transform:translateY(-3px);
}

.ev-card-img{
  position:relative;
  height:220px;
  background:#f3f4f6;
  overflow:hidden;
}

.ev-card-img img{
  width:100%;height:100%;
  object-fit:cover;display:block;
  transition:transform .4s;
}

.ev-card:hover .ev-card-img img{transform:scale(1.05)}

.ev-no-img{
  width:100%;height:100%;
  background:linear-gradient(135deg,#d1fae5 0%,#a7f3d0 100%);
}

.ev-date-badge{
  position:absolute;
  top:14px;left:14px;
  background:#65a30d;
  color:#fff;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  width:52px;height:52px;
}

.ev-date-day{
  font-family:'Playfair Display',serif;
  font-size:22px;font-weight:700;line-height:1;
}

.ev-date-mon{
  font-family:'DM Sans',sans-serif;
  font-size:9px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  margin-top:1px;
}

.ev-loc-tag{
  position:absolute;
  bottom:12px;right:12px;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-family:'DM Sans',sans-serif;
  font-size:11px;font-weight:500;
  padding:3px 9px;
  display:flex;align-items:center;gap:4px;
}

.ev-card-body{
  padding:22px 24px 20px;
  display:flex;flex-direction:column;flex:1;
}

.ev-card-body h3{
  font-size:18px;font-weight:700;color:#111827;
  line-height:1.3;margin:0 0 8px;
}

.ev-card-body p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;color:#6b7280;line-height:1.6;
  margin:0;flex:1;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.ev-card-time{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #f3f4f6;
  display:flex;align-items:center;gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:12px;font-weight:500;color:#374151;
}

.ev-empty{
  font-family:'DM Sans',sans-serif;
  color:#9ca3af;padding:40px 0;text-align:center;
  grid-column:1/-1;
}

@media(max-width:720px){.ev-grid{grid-template-columns:1fr}}

.events-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:32px;
}

.events-heading{
  
  font-size:clamp(22px,2.5vw,30px);
  font-weight:700;
  color:#111827;
}

.events-all-link{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#65a30d;
  text-decoration:none;
  transition:opacity .2s;
}

.events-all-link:hover{
  opacity:.75;
}

.event-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid #e5e7eb;
  margin-bottom:20px;
  transition:box-shadow .3s ease, transform .3s ease;
  position:relative;
}

.event-card:hover{
  box-shadow:0 8px 28px rgba(17,24,39,.09);
  transform:translateY(-2px);
}

.event-card::before{
  content:'';
  position:absolute;
  left:-1px;
  top:0;
  bottom:0;
  width:3px;
  background:#65a30d;
  opacity:1;
}

.event-card:hover::before{
  opacity:1;
}

.event-date-mobile{
  display:none;
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:600;
  color:#65a30d;
  margin-bottom:2px;
}

.event-meta-bar{
  display:flex;
  gap:0;
  border-bottom:1px solid #e5e7eb;
}

.event-meta-cell{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 20px;
  border-right:1px solid #e5e7eb;
  flex:1;
  color:#65a30d;
}

.event-meta-cell:last-child{
  border-right:none;
}

.event-meta-label{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
  margin-bottom:2px;
}

.event-meta-val{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#111827;
}

.event-body{
  display:flex;
  gap:0;
  align-items:stretch;
}

.event-thumb{
  flex-shrink:0;
  width:44%;
  height:200px;
  align-self:flex-start;
  overflow:hidden;
  background:#f4f6f8;
}

.event-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

.event-card:hover .event-thumb img{
  transform:scale(1.04);
}

.event-text{
  padding:22px 32px;
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  flex:1;
}

.event-text h3{
  
  font-size:20px;
  font-weight:700;
  color:#111827;
  line-height:1.35;
  margin:0;
}

.event-text p{
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  color:#6b7280;
  line-height:1.7;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ── SINGLE EVENT PAGE ── */

.single-event-page{
  padding:120px 32px 80px;
  min-height:100vh;
  background:#ffffff;
}

.single-event-inner{
  max-width:1000px;
  margin:0 auto;
}

.breadcrumb{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#6b7280;
  margin-bottom:24px;
  display:flex;
  align-items:center;
  gap:6px;
}

.breadcrumb a{
  color:#6b7280;
  text-decoration:none;
  transition:color .2s;
}

.breadcrumb a:hover{
  color:#65a30d;
}

.breadcrumb span{
  opacity:.5;
}

.single-event-title{
  
  font-size:clamp(24px,3.5vw,38px);
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin-bottom:20px;
}

.event-info-bar{
  display:flex;
  border:1px solid #e5e7eb;
  background:#fff;
  margin:24px 0 16px;
}

.event-info-cell{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 28px;
  border-right:1px solid #e5e7eb;
  flex:1;
  color:#65a30d;
}

.event-info-cell:last-child{
  border-right:none;
}

.event-info-label{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
  margin-bottom:3px;
}

.event-info-val{
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  font-weight:700;
  color:#111827;
}

.event-add-cal{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:600;
  color:#65a30d;
  text-decoration:none;
  margin-bottom:32px;
  transition:opacity .2s;
}

.event-add-cal:hover{
  opacity:.75;
}

.single-event-content{
  font-family:'DM Sans',sans-serif;
  font-size:16px;
  line-height:1.85;
  color:#1f2937;
}

.single-event-content p{
  margin-bottom:20px;
}

.single-event-content img{
  max-width:45%;
  height:auto;
  float:right;
  margin:4px 0 24px 32px;
}

@media(max-width:700px){
  .events-scroll{
    display:flex;
    overflow-x:auto;
    gap:14px;
    padding-bottom:12px;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    margin:0 -20px;
    padding-left:20px;
    padding-right:20px;
  }
  .events-scroll::-webkit-scrollbar{height:4px}
  .events-scroll::-webkit-scrollbar-track{background:#f1f1f1;border-radius:2px}
  .events-scroll::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:2px}
  /* event-card inside .events-scroll only */
  .events-scroll .event-card{
    flex:0 0 220px;
    min-width:220px;
    margin-bottom:0;
    scroll-snap-align:start;
  }
  .event-info-bar{
    flex-direction:column;
  }
  .event-info-cell{
    border-right:none;
    border-bottom:1px solid #e5e7eb;
  }
  .event-info-cell:last-child{
    border-bottom:none;
  }
  .single-event-content img{
    float:none;
    max-width:100%;
    margin:16px 0;
  }
  .events-header{
    flex-direction:column;
    gap:8px;
  }
}

/* ════════════════════════════════════════
   SUBPAGE SIDEBAR NAVIGATION
   ════════════════════════════════════════ */

.subpage-with-sidebar{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:48px;
  align-items:start;
}

.subpage-sidebar{
  position:sticky;
  top:100px;
}

.sidebar-nav{
  border:1px solid #e5e7eb;
  overflow:hidden;
}

.sidebar-section-title{
  padding:10px 14px;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#9ca3af;
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
}
.sidebar-section-title a{
  color:inherit;
  text-decoration:none;
}

.sidebar-link{
  display:block;
  padding:11px 14px;
  font-size:13.5px;
  font-weight:500;
  color:#374151;
  text-decoration:none;
  border-bottom:1px solid #f3f4f6;
  transition:background .12s,color .12s;
}
.sidebar-link:last-child{border-bottom:none}
.sidebar-link:hover{background:#f9fafb;color:#111827}
.sidebar-link-active{
  color:#65a30d;
  font-weight:600;
  border-left:3px solid #65a30d;
  padding-left:11px;
  background:#f0fdf4;
}

@media(max-width:768px){
  .subpage-with-sidebar{
    grid-template-columns:1fr;
    gap:20px;
  }
  .subpage-sidebar{position:static}
}

/* Responsive: stack on mobile */
@media(max-width:768px){
  .subpage-with-sidebar{
    grid-template-columns:1fr;
    gap:24px;
  }
  .subpage-sidebar{
    position:static;
  }
  .sidebar-children{display:flex}
}

/* ════════════════════════════════════════
   PAŠVALDĪBA PAGES
   ════════════════════════════════════════ */

/* Pašvaldība overview cards */
.pasvaldiba-card{
  display:flex;align-items:center;gap:16px;
  padding:22px 20px;
  background:#fff;border:1.5px solid #e5e7eb;border-radius:0;
  text-decoration:none;color:inherit;
  transition:border-color .2s,box-shadow .2s,transform .2s;
}
.pasvaldiba-card:hover{
  border-color:#65a30d;box-shadow:0 4px 16px rgba(22,163,74,.1);
  transform:translateY(-2px);
}
.pasvaldiba-card-icon{
  width:52px;height:52px;flex-shrink:0;
  background:#f0fdf4;border-radius:0;
  display:flex;align-items:center;justify-content:center;
  color:#65a30d;
}
.pasvaldiba-card-text{flex:1}
.pasvaldiba-card-text h3{font-size:15px;font-weight:600;color:#111827;margin:0 0 4px}
.pasvaldiba-card-text p{font-size:13px;color:#6b7280;margin:0}
.pasvaldiba-card-arrow{color:#9ca3af;flex-shrink:0;transition:color .2s,transform .2s}
.pasvaldiba-card:hover .pasvaldiba-card-arrow{color:#65a30d;transform:translateX(4px)}

/* Info tables (darba laiki) */
.info-table-wrap{overflow-x:auto;border-radius:0;border:1.5px solid #e5e7eb}
.info-table{width:100%;border-collapse:collapse;font-size:14px}
.info-table th{
  background:#f9fafb;font-weight:600;color:#374151;
  padding:12px 16px;text-align:left;
  border-bottom:1.5px solid #e5e7eb;
  white-space:nowrap;
}
.info-table td{
  padding:11px 16px;color:#374151;
  border-bottom:1px solid #f3f4f6;
  vertical-align:top;
}
.info-table tbody tr:last-child td{border-bottom:none}
.info-table tbody tr:nth-child(even){background:#fafafa}

/* Rekvizīti cards */
.rek-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:0;overflow:hidden}
.rek-card-title{font-size:14px;font-weight:700;color:#111827;padding:14px 20px;background:#f9fafb;border-bottom:1.5px solid #e5e7eb;margin:0}
.rek-rows{display:flex;flex-direction:column}
.rek-row{display:flex;gap:16px;padding:11px 20px;border-bottom:1px solid #f3f4f6;font-size:14px;align-items:baseline}
.rek-row:last-child{border-bottom:none}
.rek-key{min-width:120px;flex-shrink:0;font-weight:600;color:#6b7280;font-size:13px}
.rek-link{color:#65a30d;text-decoration:none}
.rek-link:hover{text-decoration:underline}

/* Dokumenti accordion */
.doc-group{
  border:1.5px solid #e5e7eb;border-radius:0;
  margin-bottom:10px;overflow:hidden;
}
.doc-group-title{
  list-style:none;display:flex;align-items:center;gap:10px;
  padding:14px 18px;font-weight:600;font-size:14px;color:#111827;
  background:#f9fafb;cursor:pointer;
  user-select:none;
}
.doc-group-title::-webkit-details-marker{display:none}
.doc-group[open] .doc-group-title svg{transform:rotate(180deg)}
.doc-group-title svg{transition:transform .2s;flex-shrink:0}
.doc-group-body{padding:8px 0}
.doc-row{
  display:flex;align-items:center;gap:10px;
  padding:9px 18px;font-size:13.5px;color:#374151;
  border-bottom:1px solid #f3f4f6;
}
.doc-row:last-child{border-bottom:none}
.doc-row a{color:#374151;text-decoration:none;transition:color .15s}
.doc-row a:hover{color:#65a30d}

/* Veidlapas list */
.veidlapas-grid{display:flex;flex-direction:column;gap:0;border:1.5px solid #e5e7eb;border-radius:0;overflow:hidden}
.veidlapa-row{
  display:flex;align-items:center;gap:12px;
  padding:11px 18px;font-size:13.5px;
  border-bottom:1px solid #f3f4f6;
  background:#fff;transition:background .15s;
}
.veidlapa-row:last-child{border-bottom:none}
.veidlapa-row:hover{background:#f9fafb}
.veidlapa-num{width:22px;font-size:12px;color:#9ca3af;text-align:right;flex-shrink:0}
.veidlapa-name{flex:1;color:#111827}
.veidlapa-ext{
  font-size:10px;font-weight:700;letter-spacing:.5px;
  background:#e0f2fe;color:#0369a1;
  padding:2px 7px;border-radius:2px;flex-shrink:0;
}
.veidlapa-dl{
  display:flex;align-items:center;gap:5px;
  font-size:12px;font-weight:600;color:#65a30d;
  text-decoration:none;flex-shrink:0;
  padding:5px 10px;border:1.5px solid #65a30d;border-radius:0;
  transition:background .15s,color .15s;
}
.veidlapa-dl:hover{background:#65a30d;color:#fff}

/* Mobile nav sub-links */
.nav-link-sub{
  padding-left:32px !important;
  font-size:13px !important;
  color:#6b7280 !important;
}
.nav-link-group-label{font-weight:700 !important}

/* WordPress page editor content styling */
.informacija-content h2{font-size:20px;font-weight:700;color:#111827;margin:32px 0 12px}
.informacija-content h3{font-size:16px;font-weight:600;color:#111827;margin:20px 0 8px}
.informacija-content p{font-size:14px;color:#374151;line-height:1.7;margin-bottom:10px}
.informacija-content ul,.informacija-content ol{padding-left:20px;margin-bottom:12px}
.informacija-content li{font-size:14px;color:#374151;line-height:1.7;margin-bottom:4px}
.informacija-content strong{font-weight:600;color:#111827}
.informacija-content a{color:#65a30d}
.informacija-content a:hover{text-decoration:underline}
.informacija-content hr{border:none;border-top:1px solid #e5e7eb;margin:24px 0}
/* Two-column layout for wp-block-columns */
.informacija-content .wp-block-columns{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin-bottom:20px}
.informacija-content .wp-block-column{border:1px solid #e5e7eb;padding:20px}
@media(max-width:640px){
  .informacija-content .wp-block-columns{grid-template-columns:1fr}
}

/* VPVKAC page */
.vpvkac-services-list{
  border:1px solid #e5e7eb;
  overflow:hidden;
}
.vpvkac-service-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:11px 16px;
  border-bottom:1px solid #f3f4f6;
  font-size:14px;
  color:#374151;
}
.vpvkac-service-item:last-child{border-bottom:none}
.vpvkac-service-tag{
  font-size:11px;font-weight:700;letter-spacing:.5px;
  background:#111827;color:#fff;
  padding:3px 8px;
  flex-shrink:0;min-width:52px;text-align:center;
}
@media(max-width:640px){
  .vpvkac-top-grid{grid-template-columns:1fr !important}
}

/* ════════════════════════════════════════
   ACCESSIBILITY WIDGET
   ════════════════════════════════════════ */

.acc-widget{
  position:fixed;
  bottom:28px;
  right:28px;
  z-index:9500;
}

.acc-fab{
  width:52px;height:52px;
  background:#1f2937;
  color:#fff;
  border:none;
  border-radius:50%;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(0,0,0,.35);
  transition:background .2s, transform .2s, box-shadow .2s;
  position:relative;
  z-index:1;
}
.acc-fab:hover{
  background:#374151;
  transform:scale(1.07);
  box-shadow:0 6px 24px rgba(0,0,0,.4);
}

.acc-panel{
  position:absolute;
  bottom:62px;
  right:0;
  width:248px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 48px rgba(0,0,0,.18);
  display:none;
  overflow:hidden;
}
.acc-panel.acc-open{
  display:block;
  animation:accSlideUp .2s ease;
}
@keyframes accSlideUp{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

.acc-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 16px 11px;
  border-bottom:2px solid #111827;
  background:#111827;
}
.acc-panel-head span{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#fff;
}
.acc-close{
  background:none;border:none;cursor:pointer;
  color:rgba(255,255,255,.6);
  font-size:16px;line-height:1;padding:2px 4px;
  transition:color .15s;
}
.acc-close:hover{color:#fff}

.acc-section{
  padding:14px 16px;
  border-bottom:1px solid #f3f4f6;
}

.acc-section-title{
  font-family:'DM Sans',sans-serif;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:#9ca3af;
  margin-bottom:10px;
}

/* Size buttons */
.acc-size-row{
  display:flex;
  gap:6px;
}
.acc-size-btn{
  flex:1;
  padding:9px 4px;
  background:#f4f6f8;
  border:1.5px solid #e5e7eb;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-weight:700;
  color:#374151;
  font-size:13px;
  transition:all .15s;
  line-height:1;
  text-align:center;
}
.acc-size-btn:hover,.acc-size-btn.acc-size-active{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.acc-sz-lg{font-size:16px}

/* Theme buttons */
.acc-themes-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}
.acc-theme-btn{
  padding:9px 6px;
  background:#f4f6f8;
  border:1.5px solid #e5e7eb;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:600;
  color:#374151;
  transition:all .15s;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
}
.acc-theme-btn:hover,.acc-theme-btn.acc-active{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.acc-th-hc{
  background:#000;
  color:#fff;
  border-color:#000;
}
.acc-th-hc:hover,.acc-th-hc.acc-active{
  background:#333;
  border-color:#333;
  color:#fff;
}
.acc-th-yb{
  background:#111100;
  color:#ffff00;
  border-color:#ffee00;
  font-weight:700;
}
.acc-th-yb:hover,.acc-th-yb.acc-active{
  background:#000;
  border-color:#ffff00;
  color:#ffff00;
}
.acc-th-bw{
  filter:grayscale(1);
}

/* Toggle rows */
.acc-toggle-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:9px 0;
  background:none;
  border:none;
  border-bottom:1px solid #f3f4f6;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#374151;
  text-align:left;
  transition:color .15s;
}
.acc-toggle-row:last-child{border-bottom:none}
.acc-toggle-row:hover{color:#111827}
.acc-toggle-row.acc-toggle-on{color:#65a30d;font-weight:600}

.acc-chk{
  width:18px;height:18px;
  flex-shrink:0;
  border:1.5px solid #d1d5db;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .15s;
  border-radius:2px;
}
.acc-chk::after{
  content:'';
  width:9px;height:9px;
  background:#65a30d;
  border-radius:1px;
  opacity:0;
  transition:opacity .15s;
}
.acc-chk.acc-chk-on{
  border-color:#65a30d;
}
.acc-chk.acc-chk-on::after{
  opacity:1;
}

/* Reset button */
.acc-reset-all{
  display:block;
  width:100%;
  padding:12px 16px;
  background:#f9fafb;
  border:none;
  border-top:1px solid #e5e7eb;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  text-align:center;
  transition:background .15s, color .15s;
  letter-spacing:.3px;
}
.acc-reset-all:hover{
  background:#e5e7eb;
  color:#111827;
}

/* ── ACCESSIBILITY THEMES ── */

/* High contrast — exclude widget so it stays usable */
html.acc-hc body > *:not(.acc-widget){
  filter:contrast(1.6) saturate(1.3);
}

/* Yellow on black */
html.acc-yb{
  background:#000 !important;
}
html.acc-yb body{
  background:#000 !important;
  color:#ffff00 !important;
}
html.acc-yb h1,html.acc-yb h2,html.acc-yb h3,html.acc-yb h4,html.acc-yb h5{
  color:#ffff00 !important;
}
html.acc-yb a{
  color:#ffee00 !important;
}
html.acc-yb .header{
  background:#000 !important;
  border-color:#333 !important;
}
html.acc-yb .header-topbar{
  background:#111 !important;
}
html.acc-yb .nav-link{
  color:#ffff00 !important;
}
html.acc-yb .nav-link-contact{
  background:#333 !important;
  color:#ffff00 !important;
}
html.acc-yb .section-alt{
  background:#111 !important;
}
html.acc-yb .news-card-body h3,
html.acc-yb .section-h2,
html.acc-yb .section-label{
  color:#ffff00 !important;
}
html.acc-yb .footer{
  background:#111 !important;
}
html.acc-yb .nav-dropdown{
  background:#111 !important;
  border-color:#333 !important;
}
html.acc-yb .nav-dropdown a{
  color:#ffff00 !important;
}
html.acc-yb .services-bar{
  background:#111 !important;
  border-color:#333 !important;
}
html.acc-yb .sb-item{
  color:#ffff00 !important;
  border-color:#333 !important;
}
html.acc-yb .sb-icon{
  background:#222 !important;
}

/* Grayscale — exclude widget so it stays usable */
html.acc-bw body > *:not(.acc-widget){
  filter:grayscale(100%);
}

/* Underline all links */
html.acc-underlines a{
  text-decoration:underline !important;
}
html.acc-underlines .nav-link,
html.acc-underlines .btn,
html.acc-underlines .news-all-btn,
html.acc-underlines .section-more-link{
  text-decoration:none !important;
}

/* Dyslexia-friendly font */
html.acc-dyslexia,
html.acc-dyslexia body,
html.acc-dyslexia p,
html.acc-dyslexia a,
html.acc-dyslexia li,
html.acc-dyslexia td,
html.acc-dyslexia .nav-link,
html.acc-dyslexia .news-card-body,
html.acc-dyslexia .event-text{
  font-family:Arial, Helvetica, sans-serif !important;
  letter-spacing:.04em !important;
  word-spacing:.12em !important;
  line-height:1.85 !important;
}
html.acc-dyslexia h1,
html.acc-dyslexia h2,
html.acc-dyslexia h3,
html.acc-dyslexia h4{
  font-family:Arial, Helvetica, sans-serif !important;
  letter-spacing:.03em !important;
  line-height:1.4 !important;
}

@media(max-width:480px){
  .acc-widget{bottom:16px;right:16px}
  .acc-panel{width:calc(100vw - 32px);right:0}
}

/* ── SERVICES BAR ── */
.services-bar{
  background:#fff;
  border-bottom:2px solid #e5e7eb;
  position:relative;
  z-index:1;
}
.services-bar-inner{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
}
.sb-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:22px 12px;
  text-decoration:none;
  color:#374151;
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;
  border-right:1px solid #e5e7eb;
  transition:background .2s, color .2s;
  text-align:center;
  line-height:1.3;
}
.sb-item:last-child{border-right:none}
.sb-item:hover{background:#f4f6f8;color:#111827}
.sb-icon{
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  background:#f4f6f8;
  border-radius:50%;
  flex-shrink:0;
  transition:background .2s;
}
.sb-item:hover .sb-icon{background:#e5e7eb}

/* ── SECTION HEAD (label + h2 + more-link row) ── */
.section-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  margin-bottom:28px;
}
.section-label{
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
  color:#65a30d;
  margin-bottom:6px;
}
.section-h2{
  font-size:clamp(30px,3.5vw,44px);
  font-weight:700;
  color:#111827;
  line-height:1.1;
  margin:0;
  text-align:center;
}

/* ── EVENTS GRID (front page row list) ── */
.events-grid{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.event-row{
  display:grid;
  grid-template-columns:60px 1fr auto;
  gap:20px;
  align-items:center;
  padding:14px 18px;
  background:#fff;
  border:1px solid #e5e7eb;
  transition:background .15s, border-color .15s;
}
.event-row:hover{
  background:#f9fafb;
  border-color:#d1d5db;
}
.event-row-date{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#f0fdf4;
  border:1px solid #d1fae5;
  padding:8px 6px;
  border-radius:2px;
}
.event-row-day{
  font-size:22px;
  font-weight:700;
  color:#111827;
  line-height:1;
}
.event-row-mon{
  font-family:'DM Sans',sans-serif;
  font-size:10px;
  font-weight:700;
  color:#65a30d;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-top:3px;
}
.event-row-body{
  min-width:0;
}
.event-row-body h3{
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  font-weight:700;
  color:#111827;
  margin:0 0 5px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.event-row-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.event-row-meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
}
.event-row-thumb{
  flex-shrink:0;
  width:76px;
  height:56px;
  overflow:hidden;
  background:#f4f6f8;
}
.event-row-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ── REK-CONTENT (the_content() wrapper for rekvizīti/vpvkac) ── */
.rek-content{display:flex;flex-direction:column;gap:20px}

/* ── PAKALPOJUMI lapas sadaļas ── */
.pak-section{display:flex;flex-direction:column;gap:0;scroll-margin-top:120px}
.pak-section-title{
  font-family:'DM Sans',sans-serif;
  font-size:20px;font-weight:700;color:#111827;
  padding-bottom:10px;margin-bottom:12px;
  border-bottom:2px solid #65a30d;
}
.pak-desc{
  font-family:'DM Sans',sans-serif;
  font-size:14px;color:#6b7280;
  margin-bottom:12px;
}

/* Sekcija — izskatās kā rek-card */
.rek-content .rek-section{
  border:1px solid #e5e7eb;
  overflow:hidden;
  padding:0 !important;
  margin:0 !important;
}
.rek-content .rek-section-title{
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
  padding:13px 20px !important;
  font-size:15px !important;
  font-weight:700 !important;
  color:#111827 !important;
  margin:0 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.rek-content .rek-subheading{
  font-size:17px !important;
  font-weight:700;
  color:#111827;
  margin:8px 0 4px !important;
}
/* Tabulas stils */
.rek-content .rek-table{margin:0 !important}
.rek-content .rek-table table{width:100%;border-collapse:collapse}
.rek-content .rek-table td{
  padding:10px 20px;
  border-bottom:1px solid #f3f4f6;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  vertical-align:top;
  line-height:1.55;
}
.rek-content .rek-table td:first-child{
  color:#6b7280;font-weight:500;
  white-space:nowrap;width:150px;
}
.rek-content .rek-table tr:last-child td{border-bottom:none}
.rek-content .rek-table a{color:#65a30d}
/* Saraksts (list) */
.rek-content .rek-section .wp-block-list{
  margin:0;padding:16px 20px 16px 36px;
  font-family:'DM Sans',sans-serif;font-size:14px;
  color:#374151;line-height:1.7;
}
.rek-content .rek-section .wp-block-list li{margin-bottom:6px}
/* Kolonnas */
.rek-content .rek-columns{gap:20px !important;margin:0 !important}
.rek-content .rek-columns .wp-block-column{margin:0}
.rek-content .rek-columns .rek-section{height:100%}
/* Teksta paragrāfi */
.rek-content > .wp-block-paragraph{
  font-family:'DM Sans',sans-serif;font-size:15px;
  color:#374151;line-height:1.75;margin:0 !important;
}
/* Kāzu ceremonijas sekcija */
.kazas-section{
  border:1px solid #e5e7eb;
  border-radius:10px;
  overflow:hidden;
}
.kazas-layout{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  min-height:320px;
}
.kazas-text{
  padding:28px 28px;
  display:flex;flex-direction:column;
  justify-content:center;gap:16px;
  border-right:1px solid #e5e7eb;
  background:#fafafa;
}
.kazas-section-title{
  font-family:'DM Sans',sans-serif;
  font-size:20px;font-weight:700;color:#111827;
  margin:0;line-height:1.3;
}
.kazas-desc{
  font-family:'DM Sans',sans-serif;
  font-size:14px;color:#6b7280;
  line-height:1.7;margin:0;
}
.kazas-slider-wrap{
  position:relative;
  background:#111;
  overflow:hidden;
  aspect-ratio:1/1;
}
.kazas-slider{
  display:flex;
  transition:transform .4s ease;
  height:100%;
}
.kazas-slider img{
  flex-shrink:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.kazas-prev,.kazas-next{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(0,0,0,.45);color:#fff;
  border:none;cursor:pointer;
  width:40px;height:40px;border-radius:50%;
  font-size:24px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;z-index:2;
}
.kazas-prev{left:10px}
.kazas-next{right:10px}
.kazas-prev:hover,.kazas-next:hover{background:rgba(0,0,0,.7)}
.kazas-more-btn{
  display:inline-block;
  font-family:'DM Sans',sans-serif;
  font-size:14px;font-weight:600;
  color:#fff;text-decoration:none;
  background:#65a30d;
  padding:10px 20px;border-radius:6px;
  transition:background .2s;
  align-self:flex-start;
}
.kazas-more-btn:hover{background:#4d7c0f}
@media(max-width:700px){
  .kazas-layout{grid-template-columns:1fr}
  .kazas-text{border-right:none;border-bottom:1px solid #e5e7eb}
  .kazas-slider{min-height:220px}
}

/* ── FOOTER ── */
.footer{background:#111827;color:#fff;padding:64px 32px 32px;margin-top:auto;width:100%}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px;margin-bottom:48px}
.footer-brand{font-size:20px;font-weight:700;color:#e5e7eb;margin-bottom:8px}
.footer-brand-sub{font-family:'DM Sans',sans-serif;font-size:13px;color:rgba(255,255,255,.45);line-height:1.6}
.footer-heading{font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:2px;color:rgba(255,255,255,.35);text-transform:uppercase;margin-bottom:16px}
.footer a{font-family:'DM Sans',sans-serif;color:rgba(255,255,255,.65);font-size:14px;display:block;margin-bottom:10px;transition:color .3s}
.footer-links-cols{columns:2;column-gap:24px;}

/* ── TŪRISMS KARTĪTES ── */
.tp-section{background:#f9fafb;padding:40px}
.tp-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tp-new-card{background:#fff;overflow:hidden;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.07);transition:box-shadow .2s,transform .2s}
.tp-new-card:hover{box-shadow:0 6px 24px rgba(0,0,0,.12);transform:translateY(-3px)}
.tp-new-img{height:220px;background-size:cover;background-position:center;transition:transform .4s}
.tp-new-card:hover .tp-new-img{transform:scale(1.03)}
.tp-new-body{padding:20px 22px 22px}
.tp-new-year{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.5px;color:#65a30d;text-transform:uppercase;display:block;margin-bottom:6px}
.tp-new-title{font-family:'DM Sans',sans-serif;font-size:19px;font-weight:700;color:#111827;margin:0 0 8px;line-height:1.2}
.tp-new-desc{font-family:'DM Sans',sans-serif;font-size:14px;color:#6b7280;line-height:1.6;margin:0 0 14px}
.tp-new-map{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;color:#65a30d;cursor:pointer}
.tp-new-map:hover{text-decoration:underline}
.tp-new-more{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;color:#65a30d}
.tp-new-card:hover .tp-new-more{text-decoration:underline}
@media(max-width:800px){.tp-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.tp-grid{grid-template-columns:1fr}}

/* ── TŪRISMS HERO ── */
.tur-hero{position:relative;height:200px;margin-top:64px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.tur-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:contrast(1.15) saturate(1.2) brightness(1.05)}
.tur-hero-overlay{position:absolute;inset:0;background:rgba(0,0,0,.3)}
.tur-hero-text{position:relative;z-index:1;text-align:center;color:#fff;padding:0 24px}
.tur-hero-text h1{font-family:'DM Sans',sans-serif;font-size:42px;font-weight:700;margin:0 0 6px;letter-spacing:-.5px}
.tur-hero-text p{font-family:'DM Sans',sans-serif;font-size:16px;color:rgba(255,255,255,.8);margin:0}
.tur-hero-breadcrumb{font-family:'DM Sans',sans-serif;font-size:13px;color:rgba(255,255,255,.6);margin-bottom:10px}
.tur-hero-breadcrumb a{color:rgba(255,255,255,.7);text-decoration:none}
@media(max-width:860px){.tur-hero{margin-top:0}}

/* ── TŪRISMS NAV (shared partial) ── */
.tur-nav{background:#fff;border-bottom:1px solid #e5e7eb;position:relative;z-index:1}
.tur-nav-inner{max-width:900px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr)}
.tur-nav-item{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 16px;text-decoration:none;color:#1f2937;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;border-bottom:3px solid transparent;transition:color .2s,border-color .2s,background .2s}
.tur-nav-item:hover,.tur-nav-item--active{color:#65a30d;border-bottom-color:#65a30d;background:#f9fafb}
.tur-nav-icon{color:#6b7280;transition:color .2s}
.tur-nav-item:hover .tur-nav-icon,.tur-nav-item--active .tur-nav-icon{color:#65a30d}
@media(max-width:700px){
  .tur-nav-inner{grid-template-columns:repeat(2,1fr)}
  .tur-nav-item{padding:16px 12px;font-size:13px}
}

/* ── TŪRISMS OVERVIEW ── */

/* Hero */
.turisms-hero{position:relative;height:520px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-top:64px}
.turisms-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.05);transition:transform 8s ease}
.turisms-hero:hover .turisms-hero-bg{transform:scale(1)}
.turisms-hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.35) 0%,rgba(0,0,0,.6) 100%)}
.turisms-hero-content{position:relative;z-index:1;text-align:center;padding:0 24px;max-width:700px}
.turisms-hero-label{font-family:'DM Sans',sans-serif;font-size:13px;letter-spacing:3px;text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:16px}
.turisms-hero-title{font-family:'Source Serif 4',serif;font-size:clamp(32px,5vw,58px);font-weight:700;color:#fff;line-height:1.15;margin-bottom:16px}
.turisms-hero-sub{font-family:'DM Sans',sans-serif;font-size:17px;color:rgba(255,255,255,.8);line-height:1.6;margin-bottom:32px}
.turisms-hero-btn{display:inline-block;background:#65a30d;color:#fff;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;padding:14px 32px;border-radius:6px;text-decoration:none;transition:background .2s}
.turisms-hero-btn:hover{background:#4d7c0f}

/* Cards grid */
.turisms-cards-section{padding:0}
.turisms-cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}
.turisms-big-card{position:relative;height:320px;overflow:hidden;display:block;text-decoration:none}
.turisms-big-card-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .6s ease}
.turisms-big-card:hover .turisms-big-card-bg{transform:scale(1.07)}
.turisms-big-card-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,rgba(0,0,0,.15) 60%);transition:background .3s}
.turisms-big-card:hover .turisms-big-card-overlay{background:linear-gradient(to top,rgba(0,0,0,.85) 0%,rgba(0,0,0,.25) 60%)}
.turisms-big-card-body{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:28px 32px;z-index:1}
.turisms-big-card-num{font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:2px;color:rgba(255,255,255,.5);margin-bottom:6px}
.turisms-big-card-title{font-family:'DM Sans',sans-serif;font-size:26px;font-weight:700;color:#fff;margin:0 0 8px;line-height:1.2}
.turisms-big-card-desc{font-family:'DM Sans',sans-serif;font-size:14px;color:rgba(255,255,255,.75);line-height:1.5;margin:0 0 14px;max-width:320px;opacity:0;transform:translateY(8px);transition:opacity .3s,transform .3s}
.turisms-big-card:hover .turisms-big-card-desc{opacity:1;transform:translateY(0)}
.turisms-big-card-arrow{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:#4ade80;letter-spacing:.3px}

@media(max-width:640px){
  .turisms-hero{height:380px;margin-top:0}
  .turisms-cards-grid{grid-template-columns:1fr}
  .turisms-big-card{height:240px}
  .turisms-big-card-desc{opacity:1;transform:none}
}
.footer a:hover{color:#e5e7eb}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-bottom span{font-family:'DM Sans',sans-serif;font-size:13px;color:rgba(255,255,255,.3)}

/* ═══════════════════════════════════════
   MOBILAIS SKATS
   ═══════════════════════════════════════ */

@media(max-width:768px){

  /* Header */
  .header-inner{padding:12px 20px}

  /* Sections */
  .section{padding:60px 20px}
  .section-title{margin-bottom:32px}

  /* Hero */
  .hero{min-height:75vh}
  .hero-content{padding:100px 20px 60px}
  .hero-stats{gap:20px;margin-top:40px}
  .stat-num{font-size:26px}
  .hero-circle1,.hero-circle2{display:none}
  .scroll-hint{display:none}

  /* News cards — 2 kolumnas tablet */
  .news-cards-grid{grid-template-columns:repeat(2,1fr);gap:20px}

  /* Pakalpojumi */
  .pakalpojumi-layout{grid-template-columns:1fr}
  .contact-form-box{max-width:100%}

  /* About */
  .about-grid{grid-template-columns:1fr;gap:24px}
  .about-box{padding:32px 24px}
  .about-year{font-size:48px}
  .about-facts-row{grid-template-columns:repeat(3,1fr)}
  .about-facts-row .about-fact-card:nth-child(4),.about-facts-row .about-fact-card:nth-child(5){grid-column:span 1}

  /* Participation */
  .participation{padding:60px 20px}
  .nvo-grid{grid-template-columns:repeat(2,1fr)}

  /* Events — horizontāls scroll uz mobile */
  .events-scroll{
    display:flex;
    overflow-x:auto;
    gap:14px;
    padding-bottom:12px;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    margin:0 -20px;
    padding-left:20px;
    padding-right:20px;
  }
  .events-scroll .event-card{flex:0 0 220px;min-width:220px;margin-bottom:0;scroll-snap-align:start}
  .event-info-bar{flex-direction:column}
  .event-info-cell{border-right:none;border-bottom:1px solid #e5e7eb}
  .event-info-cell:last-child{border-bottom:none}

  /* Services grid */
  .services-grid{grid-template-columns:1fr}

  /* Contacts */
  .contacts-section{padding:0}
  .contacts-search-wrap{max-width:100%}
  .contacts-layout{grid-template-columns:1fr}
  .contacts-sidebar{flex-direction:row;flex-wrap:wrap;gap:6px;margin-bottom:12px}
  .dept-tab{width:auto;padding:8px 12px;font-size:13px}
  .contacts-cf .contact-form-box{max-width:100%}

  /* Footer */
  .footer{padding:48px 20px 24px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px;margin-bottom:32px}
}

@media(max-width:480px){

  .nvo-grid{grid-template-columns:1fr}

  /* Sections */
  .section{padding:48px 16px}
  .section-title{font-size:26px;margin-bottom:24px}

  /* Hero */
  .hero-content{padding:90px 16px 48px}
  .hero h1{font-size:32px}
  .hero p{font-size:15px}
  .hero-btns{flex-direction:column}
  .hero-btns .btn{text-align:center;padding:13px 24px}
  .hero-stats{gap:14px}
  .stat-num{font-size:22px}

  /* News cards — 1 kolumna mobile */
  .news-cards-grid{grid-template-columns:1fr;gap:16px}

  /* About */
  .about-box{padding:24px 18px}
  .about-facts-row{grid-template-columns:repeat(2,1fr)}
  .about-fact-card{padding:18px 14px}
  .about-fact-num{font-size:18px}
  .about-info-block{padding:18px 20px}

  /* Participation */
  .participation{padding:48px 16px}
  .participation h2{font-size:22px}

  /* Tourism slider */
  .place-card{padding:28px 20px;min-height:220px}
  .place-card h3{font-size:18px}

  /* Events */
  .events-scroll{margin:0 -16px;padding-left:16px;padding-right:16px}
  .event-card{flex:0 0 200px;min-width:200px}
  .event-thumb{height:130px}
  .event-text{padding:12px 14px}
  .event-text h3{font-size:15px}
  .events-header{flex-direction:column;gap:4px}

  /* Single gallery */
  .single-gallery{grid-template-columns:1fr 1fr}

  /* Contacts */
  .contacts-sidebar{gap:4px}
  .dept-tab{font-size:12px;padding:7px 10px}
  .contact-row{flex-direction:column;gap:8px}
  .contact-info{align-items:flex-start}

  /* Footer */
  .footer-grid{grid-template-columns:1fr;gap:20px}
  .footer{padding:40px 16px 20px}

  /* New pages */
  .tourism-teaser-grid{grid-template-columns:1fr;gap:16px}
  .contact-strip-grid{grid-template-columns:1fr 1fr;gap:14px}
  .subpage-hero{padding:24px 20px;margin-top:64px}
  .subpage-main{padding:48px 20px 72px}
  .tourism-page-grid{grid-template-columns:1fr}
  /* Quick links */
  .quick-links-grid{grid-template-columns:repeat(3,1fr)}
  .vpvkac-compact{grid-template-columns:1fr;gap:24px}
}

/* ── NEW PAGES RESPONSIVE (tablet) ── */
@media(max-width:860px){
  .tourism-teaser-grid{grid-template-columns:repeat(2,1fr)}
  .contact-strip-grid{grid-template-columns:repeat(2,1fr)}
  .tourism-page-grid{grid-template-columns:repeat(2,1fr)}
  .quick-links-grid{grid-template-columns:repeat(3,1fr)}
  .services-bar-inner{grid-template-columns:repeat(3,1fr)}
  .sb-item:nth-child(3){border-right:none}
  .sb-item:nth-child(4){border-top:1px solid #e5e7eb}
  .sb-item:nth-child(5){border-top:1px solid #e5e7eb}
  .sb-item:nth-child(6){border-right:none;border-top:1px solid #e5e7eb}
  .event-row{grid-template-columns:56px 1fr}
  .event-row-thumb{display:none}
  .section-head{gap:8px}
}

@media(max-width:640px){
  .contact-strip-grid{grid-template-columns:1fr}
  .subpage-contact-strip-inner{flex-direction:column;align-items:flex-start}
  .quick-links-grid{grid-template-columns:repeat(2,1fr)}
  .header-topbar{display:none}
  .hero{margin-top:64px}
  .subpage-hero{margin-top:64px}
  .services-bar-inner{grid-template-columns:repeat(2,1fr)}
  .sb-item:nth-child(2){border-right:none}
  .sb-item:nth-child(3){border-right:1px solid #e5e7eb;border-top:1px solid #e5e7eb}
  .sb-item:nth-child(4){border-right:none;border-top:1px solid #e5e7eb}
  .sb-item:nth-child(5){border-right:1px solid #e5e7eb;border-top:1px solid #e5e7eb}
  .sb-item:nth-child(6){border-right:none;border-top:1px solid #e5e7eb}
  .event-row{grid-template-columns:52px 1fr;padding:12px 14px;gap:14px}
  .event-row-day{font-size:18px}
}

/* ════════════════════════════════════════
   PAR MUMS PAGE
   ════════════════════════════════════════ */

/* Layout: sidebar + content */
.pm-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:52px;
  align-items:start;
}

/* ── Sidebar ── */
.pm-sidebar{
  position:sticky;
  top:120px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

/* Accordion block */
.pm-acc{
  background:#fff;
  border:1px solid #e5e7eb;
}

.pm-acc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:13px 16px;
  background:none;
  border:none;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:700;
  color:#111827;
  text-align:left;
  letter-spacing:.2px;
  transition:background .15s;
}
.pm-acc-head:hover{background:#f9fafb}

.pm-acc--open .pm-acc-head{
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
}

.pm-acc-arrow{
  flex-shrink:0;
  color:#9ca3af;
  transition:transform .2s ease, color .2s;
}
.pm-acc--open .pm-acc-arrow{
  transform:rotate(180deg);
  color:#65a30d;
}

/* Body — hidden by default */
.pm-acc-body{
  display:none;
  flex-direction:column;
}
.pm-acc--open .pm-acc-body{
  display:flex;
}

.pm-acc-body a{
  display:block;
  padding:9px 16px 9px 22px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:500;
  color:#374151;
  text-decoration:none;
  text-align:right;
  border-bottom:1px solid #f3f4f6;
  transition:background .15s, color .15s;
}
.pm-acc-body a:last-child{border-bottom:none}
.pm-acc-body a:hover{background:#f0fdf4;color:#65a30d}

/* ── Quick facts strip ── */
.pm-facts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:52px;
}

.pm-fact{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:20px 16px;
  text-align:center;
  box-shadow:0 2px 8px rgba(17,24,39,.05);
  transition:box-shadow .2s, transform .2s;
}
.pm-fact:hover{
  box-shadow:0 4px 16px rgba(17,24,39,.08);
  transform:translateY(-2px);
}
.pm-fact-num{
  font-size:20px;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin-bottom:4px;
}
.pm-fact-label{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
  line-height:1.4;
}

/* ── Content sections ── */
.pm-section{
  margin-bottom:52px;
}

.pm-section-title{
  font-size:clamp(19px,2.2vw,24px);
  font-weight:700;
  color:#111827;
  line-height:1.2;
  padding-bottom:12px;
  border-bottom:2px solid #e5e7eb;
  margin-bottom:22px;
}

.pm-sub-title{
  font-size:15px;
  font-weight:700;
  color:#111827;
  margin:28px 0 10px;
}

.pm-content p{
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  color:#4b5563;
  line-height:1.85;
  margin-bottom:16px;
}
.pm-content p:last-child{margin-bottom:0}

/* ── Two-column info grid ── */
.pm-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:20px 0;
}

.pm-info-card{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:18px 20px;
}
.pm-info-card--green{
  border-left:3px solid #65a30d;
  background:#f0fdf4;
  border-color:#d1fae5;
}
.pm-info-card h4{
  font-size:13px;
  font-weight:700;
  color:#111827;
  margin-bottom:8px;
  letter-spacing:.1px;
}
.pm-info-card p{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#4b5563;
  line-height:1.75;
  margin:0 !important;
}

/* ── Company cards ── */
.pm-company-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-top:3px solid #111827;
  border-radius:0;
  padding:20px 22px 22px;
}
.pm-company-tag{
  font-family:'DM Sans',sans-serif;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:#65a30d;
  margin-bottom:8px;
}
.pm-company-card h4{
  font-size:14px;
  font-weight:700;
  color:#111827;
  margin-bottom:10px;
  line-height:1.3;
}
.pm-company-card ul{
  padding-left:18px;
  margin:0;
}
.pm-company-card ul li{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#4b5563;
  line-height:1.7;
  margin-bottom:3px;
}

/* ── NVO tags ── */
.pm-nvo-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.pm-nvo-tag{
  background:#f4f6f8;
  border:1px solid #e5e7eb;
  border-radius:4px;
  padding:5px 13px;
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#374151;
  line-height:1.4;
}

/* ── Responsive ── */
@media(max-width:960px){
  .pm-layout{
    grid-template-columns:190px 1fr;
    gap:36px;
  }
}

@media(max-width:780px){
  .pm-layout{
    grid-template-columns:1fr;
    gap:32px;
  }
  .pm-sidebar{
    position:static;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
  }
  .pm-acc--open .pm-acc-body{display:flex}
  .pm-facts{grid-template-columns:repeat(2,1fr)}
  .pm-two-col{grid-template-columns:1fr}
}

@media(max-width:480px){
  .pm-sidebar{grid-template-columns:1fr}
  .pm-facts{grid-template-columns:repeat(2,1fr)}
  .pm-section-title{font-size:18px}
}

/* Active sidebar link */
.pm-acc-body a.active{
  background:#f0fdf4;
  color:#65a30d;
  font-weight:700;
  border-left:2px solid #65a30d;
  padding-left:20px;
}

/* Coming-soon placeholder */
.pm-coming-soon{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:72px 32px;
  border:1px dashed #d1d5db;
  border-radius:10px;
  background:#fafafa;
}
.pm-cs-icon{
  width:64px;height:64px;
  background:#f0fdf4;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#65a30d;
  margin-bottom:20px;
}
.pm-coming-soon h3{
  font-size:20px;
  font-weight:700;
  color:#111827;
  margin-bottom:10px;
}
.pm-coming-soon p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#6b7280;
  line-height:1.7;
  max-width:360px;
  margin:0 auto 24px;
}
.pm-cs-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:600;
  color:#374151;
  text-decoration:none;
  padding:10px 20px;
  border:1px solid #e5e7eb;
  border-radius:4px;
  transition:background .15s, color .15s;
}
.pm-cs-back:hover{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* ═══════════════════════════════════════════
   PM – PHOTO BLOCKS
   ═══════════════════════════════════════════ */
.pm-photo{
  margin:28px 0;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}
.pm-photo img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.pm-photo-caption{
  padding:10px 16px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#6b7280;
  background:#f9fafb;
  border-top:1px solid #e5e7eb;
  font-style:italic;
}
.pm-photo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin:28px 0;
}
@media(max-width:640px){
  .pm-photo-grid{ grid-template-columns:1fr; }
  .pm-photo{ float:none!important; max-width:100%!important; margin:0 0 16px 0!important; width:100%!important; }
  .pm-photo img{ width:100%; }
}

/* ═══════════════════════════════════════════
   PM – CONTACT GRID
   ═══════════════════════════════════════════ */
.pm-contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
  margin:20px 0;
}
.pm-contact-item{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:16px 18px;
}
.pm-contact-item h4{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:700;
  color:#65a30d;
  margin:0 0 4px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.pm-contact-item p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  margin:0;
  line-height:1.6;
}
.pm-contact-item a{
  color:#65a30d;
  text-decoration:none;
}
.pm-contact-item a:hover{
  text-decoration:underline;
}
.pm-contact-address{
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:8px;
  padding:16px 20px;
  margin-bottom:20px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  line-height:1.7;
}

/* ═══════════════════════════════════════════
   PM – PROGRAM / TRADITION LISTS
   ═══════════════════════════════════════════ */
.pm-prog-list{
  list-style:none;
  padding:0;
  margin:16px 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pm-prog-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  line-height:1.5;
  padding:10px 14px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:6px;
}
.pm-prog-list li::before{
  content:'';
  flex-shrink:0;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#65a30d;
  margin-top:5px;
}
.pm-trad-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0;
}
.pm-trad-tag{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:#374151;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:5px 14px;
}

/* ═══════════════════════════════════════════
   PM – HYMN / VERSE BLOCK
   ═══════════════════════════════════════════ */
.pm-hymn{
  background:#f0fdf4;
  border-left:4px solid #65a30d;
  border-radius:0 8px 8px 0;
  padding:24px 28px;
  margin:24px 0;
}
.pm-hymn-title{
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:700;
  color:#65a30d;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin:0 0 14px;
}
.pm-hymn-author{
  font-family:'DM Sans',sans-serif;
  font-size:12px;
  color:#6b7280;
  margin:12px 0 0;
  font-style:italic;
}
.pm-hymn-verse{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  line-height:1.9;
  white-space:pre-line;
  margin:0;
}

/* ═══════════════════════════════════════════
   PM – PARTNER SCHOOL LIST
   ═══════════════════════════════════════════ */
.pm-partner-list{
  list-style:none;
  padding:0;
  margin:16px 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pm-partner-list li{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  color:#374151;
  line-height:1.5;
}
.pm-partner-list li::before{
  content:'🌍';
  font-size:14px;
  flex-shrink:0;
}

/* ═══════════════════════════════════════════
   PM – MUZIZGLIT / RATS INFO
   ═══════════════════════════════════════════ */
.pm-pillar-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:20px 0;
}
.pm-pillar{
  text-align:center;
  padding:20px 16px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:8px;
}
.pm-pillar-icon{
  font-size:28px;
  margin-bottom:8px;
}
.pm-pillar h4{
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  font-weight:700;
  color:#65a30d;
  margin:0;
}
@media(max-width:600px){
  .pm-pillar-grid{ grid-template-columns:1fr; }
}
