/*
Theme Name: D-P Konzorcium
Author: Adam Koczka
Description: D-P Konzorcium site theme
Version: 1.0
Text Domain: dpkonzorcium
*/
:root {
    --primary-color: #d32f2f; /* Red */
    --secondary-color: #1976d2; /* Blue */
}

body {
    font-family: 'Roboto', sans-serif;
    min-height:100vh;
    display: flex;
    flex-direction: column;
    font-size:18px;
    font-weight:500;
}

h4 {
    font-weight:700;
    color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    padding: 10px 20px;
    font-size: 18px;
}

.top-bar a {
    color: grey;
    text-decoration: none;
    margin-right: 15px;
}

.top-bar a:hover {
    color: black;
}

.top-bar i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    flex-shrink: 1;
    display: flex;
}

.navbar-brand img {
    width:100%;
    max-height:75px;
}

.navbar .container {
    display: flex;
    justify-content: space-around;
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size:18px;
}

.navbar-nav .nav-item:hover .nav-link {
    color: var(--primary-color);
}

@media screen and (max-width: 991px) {
    #imageCarousel {
        display: none;
    }
    
}


.fancy-list {
    list-style: none;
    padding: 0;
    text-align:left;
}

.fancy-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    /*color: var(--secondary-color);*/
}

.fancy-list li::before {
    content: "\f058"; /* FontAwesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.footer {
    background: #222;
    color: white;
    text-align: center;
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    background-color:white;
    padding:20px 20px;
}

.footer-content a {
    color:black;
    text-decoration: none;
}

.footer-logo {
    max-width: 500px;
}

.footer .copyright {
    padding: 20px 0;
    margin: 0;
}

#main-content {
    flex: 1;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#content {
    padding:50px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(90%) contrast(110%);
    transition: transform 0.5s ease-in-out;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.section {
    padding: 40px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border-bottom: 1px solid grey;
}


.section:last-of-type, .section.no-border {
    border-bottom: none; 
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
}

body.home .section-title, .section-title.ribbon {
    color: white;
    background-color: var(--secondary-color);
    width: 100%;
    padding: 5px 0px;
    margin: 1em 0;
}

.blue {
    color: var(--secondary-color);
}

.blue-bg {
    background-color: var(--secondary-color);
}

body:not(.home) .section-title:not(.ribbon)::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

.section img:not(.youtube-logo img) {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out;
    border-radius: 5px;
}

.section img:not(.wp-block-gallery img):not(.youtube-logo img):hover {
    transform: scale(1.05);
}

.wp-block-image {
    padding: 40px 20px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background:none;
    position: absolute;
    bottom: -2em;
    text-shadow: none;
    font-size: 18px;
    color: var(--secondary-color);
}

figure.wp-block-image figcaption {
    background:none;
    text-shadow: none;
    font-size: 18px;
    color: var(--secondary-color);
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    display: none !important;
}

.section p:not(.has-text-align-center) {
    text-align: justify;
}

.home .section img:not(.youtube-logo img) {
    max-width: 450px;
    justify-self:center;
}

.image-title {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: bold;
}

.image-subtitle {
    font-style: italic;
    font-size: 15px;
    color:grey;
}

.dropdown-item.no-hover:hover {
    background: none;
    cursor: default;
}

a.no-hover {
    border-bottom: 1px solid lightgrey;
}

.nav-item:not(.dropdown):hover {
    box-shadow: inset 0 -4px 0 var(--primary-color);
    /*border-bottom: 4px solid var(--primary-color);*/
}
.nav-item.active {
    box-shadow: inset 0 -4px 0 var(--secondary-color);
    /*border-bottom: 4px solid var(--primary-color);*/
}

.contact-list li {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-list i {
    color: #d32f2f; /* Red icon */
    margin-right: 10px;
    font-size: 20px;
}

.contact-list a {
    text-decoration: none;
    color: #1976d2; /* Blue link */
}

.contact-list a:hover {
    text-decoration: underline;
}

.section ol {
    text-align: left;
}

.navbar {
    padding:0px;
}

#navbarNav {
    align-self: stretch;
}

#navbarNav .navbar-nav, #navbarNav .nav-item {
    height: 100%;
}

#navbarNav .nav-item {
    display: flex;
    align-items: center;
}

/* Enable dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    border:2px solid var(--secondary-color);
    margin-top: 0;
}

/* Ensure proper positioning */
.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* Fix Bootstrap's default animation */
.dropdown-menu {
    transition: all 0.3s ease-in-out;
}

