/*!
Theme Name: cupburger
Theme URI: http://cupburger.org
Author: cupburger.org
Author URI: http://cupburger.org
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cupburger
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Preventing layout overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #fff9f0;
  overflow-x: hidden;
  padding-left: 1rem;
  padding-right: 1rem;
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
--------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# Plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
--------------------------------------------------------------*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@700&display=swap');



/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base (Updated Typography & Font Stack)
--------------------------------------------------------------*/

body,
button,
input,
select,
optgroup,
textarea {
	color: #393a3c;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

a {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover,
a:focus {
  color: #ff6b56;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-family: 'Jost', sans-serif;
	font-weight: 800;
	color: #393a3c;
}

h1, .site-title {
	font-size: 24pt;
	line-height: 1.2;
}

/* Keeping the rest of Underscores styles from here onwards */
/* ... */

/*--------------------------------------------------------------
# Custom Cupburger Layout Styles
--------------------------------------------------------------*/

body {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== PRIMARY CONTENT WRAPPER ===== */
.site-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  flex: 1;
  min-height: 50px;
  background: rgba(255, 0, 0, 0); 
}

/* ========== LAYOUT WRAPPER ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ========== HEADER ========== */
.site-header {
  background-color: #1c1c1c;
  color: #fef9f0;
  text-align: center;
  padding: 1rem;
}

.site-header nav {
  margin-top: 1rem;
}

.site-header-nav,
.site-footer {
  width: 100%;
  background-color: #393a3c;
}

.site-header nav a {
  color: #fef9f0;
  margin: 0 0.75rem;
  font-weight: bold;
}

.site-header nav a::after {
  content: ' •';
  color: #e60023;
}

.site-header nav a:last-child::after {
  content: '';
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fff9f0;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SECTION BLOCKS ========== */
.section-dark {
  background-color: #2c2c2c;
  color: #fef9f0;
  padding: 4rem 1rem;
  text-align: center;
}

.section-light {
  background-color: #fff9f0;
  color: #393a3c;
  padding: 4rem 1rem;
  text-align: center;
}

/* Torn edge effect (optional placeholder) */
.section-dark::before,
.section-light::before {
  content: "";
  display: block;
  background: url('torn-edge.png') repeat-x;
  height: 30px;
  margin-top: -30px;
}

/* ========== BUTTONS ========== */
.cta-button {
  background-color: #e60023;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #b8001b;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: #fff9f0;
  color: #393a3c;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.site-footer a {
  color: #e60023;
}

.footer-credit {
  text-align: center;
  margin-top: 2rem;
  color: #393a3c;
  font-weight: 700;
  padding-top: 0.75rem;
  font-size: 0.95rem;
}

.footer-credit-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 2px solid #393a3c;
  padding-top: 0.75rem;
}

.footer-credit span.red {
  color: #ff6b56;
}

/* ===== HEADER NAV MENU ===== */
.site-header-nav {
  background-color: #393a3c;
  position: relative;
}

.menu-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; 
  gap: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; 
  gap: 2rem;
}


.main-navigation .main-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .main-menu li {
  display: flex;
  align-items: center;
  position: relative;
}

.main-navigation .main-menu > li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ff6b56;
  border-radius: 50%;
  margin-left: 1.5rem;
}

.main-navigation .main-menu li a {
  font-family: 'Jost', sans-serif;
  font-size: 22pt;
  font-weight: 800;
  color: #fef9f0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.main-navigation .main-menu li a:hover {
  color: #ff6b56;
  text-decoration: none;
}

