/* Universal font-family for Arial */
body, header, nav, footer, main, .left-column, .main-column, .right-column, button, input, textarea, select, .login-box, .registration-form-container {
    font-family: Arial, sans-serif;
}

/* Root Variables for Dynamic Color Scheme */
:root {
    --primary-color: red;
    --secondary-color: white;
    --accent-color: red;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    flex-wrap: wrap;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 10px;
}

/* Inputs and Buttons */
input, textarea, select, button {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

button:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* Main Content */
main {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
    gap: 20px;
}

/* Columns */
.left-column, .main-column, .right-column {
    background-color: #f9f9f9;
    padding: 15px;
    box-sizing: border-box;
}

/* Pagination */
.pagination a {
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
}

/* Root Variables for Dynamic Color Scheme */
:root {
    --primary-color: red; /* Default primary color */
    --secondary-color: white; /* Default secondary color */
    --accent-color: red; /* Default accent color */
}


/* Header */
header {
    display: flex;
    justify-content: space-between; /* Space out elements in the header */
    align-items: center; /* Vertically align items */
    padding: 0px; /* Add some padding */
    background-color: var(--primary-color); /* Set the background color */
    color: var(--secondary-color); /* Text color */
    height: auto; /* Let the height adjust automatically */
    flex-wrap: wrap; /* Allow wrapping if content overflows */
}

/* Logo Container */
.logo-container {
    flex: 2;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Take the full height of the header */
}

.logo-container img {
    width: 75%; /* Adjust the width proportionally */
    height: 100%; /* Ensure the height fills the header */
    max-height: 150px; /* Add max-height for responsiveness */
}

/* Login/Registration Box */
.login-box {
    width: 250px; /* Fixed width */
    height: 150px; /* Fixed height */
    padding: 5px; /* Reduce padding to save space */
    margin: 0 auto; /* Center the login box if needed */

    border-radius: 5px; /* Slight rounding for aesthetics */
    background-color: var(--primary-color); /* Match header background */
    color: var(--secondary-color); /* Text color */
    box-shadow: none; /* Remove shadow for simplicity */
    overflow: hidden; /* Ensure content stays within the box */
    position: relative; /* Keep its position stable */
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}

/* Title */
.login-box h3 {
    margin: 0;
    font-size: 12px; /* Smaller font size to fit */
    color: var(--secondary-color); /* Title color contrasts with background */
    text-align: center; /* Center-align the title */
}

/* Form Container */
.login-box form {
    display: flex;
    flex-direction: column; /* Stack form inputs vertically */
    align-items: center; /* Center-align inputs */
    width: 100%; /* Ensure inputs fit inside the box */
    margin: 0; /* Remove extra margins */
}

/* Input Fields */
.login-box .form-group {
    display: flex;
    flex-direction: column; /* Stack label and input vertically */
    margin: 2px 0; /* Minimal spacing between fields */
    width: 80%; /* Full width of the box */
}

.login-box label {
    font-size: 10px; /* Smaller label font size */
    color: var(--secondary-color); /* Label color matches box text */
    margin-bottom: 2px; /* Minimal space below the label */
    text-align: left; /* Align label text to the left */
}

.login-box input {
    padding: 3px; /* Compact padding for smaller inputs */
    border: 1px solid var(--secondary-color); /* Border matches text color */
    border-radius: 3px; /* Slight rounding */
    font-size: 10px; /* Smaller font size */
    color: var(--primary-color); /* Input text color */
    background-color: var(--secondary-color); /* Input background */
    width: 100%; /* Full width of the form group */
}

/* Buttons */
.login-box button {
    width: 80%; /* Full width button */
    padding: 5px; /* Compact button size */
    background-color: var(--secondary-color); /* Button background color */
    color: var(--primary-color); /* Text color matches box */
    border: none; /* No border for simplicity */
    border-radius: 3px; /* Rounded button corners */
    font-size: 10px; /* Smaller button text size */
    cursor: pointer;
}

.login-box button:hover {
    background-color: var(--accent-color); /* Change button color on hover */
    color: var(--secondary-color); /* Ensure contrast on hover */
}

/* Additional Text and Links */
.login-box p {
    margin: 2px 0; /* Minimal spacing */
    font-size: 10px; /* Smaller paragraph font size */
    color: var(--secondary-color); /* Match text color */
    text-align: center; /* Center-align the paragraph */
}

.login-box a {
    color: var(--secondary-color); /* Link color matches text */
    text-decoration: none; /* Remove underline */
    font-size: 10px; /* Smaller font size for links */
    font-weight: bold; /* Bold links for emphasis */
}

.login-box a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-box {
        width: 180px; /* Slightly smaller width for smaller screens */
        height: 110px; /* Slightly smaller height */
        padding: 5px; /* Compact padding */
    }

    .login-box h3 {
        font-size: 10px; /* Adjust title font size */
    }

    .login-box input {
        font-size: 9px; /* Adjust input font size */
        padding: 3px; /* Adjust padding */
    }

    .login-box button {
        font-size: 9px; /* Adjust button text size */
        padding: 5px; /* Adjust padding */
    }
}


