/* ==================== */
/* 1. VARIABILE ȘI IMPORTURI */
/* ==================== */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

/* ==================== */
/* 2. SETĂRI DE BAZĂ */
/* ==================== */
body {
  background: #F6F8FB;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

.container {
  max-width: 1140px;
}

hr {
  margin-bottom: 1rem;
  margin-top: 1rem;
  opacity: 1;
}

.img-fluid {
  width: 100%;
}

/* ==================== */
/* 3. TIPOGRAFIE */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.4 !important;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: 1.4 !important;
}

blockquote p, 
.page main p {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.2em;
  letter-spacing: 0;
}

.searchtitle {
  color: #04b306;
  font-size: 1.3rem;
  font-weight: 600;
}

.wp-block-latest-posts__post-title {
  color: #000;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  text-decoration: none;
}

/* ==================== */
/* 4. LINKURI */
/* ==================== */
a.glink:hover {
  color: rgb(247, 149, 0);
}

p a {
  color: rgb(247, 149, 0);
  text-decoration: none;
}

p a:hover {
  color: #000;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-size: .875em;
}

/* ==================== */
/* 5. NAVIGARE ȘI MENIURI */
/* ==================== */
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: rgb(247, 149, 0);
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  position: relative;
  flex-wrap: wrap;
  margin-left: 1rem;
}

.navbar-nav a {
  color: rgba(0, 0, 0, .5);
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: .01875rem;
  line-height: 1.2;
  padding-left: 1.125rem;
  padding-right: 1.125rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-nav a.active,
.navbar-nav .sub-menu a {
  color: rgba(0, 0, 0, 0.9);
}

.menu-item {
  position: relative;
}

.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.sub-menu .menu-item {
  padding: 0;
}

.sub-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.sub-menu a:hover {
  background: #f5f5f5;
}

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 5px;
}

.sub-menu .menu-item a {
  display: block;
  padding: 10px 15px;
  transition: color 0.2s ease;
}

.sub-menu .menu-item:hover > a {
  color: rgb(247, 149, 0) !important;
}

.navbar-brand i {
  padding: 3px;
  border-radius: 3px;
}

.navbar-brand span {
  font-size: 1.25rem;
  letter-spacing: 0px;
}

.bg-light {
  background-color: white !important;
}

.fa-search {
  color: black;
}

/* ==================== */
/* 6. ARTICOLE ȘI CARDURI */
/* ==================== */
.articles .article {
  background: #fff;
  margin-bottom: 20px;
}

.articles .card-body a {
  text-decoration: none;
}

.card-body .card-title {
  padding: 0.5em;
  width: 100%;
}

.card-body .card-title a {
  color: #000;
  font-size: 1.5rem;
  padding-top: 1rem;
  position: relative;
  text-decoration: none;
}

.card-body .category {
  font-size: .875rem;
  padding: 0 1em 1em;
  text-transform: uppercase;
}

.card-body .category a {
  color: rgb(247, 149, 0);
  font-family: 'Karla', serif;
  font-size: .875rem;
}

.archive .card-body {
  padding: 0;
}

.archive .card {
  --bs-card-border-width: 0;
  --bs-card-border-radius: 0;
}

