* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #faf8f4;
  color: #222;
}

/* ================= HEADER ================= */

.top-header {
  background: #CC6600;
}

.top-inner {
  max-width: 1300px;
  margin: auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1.5fr minmax(220px, auto) 1.5fr;
  align-items: center;
  gap: 1rem;
}

.top-left a {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.top-logo img {
  max-height: 90px;
  display: block;
  margin: 0 auto;
}

.top-right {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ================= SEARCH WRAPPER ================= */

.search-wrapper {
  position: relative;
  width: 250px;
}

.search-wrapper input[type="search"] {
  width: 100%;
  padding: 8px 40px 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.search-wrapper input[type="search"]:focus {
  border-color: #666;
}

.search-wrapper .search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.search-wrapper .search-button:hover {
  color: #000;
}

/* ================= NAVIGATION ================= */

nav.main-nav {
  background: #1c1c1c;
  position: relative;
}

ul.nav-level-1 {
  max-width: 1300px;
  margin: auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

ul.nav-level-1 > li {
  text-align: center;
}

ul.nav-level-1 > li.has-mega-menu {
  position: static;
}

/* TOP-LEVEL MENU HEADINGS */
ul.nav-level-1 > li > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  height: 40px;
  position: relative;
}

/* underline */
ul.nav-level-1 > li > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #CC6600;
  transition: 0.25s;
  transform: translateX(-50%);
}

ul.nav-level-1 > li > a:hover::after,
ul.nav-level-1 > li > a:focus-visible::after {
  width: 60%;
}

/* ================= MEGA MENU ================= */

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #f1ede6;
  z-index: 1000;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.mega-inner {
  max-width: 1300px;
  margin: auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* left align columns */
.mega-col {
  text-align: left;
}

.mega-col h3 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #CC6600;
  padding-bottom: 0.25rem;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col li {
  margin-bottom: 0.5rem;
}

.mega-col a {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.mega-col a:hover,
.mega-col a:focus-visible {
  color: #CC6600;
}

ul.nav-level-1 > li.has-mega-menu:hover > .mega-menu,
ul.nav-level-1 > li.has-mega-menu:focus-within > .mega-menu {
  display: block;
}

/* ================= PAGE ================= */

.page-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #777;
}

.page-layout {
  max-width: 1300px;
  margin: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
}

.panel {
  background: #f1ede6;
  padding: 1rem;
}

/* ========================================================= */
/*                WHISKY FORUM — CUSTOM HOVER               */
/* ========================================================= */

.nav-level-1 > li > a[href="forum/"]:hover {
    color: #000 !important;
    background: #f1ede6 !important;
    text-decoration: none !important;
}

.nav-level-1 > li > a[href="forum/"]:hover::after {
    width: 0 !important;
}

/* ========================================================= */
/*                DESKTOP MENU — FIX RESTORATION             */
/* ========================================================= */

@media (min-width: 880px) {

  /* Remove the orange underline from menu headings on desktop */
  ul.nav-level-1 > li > a::after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* No underline on hover */
  ul.nav-level-1 > li > a:hover::after,
  ul.nav-level-1 > li > a:focus-visible::after {
    width: 0 !important;
  }

  /* Restore original white hover block for all menu headings */
  ul.nav-level-1 > li:hover > a {
    background: #f1ede6 !important;
    color: #000 !important;
    text-decoration: none !important;
  }

  /* When mega menu is open, heading stays white */
  .nav-level-1 > li.active > a {
    background: #f1ede6 !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .nav-level-1 > li.active > a::after {
    width: 0 !important;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 879px) {

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
  }

  /* One-column layout for logo on top */
  .top-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .top-left {
    display: none;
  }

  /* NEW: The row under the logo with hamburger + search */
  .top-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem auto 0;
    width: 100%;
    max-width: 420px;
  }

  .top-header-row .menu-toggle {
    flex: 0 0 auto;
  }

  .top-header-row input[type="search"] {
    flex: 1;
    width: 100%;
    padding: 0.45rem;
    border-radius: 4px;
    border: 1px solid #ccc;
  }

  /* Hide original desktop right-side layout */
  .top-right {
    width: 100%;
    display: block;
  }

  /* MOBILE NAVIGATION */
  ul.nav-level-1 {
    display: none;
    grid-auto-flow: row;
    width: 100%;
  }
  ul.nav-level-1.active {
    display: grid;
  }

  .mega-menu {
    position: static;
    background: #2a2a2a;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/*         MOBILE HAMBURGER MENU — REDESIGNED SYSTEM        */
/* ========================================================= */

@media (max-width: 879px) {

  /* Entire mobile nav - full screen overlay */
  nav.main-nav {
    background: #f1ede6 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  nav.main-nav.active {
    transform: translateX(0);
  }

  /* Close button at top of main menu - left aligned with X */
  ul.nav-level-1::before {
    content: "X Close Menu";
    display: block;
    background: #1c1c1c;
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: left;
  }

  /* Top-level menu items - left aligned with right arrow */
  ul.nav-level-1 > li > a {
    background: #f1ede6 !important;
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    position: relative !important;
    text-align: left !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }

  /* Remove underlines and pseudo-elements from items WITHOUT submenus */
  ul.nav-level-1 > li:not(.has-mega-menu) > a::before,
  ul.nav-level-1 > li:not(.has-mega-menu) > a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Remove ::before from items WITH submenus */
  ul.nav-level-1 > li.has-mega-menu > a::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Right arrow for items with submenus using ::after */
  ul.nav-level-1 > li.has-mega-menu > a::after {
    content: "\003E" !important; /* > symbol */
    display: inline-block !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-left: auto !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
  }

  /* Hover state - white background with orange text and arrow */
  ul.nav-level-1 > li > a:hover {
    background: #fff !important;
    color: #CC6600 !important;
    text-decoration: none !important;
  }

  /* Arrow changes to orange on hover */
  ul.nav-level-1 > li.has-mega-menu > a:hover::after {
    color: #CC6600 !important;
  }

  /* WHISKY FORUM specific hover styling */
  ul.nav-level-1 > li > a[href="forum/"]:hover {
    background: #fff !important;
    color: #CC6600 !important;
  }

  /* Submenu container - full screen overlay */
  .mega-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #f1ede6 !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    display: none !important;
  }

  .mega-menu.active {
    display: block !important;
    transform: translateX(0) !important;
  }

  /* Back button at top of submenu - centered */
  .mega-menu::before {
    content: "<< Back To Main Menu";
    display: block;
    background: #1c1c1c;
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
  }

  /* Submenu layout */
  .mega-inner {
    background: #f1ede6 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Submenu section headings - clickable to expand */
  .mega-col {
    border-bottom: 1px solid #ddd;
  }

  .mega-col h3 {
    color: #000 !important;
    background: #f1ede6 !important;
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    border-bottom: none !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mega-col h3::after {
    content: "\003E"; /* > symbol */
    font-size: 1.3rem;
    font-weight: bold;
    color: #CC6600;
    transition: transform 0.3s ease;
  }

  .mega-col.expanded h3::after {
    transform: rotate(90deg);
  }

  /* Links list - hidden by default */
  .mega-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
  }

  .mega-col.expanded ul {
    max-height: 1000px;
  }

  /* Sub-menu links */
  .mega-col a {
    background: #fff !important;
    color: #000 !important;
    padding: 0.75rem 1.5rem !important;
    border-bottom: 1px solid #eee !important;
    font-size: 0.9rem !important;
    display: block;
  }

  .mega-col a:hover {
    color: #CC6600 !important;
    background: #f9f9f9 !important;
  }

  .mega-col li:last-child a {
    border-bottom: none !important;
  }
}

/* ===== FOOTER ===== */

.site-footer {
  background: #1c1c1c;
  color: white;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* ============================
   BACK TO TOP ROW - FIXED
   ============================ */
.footer-backtotop-row {
  background: #1c1c1c;
  border-bottom: 1px solid #333;
  padding: 0.5rem 0;
}

.footer-backtotop-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.backtotop-link {
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s;
}

.backtotop-link:hover {
  color: #e5b46f;
  text-decoration: underline;
}

.backtotop-link .arrow {
  font-size: 1rem;
  margin-right: 6px;
}

/* ============================================
   CONTACT ONLY ROW (CENTERED)
   ============================================ */
.footer-newsletter-contact-wrapper {
  background-color: #2b2b2b;
  width: 100%;
}

.footer-contact-only-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-column-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-info {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #ccc;
  max-width: 400px;
}

.contact-link {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #cc8400;
  text-decoration: none;
  gap: 0.5rem;
  cursor: pointer;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-icon {
  font-size: 1.3rem;
  display: inline-block;
}

/* =============================== */
/* MAIN 4-COLUMN FOOTER SECTION */
/* =============================== */
.footer-columns {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 1.75rem 1rem 1.25rem;
  border-bottom: 1px solid #333;
}

.footer-col {
  position: relative;
}

/* Vertical separators - positioned in the gap between columns */
.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-2.5rem / 2);
  width: 1px;
  height: 100%;
  background: #2d2d2d;
}

/* Titles */
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  text-decoration: none;
  color: #ddd;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.footer-col a:hover {
  color: #cc8400;
}

/* SOCIAL ICONS */
.social-icons svg {
  width: 18px;
  height: 18px;
}

/* COPYRIGHT ROW */
.footer-bottom {
  text-align: center;
  color: #ccc;
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

/* ============================================
   MOBILE FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 800px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 500px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Center footer headings + links on small screens */
  .footer-col {
    text-align: center;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .footer-col ul,
  .footer-col li,
  .footer-col a {
    justify-content: center;
  }

  .footer-col li {
    margin-bottom: 0.25rem;
  }

  .social-icons a {
    justify-content: center;
  }

  .social-icons li {
    margin-bottom: 0.3rem;
  }
}

/* ========================================================= */
/*                    HOMEPAGE STYLES                       */
/* ========================================================= */

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  background: #2b2b2b;
  padding: 4rem 1rem;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: #ddd;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-btn-primary {
  background: #CC6600;
  color: #fff;
}

.hero-btn-primary:hover {
  background: #994d00;
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-btn-secondary:hover {
  background: #fff;
  color: #1c1c1c;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Featured Whisky Section */
.featured-whisky-section {
  padding: 3rem 0;
  background: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem;
  color: #1c1c1c;
  text-align: center;
}

/* Featured Distillery Section */
.featured-distillery-section {
  padding: 3rem 0;
  background: #faf8f4;
}

.featured-distillery-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-distillery-image {
  background: #f1ede6;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.featured-distillery-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 4px;
}

.featured-distillery-content {
  padding: 2rem 0 2rem 2rem;
  order: 1;
}

.distillery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.distillery-badge {
  display: inline-block;
  background: #f1ede6;
  color: #CC6600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.distillery-view-all {
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.distillery-view-all:hover {
  color: #994d00;
}

.featured-distillery-content h3 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: #1c1c1c;
}

.distillery-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.distillery-facts {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: #f1ede6;
  border-radius: 4px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.distillery-btn {
  display: inline-block;
  background: #CC6600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.distillery-btn:hover {
  background: #994d00;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem;
  color: #1c1c1c;
  text-align: center;
}

.featured-whisky-card {
  background: #f1ede6;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-whisky-image {
  background: #fff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-whisky-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.featured-whisky-content {
  padding: 2rem 2rem 2rem 0;
}

.featured-badge {
  display: inline-block;
  background: #CC6600;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.featured-whisky-content h3 {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
  color: #1c1c1c;
}

.rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stars {
  color: #CC6600;
  font-size: 1.2rem;
}

.score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.whisky-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

.whisky-specs {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.spec {
  font-size: 0.9rem;
  color: #555;
}

.spec strong {
  color: #1c1c1c;
}

.read-more-btn {
  display: inline-block;
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #994d00;
}

/* Homepage Layout */
.homepage-layout {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.main-content {
  min-width: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #1c1c1c;
}

.view-all-link {
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #994d00;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-image-placeholder {
  background: #f1ede6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 1rem;
  font-weight: 600;
  color: #999;
  text-align: center;
  padding: 1rem;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #CC6600;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.news-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-content h3 a {
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.2s;
}

.news-content h3 a:hover {
  color: #CC6600;
}

.news-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1rem;
}

.news-read-more {
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.news-read-more:hover {
  color: #994d00;
}

/* Quick Guides Section */
.quick-guides-section {
  margin-top: 4rem;
}

/* Featured Articles Section */
.featured-articles-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: #fff;
  border: 2px solid #f1ede6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-card:hover {
  border-color: #CC6600;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.article-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #CC6600;
}

.article-category {
  display: inline-block;
  background: #f1ede6;
  color: #CC6600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: #CC6600;
}

.article-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.article-link {
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  margin-top: auto;
}

.article-link:hover {
  color: #994d00;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.guide-card {
  background: #f1ede6;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.guide-card:hover {
  background: #fff;
  border-color: #CC6600;
  transform: translateY(-4px);
}

.guide-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #CC6600;
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-icon-scotland {
  background-image: url('images/scotlandwhiskymap1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.guide-icon-barrel {
  background-image: url('images/copperpotstill6.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.guide-icon-tasting {
  background-image: url('images/flightofwhiskies.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.guide-icon-glass {
  background-image: url('images/whiskyglasses.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.guide-icon svg {
  width: 80px;
  height: 80px;
}

.guide-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: #1c1c1c;
}

.guide-card p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Sidebar Styles */
.sidebar {
  min-width: 0;
}

.sidebar-widget {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #CC6600;
  color: #1c1c1c;
}

/* Trending List */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trending-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #CC6600;
  min-width: 30px;
}

.trending-content h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.trending-content h4 a {
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.2s;
}

.trending-content h4 a:hover {
  color: #CC6600;
}

.trending-meta {
  font-size: 0.75rem;
  color: #777;
}

/* Whisky Finder Widget */
.widget-finder {
  background: #f1ede6;
}

.whisky-finder-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whisky-finder-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 0.25rem;
}

.whisky-finder-form select {
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

.finder-submit-btn {
  background: #CC6600;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.finder-submit-btn:hover {
  background: #994d00;
}

/* Forum List */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.forum-item h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.forum-item h4 a {
  color: #1c1c1c;
  text-decoration: none;
  transition: color 0.2s;
}

.forum-item h4 a:hover {
  color: #CC6600;
}

.forum-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #777;
}

.widget-view-all {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #CC6600;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.widget-view-all:hover {
  color: #994d00;
}

/* Newsletter Widget */
.widget-newsletter {
  background: #1c1c1c;
  color: #fff;
}

.widget-newsletter .widget-title {
  color: #fff;
  border-bottom-color: #CC6600;
}

.widget-newsletter p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 1rem;
}

.newsletter-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-signup-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.newsletter-signup-form button {
  background: #CC6600;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-signup-form button:hover {
  background: #994d00;
}

.newsletter-privacy {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.75rem;
  line-height: 1.4;
}

.newsletter-privacy a {
  color: #CC6600;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .featured-whisky-card {
    grid-template-columns: 1fr;
  }

  .featured-whisky-image {
    padding: 3rem;
  }

  .featured-whisky-content {
    padding: 0 2rem 2rem;
  }

  .featured-distillery-card {
    grid-template-columns: 1fr;
  }

  .featured-distillery-image {
    padding: 3rem;
    order: 1;
  }

  .featured-distillery-content {
    padding: 0 2rem 2rem;
    order: 2;
  }

  .homepage-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .featured-whisky-image {
    padding: 2rem;
  }

  .whisky-specs {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========================================================= */
/*                 COOKIE CONSENT POPUP                     */
/* ========================================================= */

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid #CC6600;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  padding: 1.5rem;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-consent.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-content {
  max-width: 1300px;
  margin: 0 auto;
}

.cookie-consent h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1c1c;
}

.cookie-consent p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

.cookie-consent p a {
  color: #CC6600;
  text-decoration: underline;
}

.cookie-consent p a:hover {
  color: #994d00;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: Inter, sans-serif;
}

.cookie-btn-settings {
  background: #f1ede6;
  color: #1c1c1c;
  border: 2px solid #1c1c1c;
}

.cookie-btn-settings:hover {
  background: #1c1c1c;
  color: #fff;
}

.cookie-btn-reject {
  background: #666;
  color: #fff;
}

.cookie-btn-reject:hover {
  background: #444;
}

.cookie-btn-accept {
  background: #CC6600;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #994d00;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cookie-modal-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1c1c1c;
}

.cookie-modal-content > p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #333;
}

/* Cookie Categories */
.cookie-category {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
}

.cookie-category:last-of-type {
  margin-bottom: 2rem;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.cookie-category-info p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: #CC6600;
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-slider-disabled {
  background-color: #999 !important;
  cursor: not-allowed !important;
}

/* Modal Buttons */
.cookie-modal-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.cookie-btn-save {
  background: #1c1c1c;
  color: #fff;
}

.cookie-btn-save:hover {
  background: #000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1.25rem;
  }

  .cookie-consent h3 {
    font-size: 1.1rem;
  }

  .cookie-consent p {
    font-size: 0.85rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-modal-content {
    padding: 1.5rem;
  }

  .cookie-modal-content h3 {
    font-size: 1.2rem;
  }

  .cookie-category-header {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

  .cookie-modal-buttons .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-modal-content {
    padding: 1.25rem;
  }
}


/* ========================================================= */
/*                   ADVERTISING STYLES                      */
/* ========================================================= */

/* ---- Shared "Advertisement" label ---- */
.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  margin-bottom: 0.4rem;
}

.ad-label-sidebar {
  text-align: left;
  margin-bottom: 0.5rem;
}

/* =========================================================
   LEADERBOARD / FULL-WIDTH BANNER AD
   Sits between "Whisky of the Week" and "Distillery of
   the Month" — a natural content break point.
   Standard IAB size: 728×90 on desktop, responsive on mobile.
   ========================================================= */
.ad-leaderboard-wrapper {
  background: #f1ede6;
  border-top: 1px solid #e0dbd2;
  border-bottom: 1px solid #e0dbd2;
  padding: 1rem 1rem 1.25rem;
}

.ad-leaderboard-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Placeholder shown until a real ad is loaded */
.ad-leaderboard-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 970px;           /* fits both 728×90 and 970×90 units */
  min-height: 90px;
  background: #fff;
  border: 2px dashed #d4ccbf;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.ad-leaderboard-placeholder:hover {
  border-color: #CC6600;
  box-shadow: 0 2px 12px rgba(204, 102, 0, 0.12);
}

.ad-placeholder-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.ad-placeholder-icon {
  font-size: 2rem;
  line-height: 1;
}

.ad-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.ad-placeholder-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.ad-placeholder-text span {
  font-size: 0.8rem;
  color: #777;
}

.ad-placeholder-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: #CC6600;
  white-space: nowrap;
  border: 1.5px solid #CC6600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.ad-leaderboard-placeholder:hover .ad-placeholder-cta {
  background: #CC6600;
  color: #fff;
}

/* =========================================================
   SIDEBAR MPU / RECTANGLE AD
   Standard sizes: 300×250 (MPU) or 300×600 (half-page).
   Placed between "Trending" and "Whisky Finder" widgets —
   a natural pause point as the user scans the sidebar.
   ========================================================= */
.ad-sidebar-widget {
  background: #fff;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid #e8e2d9;
}

/* Placeholder shown until a real ad is loaded */
.ad-sidebar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;          /* matches 300×250 MPU */
  background: #faf8f4;
  border: 2px dashed #d4ccbf;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.ad-sidebar-placeholder:hover {
  border-color: #CC6600;
  box-shadow: 0 2px 12px rgba(204, 102, 0, 0.12);
}

.ad-sidebar-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.ad-sidebar-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ad-sidebar-placeholder-content strong {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.ad-sidebar-placeholder-content span {
  font-size: 0.8rem;
  color: #888;
}

.ad-sidebar-sub {
  font-size: 0.75rem !important;
  color: #aaa !important;
  max-width: 200px;
  line-height: 1.4;
}

.ad-sidebar-cta {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #CC6600 !important;
  border: 1.5px solid #CC6600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.ad-sidebar-placeholder:hover .ad-sidebar-cta {
  background: #CC6600;
  color: #fff !important;
}

/* ---- Responsive tweaks for ad units ---- */
@media (max-width: 768px) {
  /* Stack the leaderboard content vertically on small screens */
  .ad-placeholder-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ad-placeholder-text {
    text-align: center;
  }

  /* On mobile the sidebar stacks below the main content,
     so the MPU sits at full column width — keep it tidy */
  .ad-sidebar-placeholder {
    min-height: 200px;
  }
}

@media (max-width: 500px) {
  .ad-leaderboard-wrapper {
    padding: 0.75rem;
  }

  .ad-leaderboard-placeholder {
    min-height: 60px;
    padding: 0.75rem;
  }

  .ad-placeholder-icon {
    display: none;   /* save space on very small screens */
  }
}