/* Navigation */
nav {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center align the navigation */
}

nav ul li {
    position: relative;
    margin: 0 10px; /* Add spacing between menu items */
}

nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: var(--primary-color);
    font-weight: bold;
}

nav ul li:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
}

.dropdown li {
    padding: 10px;
}

/* Main Section */
main {
    display: flex;
    justify-content: space-between; /* Ensure columns are spaced evenly */
    margin: 20px auto;
    gap: 20px; /* Add spacing between columns */
    max-width: 99%; /* Optional: Set a maximum width for the main content */
}

/* Columns */
.left-column {
    width: 20%; /* Fixed width for the left column */
    padding: 15px; /* Internal spacing */
    background-color: #f9f9f9; /* Neutral background for columns */
    box-sizing: border-box; /* Include padding and border in width calculation */
}


.main-column {
    width: 80%; /* Fixed width for the main column */
    padding: 15px;
    
    background-color: #f9f9f9; /* Neutral background for columns */
}

.right-column {
    width: 20%; /* Fixed width for the right column */
    padding: 15px;
    
    background-color: var(--secondary-color); 
}




footer {
    font-family: Arial, sans-serif;
    background-color: var(--primary-color); /* Existing background color */
    color: var(--secondary-color); /* Text color */
    text-align: center;
    padding: 10px;
}

footer a {
    font-family: Arial, sans-serif; /* Ensure link text uses Arial */
    color: var(--secondary-color); /* Match footer text color */
    text-decoration: underline; /* Optional: Keep or remove based on design */
}

/* Notification */
#location-notification {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    cursor: pointer;
}

/* Flags */
.flag-container {
    position: fixed;
    top: 10px;
    left: 20px;
}

.flag {
    width: 30px;
    height: 20px;
    margin: 5px;
    cursor: pointer;
}

/* Button Styles */
button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* Responsive Design */

/* For tablets (768px or smaller) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        height: auto; /* Adjust height for tablets */
        padding: 20px;
    }

    .logo-container img {
        max-height: 100px; /* Smaller logo on tablets */
    }

    nav ul {
        flex-direction: column; /* Stack menu vertically */
        align-items: center;
    }

   @media (max-width: 768px) {
    main {
        flex-direction: column; /* Stack columns vertically */
        gap: 10px; /* Smaller gaps */
        width: 100%; /* Full width for smaller screens */
    }

    .left-column,
    .main-column,
    .right-column {
        width: 100%; /* Full width for all columns */
    }
}

}

/* For phones (480px or smaller) */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* Reduce font size for smaller screens */
    }

    header {
        padding: 10px;
    }

    .flag-container {
        position: static; /* Remove fixed positioning */
        text-align: center; /* Center align flags */
        margin: 10px 0;
    }

    .flag {
        width: 20px; /* Smaller flags */
        height: 15px;
    }

    .login-box {
        text-align: center; /* Center align login box */
    }

    nav ul {
        flex-direction: column; /* Stack navigation vertically */
    }

    main {
        flex-direction: column; /* Stack columns vertically */
        gap: 5px; /* Smaller gaps for compact screens */
    }

    .left-column,
    .main-column,
    .right-column {
        width: 100%; /* Full width for all columns */
        padding: 10px; /* Reduce padding */
    }
}
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

#cookie-banner a {
    color: #007bff;
    text-decoration: underline;
}

#cookie-banner button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#cookie-banner button:hover {
    background-color: #0056b3;
}

