/* Global Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 255, 255);
    color: #000000;
    padding-top: 100px; /* Adjust based on your header’s height */
  }


  /* ========== base.css (top) ========== */
/* lightweight variables & utilities — paste near the top of base.css */
:root{
  /* spacing & layout */
  --space-sm: 12px;
  --space-md: 20px;
  --container-max: 1200px;

  /* brand */
  --brand-blue: #0900b2;
  --brand-blue-dark: #0300b5;
  --brand-red: #c62100;

  /* header / controls tuning (override per-breakpoint in header.css) */
  --controls-gap: 18px;
  --nav-item-minw: 110px;
}

/* small utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.hidden { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }



  /* Hide the search area (which includes filters and results) until needed */
#search-area {
  display: none;
  padding: 20px;
  background: #f9f9f9; /* Optional: a subtle background to separate it visually */
  border-radius: 8px;
  margin-top: 10px;
}

/* Filter Controls Container */
.filter-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* Style for each dropdown filter */
.filter-controls select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

/* Optional: On focus for better user experience */
.filter-controls select:focus {
  border-color: #0077cc;
  outline: none;
}

  /* === GLOBAL FONT RESET === */
body, button, input, textarea {
  font-family: 'Poppins', sans-serif;
}





/* minimal modal CSS — tweak colors/sizing as needed */
#contact-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:2147483000; }
#contact-modal.is-open { display:flex; }
#contact-modal .modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.55); backdrop-filter: blur(3px); }
#contact-modal .modal-panel { position:relative; max-width:920px; width:calc(100% - 40px); max-height:86vh; overflow:auto; background:#fff; border-radius:10px; padding:18px; z-index:2; }
#contact-modal .modal-close { position:absolute; right:10px; top:8px; font-size:24px; background:transparent; border:none; cursor:pointer; }






/* Back to top - professional, subtle, accessible */
:root {
  --bt-size: 48px;
  --bt-gap: 20px;
  --bt-bg: rgba(255, 255, 255, 0.218);
  --bt-border: rgba(255,255,255,0.08);
  --bt-color: #080077f1;
  --bt-shadow: 0 6px 18px rgba(0, 0, 0, 0.959);
}

/* Button */
.back-to-top {
  position: fixed;
  right: var(--bt-gap);
  bottom: var(--bt-gap);
  width: var(--bt-size);
  height: var(--bt-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bt-bg);
  border: 1px solid var(--bt-border);
  box-shadow: var(--bt-shadow);
  backdrop-filter: blur(6px);         /* nice frosted effect on supported browsers */
  -webkit-backdrop-filter: blur(6px);
  color: var(--bt-color);
  cursor: pointer;
  z-index: 9999;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease;
}

/* visible state */
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* icon */
.back-to-top .bt-icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  color: var(--bt-color);
}

/* hover & focus */
.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  outline: none;
}
.back-to-top:focus {
  box-shadow: 0 12px 32px rgba(0,0,0,0.24), 0 0 0 4px rgba(255,65,108,0.10); /* accessible focus ring */
}













  @media (max-width: 599px) {
    body {
      padding-top: 90px;
    }

    .filter-controls {
      flex-direction: column;
      gap: 5px;
    }
  
  /* Search Results Container – already styled in previous steps */
  .search-results {
    background: #fff;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    position: relative; /* Ensure proper stacking */
    z-index: 999;
  }
  
  /* Each individual result item */
  .result-item {
    border: 1px solid #ddd;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    transition: box-shadow 0.2s;
  }
  .result-item:hover {
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  }
  
  /* Heading inside a result */
  .result-item h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  /* Paragraph text inside a result */
  .result-item p {
    margin: 4px 0;
    color: #666;
  }
  
  /* Badge to denote type (school, program, content) */
  .badge {
    font-size: 12px;
    background: #0077cc;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
  }
  
  /* Highlighted search keywords */
  mark {
    background: yellow;
    padding: 0 2px;
  }

    :root { --bt-size: 44px; --bt-gap: 14px; }

/* screen reader helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


  }





  @media (min-width: 600px) and (max-width: 991px){
    body {
      padding-top: 90px;
    }
  }









  /* ===== Mobile: remove tap highlight & disable transitions/animations =====
   Paste at end of base.css (C:\wamp64\www\d-red-empire\assets\css\base.css)
   Targets touch-only devices to avoid hover/tap flicker.
*/

@media (hover: none) and (pointer: coarse) {
  /* Remove default blue/grey tap highlight and iOS long-press callout */
  a, button, input, label, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  /* Prevent transition/animation flicker on touch devices (safer fallback) */
  * {
    transition: none !important;
    animation: none !important;
  }

  /* Optional: slightly reduce transform-jitter by resetting transform on :hover pseudo on touch devices */
  :hover {
    transform: none !important;
  }
}

/* Keep visible keyboard focus styles for accessibility (applies everywhere) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}


