/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* --------------------------- atstarpes priekš reklāmas teksta un bildēm */

.home-intro {
    padding-top: 30px;
    padding-bottom: 30px;
}


/* --------------------------- Hide featured images in posts and the blog list (the slider still uses them) */
.post-image,
.featured-image {
    display: none;
}

/* --------------------------- Post titles on single post pages (H1) look the same as on the home page (H2) */
.single .entry-title {
    font-size: 35px;   /* use the same size as your H2 */
    font-weight: 400;
        color: var(--accent);
}

/* --------------------------- savs background starp sidebar-content-sidebar */

.site-content {
  background-color: #e3e3e3;
  /* or an image instead: */
  /* background: url('https://jauns2.kadzan.lv/wp-content/uploads/2026/11/your-image.jpg') center / cover no-repeat; */
	
}

/* ----------------------- starpa starp sidebar un ārējo malu */

.site-content {
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----------------------- mazāka starpa starp widgetu virsrakstiem un widghetu */

/* Sidebar widget titles with a background: full width, less padding */
.widget-area .widget .wp-block-heading.has-background {
    padding: 8px 15px;                        /* space inside the blue bar */
    margin: -15px -15px 10px -15px !important; /* pull out to the widget edges */
    max-width: none !important;               /* undo the Group block's width limit */
}

/* ----------------------- mazākas iekšējās starpas iekš sidebar un content */

/* Sidebar widget inner padding (default 40px) */
.widget-area .widget {
    padding: 15px;
}

/* Space between widgets (default 20px) */
.sidebar .widget {
    margin-bottom: 15px;
}

/* Space under widget headings (default 20px) */
.widget-area .widget .wp-block-heading {
    margin-bottom: 10px;
}

/* Mobile – GP sets 30px here, so override it too */
@media (max-width: 768px) {
    .widget-area .widget {
        padding: 15px;
    }
}

/* ----------------------- spacing starp headeri - izvēlni - saturu */

/* Header: no padding around the logo */
.inside-header {
  padding-top: 0;
  padding-bottom: 0;
}
.site-logo img.header-image {
  display: block;
}

/* Remove space above the content and sidebars */
.separate-containers .site-main,
.both-sidebars.separate-containers .site-main {
  margin-top: 0;
}
.separate-containers .inside-left-sidebar,
.separate-containers .inside-right-sidebar {
  margin-top: 0;
}



/* ------------------------- Raksta virsraksts + datums (datums pa kreisi, virsraksts pa labi) */
.entry-header {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

.entry-header .entry-meta {
    margin: 0 !important;
    line-height: 1 !important;
}

/* Paslēpj autoru ("pēc admin") */
.entry-meta .byline,
.entry-meta .author {
    display: none !important;
}

/* Kalendāra bloka pamatne */
.custom-date-box {
    display: block;
    width: 52px;
	background: #205995;
    border: 1px solid #0f2d4d;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

/* Mēnesis */

.custom-date-box .date-top {
    background-color: #205995;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 0;
    text-transform: uppercase;

}

/* Datums */
.custom-date-box .date-middle {
    background-color: #205995;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.1;
    padding: 3px 0 1px 0;
}

/* Gads */
.custom-date-box .date-bottom {
    background-color: #205995;
    font-size: 10px;
    font-weight: bold;
    padding-bottom: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);	
}

/* Balti burti, bez saites krāsām, hover efekta un pasvītrojuma */
.custom-date-box,
.custom-date-box div,
.posted-on a,
.posted-on a:hover,
.posted-on a:focus,
.posted-on a:visited,
.posted-on a:hover .custom-date-box,
.posted-on a:hover .custom-date-box div {
    color: #ffffff !important;
    text-decoration: none !important;
}


/********************************************** 3 slejas: 20 - 60 - 20 (konteiners 1200 px) */
@media (min-width: 769px) {
  .both-sidebars .site-content {
    display: flex;
    flex-wrap: nowrap;
  }
  .both-sidebars .is-left-sidebar,
  .both-sidebars .is-right-sidebar {
    width: 20% !important;
    flex: 0 0 20%;
  }
  .both-sidebars .content-area {
    width: 60% !important;
    flex: 0 0 60%;
    min-width: 0;
  }
  .both-sidebars .is-left-sidebar  { order: 1; }
  .both-sidebars .content-area     { order: 2; }
  .both-sidebars .is-right-sidebar { order: 3; }
}

/* Mobilais: saturs pirmais, tad sānjoslas */
@media (max-width: 768px) {
  .both-sidebars .site-content { display: flex; flex-direction: column; }
  .both-sidebars .content-area     { order: 1; width: 100% !important; }
  .both-sidebars .is-left-sidebar  { order: 2; width: 100% !important; }
  .both-sidebars .is-right-sidebar { order: 3; width: 100% !important; }
}

/* ----------------------------- pie ziņām nav redzamas kategorijas */
.cat-links { display: none; }

/* ----------------------------- noņemt Mobile/Tablet režīmus */
.menu-toggle { display: none !important; }
.main-navigation .main-nav > ul { display: flex !important; }