/*
Theme Name: Holis Theme
Theme URI: https://holis.ro
Author: Dan Mihăescu
Author URI: https://holis.ro
Description: O temă versatilă dar simplă care perite crearea unei comunități.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root { --sec-color: #06C; }

header { position: relative; height: 500px; padding: 120px 12%; background: url('/tema/img/header.png') no-repeat center center / cover; }
.site-branding { max-width: 460px; }
.cta-buttons a { display: inline-block;
  margin-bottom: 10px; margin-right: 15px; padding: 8px 10px; color: white; }
#cta1 { background: white; color: #333; }

button { background: teal; color: white; padding: 8px 10px; border: 0; border-radius: 3px;
  box-shadow: 2px 2px 4pxf rgba(4, 59, 92,0.5); }

#cta1 { background: white; color: #333; }

#social-links img { width: 32p; height: 32px; margin-right: 10px; }

/* Dacă omul vrea ca tot site-ul să fie mai îngust, exită wrap */
#wrap, main { background-color: var(--bg-color); }

/* MAIN ARE 3 VARIANTE, default fiind Full Width: */
main {
  padding: 50px 12%;
  margin: 0 auto;
  max-width: 1300px;
}

/* Main Full Wdith fără padding (ca să poată conține SECȚIUNI full width) : */
main.fullwidth { 
  padding: 0;
  max-width: none;
}

/* Main cu sidebar: */
main.blog { 
  padding: 50px 5%;
  display: flex;
  gap: 20px; 
}




#content { flex: 1; }
aside { width: 30%; min-width: 300px; }

article { background: #e8e8e8; margin-bottom: 20px; }
aside { background: #e8e8e8; }

article, aside { padding: 30px; }

aside ul {list-style: none; padding-left: 0; }
.wp-block-tag-cloud a {
  font-size: 14px !important;
}

footer {
    padding: 30px 5%;
    background: #f5f5f5;
}

#links { list-style-type: square; }

#copyright { width: 100%; display: flex; justify-content: space-between; align-items: center; }

section {
  padding: 50px 12%;
  background: #f0f0f0;
}
main:has(section) {
  padding: 0;
}

section:nth-of-type(1) {
    background: #CCC;
}
section:nth-of-type(2) {
    background: #f4f1eb;
}
section:nth-of-type(3) {
    background: white;
}

section.flex { min-height: 400px; align-items: stretch; }
section > .two:has(img) { height: 100%; }
section img {
    max-height: 100%; object-fit: cover;
  }
  .clear {
   content: "";
   display: block;
   clear: both;
  }

.widget {
  margin-bottom: 20px;
}

aside ul li { margin-bottom: 15px; }

/* Search widget container */
.widget_search form > div {
  display: flex;
  background-color: var(--bg-color);
  border-radius: 4px;
  overflow: hidden; /* ensures border-radius applies to children */
  max-width: 100%;
}

/* Input field styles */
.widget_search input[type="text"] {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  min-width: 0; /* prevent overflow in flex */
}

/* Submit button styles */
.widget_search input[type="submit"] {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  cursor: pointer;
  text-indent: -9999px; /* hide default "Search" text */
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.2); /* subtle divider */
  background-color: #333;
  background: #333 url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxIDIwbC01LjYtNS42YTcgNyAwIDEwLTEuNCAxLjRMMjAgMjF6TTEwIDE2YTYgNiAwIDExMC0xMiA2IDYgMCAwMTAgMTJ6Ii8+PC9zdmc+') center no-repeat;
  background-size: 1.2rem;
  text-indent: -9999px;
}

/* Hide label for screen readers only */
.widget_search .screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
	main { flex-direction: column; }
	aside { width: 100%; }
}