:has(.custom-product-block) {
    gap:20px;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: stretch !important;
}

.custom-product-block {
    display: flex;
    width: 350px;
    padding:10px 20px;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--secondary-color);
}

.product-cover {
    max-width: 345px;
    height: auto;
    margin-bottom: 10px;
    box-shadow: none !important;
    transform: none !important;
}

.product-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.product-short-description {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 20px;
    height:40px;
}

.product-long-description {
    font-size: 16px;
    color: #555;
    text-align: justify;
}

.contact-item {
    background-color: var(--secondary-color);
    padding:1em;
    border-radius:10px;
    color:white;
    gap: 1em;
    font-weight:700;
}

.contact-item i {
    font-size: 2.5em;
    color:white;
}

.contact-item a {
    color:white;
    text-decoration:underline;
}

.wp-block-list {
    text-align:left;
}

body:not(.home) p strong {
    font-weight:1000;
    font-size:1.5em;
}

.palyazat-item p strong {
    font-weight: 700;
    font-size: 1em;
}

.palyazat-list {
    display:flex;
    flex-direction: column;
    gap:40px;
}

.palyazat-item {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    gap:10px;
}

.palyazat-item h4 {
    background-color: var(--secondary-color);
    color:white;
    width: 100%;
    padding-top:20px;
    padding-bottom:20px;
}

.palyazat-item p {
    margin: 0px 20px 20px;
    text-align: justify;
}

.palyazat-item div {
    display:flex;
    align-items: start
}

.palyazat-item img {
    transform: none !important;
    margin-right:20px;
    box-shadow: none !important;
    justify-self: end;
    margin-left:auto;
    max-width: 280px;
    height: auto;
}

@media screen and (max-width: 1200px) {
    .palyazat-item img {
        justify-self: start;
        margin-left: 0;
    }
}

.strong-menu, .strong-menu:hover {
    font-weight:700;
    color: var(--secondary-color);
}

.list-bullet {
    padding-right:1em;
    font-size:80%;
}

.youtube-logo img {
    width: 100px;
}

.youtube-text {
    font-size: 18px;
    text-decoration: none;
    color: var(--secondary-color);
}

a:has(.youtube-text) {
    text-decoration: none;
}

.navbar .container {
    max-width: calc(100% - 100px) !important;
}


@media(max-width: 1300px) {
    .navbar a {
        font-size: 16px !important;
    }
}

.wp-block-page-list {
    text-align: left;
    list-style-type: none;
}

.impresszum p strong {
    font-weight: 700;
    font-size: 20px;
}

.adatvedelem p strong {
    font-weight: 700;
    font-size: 1em;
}

.adatvedelem p strong.blue {
    font-weight: 700;
    font-size: 1.5em;
}

.search {
    background:white;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
}

.search input {
    border: none;
    flex-grow: 1;
    border-right: 1px solid var(--secondary-color);
    margin-right: 10px;
}

.search input:focus {
    outline: none;
}

.search button {
    border: 0;
    background:none;
}

.img-caption {
    color: var(--secondary-color);
}

.home .wp-block-columns {
    gap: 0 !important;
}

.language-switcher .dropdown-menu {
    min-width: auto !important; /* Prevents Bootstrap from forcing a fixed width */
    width: auto !important; /* Allows it to size dynamically based on content */
    max-width: 100px; /* Optional: Limit max width */
}

.language-switcher .dropdown-item {
    white-space: nowrap; /* Prevents wrapping */
    padding: 5px 10px; /* Adjust padding for better appearance */
}

.language-switcher li {
    text-align: center;
}

.navbar .dropdown-menu {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 12px;
    scrollbar-gutter: stable;
}

/* WebKit */
.navbar .dropdown-menu::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0073aa, #005f88);
    border-radius: 10px;
    transition: background 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.navbar .dropdown-menu:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.navbar .dropdown-menu:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #005f88, #004466);
}

/* Firefox */
.navbar .dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease-in-out;
}

.navbar .dropdown-menu:hover {
    scrollbar-color: #0073aa #ffffff;
}

/* Bejegyzés */

.single-post .entry-title{
    font-size:48px;
    margin-bottom:30px;
}

.single-post .entry-content{
    max-width:900px;
    margin:auto;
    line-height:1.8;
	font-family: 'Roboto', sans-serif;
    min-height:100vh;
    display: flex;
    flex-direction: column;
    font-size:18px;
    font-weight:500;
}

.single-post article{
    padding:40px;
}