/*
Theme name: Biuro Turystyczne Prom
Author: Cardinator
Version: 1.0
*/


/* Basic Reset */
* {
    box-sizing: border-box;

}
body {
    font-family: 'Montserrat', sans-serif; /* Default font */
    line-height: 1.6; /* Improve readability with line height */
    color: #333; /* Dark gray text color for better contrast */
    background-color: #fff; /* White background color */
    padding-top: 5.5vw; /* 3.5vw - menu height + 2vw padding */
    margin-left: 10%;
    margin-right: 10%;
    max-width: 100vw;
    font-size: 1vw;
    overflow-x: hidden;
}


body.admin-bar .main-menu-bar{
    margin-top: 32px; /* Adjust to the height of the admin bar */
}
body.admin-bar .knowledge-menu-bar{
    margin-top: 32px;
}
body.admin-bar .search-container{
    margin-top: 32px;
}
h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #ffe500;
    background-color: #fff;
    outline: none;
}

textarea {
    resize: vertical;
}

/* Button styling */
button {
    padding: 12px 25px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #ffe500;
}
ul {
    list-style-type: none;
    padding: 0px;
}

@media (max-width: 768px) {
    body {
        margin-left: 2%;
        margin-right: 2%;
        max-width: 100vw;
        overflow-x: hidden;
        font-size: 1em;
        margin-top: 13vw; /* 13vw menu height */

    }
    button {
        width: 50%;
    }
}