/* Menu item hover colours by order */
.main-navigation .main-menu li:nth-child(1) a:hover { color: #ff6556; } /* Home */
.main-navigation .main-menu li:nth-child(2) a:hover { color: #6da6a2; } /* About */
.main-navigation .main-menu li:nth-child(3) a:hover { color: #f6aa3e; } /* Apply */
.main-navigation .main-menu li:nth-child(4) a:hover { color: #547eb8; } /* Policies */
.main-navigation .main-menu li:nth-child(5) a:hover { color: #915893; } /* Blog */

.menu-toggle {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fef9f0;
  padding: 1rem;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    background-color: #393a3c;
  }

  .main-navigation.toggled {
    display: flex;
  }

  .main-navigation .main-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
  }

  .main-navigation .main-menu li {
    display: block;
    width: 100%;
    margin: 0;
    position: static;
  }

  .main-navigation .main-menu li::after {
    display: none; /* removing dot separator */
  }

  .main-navigation .main-menu li a {
    font-size: 1.1rem;
    padding: 0.25rem 0;
    display: block;
    width: 100%;
    text-align: left;
    color: #fef9f0;
    font-weight: 700;
  }

  .main-navigation .main-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .main-navigation .main-menu li a::before {
    content: "•";
    color: #f60909;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
  }

  .menu-toggle[aria-expanded="true"] {
    color: #f60909;
  }

  /* ============= SUBMENU OVERRIDES FOR MOBILE ============= */

  .main-navigation .main-menu li ul {
    display: block !important;
    position: static !important;
    margin: 0.5rem 0 0 1rem;
    padding-left: 1rem;
    border-left: 2px solid #ff6b56;
    background: none;
    box-shadow: none;
    width: 100%;
  }

  .main-navigation .main-menu li ul li {
    padding: 0.25rem 0;
    margin: 0;
    border: none;
  }

  .main-navigation .main-menu li ul li a {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-indent: 0.25rem;
  }

  /* Removing all hover/flyout logic on mobile */
  .main-navigation .main-menu li:hover > ul,
  .main-navigation .main-menu li:focus-within > ul {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    background: none !important;
  }
}


.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

.footer-widgets {
  display: flex;
  gap: 2rem;
  flex-grow: 1;
  justify-content: space-between;
}

.footer-widget h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.footer-widget {
  flex: 1;
  text-align: left;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 0.5rem;
}

.footer-widget ul li a {
  font-size: 1rem;
  color: #393a3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-widget ul li a:hover {
  color: #ff6b56;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-widgets {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-widget {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .footer-widget h4,
  .footer-widget ul {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-widget h4 {
    font-size: 1rem;
  }

  .footer-widget ul li a {
    font-size: 0.95rem;
  }
}

.footer-social {
  background-color: #2c2c2c;
  color: #fef9f0;
  text-align: center;
  padding: 3rem 1rem;
}

.footer-social h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fef9f0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-social h2 span {
  color: #ff6b56;
}

.footer-social p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #ccc;
}

.footer-social-icons {
  color: #fef9f0;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-social-icons h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fef9f0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-social-icons h1 {
  font-family: 'Jost', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fef9f0;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 10px;
}

.footer-social-icons h2 span {
  color: #ff6b56;
}

.footer-social-icons {
  color: #fef9f0;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-social-icons h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fef9f0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-social-icons h2 span {
  color: #f60909;
}

.footer-social-icons p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #ccc;
}

.footer-social-icons .icon-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-social-icons .icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 10px;
  transition: transform 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-social-icons .icon-link:hover {
  transform: scale(1.1);
}

.footer-social-icons .icon-link img {
  width: 100%;
  height: auto;
  display: block;
}


.footer-credit {
  text-align: center;
  margin-top: 2rem;
  color: #393a3c;
  font-weight: 700;
  padding-top: 0.75rem;
  font-size: 0.95rem;
}

.footer-credit-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 2px solid #393a3c;
  padding-top: 0.75rem;
}

.footer-credit span.red {
  color: #ff6b56;
}

.no-padding {
  padding: 0 !important;
}


.panel-title {
  font-size: 2rem;
  font-weight: 800;
  color: #393a3c;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: left;
}

.panel-title-dark {
  font-size: 2rem;
  font-weight: 800;
  color: #fef9f0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: left;
}


.homepage-panel.dark-panel {
  background-color: #393a3c;
  color: #fff9f0;
  width: 100%;
}

.container-dark {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem;
  position: relative;
  z-index: 3;
}

.container-light {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

.intro-wrap {
  max-width: 650px;
  margin: 1rem auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
}

.intro-highlight {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: normal;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  .menu-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }

  .menu-toggle {
    text-align: left;
    padding-left: 0;
    margin-bottom: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .main-navigation .main-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    text-align: left;
    gap: 0.5rem;
    width: 100%;
  }

  .main-navigation .main-menu li {
    width: 100%;
    margin: 0;
  }

  .main-navigation .main-menu li a {
    font-size: 1.1rem;
    padding: 0.25rem 0;
    display: block;
    width: 100%;
    text-align: left;
  }

  .main-navigation .main-menu li::after {
    display: none !important;
  }
	
  .main-navigation .main-menu li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
	
  .main-navigation .main-menu li a::before {
    content: "•";
    color: #f60909;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
  }
	
  .menu-toggle[aria-expanded="true"] {
  color: #f60909;
}

}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
}

