/*
 Theme Name: USILACS Theme
 Theme URI: https://usilacs.org
 Description: USILACS child theme for GeneratePress – header, footer, and homepage design.
 Author: USILACS
 Template: generatepress
 Version: 1.0.0
*/

/* ==========================================
   DESIGN TOKENS
========================================== */

:root {
  --us-ink: #0b1324;
  --us-ink2: #132749;
  --us-gold: #f6c453;
  --us-gold2: #f9d37a;
  --us-paper: #ffffff;
  --us-muted: #7f8697;
  --us-border: #e3e6f0;
}

/* Basic font override */
body {
  font-family: Arial, sans-serif;
}

/* Reset WP custom logo inside our header */
.usilacs-brand-logo img {
  max-height: 42px;
  width: auto;
  display: block;
}

/* =========================
   HEADER / NAV
========================= */

.usilacs-header {
  font-family: Arial, sans-serif;
}

/* Main nav bar */
.usilacs-nav-wrap {
  background: var(--us-ink);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.usilacs-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand area */
.usilacs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #ffffff;
}
.usilacs-brand-text {
  display: flex;
  flex-direction: column;
}
.usilacs-brand-line1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.usilacs-brand-line2 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Desktop nav links */
.usilacs-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.usilacs-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.usilacs-nav-section-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.usilacs-nav-links a {
  color: #ffffff;
  opacity: 0.86;
  text-decoration: none;
}
.usilacs-nav-links a:hover {
  opacity: 1;
}

/* Apply button */
.usilacs-nav-cta {
  margin-left: 8px;
}
.usilacs-btn-apply {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--us-gold);
  color: var(--us-ink);
  border: 1px solid var(--us-gold);
  white-space: nowrap;
  text-decoration: none;
}
.usilacs-btn-apply:hover {
  background: var(--us-gold2);
  border-color: var(--us-gold2);
}

/* Mobile burger */
.usilacs-nav-toggle {
  display: none;
}
.usilacs-nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.usilacs-nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: #ffffff;
}

/* Mobile menu panel */
.usilacs-nav-mobile {
  display: none;
  background: #0b1b34;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.usilacs-nav-mobile-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  font-size: 14px;
}
.usilacs-nav-mobile a {
  display: block;
  padding: 5px 0;
  color: #ffffff;
  opacity: 0.9;
  text-decoration: none;
}
.usilacs-nav-mobile a:hover {
  opacity: 1;
}
.usilacs-nav-mobile-section {
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

/* Toggle behaviour – checkbox and menu share the same parent (.usilacs-nav-wrap) */
.usilacs-nav-toggle:checked ~ .usilacs-nav-mobile {
  display: block;
}

/* Responsive rules for header */
@media (max-width: 960px) {
  .usilacs-brand-line2 {
    display: none;
  }
}

@media (max-width: 880px) {
  .usilacs-nav {
    padding: 8px 16px;
  }
  .usilacs-nav-links {
    display: none;
  }
  .usilacs-nav-toggle-label {
    display: block;
  }
}
/* ==========================================
   USILACS – PRIMARY MENU LAYOUT
   Make WP nav menu horizontal on desktop
========================================== */

/* Reset ULs generated by wp_nav_menu */
.usilacs-nav-list,
.usilacs-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop menu: horizontal row */
.usilacs-nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Top-level links */
.usilacs-nav-list > li {
  position: relative;
}

.usilacs-nav-list > li > a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.86;
  font-size: 14px;
}

.usilacs-nav-list > li > a:hover {
  opacity: 1;
}

/* Dropdowns */
.usilacs-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin-top: 6px;
  padding: 8px 0;
  background: var(--us-ink2);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 20;
}

.usilacs-nav-list li:hover > .sub-menu {
  display: block;
}

.usilacs-nav-list .sub-menu li {
  padding: 0;
}

.usilacs-nav-list .sub-menu a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
}

.usilacs-nav-list .sub-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile menu list just needs simple stacking */
.usilacs-nav-mobile-list li + li {
  margin-top: 4px;
}

/* =========================
   ANNOUNCEMENT BAR
========================= */

.usilacs-announcement-bar {
  background: #fdf4d6;
  border-bottom: 1px solid #f1d89a;
  font-size: 13px;
  color: #7a5a11;
}
.usilacs-announcement-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 20px;
  text-align: center;
}

