/* --- Local Fonts (Sofia Pro) --- */
@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Light.woff2') format('woff2'),
       url('../fonts/SofiaPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro.woff2') format('woff2'),
       url('../fonts/SofiaPro.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Medium.woff2') format('woff2'),
       url('../fonts/SofiaPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-SemiBold.woff2') format('woff2'),
       url('../fonts/SofiaPro-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Bold.woff2') format('woff2'),
       url('../fonts/SofiaPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Pro';
  src: url('../fonts/SofiaPro-Italic.woff2') format('woff2'),
       url('../fonts/SofiaPro-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   Root Variables
   ========================================================= */
:root {
  --primary: #ffc50c;
  --secondary: #070026;
  --bg: #fafafa;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #fff;
  --border: #e5e7eb;
  --radius: 10px;
  --accent: var(--primary);
  --accent-hover: #f2bb0b;
  --font: 'Sofia Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-hover: 0 12px 24px rgba(0,0,0,0.06);
    --radius: 10px;
  --radius-sm: 14px; /* Updated for consistent banner/card radius */
  --radius-lg: 9999px;
}

/* =========================================================
   Base Layout
   ========================================================= */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: #f7fafc;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Unified Container Widths — 95% layout alignment
   ========================================================= */
.footer-container,
.hero-container
{
  max-width: 1240px;
  margin: 0 auto; /* ✅ Double vertical margin */
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
.footer-container, .hero-container {
  margin: 0 auto;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box;
}
}

/* =========================================================
   CRALITE HEADER — Transparent + Floating Overlay
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  color: #fff;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 0.6rem 0;
}

.site-header.scrolled {
  background: var(--secondary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 64px;
  max-width: 1240px;
  margin: 0 auto; /* ✅ Double vertical margin */
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

/* =========================================================
   SVG Hamburger Icon — White + Larger for Visibility
   ========================================================= */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
  z-index: 2001;
  width: 38px;
  height: 38px;
  color: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-toggle .hamburger-icon {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.menu-toggle.active .hamburger-icon {
  transform: rotate(90deg);
}

/* Prevent global hover on hamburger */
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
  background: transparent !important;
  transform: none !important;
}

/* =========================================================
   Mobile Header Adjustments (Now up to 1024px)
   ========================================================= */
  @media (max-width: 1024px) {
  /* Mobile dropdown links: white by default */
  .nav-links .dropdown-menu a {
    color: #fff !important;
    transition: color 0.25s ease;
  }

  /* On hover or active */
  .nav-links .dropdown-menu a:hover,
  .nav-links .dropdown-menu a:active {
    color: var(--primary) !important;
  }
  /* Optional: make transitions smoother */
  .nav-links .dropdown-menu a {
    transition: color 0.25s ease;
  }
}

   @media (max-width: 1024px) {
  .brand .logo {
    height: 40px;
    z-index: 3003;
    position: relative;
  }

  .site-header {
    z-index: 3002;
    transition: background 0.3s ease;
  }

  .site-header.menu-open {
    background: var(--secondary) !important;
  }

  .site-header .container {
    height: 60px;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3004;
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
  }

  .menu-toggle.active .hamburger-icon {
    transform: rotate(0);
    opacity: 0;
  }

  .menu-toggle.active::after {
    content: "✕";
    position: absolute;
    font-size: 26px;
    color: #fff;
    font-weight: 400;
    line-height: 1;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    background: var(--secondary);
    padding: 5rem 1.5rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 3001;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links .menu-item {
    width: 100%;
    position: relative;
  }

  .nav-links .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 1rem 0;
    text-align: left;
    transition: color 0.25s ease;
  }

  .nav-links .dropdown-toggle:hover {
    color: var(--primary);
  }

  .nav-links .dropdown-menu {
    display: flex;
    flex-direction: column;
    padding-left: 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .nav-links .menu-item.open .dropdown-menu {
    max-height: 200px;
    opacity: 1;
  }

  .nav-links .dropdown-menu a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 0;
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .nav-links .dropdown-menu a:hover {
    color: var(--primary);
  }
}

/* =========================================================
   DESKTOP NAVIGATION — Clean Inline Dropdowns
   ========================================================= */
@media (min-width: 1025px) {
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1240px;
  }

  .brand .logo {
    height: 50px;
    width: auto;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: auto;
    padding: 0;
  }

  .nav-links a,
  .nav-links .dropdown-toggle {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease;
    padding: 0.4rem 0.5rem;
  }

  .nav-links a:hover,
  .nav-links .dropdown-toggle:hover {
    color: var(--primary);
  }

  .nav-links .menu-item {
    position: relative;
  }

/* =========================================================
   Dropdown Menu — White Background + Black Links
   ========================================================= */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff; /* ✅ White dropdown background */
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.6rem 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}

.nav-links .menu-item:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown links */
.nav-links .dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-weight: 400;
  color: #000 ; /* ✅ Black links */
  font-size: 15.5px;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-links .dropdown-menu a:hover {
  color: var(--primary); /* ✅ Yellow hover text */
  background: none !important; /* No hover background */
}

  .nav-links .menu-item:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links .dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }

  .nav-links .dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links .standalone-link {
    margin-top: 0;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header-actions .btn {
    background: var(--primary);
    color: #000;
    font-weight: 400;
    padding: 0.6rem 1.3rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .header-actions .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
  }
}

/* =========================================================
   FOOTER — REFINED BALANCE + VISUAL ALIGNMENT
   ========================================================= */
.site-footer {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0 1rem;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://cralite.com/wp-content/uploads/2023/12/Cralite-Digital-Hero-Bg.webp")
              no-repeat 80% 0 / 42% auto;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* ---- Main Grid Layout ---- */
.footer-container {
  display: grid;
  grid-template-columns: 33% 17% 17% 33%;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ---- Brand Column ---- */
.footer-brand {
  align-self: flex-start;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 20px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 360px;
}

/* ---- Footer Columns ---- */
.footer-column h4 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

/* ---- Social Icons ---- */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---- Footer Bottom ---- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.brand-highlight {
  color: var(--primary);
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-container > * {
    border: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-container > * {
    border: none;
    padding: 0;
  }

  .footer-tagline {
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================================================
   Buttons & Misc
   ========================================================= */
button,
.btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
}

button:hover:not(.menu-toggle),
.btn:hover,
a.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


/* =========================================================
   UNIVERSAL NAVIGATION TYPOGRAPHY FIX — Desktop + Mobile
   ========================================================= */

/* Base nav links & dropdown toggles (all breakpoints) */
.nav-links a,
.nav-links .dropdown-toggle {
  font-family: var(--font);
  font-weight: 400; /* Matches site tone */
  font-size: 17px;
  letter-spacing: 0.2px;
  line-height: 1.4;
  color: #fff;
  text-transform: none;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Hover color across devices */
.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
  color: var(--primary);
}

/* Dropdown submenu links */
.nav-links .dropdown-menu a {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.1px;
  line-height: 1.5;
  color: #000;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links .dropdown-menu a:hover {
  color: var(--primary);
  background: none !important;
}

/* =========================================================
   Dropdown Hover Cleanup — No Background, Just Color Change
   ========================================================= */
.nav-links a:hover,
.nav-links .dropdown-toggle:hover,
.nav-links .dropdown-menu a:hover {
  color: var(--primary);
  background: none !important;
}


/* Dropdown toggle arrows alignment (mobile + desktop) */
.nav-links .arrow {
  font-size: 0.85rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* Keep consistent text rendering */
body,
.nav-links,
.nav-links a,
.nav-links .dropdown-toggle,
.nav-links .dropdown-menu a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Custom Cursor
   ========================================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.15s ease, height 0.15s ease, border 0.15s ease;
  z-index: 9999;
  mix-blend-mode: difference;
}

a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
[class*="tab"]:hover ~ .custom-cursor {
  width: 34px;
  height: 34px;
  border-color: var(--accent-hover);
}

/* =========================================================
   HIDE CTA BUTTON ON MOBILE / TABLET
   ========================================================= */
@media (max-width: 1024px) {
  .header-actions {
    display: none !important;
  }
}

.flatpickr-calendar {
  font-family: 'Sofia Pro', system-ui, sans-serif;
  border: 1px solid #e3e6ef !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.10) !important;
  overflow: hidden !important;
}

/* Month Header */
.flatpickr-months {
  background: #fff !important;
  border-bottom: 1px solid #f0f1f5 !important;
}
.flatpickr-current-month input.cur-year,
.flatpickr-monthDropdown-months {
  font-weight: 600 !important;
  color: var(--secondary) !important;
}

/* Weekdays */
span.flatpickr-weekday {
  font-weight: 600;
  color: var(--secondary);
  background: none;
}

/* Days */
.flatpickr-day {
  border-radius: 8px !important;
  font-weight: 500 !important;
  color: var(--secondary) !important;
}

.flatpickr-day:hover {
  background: rgba(255,197,12,0.15) !important;
  color: #000 !important;
}

/* ✅ Selected Day in Cralite Yellow */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #ffc50c !important;
  color: #000 !important;
  border-color: #ffc50c !important;
  font-weight: 700 !important;
}

/* Today */
.flatpickr-day.today {
  border: 1px solid #ffc50c !important;
  color: var(--secondary) !important;
  font-weight: 600;
}

/* Bottom Links (Clear & Today) */
.flatpickr-footer,
.flatpickr-calendar .flatpickr-footer {
  background: transparent !important;
}
.flatpickr-calendar .flatpickr-footer a {
  color: var(--primary)!important;
  font-weight: 500;
}

/* Icon Controls */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  stroke: var(--secondary) !important;
  width: 18px;
  height: 18px;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  stroke: var(--secondary) !important;
}

.flatpickr-input {
  font-family: 'Sofia Pro', sans-serif !important;
  height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #d5d8e1 !important;
  font-size: 15px !important;
  color: var(--secondary) !important;
  width: 100%;
}


.flatpickr-input {
  height: 44px !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border) !important;
  font-family: 'Sofia Pro', sans-serif !important;
  font-size: 15px !important;
  color: var(--text) !important;
  width: 100% !important;
  cursor: pointer;
}

/* ✅ Softer white input + calendar icon */
.flatpickr-input {
  background: #ffffff url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffc50c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 38px 10px 14px; /* ✅ Space for icon */
  cursor: pointer;
}

.flatpickr-input:focus {
  border-color: #ffc50c !important;
  box-shadow: 0 0 0 3px rgba(255, 197, 12, 0.25) !important;
}

/* ✅ Top bar = Yellow, Black Text */
.flatpickr-months,
.flatpickr-month {
  background: #ffc50c !important;
  color: #000 !important;
}

.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown-years {
  background: #ffc50c !important;
  color: #000 !important;
  font-weight: 600;
  border: none !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  fill: #000 !important;
  color: #000 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  opacity: 0.75 !important;
}

/* ✅ Selected date */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #ffc50c !important;
  color: #000 !important;
  border: 1px solid #ffc50c !important;
}

/* ✅ Hover */
.flatpickr-day:hover {
  background: rgba(255, 197, 12, 0.35) !important;
  color: #000 !important;
}

/* ✅ Today’s outline (no blue!) */
.flatpickr-day.today {
  border: 2px solid #ffc50c !important;
  background: transparent !important;
  color: #000 !important;
}

/* ✅ Weekday headers */
.flatpickr-weekday {
  color: #000 !important;
  font-weight: 600 !important;
}

/* ✅ Calendar container cleanup */
.flatpickr-calendar {
  border-radius: 16px !important;
  overflow: hidden;
  border: none !important;
}


/* ✅ Remove remaining blue bar background */
.flatpickr-weekdays,
.flatpickr-weekdaycontainer,
.flatpickr-innerContainer,
.flatpickr-days,
.flatpickr-rContainer,
.dayContainer {
  background: #ffffff !important;
}
.flatpickr-days {
border-left: 0 !important;
    border-right: 0 !important;
        border-bottom: 0 !important;
}

/* ✅ Weekday name row styling */
.flatpickr-weekdays {
  background: #ffffff !important;
  border-bottom: 1px solid #f3f3f3;
}

.flatpickr-weekday {
  color: #000 !important;
  font-weight: 600;
}

/* ✅ Remove default blue focus/outline rings */
.flatpickr-day:focus,
.flatpickr-day:active,
.flatpickr-day.selected:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ✅ Selected Day */
.flatpickr-day.selected {
  background: #ffc50c !important;
  border-color: #ffc50c !important;
  color: #000 !important;
  font-weight: 600;
}

/* ✅ Hover Day */
.flatpickr-day:hover {
  background: rgba(255, 197, 12, 0.35) !important;
  color: #000 !important;
}

/* ✅ Today Day */
.flatpickr-day.today {
  border: 2px solid #ffc50c !important;
  background: transparent !important;
  color: #000 !important;
}


/* ✅ Limit Month & Year font size */
.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-month .cur-month,
.flatpickr-months .flatpickr-month .numInputWrapper input {
  font-size: 16px !important;
  line-height: 1.2;
}

/* ✅ Fix dropdown sizes too */
.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown-years {
  font-size: 16px !important;
}

/* ✅ Bring calendar BELOW sticky header / nav */
.flatpickr-calendar {
  z-index: 500 !important; /* adjust as needed */
}

/* ✅ Hide grey offset days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  visibility: hidden !important;
  pointer-events: none !important;
}

.content-container {
  max-width: 1240px;
  margin: 0 auto; /* ✅ Double vertical margin */
  padding: 100px 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ✅ Medium screens */
@media (max-width: 1024px) {
  .content-containerr {
    margin: 80px auto;
    padding: 80px 15px;
  }
}

/* ✅ Tablet screens */
@media (max-width: 768px) {
  .content-container {
    margin: 60px auto;
    padding: 60px 15px;
  }
}

/* ✅ Mobile screens */
@media (max-width: 480px) {
  .content-container {
    margin: 40px auto;
    padding: 40px 15px;
  }
}

/* ============================
   Related Tools Section
============================ */

.related-tools-section {
  background: #f7f8fc;
  padding: 3rem 0;
  margin-top: 3rem;
}

.related-container {
  width: min(1200px, 90%);
  margin: auto;
}

.related-title {
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-decoration: none;
  color: #111;
  border: 1px solid #e6e6e6;
  transition: 0.25s;
}

.related-card img {
  width: 38px;
  height: 38px;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  border-color: transparent;
}

/* TOOLS LAYOUT */
.tools-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

/* SEARCH */
.search-container {
  position: relative; /* Retained for search-icon positioning */
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .search-container {
        max-width: 900px;
        margin: 0 auto 2rem;
    }
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  /* Icon opacity provides the muted gray color (like placeholder) */
  opacity: 0.7;
}

.search-icon img { width: 18px; height: 18px; }

#searchInput {
  width: 100%;
  padding: 0.9rem 1.4rem 0.9rem 3.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: .2s;
  /* Applying the Sofia Pro font */
  font-family: var(--font);
  box-shadow: var(--shadow-sm); /* Added box-shadow */
}
#searchInput:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,197,12,0.25);
}

/* GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
@media(max-width:1024px){ .tools-grid {grid-template-columns: repeat(2,1fr);} }
@media(max-width:640px){ .tools-grid {grid-template-columns: 1fr;} }

/* ✅ YOUTUBE Style CARD */
.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;

  opacity: 0;
  transform: translateY(10px);
  transition: transform .2s ease, opacity .6s ease, box-shadow .25s ease;
}

.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ICON */
.tool-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0; /* Ensures icon doesn't shrink in flex container */
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.tool-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* TEXT */
.tool-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary);
}