
/*
Theme Name: LBF Top Right Dark Title Theme
Author: OpenAI
Version: 3.2.4
Description: LBF wide theme with single-color icons, right-aligned header text, and no text background box.
Text Domain: lbf-mono-icons-no-title-bg
*/

:root{
  --bg:#e7eef6;
  --white:#ffffff;
  --blue:#07305f;
  --blue-2:#092a54;
  --blue-3:#0e457b;
  --accent:#1f75b4;
  --line:#d7e1ec;
  --text:#1d2939;
  --muted:#667085;
  --yellow:#f2c23d;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  font-size:14px;
  line-height:1.45;
}
a{color:var(--blue-3);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.site-frame{
  width:1320px;
  max-width:calc(100% - 24px);
  margin:18px auto 34px;
  background:#fff;
  box-shadow:0 10px 32px rgba(12,47,92,.18);
}

.top{
  display:grid;
  grid-template-columns:300px 1fr;
  height:270px;
  background:#fff;
}
.logo-block{
  height:270px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:24px;
}
.logo-block img{width:228px}
.hero-block{height:270px;background:#fff;overflow:hidden}
.hero{
  height:270px;
  width:100%;
  position:relative;
  background:url("assets/hero.jpg") center/cover no-repeat;
}
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,.02) 28%,rgba(7,30,58,.20));
}

/* Title moved to the right side and text color changed */
.hero-copy{
  position:absolute;
  right:42px;
  top:28px;
  max-width:500px;
  text-align:right;
  color:#041f3d;
  text-shadow:0 1px 4px rgba(255,255,255,.35);
  background:transparent;
  padding:0;
}
.hero-copy h1{
  margin:0;
  font-size:40px;
  line-height:1.03;
  color:#041f3d;
  font-weight:700;
}
.hero-copy p{
  margin:8px 0 0;
  font-size:16px;
  color:#06294f;
  font-weight:600;
}