/* =========================
   FOOTER
========================= */

.usilacs-footer {
  background: var(--us-ink);
  color: #bfc7d6;
  padding: 30px 0 28px;
  border-top: 1px solid #0f1f3b;
  margin-top: 40px;
}
.usilacs-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.usilacs-footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .usilacs-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .usilacs-footer-grid {
    grid-template-columns: 1fr;
  }
}

.usilacs-footer h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
}
.usilacs-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}
.usilacs-footer-links a {
  color: #bfc7d6;
  text-decoration: none;
}
.usilacs-footer-links a:hover {
  text-decoration: underline;
}

.usilacs-footer-text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.usilacs-footer-note {
  border-top: 1px solid #1a2340;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #9aa4ba;
}
.usilacs-footer-note em {
  font-style: italic;
}

.usilacs-footer-bottom {
  margin-top: 8px;
  font-size: 12px;
  color: #808aa3;
}
.usilacs-footer-bottom a {
  color: #808aa3;
  margin-left: 8px;
  text-decoration: none;
}
.usilacs-footer-bottom a:hover {
  text-decoration: underline;
}

/* ==========================================
   HOMEPAGE LAYOUT – .usilacs-home WRAPPER
========================================== */

/* Page wrapper */
.usilacs-home {
  font-family: Arial, sans-serif;
  color: #0b1b34;
  background: #ffffff;
}

.usilacs-home .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.usilacs-home .section {
  padding: 56px 0;
}

.usilacs-home .section-tight {
  padding: 34px 0;
}

.usilacs-home .section-title {
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 18px;
  text-align: center;
}

.usilacs-home .section-sub {
  font-size: 16px;
  line-height: 1.7;
  max-width: 940px;
  margin: 0 auto 24px;
  text-align: center;
  color: #445067;
}

.usilacs-home .center {
  text-align: center;
}

/* Bands / backgrounds */
.usilacs-home .band-dark { background: #0f1f3b; color: #fff; }
.usilacs-home .band-ink  { background: #132749; color: #fff; }
.usilacs-home .band-light{ background: #f6f8fb; }
.usilacs-home .band-soft { background: #fdf7e7; }

.usilacs-home .band-ink .section-title,
.usilacs-home .band-dark .section-title { color: #fff; }

.usilacs-home .band-ink .section-sub,
.usilacs-home .band-dark .section-sub { color: #dde6ff; }

/* Buttons */
.usilacs-home .btn {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.usilacs-home .btn-primary {
  background: #f6c453;
  color: #0b1b34;
  border-color: #f6c453;
}
.usilacs-home .btn-primary:hover {
  background: #f9d37a;
  border-color: #f9d37a;
}
.usilacs-home .btn-outline {
  background: transparent;
  color: #0b1b34;
  border-color: #c4cad8;
}
.usilacs-home .btn-outline:hover {
  background: #0b1b34;
  color: #fff;
  border-color: #0b1b34;
}
.usilacs-home .btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
.usilacs-home .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* Chips */
.usilacs-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}
.usilacs-home .chip {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.26);
  white-space: nowrap;
}

/* HERO */
.usilacs-home .hero {
  padding: 95px 0 80px;
  background: #0b1b34;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.usilacs-home .hero h1 {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.usilacs-home .hero-sub {
  max-width: 880px;
  margin: 0 auto 20px;
  font-size: 17px;
  line-height: 1.8;
  color: #dde6ff;
}
.usilacs-home .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

/* HERO background image + overlay */
.usilacs-home .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://dev.usilacs.org/wp-content/uploads/2025/11/USILACS-Campus-vs-Online-1536x1024-1.webp');
  background-size: cover;
  background-position: center center;
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}
.usilacs-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,27,52,0.88), rgba(11,27,52,0.55));
  z-index: 1;
}
.usilacs-home .hero-inner {
  position: relative;
  z-index: 2;
}

/* Announcement bar inside home */
.usilacs-home .announcement {
  background: #fdf4d6;
  border-bottom: 1px solid #f1d89a;
  padding: 10px 0;
  font-size: 13px;
}
.usilacs-home .announcement p {
  margin: 0;
  text-align: center;
  color: #7a5a11;
}

/* Grids */
.usilacs-home .grid {
  display: grid;
  gap: 18px;
}
.usilacs-home .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usilacs-home .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usilacs-home .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .usilacs-home .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .usilacs-home .grid-3,
  .usilacs-home .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .usilacs-home .grid-4 { grid-template-columns: 1fr; }
}

