/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* .brx-body {
  min-height: 100vh;
  min-height: 100dvh;
} */

/* * p {
  text-wrap: balance;
  -webkit-text-wrap: balance;
} */

.text-balance {
  text-wrap: balance;
}

.backdrop-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.display-none {
  display: none;
}

/* //////////////////////////////////// */
/* Menu - hide and show menu alements  */
/* //////////////////////////////////// */

.inscrieri-side-menu, .curse-side-menu, .info-side-menu, .clasament-side-menu, .concurenti-side-menu  {
  display: none !important;
}

@media (max-width: 850px) {
  .inscrieri-link, .nav-nestable  {
    display: none !important;
  }
  .inscrieri-side-menu, .curse-side-menu, .info-side-menu {
  display: block !important;
}
}

/* //////////////////////////////////// */
/* put back menu arrow dropdow */
/* //////////////////////////////////// */

.brxe-nselkb .brx-submenu-toggle button {
    font-size: 14px !important;
}


.inscrieri-link:hover {
  color: white !important;
}

/* //////////////////////////////////// */
/* Polylang button */
/* //////////////////////////////////// */

.polylang-flags {
margin:0;
}

.polylang-flags .lang-item {
margin:0;
}

/* //////////////////////////////////// */
/* News page */
/* //////////////////////////////////// */

#ajax-filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 20px;
} */

#ajax-filters {
  display: flex;
  gap: 22px;
  align-items: center;
   /* Optional: wraps nicely on small screens */
  margin-bottom: 20px;
}

#ajax-filters select {
  padding: 0px 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  appearance: none;
  outline: none;
  min-width: 160px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#ajax-filters select:focus {
  border-color: #FF6E00;
  box-shadow: 0 0 0 2px rgba(255, 110, 0, 0.2);
}

.post-date {
  font-size: var(--text-xs);
} 

.read-more {
  margin-top: 40px!important;
  color: var(--color-orange);
  margin-top: auto;
}




/* //////////////////////////////////// */
/* AJAX Post Pagination */
/* //////////////////////////////////// */



.ajax-pagination {
  display: flex;
  justify-content: left;
  gap: 8px;
  margin-top: 60px;
}

.ajax-pagination .pagination-btn {
  width: 30px;  
  height: 30px;
  background-color: #CFD8DC;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ajax-pagination .pagination-btn:hover,
.ajax-pagination .pagination-btn.active {
  background-color: #FF6E00;
  color: #fff;
}




.ajax-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(auto, 1fr));
  /* grid-template-rows: masonry; <-- masonry is experimental, use with caution */
}

@media (max-width: 991px) {
  .ajax-grid {
    grid-template-columns: repeat(2, minmax(auto, 1fr));
  }
}

@media (max-width: 480px) {
  .ajax-grid {
    grid-template-columns: 1fr;
  }
}


.ajax-post {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;  
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  height: 100%;
  width: 100%;
}



.ajax-post-thumbnail {
  position: relative;
  width: 100%;
  /* 4:3 aspect ratio = height = width * 3 / 4 = 75% */
  padding-top: 75%; /* This creates the aspect ratio box */
  overflow: hidden;
  border-radius: 0px; 
}

.ajax-post-thumbnail a,
.ajax-post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes the image cover the container */
  object-position: center center;
  display: block;
  border-radius: 0px; /* match container if you want rounded corners */
}


.ajax-post-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
}

.ajax-post-info .read-more {
  margin-top: auto;
}


.post-date {
  margin-top: 10px;
}

.post-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.post-title a, .post-title a:hover {
  color: black;
}


.ajax-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #FF6E00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

/* //////////////////////////////////// */
/* post content link color*/
/* //////////////////////////////////// */

.brxe-post-content a {
  color: #FF6E00;
}

.brxe-post-content a:hover {
  color: #FF6E00;
}

/* //////////////////////////////////// */
/* Custom login form */
/* //////////////////////////////////// */

.login-form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 400px;
}

@media screen and (max-width: 360px) {
  .login-form {
    /* max-width: 300px; */
    /* min-width: 100%; */
    width: 100%;
    padding: 0 1rem;
  }
}

.login-form input[type="text"],
.login-form input[type="password"] {
  /* padding: 0.75rem; */
  border: 1px solid #CFD8DD;
  /* border-radius: 5px; */
  /* font-size: 1rem; */
  /* width: 100%; */
}

.login-form input[type="submit"] {
  background-color: #FF6E00;
  color: white;
  border: none;
  /* border-radius: 5px; */
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  /* font-size: 1rem; */
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: flex-start; /* optional: aligns left instead of center */
  width: auto;
}

.login-form input[type="submit"]:hover {
  background-color: #e55d00;
}


/* ////////////////////////////////////// */
/* header */
/* ////////////////////////////////////// */

.header {
  color: var(--color-black-light);
  position: static;
}

body.home .header {
  color: var(--color-white);
  position: absolute;
}



.header.sticky {
  position: fixed!important;
  /* top: 0; */
  /* left: 0; */
  z-index: 999;
}

 .header-blur {
  display: none !important;
} 

.header-blur.active {
  display: flex !important;
  /* top: 0; */
  /* left: 0; */
}

/* ////////////////////////////////////// */
/* table */
/* ////////////////////////////////////// */


.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* .google-sheet-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px; 
}

.google-sheet-table th,
.google-sheet-table td {
  border: 1px solid #EEEEEE;
  padding: 5px 10px;
  text-align: left;
  white-space: nowrap; 
}

.google-sheet-table thead tr {
  background-color: #EEEEEE; 
  font-weight: bold;
}

.google-sheet-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
} */






@media screen and (min-width: 640px) {
.voluntari-repartizari-left, .voluntari-repartizari-left h3 {
  text-align: right!important;
}
}

@media screen and (max-width: 640px) {
.voluntari-repartizari-left .voluntari-repartizari-left h3 {
  text-align: right!important;
}
}

.lowercase {
  text-transform: lowercase !important;
}



/* Gutengerg button style */

.wp-block-button__link {
  background-color: var(--color-orange);
  border-radius: 5px!important;
  color: white!important;
  padding: 4px 20px!important;
  margin-bottom: 20px;
}

.wp-block-button__link:hover {
  background-color: var(--color-orange-dark)!important;
}

.program .icon {
  margin-right: 10px;
}