/* Additional layout overrides */
.container{padding-top:20px;padding-bottom:20px}
.entry-content p{line-height:1.6}

/* =========================
   Theme Color Variables
   ========================= */

:root {
  /* Core theme colors */
  --color-accent: #0073aa;        /* Primary brand color (links, buttons) */
  --color-accent-hover: #005f8d;  /* Darker shade for hover */
  --color-bg: #ffffff;            /* Main background */
  --color-bg-alt: #f9f9fb;        /* Subtle section background */
  --color-border: #e0e0e5;        /* Borders and dividers */
  --color-text: #222222;          /* Primary text color */
  --color-text-muted: #555555;    /* Secondary text color */
  --color-sidebar-bg: #f7f7f7;    /* Sidebar background color */

  /* Core Layout Elements */
  --logo-width: 150px;

  /* Optional: transition speed for consistent hover feel */
  --transition-speed: 0.2s;
}

/* =========================
   Header Styles
   ========================= */

.site-header {
  background: #fff;
  padding: 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.branding img {
  max-width: var(--logo-width, 150px);
  height: auto;
}

.branding a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
}

hr {
  border: 1px solid #e7e7e7;
}

/* --- Navigation Menu --- */
.nav, .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
    position: relative; /* Keep this */
    padding-bottom: 5px; /* Add a small gap to extend the hover zone */
    padding-top: 5px;    /* Add a small gap to extend the hover zone */
    margin: 0;
    /* Optional: You can put your 1.5rem spacing here if you prefer margin between items */
}

.nav li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    transition: color 0.2s ease;
    display: block; /* Crucial: Make the link fill the li */
    padding: 15px 1.5rem; /* Add your original horizontal padding and a small vertical padding */
}

.nav li a:hover {
  color: var(--color-accent); /* WordPress blue tone */
}

/* === Responsive Dropdown Menu === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hide nav by default on mobile */
/*
@media (max-width: 768px) {
  .nav {
    display: none;
    width: 100%;
    text-align: center;
    flex-direction: column;
    margin-top: 0.5rem;
  }

  .nav.active {
    display: block;
  }

  .menu-toggle {
    display: inline-block;
    color: inherit;
  }

  .nav ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav ul.menu li {
    display: block;
    padding: 10px 0;
  }
}
*/

/* --- Mobile Behavior --- */
@media (max-width: 768px) {
  .header-standard .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    width: 100%;
    /*overflow: hidden;*/
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav.active {
    display: flex;
    opacity: 1;
  }

  .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav li a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
  }
}

/* --- Header Layout Styles --- */
/* === Centered Header Override === */
.header-standard .branding img {
  margin: 0 auto;
}

.header-standard .menu {
  display: inline-block;
  text-align: center;
}

.header-centered .header-inner {
  display: flex;
  flex-direction: column; /* Stack logo above nav */
  align-items: center;     /* Center both horizontally */
  justify-content: center;
}

.header-centered .branding {
  margin-bottom: 1rem;
}

.header-centered .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* spacing between menu items */
}

.header-centered .menu li {
  list-style: none;
}

.header-minimal {
  border: none;
  padding: 1rem 0;
}

.header-minimal .branding img {
  max-height: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .header-centered .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .nav li {
    padding: 0.25rem 0;
  }
}
/* =========================
   Layout Styles
   ========================= */

.layout {
  padding: 0rem 0;
}

.container {
  margin: 0 auto;
}

/* --- With Sidebar Layout --- */
.layout-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 6fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Narrow Layout --- */
.layout-narrow .narrow-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .layout-narrow .narrow-content {
    padding: 1.5rem;
  }
}

/* =========================
   Sidebar and Widgets
   ========================= */

/* Sidebar container */
.sidebar-area {
  background: var(--color-sidebar-bg, #f7f7f7);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Widget area wrapper (inside sidebar.php) */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* space between widgets */
}

/* Each widget box */
.widget {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Widget titles */
.widget h3,
.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent); /* accent color */
  color: var(--color-text);
}

/* Widget text and links */
.widget p,
.widget li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.widget a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Clean up unordered lists inside widgets */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.widget ul li:hover {
  border-color: var(--color-accent);
}

/* Responsive stacking already handled by your grid media query */

/* =========================
   Block Search Widget Styling
   ========================= */

