@font-face {
    font-family: 'Josefin Sans Regular';
    src: url('../fonts/Josefin-Sans-regular.woff2') format('woff2'),
    url('../fonts/Josefin-Sans-regular.woff') format('woff');
}
@font-face {
    font-family: 'Josefin Sans Medium';
    src: url('../fonts/JosefinSans-Medium.woff2') format('woff2'),
    url('../fonts/JosefinSans-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Josefin Sans SemiBold';
    src: url('../fonts/JosefinSans-SemiBold.woff2') format('woff2'),
    url('../fonts/JosefinSans-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Josefin Sans Bold';
    src: url('../fonts/JosefinSans-Bold.woff2') format('woff2'),
    url('../fonts/JosefinSans-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Regular.woff2') format('woff2'),
  url('../fonts/Fredoka-Regular.woff') format('woff');
}

@font-face {
    font-family: 'CCWildWordsLower';
    src: url('../fonts/CCWildWordsLower\ Regular.woff') format('woff'),
    url('../fonts/CCWildWordsLower\ Regular.woff2') format('woff2');
}

/* Ensure the page body doesn't add unwanted outer margin/padding */
body {
  font-family: 'Josefin Sans SemiBold', Helvetica, Arial, sans-serif;
  background-color: #fafaf7;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   STICKY FOOTER FLEXBOX SETUP
   ========================================================================== */

/* Force body to take at least 100% of the viewport height */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Handles modern screen heights on desktop and mobile */
}

/* Force the main container to absorb all remaining vertical space */
main, 
.listings-page,
body > :not(custom-navbar):not(custom-footer) {
  flex: 1 0 auto;
}

/* Breadcrumb Trail */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;         /* Allows full breadcrumb links to flow to a new line cleanly */
  align-items: baseline;   /* Snaps all items flush to the text baseline (bottom) */
  gap: 0.4rem 0.35rem;     /* Vertical gap / Horizontal gap */
  font-size: 0.8rem;
  font-family: 'Josefin Sans SemiBold', sans-serif;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.breadcrumbs a,
.breadcrumbs .current,
.breadcrumbs .separator {
  white-space: nowrap;    /* Prevents single words/links (e.g., A-LEVELS) from splitting internally */
}

.breadcrumbs a {
  color: #059669;
  text-decoration: none;
}

.breadcrumbs .current {
  color: #0f172a;
  /* Allows long note titles to break naturally between spaces if screen is very narrow */
  white-space: normal; 
}

/* Ensure custom web component elements display correctly in flex layout */
custom-navbar,
custom-footer {
  display: block;
  width: 100%;
}

.site-footer {
  margin-top: auto; /* Pushes footer to the bottom on short pages */
}

/* Banner Ad Space
.ad-banner-slot {
  width: 100%;
  min-height: 90px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}  */

.no-download {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

p {
  font-family: 'Fredoka', Arial, sans-serif;
}

.comic-text {
  font-family: 'CCWildWordsLower', 'Fredoka', Helvetica, Arial, sans-serif; 
  font-size: 1.1rem;
  color: #ff1900;
}

/* ==========================================================================
   NAVBAR COMPONENT
   ========================================================================== */

/* Outer Shell - Flat, solid, edge-to-edge stickiness */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fafaf7; /* Solid background color (change as needed) */
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

/* Inner Container - Full width with custom padding for content */
.navbar .navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0.5rem 1.5rem;
}

.navbar .navbar-left {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Spacing between the logo and the links */
}

/* --- LOGO STYLES --- */
.navbar .navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar .navbar-logo img {
  margin-left: 10px;
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
}

/* --- BRAND NAME --- */
.navbar .navbar-brand {
  color: #ff5722;
  font-family: 'Josefin Sans Bold';
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}


/* --- NAV LINKS --- */
.navbar .navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem; /* Spacing between individual links */
}

/* Link Styling & Animated Underline Effect */
.navbar .nav-link {
  position: relative;
  text-decoration: none;
  color: #2e282a; /* Contrast link color against solid dark background */
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

/* Animated Underline */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2e282a; /* Color of the underline */
  transition: width 0.25s ease-in-out;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   DROPDOWN MENU STYLES
   ========================================================================== */

/* Dropdown Container */
.navbar .nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Reset button styling to match standard links */
.navbar .dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: #2e282a;
  padding: 0.25rem 0;
}

/* SVG Chevron Arrow */
.navbar .dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

/* Rotate arrow upside down when dropdown is open */
.navbar .nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Card */
.navbar .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 170px;
  background-color: #fafaf7; /* Matches navbar background */
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  z-index: 1100;
  
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Visible state when active */
.navbar .nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Apply underline effect specifically to dropdown items */
.navbar .dropdown-item {
  width: auto;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE STYLING (Screens smaller than 600px) for NAV BAR
   ========================================================================== */
@media (max-width: 800px) {
  /* Make navbar thicker and push elements to opposing sides */
  .navbar .navbar-container {
    padding: 0.7rem 1rem; /* Increased vertical padding for a thicker navbar */
    justify-content: space-between;
  }

  /* Reset left group layout on mobile */
  .navbar .navbar-left {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  /* Bigger logo on the left */
  .navbar .navbar-logo img {
    margin-left: -5px;
    width: 44px;
    height: 44px;
  }

  /* Links repositioned to the right with larger text */
  .navbar .navbar-links {
    gap: 1.6rem;
  }

  .navbar .nav-link {
    font-size: 1.1rem;
    font-family: 'Josefin Sans SemiBold';
    padding: 0.5rem 0;
  }

  /* Hide brand name on mobile */
  .navbar .navbar-brand {
    display: none;
  }
}
/* ==========================================================================
   FULL-BLEED 3-COLUMN FOOTER
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #2e282a; /* Solid dark background */
  color: #fafaf7;
  margin-top: 4rem;
  padding: 2.25rem 0;
  box-sizing: border-box;
}

/* 3-Column Grid Container */
.site-footer .footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Left, Center (Contact), Right */
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  gap: 2rem;
}

/* General Column Alignment */
.site-footer .footer-col {
  display: flex;
}

/* --- COLUMN 1: QUICK LINKS --- */
.site-footer .footer-links {
  align-items: center;
  gap: 1.25rem;
  justify-content: flex-start;
}

.site-footer .footer-link {
  color: #d5e7da;
  font-size: 0.88rem;
  font-family: 'Josefin Sans Medium', sans-serif;
  transition: color 0.2s ease;
}

.site-footer .footer-link:hover {
  color: #ff5722;
}

/* --- COLUMN 2: CONTACT (PHONE & EMAIL WITH ICONS) --- */
.site-footer .footer-contact {
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-decoration: none;
}

.site-footer .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d5e7da;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Fredoka', sans-serif;
  transition: color 0.2s ease;
}

.site-footer .contact-item:hover {
  color: #ff5722;
}

.site-footer .contact-icon {
  width: 15px;
  height: 15px;
  stroke: #ff5722; /* Accent color for icons */
  flex-shrink: 0;
}

/* --- COLUMN 3: COPYRIGHT --- */
.site-footer .footer-copyright {
  justify-content: flex-end;
}

.site-footer .footer-copyright p {
  margin: 0;
  font-size: 0.85rem;
  font-family: 'Fredoka', sans-serif;
  color: #a0aec0;
  text-align: right;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Under 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0;
  }

  .site-footer .footer-container {
    display: flex;
    flex-direction: column; /* Stack columns vertically on phones */
    align-items: flex-start;
    gap: 1.5rem;
  }

  /* Reorder columns on mobile */
  .site-footer .footer-contact {
    order: 2; /* Contact info appears first at the top */
  }

  .site-footer .footer-links {
    order: 1; /* Quick links appear second */
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }

  .site-footer .footer-copyright {
    order: 3; /* Copyright stays at the bottom */
  }

  .site-footer .footer-copyright p {
    text-align: left;
    font-family: 'Josefin Sans Medium', Arial, Helvetica, sans-serif;
  }
}