.menu-heading {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); /* Gradient background */
    color: var(--secondary-color); /* Text color */
    text-align: center; /* Center the text */
    padding: 10px 15px; /* Add padding for a spacious appearance */
    font-size: 18px; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    margin-bottom: 15px; /* Add spacing below the heading */
    text-transform: uppercase; /* Make the text uppercase */
    letter-spacing: 1px; /* Add spacing between letters for a modern look */
    border: 2px solid var(--primary-color); /* Add a border for emphasis */
}
.fancy-button {
    display: block; /* Button behaves like a block element */
    width: 100%; /* Full width of the parent */
    box-sizing: border-box; /* Include padding and border in width */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); /* Gradient background */
    color: var(--secondary-color); /* Text color */
    border: 2px solid var(--primary-color); /* Border styling */
    border-radius: 8px; /* Rounded corners */
    padding: 10px 15px; /* Internal spacing */
    font-size: 16px; /* Text size */
    font-weight: bold; /* Bold text */
    text-transform: uppercase; /* Make text uppercase */
    letter-spacing: 1px; /* Spacing between letters */
    text-align: center; /* Center text inside the button */
    cursor: pointer; /* Pointer cursor on hover */
    transition: all 0.3s ease; /* Smooth hover transition */
    margin: 10px 0; /* Vertical spacing between buttons */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.fancy-button:hover, .fancy-button:focus {
    background: var(--accent-color); /* Hover background */
    color: var(--primary-color); /* Hover text color */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    outline: none; /* Remove outline */
    transform: translateY(-2px); /* Slight lift on hover */
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 500px;
    gap: 10px;
}

.search-box input[type="text"] {
    flex: 2;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--primary-color);
    background-color: #fff;
}

.search-box select {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--primary-color);
    background-color: #fff;
}

.search-box button {
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.search-box button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
/* Centering the Registration Form */
.registration-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 500px;
    background-color: var(--secondary-color); /* Secondary color for background */
    border: 2px solid var(--primary-color); /* Primary color for border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Form Field Styling */
.registration-form-container label {
    display: block; /* Ensure labels are on their own lines */
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.registration-form-container input[type="text"],
.registration-form-container input[type="email"],
.registration-form-container input[type="password"] {
    width: 100%; /* Full-width input fields */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: #fff; /* White background */
    color: var(--primary-color);
    font-size: 14px;
    box-sizing: border-box;
}

/* Submit Button Styling */
.registration-form-container button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover Effect for Submit Button */
.registration-form-container button:hover {
    background-color: var(--accent-color);
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Error and Success Message Styling */
.registration-form-container .message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.registration-form-container .error {
    color: red;
    font-weight: bold;
}

.registration-form-container .success {
    color: green;
    font-weight: bold;
}

/* ===== HEADER OVERRIDES (new logo system) ===== */

header.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:12px 24px;
  background: var(--primary-color);
  color:#fff;
  /* Header tall enough to fully contain the login box */
  min-height: 170px;                 /* tweak to taste (login box is ~150px) */
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.15);
}

/* Center the brand (icon + text) */
header.site-header .brand{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Icon should never fill the whole screen */
header.site-header .brand-logo{
  height:auto;
  max-height: 120px;                 /* matches header height nicely */
  width:auto;
  object-fit:contain;
  display:block;
}

/* Brand link & text (stop blue underline) */
header.site-header .brand-link,
header.site-header .brand-link:link,
header.site-header .brand-link:visited{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;                        /* <- was defaulting to blue */
}
header.site-header .brand-link:hover{ opacity:.9; }

header.site-header .brand-text{
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight:700;
  white-space:nowrap;
  font-size: clamp(20px, 2vw, 28px);
}
header.site-header .brand-text strong{ color:#000; }

/* Login box fits inside the header and centers */
header.site-header .login-box{
  flex:0 0 auto;
  height:auto;                       /* remove the fixed 150px constraint */
  min-height:150px;                  /* keep visual heft but allow content to flow */
  padding:12px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.1);
  border-radius:10px;
  backdrop-filter:saturate(120%) blur(2px);
  box-shadow:0 2px 10px rgba(0,0,0,.08) inset;
}
header.site-header .login-box h3{ margin:0 0 6px 0; color:#fff; }
header.site-header .login-box button{
  background:#fff; color:#d10000; border:0; padding:8px 12px; border-radius:8px; font-weight:600;
}
header.site-header .login-box button:hover{ filter:brightness(0.95); }

/* Optional: ensure the nav sits below the header cleanly */
nav{ position:relative; z-index:0; }