.wp-block-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hide or simplify the label visually */
.wp-block-search__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* Inner wrapper for input + button */
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Search field styling */
.wp-block-search__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-search__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* Search button styling */
.wp-block-search__button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wp-block-search__button:hover {
  background: var(--color-accent-hover);
}

/* Optional: round-pill style */
.wp-block-search__input.round,
.wp-block-search__button.round {
  border-radius: 9999px;
}

/* Keep it responsive */
.wp-block-search__inside-wrapper {
  flex-wrap: nowrap;
}

@media (max-width: 500px) {
  .wp-block-search__inside-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-block-search__button {
    width: 100%;
  }
}


/* =========================
   Blog Grid Layout
   ========================= */

.page-title {
  font-size: 20px;
  font-weight: 700;
  padding: 10px 40px;
}

.layout-grid-posts .post-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-template-columns: 6, 1fr;
  gap: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.post-content {
  padding: 1rem;
  flex-grow: 1;
}

.post-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--color-accent);
}

.post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.post {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post:hover {
  transform: translateY(-5px); /* Noticeable lift effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.entry-title a {
  position: relative;
  text-decoration: none;
  color: #333;
}

.entry-title a::before {
  position: absolute;
  left: -1rem;
  z-index: -999;
  filter: brightness(175%);
  content: ''; /* Required for pseudo-elements to render */
  width: 15px; /* Extends the line far enough to cover the screen */
  height: 60px; /* Thickness of the line */
  background-color: var(--color-accent); /* Color of the accent line */
}

.entry-header {
  padding: 10px
}

.entry-footer {
  padding: 10px;
}

.cat-links a {
  text-decoration: none;
  color: #333;
}

.cat-links a:visited {
  color:#800080;
}

.byline a {
  color: #333;
  text-decoration: none;
  font-style: italic;
}

.more-link {
  color: var(--color-accent);
  transition: 0.2s ease;
}

.more-link:hover {
  text-decoration: none;
  font-weight: 700;
}

.post-excerpt {
  color: var(--color-text-muted);
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

/* ====================================
   Menu Dropdown Fixes (Standard & Mega)
   ==================================== */

/* 1. Ensure all list items are relative for submenu positioning */
.nav li {
    position: relative; 
}

/* 2. Style and hide all submenus (first and subsequent levels) */
.nav .sub-menu {
    display: none;     /* HIDE BY DEFAULT */
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 9998;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    list-style-type: none;
}

/* 3. Show all submenus when the parent list item is hovered */
.nav li:hover > .sub-menu {
    display: block;
}

/* 4. Style for standard sub-menu links */
.nav .sub-menu li a {
    padding: 8px 15px;
    border-bottom: none;
    white-space: nowrap;
}

/* 5. For deeper submenus, position them to the side */
.nav .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-top: -1px; /* Align perfectly with the parent item */
}

/* ====================================
   Mega Menu Styling
   ==================================== */

.platypus-mega-menu-item {
    /* Required for positioning the dropdown relative to the parent li */
    position: relative; 
}

/* Base submenu styling (hidden by default) */
.platypus-submenu {
    display: none;
    position: absolute; /* Position relative to the .platypus-mega-menu-item */
    top: 100%; /* Start just below the main menu item */
    left: 0;
    z-index: 9999; 
    padding: 20px;
    background-color: var(--color-sidebar-bg, #fff); /* Use a customizer variable */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 300px; /* Base width */
}

/* Show the submenu on hover */
.platypus-mega-menu-item:hover > .platypus-submenu {
    display: block;
}

/* Multi-column layout for the mega menu */
.platypus-mega-menu-item:hover > .platypus-submenu {
    /* If you want a 3-column mega menu (ideal for categories) */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    width: 900px; /* Example large width */
}

/* Ensure sub-menu items are displayed as columns, not rows */
.platypus-submenu li {
    /* Remove default list styling */
    list-style: none;
    margin: 0;
    padding: 0;
}

.platypus-submenu a {
    /* Style for links within the columns */
    display: block;
    padding: 8px 0;
    text-decoration: none;
    white-space: nowrap;
}

/* Style for the dropdown indicator icon */
.dropdown-indicator {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Optional: Rotate the indicator on hover */
.platypus-mega-menu-item:hover > a .dropdown-indicator {
    transform: rotate(180deg);
}

/* Ensure the second-level menu items are not grid containers themselves */
.platypus-submenu .sub-menu {
    display: block;
    position: static; /* Prevent sub-sub-menus from breaking out */
    padding: 0;
    background: none;
    box-shadow: none;
}

/* ====================================
   Easy Digital Downloads (EDD) Styling
   ==================================== */

/* General Wrapper for the Download Grid (used in layouts/grid.php) */
.edd-download-grid {
    width: 100%;
    /* Create a responsive grid for products, similar to Etsy/CF */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; /* Space between products */
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Individual Product Card Styling */
.product-card-minimal {
    /* Use the same post-card styling logic for consistency */
    background: var(--color-bg); 
    border-radius: 8px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);;
}

.product-card-minimal:hover {
    transform: translateY(-5px); /* Noticeable lift effect */
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.product-card-image {
    position: relative;
}
.product-card-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover; /* Ensures image fills the space without distortion */
    transition: transform var(--transition-speed) ease;
}
.product-card-minimal:hover .product-card-image img {
    /*transform: scale(1.05); /* Slight zoom on hover */
}

/* Content Area */
.product-card-content {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* removes cluttery tax message under EDD add to cart buttons */
.edd_purchase_tax_rate {
	display: none;
}

/* 2. Truncate the Product Title to a Max of Three Lines */
/* This requires three specific CSS properties for webkit browsers (Chrome/Safari) */
.product-card-title {
    /* Keep title styles from before */
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.4; /* Crucial for controlling the height */
    
    /* TRUNCATION PROPERTIES START */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit text to line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* TRUNCATION PROPERTIES END */
}

/* Ensure the link inside the title is also blocked */
.product-card-title a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--color-accent);
}

.edd_purchase_content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

/* Price */
.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* Button */
.product-card-button .edd-add-to-cart {
    display: block;
    align-items: center;
    width: 100%;
    /* Use the existing button-primary styles for appearance */
}
.product-card-button .button-primary {
    padding: 0.75rem 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: #fff;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-card-button .button-primary:hover {
  background-color: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
}

.product-card-category {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.7rem;
    font-weight: 400;
}
.product-card-category a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.product-card-category a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.edd_go_to_checkout {
  text-decoration: none;
}

/* --- EDD Cart Icon Styling --- */

/* Ensure the button text is aligned with the icon */
.edd-add-to-cart-label {
    display: flex;
    align-items: center;      /* Vertically center the icon and text */
    justify-content: center;  /* Center the group horizontally */
}

/* Style the SVG icon */
.edd-add-to-cart .cart-icon {
    /* Use currentColor to inherit the button's text color (white for your primary button) */
    stroke: currentColor; 
    fill: none;
    margin-right: 8px; /* Space between icon and text */
    width: 1.2em;      /* Control size based on font size */
    height: 1.0rem;
}

/* ====================================
   Pagination Styling
   ==================================== */

.page-numbers {
  text-decoration: none;
  background-color: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 5px;
  transition: 0.3s;
}

.page-numbers:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ====================================
   Single Download Page Styling
   ==================================== */

.single-download-article {
    padding-top: 1rem;
}

/* Two-Column Grid for single product page */
.single-download-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for media/details, 1/3 for purchase box */
    gap: 10px;
}

/* Responsive adjustment for small screens */
@media (max-width: 900px) {
    .single-download-grid {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 20px;
    }
}

/* --- COLUMN 1: Media/Description Area --- */

.download-featured-image {
  display: flex;
}

.download-featured-image img {
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-full-description {
    padding-top: 2rem;
}
.download-full-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}
.download-full-description ul, 
.download-full-description ol {
    padding-left: 20px;
}

/* --- COLUMN 2: Purchase Box --- */

.download-purchasing-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-purchase-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Large Price Display */
.download-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    text-align: center;
}

