














/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Design tokens (aligned with your modern aesthetic) */
:root{
  --bg: #0f1115;
  --panel: #151923;
  --text: #e7edf3;
  --muted: #b8c2cc;
  --chip-border: rgba(255,255,255,0.12);
  --hover-bg: rgba(255,255,255,0.10);
  --focus: #ffd580;
  --accent1: #A56A48;   /* Sedona Dust */
  --accent2: #47617a;   /* blue-grey */
  --shadow: 0 6px 20px rgba(0,0,0,0.25);
  --radius: 14px;
}

/* Light mode adjustments */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f8fa;
    --panel: #ffffff;
    --text: #1d2433;
    --muted: #5c6b7a;
    --chip-border: rgba(0,0,0,0.10);
    --hover-bg: rgba(0,0,0,0.06);
    --shadow: 0 6px 18px rgba(15,17,21,0.08);
  }
}

/* ----- Responsive layout wrapper ----- */
.page{
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  /* Mobile: stack */
  grid-template-columns: 1fr;
  padding: clamp(16px, 3vw, 24px);
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: two columns (sidebar + content) */
@media (min-width: 992px){
  .page{
    grid-template-columns: 280px 1fr; /* sidebar width then content */
  }
}

/* ----- Sidebar block ----- */
.section-sidebar{
  background: var(--panel);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.4vw, 18px);
}

/* Make the sidebar sticky on desktop */
@media (min-width: 992px){
  .section-sidebar{
    position: sticky;
    top: 16px; /* keeps some breathing room from the top */
  }
}

.section-sidebar-title{
  margin: 0 0 10px 0;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .2px;
}

/* ----- Navigation list inside the sidebar ----- */
.section-nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px; /* separation between items */
}

/* Links: shared styles */
.section-nav-list a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--chip-border);
  transition: background .2s ease, border-color .2s ease, transform .16s ease, color .2s ease;
  cursor: pointer;               /* pointer on hover */
  white-space: normal;           /* allow wrapping of long titles in sidebar */
}

/* Decorative bullet (matches your dot aesthetic) */
.section-nav-list a .bullet{
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent1) 0%, var(--accent2) 100%);
  box-shadow: 0 0 0 1px var(--chip-border) inset;
  flex: 0 0 8px;
}

/* Hover/Focus — bold text, subtle lift, visible focus ring */
.section-nav-list a:hover{
  background: var(--hover-bg);
  border-color: color-mix(in oklab, var(--accent1) 40%, var(--chip-border));
  transform: translateY(-1px);
  font-weight: 700;              /* bold on hover */
}
.section-nav-list a:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Optional: indicate the active section if navigated via anchor (:target) */
:target{
  scroll-margin-top: 90px; /* ensure the target isn't hidden under any sticky UI */
}
.section-nav-list a[href^="#"]{
  /* we’ll style the matching link when its target is the :target */
}
@media (min-width: 992px){
  /* Use attribute selector + :target trick (no JS): when a section is targeted,
     we add a subtle highlight to its corresponding link by matching the href. */
  /* This needs your sections to be direct siblings in the DOM; otherwise keep hover/focus only. */
  /* If you want a robust active state, I can provide a tiny JS enhancement later. */
}

/* ----- Mobile/Tablet: transform sidebar into top chip bar ----- */
@media (max-width: 991.98px){
  .section-sidebar{
    position: static; /* not sticky on mobile */
    padding: 12px;
  }
  .section-nav-list{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .section-nav-list::-webkit-scrollbar{ height: 8px; }
  .section-nav-list::-webkit-scrollbar-thumb{
    background: var(--chip-border);
    border-radius: 100px;
  }
  .section-nav-list li{
    flex: 0 0 auto; /* chips */
  }
  .section-nav-list a{
    white-space: nowrap; /* chips don’t wrap on mobile */
  }
}

#header {
  background: linear-gradient(90deg, #36454F, #A9A9A9); /* Charcoal → Light Gray */
  color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.logo-img {
  height: 80px;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}


.hero {
  display: flex;
  justify-content: space-between; /* space between left and right sections */
  align-items: center; /* vertically center items */
  padding: 10px 20px;
}

.hero-left {
  display: flex;
  align-items: center; /* align logo and text vertically */
  gap: 15px; /* space between logo and title */
}


.hero-title {
  font-size: 1.5rem;
  color: #fff; /* assuming a dark background */
  margin: 0; /* remove default margin */
}




/* Welcome message styling */
.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Welcome message styling */
.hero h2 {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.close-btn {
    background: linear-gradient(135deg, #ff4d4d, #cc0000); /* Red gradient */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    
    margin-bottom: 10px;
    float: right;
}

.close-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000); /* Darker gradient on hover */
    transform: translateY(-2px);
}
#modalBody {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 12px; /* space between buttons */
    padding: 10px;
}


.button_modal {
    background: linear-gradient(135deg, #b0b0b0, #d0d0d0);
    color: #fff;
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Adds subtle shadow */
}

.button_modal:hover {
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0);
    transform: translateY(-3px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Slightly stronger on hover */
}


/* Modal Background */
  .custom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow: auto;
  }

  /* Modal Content */
  .custom-modal-content {
    background: #fff;
    margin-top: -300px; /* Start off-screen */
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(0);
    opacity: 0;
    animation: dropDown 0.5s ease forwards;
  }

  /* Drop-down animation */
  @keyframes dropDown {
    0% {
      margin-top: -300px;
      opacity: 0;
    }
    100% {
      margin-top: 100px;
      opacity: 1;
    }
  }

  

  /* Buttons inside modal */
  .ansp_modal_buttons {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .ansp_modal_buttons:hover {
    background: #218838;
  }





body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #f9f9f9;
}

.site-header {
    background: linear-gradient(90deg, #36454F, #A9A9A9); /* Charcoal → Light Gray */
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}




.site-footer {
    background: linear-gradient(90deg, #36454F, #A9A9A9);
    color: #fff;
    padding: 1rem 2rem;
    text-align: center; /* ✅ Centers text horizontally */
    justify-content: space-between;
}



.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.site-header nav a, .site-footer a {
    color: #fff;
    text-decoration: none;
}

.intro {
    text-align: center;
    padding: 2rem;
}

.departments {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.department-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.department-card h3 {
    margin-top: 0;
}


.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* row-gap column-gap */
    gap: 1rem 0.5rem; /* more space vertically than horizontally */
    margin-bottom: 1rem;
}

/* On smaller screens, increase the vertical spacing even more */
@media (max-width: 640px) {
    .people-grid {
        gap: 1.25rem 0.5rem; /* 1.25rem vertically, 0.5rem horizontally */
    }
}


/*

.results_card_front {
  background: linear-gradient(135deg, #C4A484, #F5E9DA);
  color: #333; 
}

.results_card_back {
  background: linear-gradient(135deg, #C4A484, #F5E9DA);
  transform: rotateY(180deg);
  color: #333; 
}

*/

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #C4A484, #F5E9DA);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin: 0.5rem 0.5rem 0.5rem 0; /* top/bottom margin added */
    transition: background 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: linear-gradient(135deg, #A67C52, #D8C3A5);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}



html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* This pushes footer down */
}

.site-footer {
   
    color: #fff;
    text-align: center;
    padding: 1rem;
}



.container {
    max-width: 1200px; /* or 1100px for tighter look */
    margin: auto;
    padding: 2rem; /* adds breathing room on small screens */
}