.archive h1 {
  text-transform: math-auto;
  font-size: 1.3rem;
  font-family: 'Libre Baskerville', serif;
  padding: 0;
  font-weight: bold;
  color: #04b306;
  border-bottom: 1px solid #fff;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.archive aside a, 
.card-body .card-title a {
  text-transform: math-auto;
}

.featured-image {
  display: none;
}

.search .featured-image {
  display:block;
}

/* ==================== */
/* 7. BUTOANE */
/* ==================== */
.btn-facebook,
.btn-x {
  border-radius: 4px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.btn-facebook {
  background-color: rgb(59, 89, 152);
}

.btn-x {
  background-color: #000;
}

.btn-prev,
.btn-next {
  border: 1px solid #000;
  border-radius: 4px;
  color: #000;
  padding: 8px 16px;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-prev:hover,
.btn-next:hover,
.btn-facebook:hover,
.btn-x:hover,
.share-btn:hover {
  background-color: rgb(247, 149, 0);
  border: 1px solid rgb(247, 149, 0);
  color: white;
}

/* ==================== */
/* 8. CATEGORII */
/* ==================== */
.category,
.article_single .category,
.single-post .category {
  font-size: .875rem;
  max-width: 100%;
  padding: 0 1rem 0.1rem 0;
  text-transform: uppercase;
}

/* ==================== */
/* 9. PAGINARE */
/* ==================== */
ul.page-numbers {
  align-items: center;
  display: flex;
  justify-content: center;
  list-style-type: none;
}

ul.page-numbers li {
  float: left;
  padding-right: 20px;
}

.pagination-simple {
  display: flex;
  justify-content: space-between;
}

.pagination-simple > div {
  flex: 1;
}

.pagination-simple a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #000;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
}

.pagination-simple a:hover {
  background-color: rgb(247, 149, 0);
  color: white !important;
  border-color: rgb(247, 149, 0);
}

.nav-previous:empty, 
.nav-next:empty {
  display: none;
}

.nav-next {
  text-align: right;
}

/* ==================== */
/* 10. PAGINI GENERALE */
/* ==================== */
.page main {
  background-color: #fff;
  height: 100%;
  padding-left: 1em !important;
  padding-right: 1em !important;
}

.page main h2 {
  border-bottom: 1px solid #e7e7e7;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1em;
  padding: 0;
  padding-bottom: 1rem;
}

.page main h3,
.page main h4,
.page main h5,
.page main h6 {
  border-bottom: 1px solid #e7e7e7;
  color: #04b306;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 0;
}

/* ==================== */
/* 11. POSTĂRI SINGULARE */
/* ==================== */
.single-post h1 {
  border-bottom: 1px solid #e7e7e7;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0;
  padding-bottom: 1rem;
}

.single-post main {
  background-color: #fff;
  padding-left: 1em !important;
  padding-right: 1em !important;
}

.single-post main h2,
.single-post main h3,
.single-post main h4,
.single-post main h5,
.single-post main h6 {
  border-bottom: 1px solid #e7e7e7;
  color: #04b306;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 0;
}

.single-post p:not(footer p) {
  font-family: 'Karla', sans-serif;
  font-size: 1.2rem;
  letter-spacing: -.00625rem;
  margin-top: 1rem;
}

.single-post ul li:not(.menu-item),
.single-post ol li:not(.menu-item) {
  background: #f6f8f8;
  border-bottom: 1px solid #e0e2e5;
  border-radius: .2rem;
  margin-bottom: .5rem;
  padding: 0.5rem;
}

.single-post ul li::marker {
  color: rgb(247, 149, 0);
  font-size: 1.5rem;
  font-weight: 600;
}

.single-post ol li::marker {
  color: rgb(247, 149, 0);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ==================== */
/* 12. SHARE BUTOANE */
/* ==================== */
.share-btn {
  align-items: center;
  border: none;
  display: flex;
  height: 100%;
  justify-content: center;
  padding-left: 2.5rem;
}

.share-btn .share-icon {
  font-size: 1.2rem;
  left: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* ==================== */
/* 13. SIDEBAR */
/* ==================== */
aside h2 {
  background-color: white;
  border-bottom: 2px solid rgba(0, 0, 0, .1);
  font-family: 'Karla', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 10px 5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: .075rem;
  line-height: 1.2;
}

aside img {
  height: auto;
  width: 100%;
  padding-bottom: 0.5em;
  aspect-ratio: 16/9;
}

aside ul li {
  border-bottom: 2px solid rgba(0, 0, 0, .1);
  margin-bottom: 1em;
}

aside ul, aside ol {
  padding-left: 0;
  list-style-type: none;
}

aside a {
  color: #000;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1em;
}

/* ==================== */
/* 14. TABELE */
/* ==================== */
tbody, td, tfoot, th, thead, tr {
  border-color: rgba(0, 0, 0, .06) !important;
}

tr:nth-child(2n) {
  background-color: #f6f8f8;
}

/* ==================== */
/* 15. WIDGET-URI */
/* ==================== */
.wp-block-latest-posts__featured-image {
  margin-bottom: 8px;
}

/* ==================== */
/* 16. MEDIA QUERIES */
/* ==================== */
@media (max-width: 767px) {
  main {
    margin-left: 2vw;
    margin-right: 2vw;
  }
  
  main img {
    height: auto;
    width: 100%;
    padding-bottom: 0.5em;
    aspect-ratio: 16/9;
  }
  
  .single-post main {
    margin-left: 0;
    margin-right: 0;
  }
  
  .single-post aside {
    margin-top: 15px;
  }
  
  .navbar {
    height: 56px;
    min-height: 56px;
    padding: 0 !important;
  }

  .navbar-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    margin: 0 !important;
    pointer-events: auto;
  }

  .navbar-collapse {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1;
  }
}

.mb-1 {
  margin-bottom: 0 !important;
}