/* Cards / tiles */
.usilacs-home .card,
.usilacs-home .tile {
  border: 1px solid #e3e6f0;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 24px rgba(11,18,40,0.06);
}
.usilacs-home .card-body,
.usilacs-home .tile-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}
.usilacs-home .card-body > p,
.usilacs-home .tile-body > p { margin: 8px 0 0; }
.usilacs-home .card h3,
.usilacs-home .tile h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #121d34;
}
.usilacs-home .tile a {
  color: inherit;
  text-decoration: none;
}
.usilacs-home .img-wrap {
  height: 160px;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #f5f7fb;
}
.usilacs-home .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lists */
.usilacs-home .check-list,
.usilacs-home .x-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.usilacs-home .check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a3347;
}
.usilacs-home .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7f5f;
  font-size: 14px;
}
.usilacs-home .x-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a3347;
}
.usilacs-home .x-list li::before {
  content: "–";
  position: absolute;
  left: 4px;
  top: 0;
  color: #b44242;
  font-size: 16px;
}

/* Panel + stats */
.usilacs-home .panel {
  border-radius: 18px;
  padding: 18px 20px;
  background: #0f1f3b;
  color: #fff;
}
.usilacs-home .panel p { margin: 0; font-size: 14px; line-height: 1.8; }

.usilacs-home .stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.usilacs-home .stat {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b1b34;
  color: #fff;
  text-align: center;
}
.usilacs-home .stat-label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c2d0ff;
  margin-bottom: 4px;
}
.usilacs-home .stat-value {
  font-size: 20px;
  font-weight: 700;
}

/* Responsive hero text */
@media (max-width: 640px) {
  .usilacs-home .hero h1 { font-size: 30px; }
  .usilacs-home .hero-sub { font-size: 15px; }
}
/* USILACS – fix hero overlay blocking menu clicks */
.hero::before {
  pointer-events: none;
}
/* USILACS – ensure primary menu is above page content */
.site-header,
.main-navigation,
.main-navigation .sub-menu {
  position: relative;
  z-index: 9999;
}
/* ==========================================
   USILACS – GLOBAL NAV STACKING / CLICK FIX
   Ensures header + menus sit above content
========================================== */

/* 1) Header and navigation must always be above page content */
.site-header,
.usilacs-header,
.usilacs-nav-wrap,
.usilacs-nav,
.main-navigation,
.usilacs-nav-mobile,
.usilacs-nav-list,
.usilacs-nav-mobile-list,
.main-navigation .sub-menu {
  position: relative;
  z-index: 9999;
}

/* 2) Make sure the nav container doesn't clip dropdowns */
.usilacs-nav {
  overflow: visible;
}

/* 3) Generic content wrappers stay underneath the header */
.site-content,
.inside-article,
.entry-content,
.hero,
.page-hero,
.et_pb_section,
.et_pb_section .et_pb_row {
  position: relative;
  z-index: 1;
}

/* 4) Hero overlays should never eat clicks */
.hero::before,
.hero-bg,
.page-hero::before {
  pointer-events: none;
}

/* 5) Mobile nav toggle behavior (safe to repeat) */
.usilacs-nav-toggle {
  display: none;
}

.usilacs-nav-toggle-label {
  cursor: pointer;
}

/* When burger is checked, show the mobile menu panel */
.usilacs-nav-toggle:checked ~ .usilacs-nav-mobile {
  display: block;
}

/* Mobile panel sits under the dark bar, above content */
.usilacs-nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0b1b34;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9999;
}
/* FIX: Menu covered by hero or header image */
.usilacs-header,
.usilacs-nav-wrap,
.usilacs-nav {
    position: relative !important;
    z-index: 9999 !important;
}

/* Fix dropdowns not clickable */
.main-navigation ul ul,
.usilacs-nav-links ul.sub-menu {
    position: absolute !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    padding: 10px 0 !important;
    border: 1px solid #d9d9d9 !important;
    display: none;
}

.main-navigation ul li:hover > ul,
.usilacs-nav-links li:hover > ul.sub-menu {
    display: block !important;
}