.body{
  display:grid;
  grid-template-columns:300px 1fr;
}
.left{
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue-2) 100%);
  color:#fff;
  min-height:780px;
  overflow:hidden;
  border-right:0;
  box-shadow:none;
}
.menu-heading{
  padding:16px 22px;
  background:rgba(0,0,0,.22);
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.menu-heading .icon{margin-right:8px;color:#fff}
.primary-menu,
.primary-menu ul{list-style:none;padding:0;margin:0}
.primary-menu li{border-bottom:1px solid rgba(255,255,255,.13)}
.primary-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  color:#fff;
  font-weight:bold;
}
.primary-menu a:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffffff;
  opacity:.9;
}
.primary-menu a:hover{background:rgba(255,255,255,.11);text-decoration:none}
.left-panel{
  padding:10px 11px;
  border-top:1px solid rgba(255,255,255,.15);
}
.left-panel h3{margin:0 0 10px;font-size:16px;color:#fff}
.left-panel ul{margin:0;padding-left:17px;color:rgba(255,255,255,.86)}
.left-panel li{margin:6px 0}

.content-wrap{padding:20px;background:#fff}
.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
}

.quick-row{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-bottom:18px;
}
.quick{
  background:linear-gradient(180deg,#1b73b3,#0d4b84);
  color:#fff;
  min-height:104px;
  padding:16px;
}
.quick:nth-child(2){background:linear-gradient(180deg,#2185c6,#115c96)}
.quick:nth-child(3){background:linear-gradient(180deg,#285f98,#123f72)}
.quick h3{margin:0 0 6px;font-size:18px;display:flex;align-items:center;gap:8px}
.quick p{margin:0;color:rgba(255,255,255,.88);font-size:13px}

/* Single-color CSS icons */
.mono-icon{
  width:20px;
  height:20px;
  display:inline-block;
  position:relative;
  color:currentColor;
  flex:0 0 20px;
}
.icon-news:before{
  content:"";
  position:absolute;
  inset:3px 2px 2px 2px;
  border:2px solid currentColor;
}
.icon-news:after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  top:8px;
  height:2px;
  background:currentColor;
  box-shadow:0 5px 0 currentColor;
}
.icon-sponsor:before{
  content:"";
  position:absolute;
  left:3px;
  top:2px;
  width:14px;
  height:14px;
  background:currentColor;
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 56%,79% 92%,50% 70%,21% 92%,32% 56%,2% 35%,39% 35%);
}
.icon-tournament:before{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:10px;
  height:13px;
  border:2px solid currentColor;
  border-top-width:4px;
}
.icon-tournament:after{
  content:"";
  position:absolute;
  left:7px;
  top:15px;
  width:6px;
  height:3px;
  background:currentColor;
}
.icon-calendar:before{
  content:"";
  position:absolute;
  inset:4px 2px 2px 2px;
  border:2px solid currentColor;
}
.icon-calendar:after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  top:8px;
  height:2px;
  background:currentColor;
}
.icon-links:before{
  content:"";
  position:absolute;
  left:1px;
  top:7px;
  width:9px;
  height:6px;
  border:2px solid currentColor;
  border-radius:8px;
  transform:rotate(-28deg);
}
.icon-links:after{
  content:"";
  position:absolute;
  right:1px;
  top:7px;
  width:9px;
  height:6px;
  border:2px solid currentColor;
  border-radius:8px;
  transform:rotate(-28deg);
}
.icon-menu:before{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  top:4px;
  height:2px;
  background:currentColor;
  box-shadow:0 6px 0 currentColor, 0 12px 0 currentColor;
}
.icon-dot:before{
  content:"";
  position:absolute;
  inset:4px;
  border:2px solid currentColor;
  border-radius:50%;
}
.icon-dot:after{
  content:"";
  position:absolute;
  right:1px;
  bottom:1px;
  width:7px;
  height:2px;
  background:currentColor;
  transform:rotate(45deg);
}

.block{
  background:#fff;
  border:1px solid var(--line);
  margin-bottom:18px;
}
.block-title{
  background:#fff;
  color:var(--blue);
  border-bottom:1px solid var(--line);
  padding:12px 14px;
  font-size:20px;
  font-weight:bold;
  display:flex;
  align-items:center;
  gap:9px;
}
.block-title .section-icon{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#edf5fb;
  border:1px solid #d8e7f4;
  color:var(--blue);
  border-radius:50%;
  flex:0 0 30px;
}
.block-body{padding:14px;background:#fff}

.news-list{display:grid;gap:14px}
.news-item{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid #e8eef5;
}
.news-item:last-child{padding-bottom:0;border-bottom:0}
.news-thumb{
  position:relative;
  background:#dbe7f3;
  min-height:105px;
  overflow:hidden;
}
.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}
.news-date{
  position:absolute;
  left:0;
  top:0;
  width:54px;
  background:var(--blue);
  color:#fff;
  text-align:center;
  padding:7px 4px;
  z-index:1;
}
.news-date strong{display:block;font-size:21px;line-height:1}
.news-date span{display:block;margin-top:2px;font-size:10px;text-transform:uppercase}
.news-text h3{margin:0 0 6px;font-size:18px;line-height:1.22}
.news-text p{margin:0;color:var(--muted);font-size:13px}

.tournament-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:13px;
}
.tournament-table th{
  background:#fff;
  color:var(--blue);
  text-align:left;
  padding:10px;
  border-bottom:2px solid var(--line);
}
.tournament-table td{
  padding:10px;
  border-bottom:1px solid #e8eef5;
}
.tournament-table tr:last-child td{border-bottom:0}
.tournament-table td:first-child{color:var(--blue);font-weight:bold;width:90px}

.right .block-title{font-size:17px;padding:11px 12px}
.right .block-title .section-icon{width:28px;height:28px;flex-basis:28px}
.right .block-title .mono-icon{width:18px;height:18px}
.right .block-body{padding:12px}
.sponsors{display:grid;grid-template-columns:1fr;gap:10px}
.sponsor{
  min-height:58px;
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  font-weight:bold;
  text-align:center;
}
.mini-calendar{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  text-align:center;
  font-size:12px;
}
.mini-calendar th{
  background:#fff;
  color:var(--blue);
  padding:7px 2px;
  border-bottom:1px solid var(--line);
}
.mini-calendar td{border:1px solid #e5edf5;padding:7px 2px}
.mini-calendar .active{background:var(--blue);color:#fff;font-weight:bold}
.link-list{margin:0;padding:0;list-style:none}
.link-list li{border-bottom:1px solid #e8eef5}
.link-list li:last-child{border-bottom:0}
.link-list a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 0;
  color:var(--blue);
  font-weight:bold;
}
.link-list a:before{
  content:"";
  width:7px;
  height:7px;
  background:var(--blue);
  border-radius:50%;
  flex:0 0 7px;
}

.cta-small{
  background:#fff;
  border:1px solid var(--line);
  padding:14px;
}
.cta-small h3{
  margin:0 0 5px;
  color:var(--blue);
  font-size:18px;
  display:flex;
  align-items:center;
  gap:8px;
}
.cta-small p{margin:0 0 10px;color:var(--muted);font-size:13px}
.button{
  display:inline-block;
  background:var(--yellow);
  color:#1f2937;
  font-weight:bold;
  padding:8px 11px;
  font-size:13px;
}

.entry-content{background:#fff;border:1px solid var(--line);padding:18px}
.entry-title{margin:0 0 12px;color:var(--blue);font-size:27px}
.footer{
  background:var(--blue-2);
  color:rgba(255,255,255,.78);
  text-align:center;
  padding:16px;
  font-size:13px;
}

@media(max-width:1100px){
  .site-frame{max-width:calc(100% - 16px)}
  .top,.body,.content-grid{grid-template-columns:1fr}
  .top,.logo-block,.hero-block,.hero{height:auto}
  .hero{height:250px}
  .left{min-height:auto}
  .hero-copy{
    right:20px;
    left:20px;
    text-align:left;
    max-width:none;
  }
}
@media(max-width:720px){
  .quick-row{grid-template-columns:1fr}
  .news-item{grid-template-columns:1fr}
  .news-thumb{min-height:180px}
}

.sponsor-widget img{
  width:100%;
  height:auto;
  display:block;
}

.sponsor-widget{
  margin-bottom:12px;
}

/* Kreisās izvēlnes korekta apakšizvēlņu atvēršana */
.primary-menu li{
  position:relative;
}

/* Noklusēti visas apakšizvēlnes ir aizvērtas */
.primary-menu .sub-menu{
  display:none;
  margin:0;
  padding:0;
  background:rgba(0,0,0,.16);
}

/*
 Atver tikai pareizo apakšizvēlni:
 - ja atvērta pati 1. līmeņa lapa ar bērniem;
 - ja atvērta kāda tās apakšlapa.
 Neizmantojam current-menu-parent/current_page_parent,
 jo tās var atvērt nepareizas sadaļas.
*/
.primary-menu li.current-menu-item.menu-item-has-children > .sub-menu,
.primary-menu li.current_page_item.page_item_has_children > .sub-menu,
.primary-menu li.current-menu-ancestor > .sub-menu,
.primary-menu li.current_page_ancestor > .sub-menu{
  display:block;
}

/* 1. līmenis */
.primary-menu > li > a{
  padding:10px 18px;
  font-size:14px;
  min-height:38px;
}

/* 2. līmenis */
.primary-menu .sub-menu a{
  padding:8px 22px 8px 42px;
  font-size:13px;
  font-weight:normal;
  min-height:32px;
}

/* 3. līmenis, ja tāds ir */
.primary-menu .sub-menu .sub-menu a{
  padding-left:58px;
  font-size:12px;
}

.primary-menu a:before{
  width:6px;
  height:6px;
  flex:0 0 6px;
}

/* Aktīvās sadaļas izcelšana */
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a{
  background:rgba(255,255,255,.16);
}

.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_ancestor > a{
  background:rgba(255,255,255,.10);
}


/* Galerijai */

.old-album-gallery{
  column-width:180px;
  column-gap:14px;
  margin-top:20px;
}

.old-album-item{
  display:inline-block;
  margin:0 0 14px;
  break-inside:avoid;
  background:#fff;
}

.old-album-item img{
  width:auto;
  max-width:100%;
  height:auto;
  display:block;
  border:1px solid #d7e1ec;
  transition:.2s;
}

.old-album-item:hover img{
  opacity:.92;
}

/* news pagination */

.news-pagination{
  margin-top:24px;
  text-align:center;
}

.news-pagination .page-numbers{
  display:inline-block;
  padding:8px 14px;
  margin:0 4px;
  background:#fff;
  border:1px solid #d7e1ec;
  color:#0d3b66;
  text-decoration:none;
}

.news-pagination .current{
  background:#0d3b66;
  color:#fff;
}

/* mobīlā versija */

@media(max-width:1100px){

  .primary-menu > li > a{
    padding:8px 14px;
    min-height:30px;
    font-size:13px;
  }

  .primary-menu .sub-menu a{
    padding:6px 14px 6px 34px;
    min-height:26px;
    font-size:12px;
  }

  .menu-heading{
    padding:10px 14px;
    font-size:13px;
  }

  .left{
    min-height:auto;
  }

  .content-wrap{
    padding:12px;
  }

  .content-grid{
    gap:12px;
  }
  
  .logo-block {
  	padding: 16px;
  }
  .hero {
  	height: 76px;
  }
}

/* karodziņi - social */

.top-bar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:48px;
  margin-bottom:12px;
}

.top-socials{
  display:flex;
  gap:10px;
}

.top-socials img{
  width:22px;
  height:22px;
  display:block;
}

.lang-switch{
  display:flex;
  gap:8px;
}

.lang-switch img{
  width:28px;
  height:auto;
  display:block;
}

/* meklēt */

.site-search{
  display:flex;
  gap:6px;
  margin-bottom:14px;
}

.site-search input{
  width:100%;
  padding:8px 10px;
  border:1px solid #d7e1ec;
}

.site-search button{
  padding:8px 12px;
  background:var(--blue);
  color:#fff;
  border:0;
  font-weight:bold;
  cursor:pointer;
}

/* satura labošana */

.entry-content img{
  display:inline-block;
  vertical-align:top;
}

.entry-content table{
  width:100% !important;
  border-collapse:collapse;
  display:block;
  overflow-x:auto;
  font-size:14px;
}

.entry-content td,
.entry-content th{
  padding:6px 8px;
  border:1px solid #d7e1ec;
  vertical-align:top;
}

.entry-content tr:nth-child(even){
  background:#f7fafc;
}

.entry-content table{
  margin-top:0 !important;
}