/* Purchase Button (Using your existing .button-primary) */
.download-purchase-form .button-primary {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: #fff;
    transition: 0.3s ease;
}

.download-purchase-form .button-primary:hover {
  background-color: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* License/Included Info List */
.download-license-info h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.download-license-info ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.download-license-info li {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.download-license-info li .icon-check {
    /* Placeholder for an actual icon font or SVG */
    content: "✓"; 
    position: absolute;
    left: 0;
    color: green;
}
/* You can replace the placeholder content with a Font Awesome or custom SVG icon class */

.download-icon svg {
  color: #fff;
  background-color: #00F0A8;
  padding: 5px;
  border-radius: 100%;
  height: 40px;
  width: auto;
  margin-right: 10px;
}

/* ====================================
   Download Tag Cloud Styling
   ==================================== */

.download-tag-cloud {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center; /* Center the tags for a better cloud look */
}

.download-tag-cloud h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Style the WordPress-generated tag cloud list */
.download-tag-cloud ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px; /* Space between tags */
}

/* Style the individual tag links */
.download-tag-cloud a {
    display: inline-block;
    background-color: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    font-size: 0.9rem !important; /* Override inline styling from wp_tag_cloud */
    padding: 5px 12px;
    border-radius: 5px; /* Pill shape */
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.download-tag-cloud a:hover {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* If you need to fix alignment within the purchase sidebar */
.download-purchase-sidebar .download-tag-cloud {
    margin-top: 20px;
}

/* ====================================
   List Stylings
   ==================================== */

   .list-group {
    background-color: var(--color-bg-alt);
    padding: 10px;
    border-radius: 5px;
   }

   .list-group-item {
    list-style-type: none;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 5px;
   }

   /* ====================================
   Header Standard Category Layout
   ==================================== */

/* Make the header element the full height of both bars */
.site-header.header-standard-category {
    padding-bottom: 0; /* Remove padding from main header if it interferes with the bar below */
}

/* Style the new full-width bar */
.header-standard-category .header-category-bar {
    width: 100%;
    /* Use an alternate color to make it stand out from the main bar */
    background-color: var(--color-bg-alt, #f9f9fb); 
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 0;
}

/* 1. Center the menu items horizontally */
.header-category-bar {
  padding: 0;
  margin: 0;
}

#category-menu {
    display: flex;
    justify-content: center; /* Crucial: Centers the menu items */
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
}

/* 2. Style the links inside the new category bar */
#category-menu li a {
    height: 41px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    transition: color 0.2s ease;
    display: block; /* Crucial: Make the link fill the li */
    padding: 10px 1rem;
    box-sizing: border-box;
}

#category-menu li a:hover {
    color: var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
}

/* Mobile: Hide the secondary bar on smaller screens to prioritize space */
@media (max-width: 768px) {
    .header-standard-category .header-category-bar {
        display: none; 
    }
}

/* ====================================
   Custom Download Search Bar Styling
   ==================================== */

/* Search Container sizing and order on desktop */
.header-search-container {
    padding: 10px 0;
    display: flex;
    justify-content: center; /* Crucial: Centers the menu items */
}



/* Styling the Form itself (Pill shape) */
.download-search-form {
    /*justify-content: space-between;*/
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 8px; /* Pill shape */
    background: var(--color-bg);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.download-search-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Styling the Input Field */
.download-search-form .search-field {
  width: 680px;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--color-text);
}

/* Styling the Submit Button */
.download-search-form .search-submit {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.download-search-form .search-submit:hover {
    color: var(--color-accent);
}

/* Styling the SVG Icon */
.download-search-form .search-icon {
    display: block;
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    /* Stack components on smaller screens */
    .site-header.header-standard-search .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Search bar takes full width below branding/toggle */
    .site-header.header-standard-search .header-search-container {
        /*width: 100%;*/ 
        max-width: none;
        order: 3; 
    }
    
    /* Navigation is pushed to the bottom */
    .site-header.header-standard-search .main-navigation {
        width: 100%;
        order: 4;
    }
    .site-header.header-standard-search .branding { order: 1; }
    .site-header.header-standard-search .menu-toggle { order: 2; }
}
@media (max-width: 768px) {
    .download-search-form .search-field {
        padding: 8px 15px;
    }
}

/* =========================
   Banner Styles
   ========================= */

   .banner {
    display: flex;
    justify-content: space-between;
    background-color: bisque;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    width: 100%;
    position: relative;
   }

   .banner::before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    z-index: 1;
   }

   .banner-img {
    width: 200px;
    height: 200px;
    margin: 20px 10px;
    background-size:contain;
    background-repeat: no-repeat;
    z-index: 2;
   }

   .banner-headline {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: rgb(58, 58, 58);
    font-family: 'Rubik', sans-serif;
    line-height: 1.3em;
   }

   .banner-flavor {
    font-size: 20px;
    color: rgb(75, 79, 88);
    margin-bottom: 20px;
    margin-top: 0;
    z-index: 2;
   }

   .banner-middle {
    text-align: center;
    z-index: 2;
   }