.menu-toggle svg {
  display: block;
}

.menu-toggle .menu-label {
  line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus {
  opacity: 0.85;
}

/* ===== DESKTOP NAVIGATION ===== */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

.torn-edge {
  width: 100%;
  height: 100px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #fff9f0;
  z-index: 1;
}

/* Top tear */
.torn-edge-top {
  background-image: url('http://www.cupburger.org/wp-content/uploads/2025/04/tear_top.png');
}

/* Bottom tear */
.torn-edge-bottom {
  background-image: url('http://www.cupburger.org/wp-content/uploads/2025/04/tear_bottom.png');
}

.site-header-nav::after {
  content: '';
  display: block;
  width: 100%;
  height: 50px;
  background: 
    url('http://www.cupburger.org/wp-content/uploads/2025/04/tear_bottom.png') bottom center no-repeat,
    #fff9f0; /* fallback background behind the image */
  background-size: cover;
}

.top-logo {
  text-align: center;
  background-color: #fff9f0; 
  padding: 2rem 1rem 1rem;
}

.top-logo img {
  max-width: 300px;
  height: auto;
  display: inline-block;
}


/* Menu dot colours */

/* About page - change ALL dots */
body.page-id-26 .main-navigation .main-menu li:not(:last-child)::after {
  background-color: #6da6a2;
}

/* Apply page */
body.page-id-23 .main-navigation .main-menu li:not(:last-child)::after {
  background-color: #f6aa3e;
}

/* Policies page */
body.page-id-27 .main-navigation .main-menu li:not(:last-child)::after {
  background-color: #547eb8;
}


/* Blog page */
body.page-id-24 .main-navigation .main-menu li:not(:last-child)::after {
  background-color: #915893;
}

/* Blog page additional */
body.blog .main-navigation .main-menu li:not(:last-child)::after {
  background-color: #915893;
}


/* apply button */

.apply-button {
  background-color: #ff6b56;
  color: white;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.apply-button:hover,
.apply-button:focus {
  background-color: #e85d50; /* slightly darker hover */
  color: white; /* keeps text white on hover */
  transform: scale(1.03);
  text-decoration: none;
}

/* APPLY page button colour */

.page-id-23 .apply-button {
  background-color: #f6aa3e;
  color: #fef9f0;
  border: none;
}

.page-id-23 .apply-button:hover {
  background-color: #e6992d;
}


/* Highlighting the current page menu items with their specific colour */
.main-navigation .main-menu li.current-menu-item:nth-child(1) a {
  color: #ff6b56; /* Home */
}

.main-navigation .main-menu li.current-menu-item:nth-child(2) a {
  color: #6da6a2; /* About */
}

.main-navigation .main-menu li.current-menu-item:nth-child(3) a {
  color: #f6aa3e; /* Apply */
}

.main-navigation .main-menu li.current-menu-item:nth-child(4) a {
  color: #547eb8; /* Policies */
}

.main-navigation .main-menu li.current-menu-item:nth-child(5) a {
  color: #915893; /* Blog  */
}


.blog-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.blog-card {
  background: #fef9f0;
  border: 2px solid #ddd; 
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card-image img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.blog-card-content {
  padding: 1rem;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  font-family: 'Jost', sans-serif;
  color: #393a3c;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}


.blog-card-excerpt a {
  text-decoration: none !important;
  color: #444 !important;
}

.blog-card-excerpt a:hover {
  text-decoration: underline !important;
  color: #ff6b56 !important; 
}

/* Pagination wrapper */
.pagination {
  width: 100%;
  margin-top: 3rem;
  padding-left: 0.5rem;
  text-align: left;
  clear: both;
}

/* Pagination items */
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.25rem 0.5rem 0;
  padding: 0.5rem 1rem;
  background-color: #915893;
  color: #fef9f0;
  text-decoration: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

/* Hover effect */
.pagination a:hover {
  background-color: #824d84;
}

/* Current page highlight */
.pagination .current {
  background-color: #393a3c;
}


/* Featured image max width */

.single-post .post-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Edit link style */

.entry-footer {
  margin-top: 1.5rem;
}

.entry-footer .edit-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  background-color: #f0f0f0;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}

.entry-footer .edit-link a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.entry-footer .edit-link a:hover {
  color: #ff6b56;
  text-decoration: underline;
}

/* Blog footer styles */

.post-meta {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #393a3c;
}

.post-category {
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-category a {
  display: inline-block;
  color: #393a3c;
  text-decoration: none;
  background-color: #f0ece6;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  font-size: 0.85rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.post-category a:hover {
  background-color: #ff6b56;
  color: #fef9f0;
}

.post-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Updated Post navigation */

/* === Navigation wrapper === */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

/* === Flex container across full width === */
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* === Allowing links to be as wide as content === */
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 0 0 auto;
}

/* === Shared button style === */
.post-navigation a {
  display: inline-block;
  background-color: #393a3c;
  color: #fef9f0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap; 
}

/* === Hover effect === */
.post-navigation a:hover {
  background-color: #ff6b56; 
  transform: translateY(-2px);
}

/* === Subtitle and title styling === */
.post-navigation .nav-subtitle {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin-right: 0.4rem;
}

.post-navigation .nav-title {
  font-size: 1rem;
  font-weight: 700;
  display: inline;
}

/* === Mobile: stack navigation if narrow === */
@media (max-width: 600px) {
  .post-navigation .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    text-align: center;
  }
}

/* Blog Featured image ratio */

.blog-card-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Dropdown menu style */

/* === Dropdown Menu Styles === */
.main-navigation .main-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #393a3c; 
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-navigation .main-menu li:hover > ul {
  display: block;
}

.main-navigation .main-menu li ul li {
  display: block;
  position: relative;
  margin: 0;
}

.main-navigation .main-menu li ul li a {
  font-size: 14pt;
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: #fef9f0;
  text-transform: none;
  text-align: left;
  display: block;
  background-color: #393a3c; 
  white-space: nowrap;
}

.main-navigation .main-menu li ul li a:hover {
  background-color: #4d4d4d; 
  color: #fef9f0;
  text-decoration: none;
}

/* Back-to-parent styling */

.back-to-parent {
  margin: 1rem 0;
  font-size: 1rem;
}

.back-to-parent a {
  color: #ff6b56;
  text-decoration: none;
  font-weight: bold;
}

.back-to-parent a:hover {
  text-decoration: underline;
  color: #e85d50; 
}



.back-to-parent-blog {
  margin: 1rem 0;
  font-size: 1rem;
}

.back-to-parent-blog a {
  color: #915893;
  text-decoration: none;
  font-weight: bold;
}

.back-to-parent-blog a:hover {
  text-decoration: underline;
  color: #824d84; 
}

/* Blog category link styling */

.blog-category-list {
  margin: 2rem 1.2rem 1.5rem;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.blog-category-list a {
  display: inline-block;
  margin-right: 1rem;
  color: #915893;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-category-list a:hover {
  color: #824d84;
  text-decoration: underline;
}

/* icon styling */

.icon-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent-colour, #ff6556);
  transition: background-color 0.3s ease;
}

.icon-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.blog-section-header {
  text-align: center;
  margin-bottom: 1.5em;
}

.section-heading {
  margin: 0 auto;
  font-size: 2rem;
}

.read-more-blog {
  text-align: center;
  margin-top: 2em;
}

.read-more-blog .button {
  background-color: var(--accent-color, #393a3c); 
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.read-more-blog .button:hover {
  background-color: #ff6556; 
}