.img-full-width {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.img-full-height {
    height: 100%;
    width: auto;
    object-fit: cover;
    
}

/* Top menus */
/*{*/
.mobile-search-container,
.mobile-logo,
.hamburger {
    display: none;
}

.exclude-me {
    height: 100%;
}

/* Logo Styles */
.logo {
    margin-right: 1vw;
    padding: 0px;
    height: 100%;
}

/* Main Menu Bar */
.main-menu-bar {
    position: fixed; /* Keeps the menu fixed on the page */
    top: 0; /* Sticks the menu to the top */
    left: 0; /* Aligns it to the left edge */
    width: 100%; /* Spans the entire width of the page */
    background-color: #ffffff; /* White background color */
    z-index: 1000; /* Ensures the menu stays above other content */
    padding: 0.5vw 3vw; /* Adds some padding for better appearance */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for depth */
}

.main-menu-bar > ul {
    display: flex; /* Align links horizontally */
    justify-content: space-between;
    margin: auto;
}

.main-menu-bar > ul > li {
    font-size: 1.375em;
    white-space: nowrap;
    position: relative; /* Position relative for dropdown positioning */
    margin: auto;
    height: 2.5vw;
}
.mobile-submenu {
    margin: 0px;
}
/* Main Menu Links */
.main-menu-content a {
    position: relative;
    color: black; /* Black text color for links */
    text-decoration: none; /* Remove underline */
    padding: 0 0.2vw; /* Padding for links */
    display: inline-block; /* Make the link block-level */
    transition: all 0.5s ease;
    border-radius: 5px; /* Rounded corners */
}

.main-menu-content a:not(.exclude-me)::after {
    content: ""; /* Pseudo-element with no text */
    position: absolute;
    left: 0;
    bottom: 15%; /* Adjust this to control the gap between text and underline */
    width: 0;
    height: 0.6vw; /* Thickness of the underline */
    background-color: #ffe500; /* Color of the underline */
    transition: width 0.3s ease; /* Smoothly expands the underline */
    z-index: -1;
}

.main-menu-content a:hover::after {
    width: 100%; /* Full width underline on hover */
}

/* Menu dropdown */
.main-menu-dropdown {
    position: absolute;
    top: 100%; /* Position below the nav item */
    left: 0;
    background-color: #000;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: auto;
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    opacity: 0;
    transform: scaleY(0); /* Slightly move up for animation */
    transform-origin: top; /* Anchor animation at the top */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.main-menu-expandable:hover .main-menu-dropdown {
    transform: scaleY(1); /* Move to its original position */
    opacity: 1;
}

.main-menu-expandable:hover .main-menu-link:after {
    width: 100%;
}

/* Dropdown Columns */
.main-menu-dropdown-column {
    margin: 0 3px; /* Space between columns */
    font-size: 0.7em;
    padding-right: 5px;
}

.main-menu-dropdown-column a {
    color: #fff; /* White text for links in dropdown */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s; /* Smooth transition for background */
}

.main-menu-dropdown-column h4 {
    text-align: left;
    margin-left: 5px;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0.5vw;
    color: #fff;
}

/* Search Container */
.search-container {
    position: fixed;
    top: 3.5vw; /* Sticks the menu to the top */
    right: 0vw;
    width: 9vw;
    background-color: #eee;
    z-index: 900;
    padding: 0.25vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 0px 10px;
}

.search-form {
    display: flex;
}

.search-bar-field {
    width: 70%;
    height: 2vw;
    font-size: 1vw;
    padding: 0.25vw;
    margin-right: 0.25vw;
}

.search-bar-button {
    display: flex;
    width: 20%;
    height: 2vw;
    padding: 0.25vw;
    font-size: 1vw;
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {
/* Main Menu Bar */
    .main-menu-bar {
        padding: 15px 15px 15px 15px; /* Adjust padding for mobile screens */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: left;
        padding: 10px 0;
        height: auto;
        right: 0;
    }

    .main-menu-bar > ul {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align items to the left */
        padding: 0; /* Remove horizontal padding */
        margin-top: 13vw;
        width: 100%;
    }

    .main-menu-bar > ul > li {
        height: auto;
        margin: 0;
        margin-left: 3vw;
        padding: 0px;
    }

    /* Main Menu Content */

    .logo-link {
        display: none;
    }

    /* Main Menu Dropdown */
    .main-menu-dropdown {
        display: flex;
        width: 80vw; /* Ensure dropdown fits mobile screens */
        padding: 10px; /* Add padding for better touch targets */
        flex-direction: column;
    }

    .main-menu-dropdown {
        width: 150%;
    }

    /* Search Container */
    .search-container {
        display: none;
    }

    /* Mobile Menu Folded */
    .mobile-menu-folded {
        width: 100vw;
        background-color: #fff;
        height: 13vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1010;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for depth */
    }

    /* Mobile Logo */
    .mobile-logo {
        display: block;
        position: fixed;
        top: 3vw;
        left: 5vw;
        z-index: 1020;
        width: 30vw;
    }

    /* Mobile Search Container */
    .mobile-search-container {
        display: flex;
        flex-direction: row;
        align-items: start;
        justify-content: center;
        position: fixed;
        width: 50vw;
        top: 3vw;
        height: 7vw;
        left: 35vw;
        z-index: 900; /* Ensures the menu stays above other content */
    }

    .mobile-search-bar-field {
        width: 60%;
        height: 100%;
        font-size: 1em;
        padding: 0.25vw;
    }

    .mobile-search-bar-button {
        width: 10%;
        height: 100%;
        padding: 0.25vw;
        font-size: 10vw;
        background-color: #fff;
        color: #333;
    }

    .mobile-search-bar-button > span {
        font-size: 7vw;
    }

    /* Hamburger Menu */
    .hamburger {
        position: absolute; /* Position the hamburger icon absolute */
        top: 3vw; /* Adjust the top spacing as needed */
        right: 3vw; /* Adjust the right spacing as needed */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 10vw;
        height: 6vw;
        cursor: pointer;
        z-index: 1020;
    }

    .hamburger-bar {
        background-color: black;
        height: 5px;
        width: 100%;
        border-radius: 4px;
    }

    /* Mobile Submenu */
    .mobile-submenu {
        max-height: 0px;
        overflow: hidden;
        padding: 5px;
        margin: 0;
        list-style: none;
        transition: max-height 1s ease;
    }

    .mobile-submenu.visible {
        max-height: 500px;
    }

    .mobile-submenu li {
        margin: 3px 0; /* Add spacing for list items */
    }

    /* Mobile Collapsible */
    .mobile-collapsible::after {
        content: "\25BC"; /* Downward arrow icon */
        font-size: 0.8em;
        position: absolute;
        right: 20px;
        transition: transform 0.3s ease;
    }

    .main-menu-dropdown-column:has(.open) .mobile-collapsible::after {
        transform: rotate(180deg); /* Flip the arrow icon */
    }

    .mobile-submenu.open {
        display: block; /* Show subcategories when opened */
    }

    /* Nav Menu */
    #navMenu {
        transform: scaleY(0); /* Start fully collapsed */
        transform-origin: top; /* Anchor animation at the top */
        transition: transform 0.5s ease; /* Smooth animation */
    }

    #navMenu.open {
        transform: scaleY(1); /* Fully expanded */
    }


}
/*}*/


/* Panel - show several trips */
/*{*/   
    .panel {
        background-color: #f3f3f3;
        border-radius: 10px;
        margin: 2vw;
        padding: 2vw;
    }
    /* Container for displaying trips */
    .panel-grid {
        display: flex;
        gap: 20px;
        justify-content: space-between;
        margin: 20px 0;
    }
    /* Singular trip */
    .panel-trip {  
        position: relative;
        width: 100%;
        flex: 1; /* Each post column takes equal space */
    }
    /* Link to the trip page (eg. whole content is a link) */
    .panel-trip-link { 
        display: block;
        position: relative;
        text-decoration: none;
        color: #fff;
    }
    /* Hovering over a trip makes thumbnail zoom-in */
    .panel-trip-link:hover .panel-trip-thumbnail { 
        transform: scale(1.05);
    }
    /* Trip thumbnail */
    .panel-trip-thumbnail { 
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        object-fit: cover;
        transition: transform 0.3s ease; /* Hover effect */
    }
    /* Trip title overlay */
    .panel-trip-title { 
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 0.3vw;
        background: #ffe500c0; /* Semi-transparent overlay */
        text-align: center;
        font-size: 1em;
        font-weight: bold;
        color: white;
        border-radius: 5px;
    }
    /* Link to the category page */
    .panel-button { 
        width: 15%;
        margin: auto;
        display: block;                   /* Makes the <a> element take up full width */                     
        padding: 10px;                    /* Adds padding for better readability */
        margin-bottom: 5px;
        margin-top: 20px;
        text-align: center;               /* Centers the text */
        color: #fff;
        background-color: #333;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        text-decoration: none;
    }
    .panel-button:hover {
        background-color: #ffe500;
    }
    /* Panel name (eg. "Wycieczki do Zakopanego") */
    .panel-heading { 
        font-size: 1.8em; /* Large font size */
        color: #333; /* Dark gray color */
        text-align: center; /* Center the text */
        padding: 20px; /* Padding around the heading */
        border-bottom: 4px solid #333; /* Bottom border with color */
        margin: 0; /* Remove default margin */
        letter-spacing: 2px; /* Spacing between letters */
        transition: color 0.3s; /* Smooth transition for hover effect */
    }
    @media (max-width: 768px) {
        .panel-button {
            width: 50%;
        }
        .panel-grid {
            flex-direction: column;
        }
        .panel-heading{
            font-size: 1.2em;
        }
    }
/*}*/


/* Display - show all trips */
/*{*/
    /* Whole display */
    .display {
        display: flex;
        flex-wrap: wrap;
        gap: 1vw; /* Space between items */
        margin-top: 20px;
    }
    /* Individual trip */
    .display-trip {
        width: calc(25% - 20px); /* 4 items per row, minus the gap */
        box-sizing: border-box;
        text-align: center;
        border: 1px solid #eaeaea;
        padding: 10px;
        border-radius: 5px;
        transition: 0.5s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .display-trip:hover .display-trip-thumbnail {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        transform: scale(1.1);
    }
    /* Link to the trip page (eg. whole content is a link) */
    .display-trip-link {
        display: block;
        margin-bottom: 10px;
        overflow: hidden;
        border-radius: 5px;
    }
    /* Trip thumbnail */
    .display-trip-thumbnail {
        width: 100%;
        height: auto;
        display: block;
        transition: 0.5s ease;
        
    }
    /* Trip title */
    .display-trip-title {
        font-size: 1.1em;
        font-weight: 600;
        color: #333;
    }
    .display-trip-title a {
        text-decoration: none;
        color: inherit;
    }
    /* Responsive Design */
    @media (max-width: 768px) {
        .display-trip {
            width: calc(50% - 20px); /* 2 items per row on smaller screens */
        }
    }
    @media (max-width: 480px) {
        .display {
            justify-content: space-between;
            width: 100%;
        }
        .display-trip {
            width: 100%; /* 1 item per row on mobile */
        }
    }
/*}*/


/* Footer */
/*{*/
    footer {
        background-color: #000; /* Dark background */
        color: white; /* White text color */
        padding-top: 5px; /* Vertical padding */
        text-align: left; /* Align text to the left */
        margin-top: 10%;
        border-radius: 10px;
    }
    footer p {
        text-align: center;
        font-size: 12px;
        padding-bottom: 2%;
        padding-top: 2%;
    }
    .footer-container {
        display: flex; /* Flexbox layout for columns */
        justify-content: space-around; /* Space out columns evenly */
        max-width: 100vw; /* Maximum width for the footer */
        padding: 0 2vw;
        margin: auto; /* Center the footer */
    }
    .footer-container a {
        color: white; /* Link color */
        text-decoration: none; /* Remove underline */
        transition: color 0.3s; /* Transition for hover effect */
    }
    .footer-container a:hover {
        color: #ffe500;
    }
    .footer-column {
        flex: auto; /* Each column takes equal space */
        margin: 0 15px; /* Horizontal margin between columns */
    }

    .footer-column h4 {
        border-bottom: 2px solid #fff; /* Underline the heading */
        padding-bottom: 10px; /* Space between heading and links */
    }

    .footer-column ul {
        list-style-type: none; /* Remove bullet points */
        padding: 0; /* Remove default padding */
    }

    .footer-column ul li {
        margin: 0.5vw 0; /* Space between links */
    }


    .footer-left {
        padding-right: 3vw;
        flex: auto;
        text-align: center;
    }
    .footer-left h4 {
        text-align: center;
    }
    .footer-logo {
        width: 6vw;
    }
    .footer-above {
        border-bottom: 10px solid #f5f5f5;
    }
    .footer-above h4 {
        text-align: center;
        font-size: 1.5em;
    }
    .copyright-note {
        font-size: 0.75vw;
    }
    @media (max-width: 768px) {
        .footer-container {
            max-width: 100%;
            flex-direction: column;
        }
        .footer-left {
            display: none;
        }
        .copyright-note {
            font-size: 0.6em;
        }
    }
/*}*/


/* Form styling */
/*{*/
    .form-container {
        width: 100%;
        max-width: 600px;
        margin: auto;
        padding: 30px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    /* Form group styling */
    .form-group {
        margin-bottom: 15px;
        text-align: left;
    }
    /* Media query for responsiveness */
    @media (max-width: 768px) {
        .form-container {
            padding: 20px;
            max-width: 100vw;
        }


    }
    .container {
      display: flex; /* Enable flexbox */
    }
    @media (max-width: 768px) {
        .container {
            flex-direction: column;
        }
    }

    .main-content {
      flex: 3; /* Take up 3 parts of the container width */
      padding: 10px;
    }

    .form-sidebar {
      flex: 1; /* Take up 1 part of the container width */
      padding: 10px;
      background-color: #ffffff;
    }
    .checkbox-label {
        display: flex;
        align-items: start; /* Align checkbox and text vertically */
        justify-content: left;
        gap: 0.5rem; /* Add space between checkbox and text */
        padding: 0px;
    }
    .checkbox {
        width: 25px;
    }
/*}*/


/* Panoramy i tytuły */



.banner-container {
    position: relative;
    display: inline-block;
    width: 100%; /* or any desired width */
    margin-top: -4vw;
}

.banner-image {
    width: 100%; /* Ensures the image takes the full width of the container */
    height: auto;
    display: block; /* Removes bottom spacing */
    border-radius: 0 0 20px 20px;
}
.banner-image img {
    width: 100%; /* Ensures the image takes the full width of the container */
    height: auto;
    display: block; /* Removes bottom spacing */
    border-radius: 20px;
}
.banner-text {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; 
    transform: translate(-50%, -50%); /* Adjust to true center */
    color: white; /* Text color */
    font-size: 1.25vw; /* Adjust as needed */
    background-color: #ffe5009c; /* Semi-transparent background */
    padding: 2px 5px; /* Space around the text */
    border-radius: 5px; /* Rounded corners */
    margin: 0px;
    line-height: 1px;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .banner-container {
        margin-top: -12vw;
    }
    .banner-text {
        font-size: 0.5em;
    }
}


/* Sekcja opinii */



.reviews-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffe500a9;
    border-radius: 10px;
    margin-top: 5%;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    text-align: left;
    transition: 0.3s ease;
}

.review-card:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}
.review-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    transition: 0.5s ease;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author h4 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.review-author span {
    font-size: 0.85rem;
    color: #777;
}
.dashicons {
    font-size: 1.25vw;
    margin-right: 1.25vw;
}
@media (max-width: 768px) {
    .dashicons {
        font-size: 5vw;
        margin-right: 5vw;
    }
}







