/*
Theme Name: ascendent
Theme URI: https://ascendent.adrianwebdesign.ro
Author: Albu Adrian
Author URI: https://adrianwebdesign.ro
Description: Tema WordPress multifuncțională construită cu Bootstrap v5.3.7 
Version: 1.0
Tested up to: 6.1
Requires PHP: 8.0
Text Domain: ascendent
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, custom-logo, featured-images, theme-options, translation-ready, blog
*/


/* Margin right to mobil */
.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler:focus {
  margin-right: 2rem;
}


/* Accordion */

.accordion-button:focus {
  box-shadow: none !important;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Dimensiune mică pentru h2 din subsol */
.fsh2 {
  font-size: 1.25rem !important;
}

@media screen and (max-width: 991px) {
  .top-social {
    display: none !important;
  }
}

.accordion-button:not(.collapsed) {
  background-color: #fff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  border-color: #fff !important;
  outline: 0;
  box-shadow: none !important;
}

.btn {
  border-radius: 0 !important;
}

/* Navbar border bottom */
.navbar {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

/* Hamburger menu start */

.bar1,
.bar2,
.bar3 {
  width: 24px !important;
  height: 2px !important;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

/* Rotate first bar */
.change .bar1 {
  transform: translate(0, 8px) rotate(-48deg);
}

/* Fade out the second bar */
.change .bar2 {
  opacity: 0;
}

/* Rotate last bar */
.change .bar3 {
  transform: translate(0, -8px) rotate(48deg);
}

/* Hamburger menu end */

/* Navbar toggler focus disable */
.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler:focus {
  box-shadow: none !important;
  border-radius: 0 !important;
}

a {
  text-decoration: none !important;
  color: #212121;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
}

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.space {
  padding-top: 150px !important;
  padding-bottom: 150px !important;
}

@media screen and (max-width: 992px) {
  .space {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

/* Logo custom width */
img.custom-logo {
  max-width: 80px !important;
  height: auto;
}

/* Arrow down - dropdown-toggle */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.7em;
  padding: 3px;
  content: "";
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  vertical-align: 0.255em;
  border: solid rgba(0, 0, 0, 0.5);
  border-width: 0 1px 1px 0 !important;
}

.navbar-nav ul li {
  padding: 0 20px;
  font-size: 16px !important;
}

@media screen and (max-width: 992px) {
  ul.navbar-nav {
    margin: 50px 0 !important;
  }
  .navbar-nav ul li {
    font-size: 20px !important;
    font-weight: 300 !important;
  }
}

.disabled > .page-link,
.page-link.disabled {
  background-color: #fff !important;
}

.input-group-text {
  background-color: #fff !important;
}

.input-group-text {
  border-left: none !important;
}

.input-group > .form-control,
.input-group > .form-floating,
.input-group > .form-select {
  border-right: none !important;
  outline: none !important;
}

.input:focus {
  outline: none !important;
}
.border0 {
  border: none !important;
}

div.pagination span.sr-only {
  display: none !important;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Paginare articole */
.post-pagination {
  overflow: hidden !important; /* Prevenirea problemelor de layout */
  text-align: center !important; /* Aliniere centrare pentru a asigura poziționarea corectă a elementelor */
}

.prev-post {
  float: none !important; /* Dezactivăm alinierea pe orizontală */
  display: inline-block; /* Afișăm elementul pe aceeași linie */
  padding: 0 10px !important;

  margin-bottom: 20px !important;
}

div.prev-post {
  background-color: #f9f9f9 !important;
}

.next-post {
  float: none !important; /* Dezactivăm alinierea pe orizontală */
  display: inline-block; /* Afișăm elementul pe aceeași linie */
  padding: 0 10px !important;

  margin-bottom: 20px !important;
}

div.next-post {
  background-color: #f9f9f9 !important;
}

.gallery-caption {
  text-align: center;
}

.bypostauthor {
  font-size: 14px;
}


.description-text {
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.description-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 5.5rem;
}

.description-text.expanded {
  -webkit-line-clamp: unset;
  max-height: 1000px;
}

/* Animația SVG-ului */
.toggle-btn .chevron-icon {
  transition: transform 0.3s ease;
  color: #212121!important;
}

.toggle-btn.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Textul butonului */
.toggle-btn .toggle-label::after {
  content: 'Afișează mai mult';
  color: #212121!important;
  text-decoration: none !important;
}

.toggle-btn.expanded .toggle-label::after {
  content: 'Afișează mai puțin';
  color: #212121!important;
  text-decoration: none !important;
}

.toggle-btn,
.toggle-btn:hover,
.toggle-btn:focus {
  text-decoration: none !important;
}

.fade-overlay {
  position: absolute;
  bottom: 3.5em; /* sau cât trebuie să acopere baza textului */
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.description-text.collapsed + .fade-overlay {
  opacity: 1;
}

.text-orange {
  color: #1e1163!important;
}

.bg-orange {
  background-color: #f97316 !important;
}

.bg-orange {
  background-color: #f97316; /* sau orice nuanță portocalie dorești */
}

.bg-black {
  background-color: #000; /* sau orice nuanță portocalie dorești */
}

.text-success {
  color: #fe0000 !important;
  }

  .card-img-top {
    object-fit: cover; /* sau 'contain' dacă vrei să nu taie nimic */
    width: 100%;
    height: auto; /* sau setează un height fix dacă vrei toate imaginile egale */
  }

a.rounded-pill {
  border-radius: 50px!important;
}

select:focus {
  outline: none!important;
  box-shadow: none!important;
}

.form-select:focus {
  border-color: #ccc!important;
}

.btn.active {
  background-color: #fe0000!important; /* sau orice nuanță portocalie dorești */
}

.sticky-box {
  position: sticky !important;
  top: 20px;
  z-index: 10;
  background: #fff;
}

/* Dezactivează orice overflow ascuns */
.container,
.row,
.col-lg-4,
.col-lg-8,
body,
html {
  overflow: visible !important;
}

/* Doar pentru test: vezi sticky vizibil clar */
.sticky-box::before {
  display: block;
  margin-bottom: 10px;
}


.dropdown-item.active, .dropdown-item:active {
  text-decoration: none;
  background-color: #fff!important;
}