/*
Theme Name: GHAIR Official Theme
Theme URI: https://ghair.com.au/
Author: GHAIR Engineering
Author URI: https://ghair.com.au/
Description: Premium, accessible, academically credible WordPress theme for Global House of Australian Independent Research (GHAIR). Fully responsive, mobile-first, and optimized for Core Web Vitals.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghair-theme
Tags: academic, research, opportunities, responsive-layout, accessibility-ready, custom-menu, featured-images
*/

/* Reset & CSS Variables */
:root {
  --ghair-navy: #031F83;
  --ghair-navy-dark: #02165e;
  --ghair-navy-light: #0d2ca1;
  --ghair-red: #E5332A;
  --ghair-red-dark: #c4241c;
  --ghair-white: #FFFFFF;
  --ghair-bg-light: #F3F5F8;
  --ghair-bg-subtle: #F8FAFC;
  --ghair-text-dark: #172033;
  --ghair-text-muted: #667085;
  --ghair-border: #E4E7EC;
  --ghair-border-focus: #031F83;
  
  --ghair-status-open: #027A48;
  --ghair-status-open-bg: #ECFDF3;
  --ghair-status-closing: #B54708;
  --ghair-status-closing-bg: #FFFAEB;
  --ghair-status-expired: #667085;
  --ghair-status-expired-bg: #F2F4F7;
  
  --font-heading: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.08), 0 4px 6px -4px rgba(16, 24, 40, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(16, 24, 40, 0.1), 0 8px 10px -6px rgba(16, 24, 40, 0.04);
}

/* ==========================================================================
   GHAIR Official Theme Main Stylesheet
   Academic, trustworthy, modern, and fully responsive.
   ========================================================================== */

/* Google Fonts Import: Plus Jakarta Sans & Inter */
/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ghair-text-dark);
  background-color: var(--ghair-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ghair-navy);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--ghair-navy-dark);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ghair-navy);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ghair-text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: #344054;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Container & Grid --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 840px;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-light {
  background-color: var(--ghair-bg-light);
}

.section-subtle {
  background-color: var(--ghair-bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ghair-navy);
  background-color: rgba(3, 31, 131, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ghair-text-muted);
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--ghair-navy);
  color: var(--ghair-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--ghair-navy-dark);
  color: var(--ghair-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--ghair-red);
  color: var(--ghair-white);
}

.btn-accent:hover {
  background-color: var(--ghair-red-dark);
  color: var(--ghair-white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--ghair-white);
  border-color: var(--ghair-border);
  color: var(--ghair-text-dark);
}

.btn-outline:hover {
  background-color: var(--ghair-bg-subtle);
  border-color: #cbd5e1;
  color: var(--ghair-navy);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--ghair-white);
  font-weight: 600;
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
  color: var(--ghair-white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--ghair-navy-dark);
  color: #d1d5db;
  font-size: 0.84rem;
  padding: 0.6rem 1.5rem;
  position: relative;
  z-index: 100;
}

.announcement-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.announcement-badge {
  background-color: var(--ghair-red);
  color: var(--ghair-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-link {
  color: var(--ghair-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-link:hover {
  color: #93c5fd;
}

.announcement-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.5rem;
}

.announcement-close:hover {
  color: var(--ghair-white);
}

/* --- Main Header & Nav --- */
.site-header {
  background-color: var(--ghair-white);
  border-bottom: 1px solid var(--ghair-border);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  height: 62px;
  max-height: 62px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.site-logo:hover img {
  transform: scale(1.02);
}

/* Nav Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #344054;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-item.current-menu-item > .nav-link {
  color: var(--ghair-navy);
  background-color: var(--ghair-bg-subtle);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ghair-text-dark);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--ghair-bg-light);
  color: var(--ghair-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.header-whatsapp-cta:hover {
  background-color: #dcfce7;
  color: #166534;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ghair-text-dark);
}

/* Mobile Offcanvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--ghair-white);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  padding: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ghair-border);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--ghair-text-dark);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background-color: var(--ghair-bg-light);
  color: var(--ghair-navy);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(175deg, #ffffff 0%, var(--ghair-bg-light) 100%);
  padding: 4.5rem 0 3.5rem 0;
  border-bottom: 1px solid var(--ghair-border);
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ghair-navy);
  background: rgba(3, 31, 131, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--ghair-navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--ghair-red);
}

.hero-description {
  font-size: 1.2rem;
  color: #475467;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-tertiary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #059669;
  transition: color 0.15s ease;
}

.hero-tertiary-link:hover {
  color: #047857;
  text-decoration: underline;
}

/* --- Quick Search Bar --- */
.hero-search-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  max-width: 960px;
  margin: 2.5rem auto 0 auto;
}

.hero-search-form {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 0.75rem;
  align-items: center;
}

.search-field-wrap {
  position: relative;
}

.search-input, .search-select {
  width: 100%;
  height: 52px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ghair-text-dark);
  background-color: #FAFAFC;
  transition: all 0.15s ease;
}

.search-select {
  padding-left: 2.5rem;
  cursor: pointer;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  pointer-events: none;
}

.search-input:focus, .search-select:focus {
  background-color: var(--ghair-white);
  border-color: var(--ghair-navy);
  box-shadow: 0 0 0 4px rgba(3, 31, 131, 0.08);
}

/* --- Category Cards Grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.category-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.category-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: rgba(3, 31, 131, 0.08);
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-card.accent-red .category-icon-wrap {
  background-color: rgba(229, 51, 42, 0.08);
  color: var(--ghair-red);
}

.category-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.category-desc {
  font-size: 0.9375rem;
  color: var(--ghair-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ghair-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ghair-navy);
}

/* --- Opportunity Cards --- */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.opportunity-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.opportunity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.opportunity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.3;
}

.badge-country {
  background-color: var(--ghair-bg-light);
  color: #344054;
  border: 1px solid #d0d5dd;
}

.badge-type {
  background-color: rgba(3, 31, 131, 0.08);
  color: var(--ghair-navy);
}

.badge-funding {
  background-color: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.badge-status-open {
  background-color: var(--ghair-status-open-bg);
  color: var(--ghair-status-open);
}

.badge-status-closing {
  background-color: var(--ghair-status-closing-bg);
  color: var(--ghair-status-closing);
}

.badge-status-expired {
  background-color: var(--ghair-status-expired-bg);
  color: var(--ghair-status-expired);
}

.btn-bookmark {
  background: none;
  border: 1px solid transparent;
  color: #98a2b3;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-bookmark:hover, .btn-bookmark.saved {
  color: var(--ghair-red);
  background-color: rgba(229, 51, 42, 0.06);
}

.opportunity-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.opportunity-title a {
  color: var(--ghair-text-dark);
}

.opportunity-title a:hover {
  color: var(--ghair-navy);
}

.opportunity-org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ghair-navy);
  margin-bottom: 0.75rem;
}

.opportunity-summary {
  font-size: 0.875rem;
  color: var(--ghair-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.opportunity-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.9rem;
  background-color: var(--ghair-bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.fact-item span.label {
  display: block;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-item span.value {
  font-weight: 600;
  color: var(--ghair-text-dark);
}

.opportunity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ghair-border);
  font-size: 0.75rem;
  color: #98a2b3;
}

/* --- Archive Filters Layout --- */
.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.filters-sidebar {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ghair-border);
  margin-bottom: 1.25rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ghair-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.filter-select, .filter-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ghair-text-dark);
  background-color: #FAFAFC;
}

.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--ghair-bg-light);
  border: 1px solid var(--ghair-border);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.active-filter-pill button {
  background: none;
  border: none;
  color: #98a2b3;
  cursor: pointer;
  line-height: 1;
}

.active-filter-pill button:hover {
  color: var(--ghair-red);
}

/* --- Opportunity Detail View --- */
.opportunity-detail-header {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ghair-bg-light) 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--ghair-border);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ghair-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--ghair-navy);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.75rem;
  align-items: stretch;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.detail-content-area h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ghair-bg-light);
}

.detail-content-area h2:first-child {
  margin-top: 0;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ghair-navy);
  font-weight: bold;
}

.detail-sidebar-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--ghair-border);
}

.educational-disclaimer {
  font-size: 0.8125rem;
  color: #667085;
  background-color: var(--ghair-bg-light);
  border-left: 3px solid var(--ghair-navy);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* --- Professional Support Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ghair-navy);
  background-color: rgba(3, 31, 131, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ghair-navy);
  margin: 1rem 0;
}

.service-price-tbc {
  font-size: 1.15rem;
  color: #475467;
  font-weight: 600;
}

.service-turnaround {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #667085;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-deliverables li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: #344054;
}

.service-deliverables li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: var(--ghair-navy);
  font-weight: bold;
}

.service-disclaimer-box {
  background-color: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 2rem;
}

/* --- Booking Calendar Module --- */
.booking-container {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 3rem auto;
}

.booking-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.slot-btn {
  padding: 0.75rem;
  border: 1px solid var(--ghair-border);
  background-color: var(--ghair-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--ghair-navy);
  background-color: rgba(3, 31, 131, 0.04);
}

.slot-btn.selected {
  background-color: var(--ghair-navy);
  color: var(--ghair-white);
  border-color: var(--ghair-navy);
}

.slot-btn:disabled {
  background-color: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
  border-color: #eaecf0;
}

/* --- Research Projects & Team Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-lead {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ghair-navy);
  margin-bottom: 0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: var(--ghair-white);
  border: 1px solid var(--ghair-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  object-fit: cover;
  background-color: var(--ghair-bg-light);
  border: 2px solid var(--ghair-border);
}

.team-name {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ghair-navy);
  margin-bottom: 0.5rem;
}

.team-degrees {
  font-size: 0.75rem;
  color: #667085;
}

/* --- Comprehensive Footer --- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #1e293b;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ghair-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--ghair-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: #64748b;
}

.footer-legal-links a:hover {
  color: #cbd5e1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-search-form {
    grid-template-columns: 1fr 1fr;
  }
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: none; /* Accessible in drawer on tablet/mobile */
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 72px;
  }
  .site-logo img {
    height: 52px;
    max-height: 52px;
  }
  .primary-nav, .header-actions {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-search-form {
    grid-template-columns: 1fr;
  }
  .opportunities-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}﻿
/* ==========================================================================
   Redesigned GHAIR Homepage Styles
   Preserves exact live content with academic trustworthiness and modern UX.
   ========================================================================== */

.ghair-home-hero {
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid #E4E7EC;
  position: relative;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.home-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ghair-text-dark);
  margin-bottom: 1.5rem;
}

.home-hero-title .accent {
  color: var(--ghair-navy);
  display: inline;
}

.home-hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #475467;
  margin-bottom: 2.25rem;
}

.home-hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.home-hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-img-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #FFFFFF;
}

.hero-img-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-img-sub-1, .hero-img-sub-2 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
}

.hero-img-sub-1 img, .hero-img-sub-2 img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(3, 31, 131, 0.12);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 5;
}

.hero-stat-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(3, 31, 131, 0.08);
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ghair-text-dark);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 3 Hero Guidance Cards */
.home-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.home-guidance-card {
  background: #FFFFFF;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E4E7EC;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.home-guidance-card:hover {
  transform: translateY(-5px);
  border-color: rgba(3, 31, 131, 0.25);
  box-shadow: 0 16px 32px rgba(3, 31, 131, 0.08);
}

.guidance-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(3, 31, 131, 0.07);
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.home-guidance-card:hover .guidance-icon-wrap {
  background: var(--ghair-navy);
  color: #FFFFFF;
}

.guidance-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ghair-text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.guidance-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475467;
  margin: 0;
}

/* SECTION 2: About / Our Research Organisation */
.ghair-home-about {
  padding: 5.5rem 0;
  background-color: var(--ghair-bg-light);
  border-bottom: 1px solid #E4E7EC;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

.home-about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #FFFFFF;
}

.home-about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-about-image-wrap:hover img {
  transform: scale(1.03);
}

.home-about-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ghair-red);
  margin-bottom: 0.5rem;
}

.home-about-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ghair-navy);
  margin-bottom: 1.75rem;
  line-height: 1.25;
}

.home-about-content p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: #344054;
  margin-bottom: 1.35rem;
}

.home-about-content .btn {
  margin-top: 1rem;
}

/* SECTION 3: FEATURED PROJECTS */
.ghair-home-projects {
  padding: 5.5rem 0;
  border-bottom: 1px solid #E4E7EC;
}

.home-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.home-projects-title {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--ghair-navy);
  letter-spacing: -0.02em;
}

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home-project-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E4E7EC;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.home-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(3, 31, 131, 0.3);
  box-shadow: 0 18px 36px rgba(3, 31, 131, 0.09);
}

.home-project-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #eaecf0;
}

.home-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-project-card:hover .home-project-thumb img {
  transform: scale(1.06);
}

.home-project-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-project-author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ghair-navy);
  margin-bottom: 0.85rem;
}

.home-project-author a {
  color: var(--ghair-navy);
}

.home-project-author a:hover {
  text-decoration: underline;
}

.home-project-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ghair-text-dark);
  margin-bottom: 0;
  margin-top: auto;
}

.home-project-h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.home-project-h3 a:hover {
  color: var(--ghair-navy);
}

/* SECTION 4: Seminars & Courses */
.ghair-home-learning {
  padding: 5.5rem 0;
  background-color: var(--ghair-bg-light);
  border-bottom: 1px solid #E4E7EC;
}

.home-learning-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.home-learning-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ghair-navy);
  margin-bottom: 1.75rem;
}

.home-tab-nav {
  display: inline-flex;
  background: #E4E7EC;
  padding: 0.35rem;
  border-radius: 9999px;
  gap: 0.25rem;
}

.home-tab-trigger {
  padding: 0.65rem 2rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #475467;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-tab-trigger.active {
  background: var(--ghair-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.home-tab-panel {
  display: none;
}

.home-tab-panel.active {
  display: block;
}

.home-seminar-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid #E4E7EC;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  transition: all 0.3s ease;
}

.home-seminar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(3, 31, 131, 0.25);
}

.home-seminar-thumb {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.home-seminar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-seminar-body {
  padding: 2.5rem;
}

.home-seminar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748B;
}

.home-seminar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.home-seminar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ghair-text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.home-seminar-title a {
  color: inherit;
}

.home-seminar-title a:hover {
  color: var(--ghair-navy);
}

.home-seminar-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #475467;
  margin: 0;
}

/* Courses Grid */
.home-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.home-course-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E4E7EC;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.home-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 31, 131, 0.25);
}

.home-course-thumb {
  height: 240px;
  overflow: hidden;
}

.home-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-course-card:hover .home-course-thumb img {
  transform: scale(1.05);
}

.home-course-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-course-instructor {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ghair-navy);
  margin-bottom: 0.85rem;
}

.home-course-instructor a {
  color: var(--ghair-navy);
}

.home-course-instructor a:hover {
  text-decoration: underline;
}

.home-course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ghair-text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.home-course-title a {
  color: inherit;
}

.home-course-title a:hover {
  color: var(--ghair-navy);
}

.home-course-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475467;
  margin: 0;
}

.home-learning-bottom {
  text-align: center;
  margin-top: 3rem;
}

/* SECTION 5: Our Impact in Research & Collaboration */
.ghair-home-impact {
  padding: 5.5rem 0;
  border-bottom: 1px solid #E4E7EC;
}

.home-impact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.home-impact-header {
  margin-bottom: 2.5rem;
}

.home-impact-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ghair-navy);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.home-impact-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475467;
  margin: 0;
}

.home-impact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-impact-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  transition: all 0.25s ease;
}

.home-impact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 31, 131, 0.25);
  box-shadow: 0 12px 24px rgba(3, 31, 131, 0.07);
}

.home-impact-card h5 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ghair-navy);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-impact-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475467;
  margin: 0;
}

.home-impact-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #FFFFFF;
}

.home-impact-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

/* SECTION 6: Latest Insights & Research Blogs */
.ghair-home-blog {
  padding: 5.5rem 0;
  background-color: var(--ghair-bg-light);
  border-bottom: 1px solid #E4E7EC;
}

.home-blog-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.home-blog-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ghair-red);
  margin-bottom: 0.5rem;
}

.home-blog-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--ghair-navy);
  margin-bottom: 1rem;
}

.home-blog-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475467;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.home-blog-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E4E7EC;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.home-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(3, 31, 131, 0.3);
  box-shadow: 0 18px 36px rgba(3, 31, 131, 0.09);
}

.home-blog-thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #eaecf0;
}

.home-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-thumb img {
  transform: scale(1.06);
}

.home-blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 31, 131, 0.9);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.home-blog-badge a {
  color: #FFFFFF;
}

.home-blog-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 0.85rem;
}

.home-blog-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ghair-text-dark);
  margin-bottom: 0.85rem;
}

.home-blog-h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.home-blog-h3 a:hover {
  color: var(--ghair-navy);
}

.home-blog-excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475467;
  margin-bottom: 0;
  margin-top: auto;
}

.home-blog-bottom {
  text-align: center;
}

/* SECTION 7: Join and Be Part of Global Research Excellence (CTA) */
.ghair-home-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #031F83 0%, #02165e 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ghair-home-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.home-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.home-cta-title {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.home-cta-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #E2E8F0;
  margin-bottom: 1.25rem;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--ghair-red);
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px rgba(229, 51, 42, 0.4);
}

.home-cta-btn:hover {
  background-color: var(--ghair-red-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 51, 42, 0.6);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .home-hero-grid, .home-about-grid, .home-impact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .home-guidance-grid, .home-projects-grid, .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-seminar-card {
    grid-template-columns: 1fr;
  }
  .home-seminar-thumb {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .home-guidance-grid, .home-projects-grid, .home-blog-grid, .home-courses-grid, .home-impact-cards {
    grid-template-columns: 1fr;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-actions .btn {
    width: 100%;
  }
  .home-about-image-wrap img, .home-impact-image-wrap img {
    height: 320px;
  }
  .hero-floating-stat {
    position: static;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   GHAIR Opportunity Platform & Application Support System Styles
   ========================================================================== */

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-country {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-type {
  background-color: rgba(3, 31, 131, 0.08);
  color: var(--ghair-navy);
}

.badge-status-open {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-status-closing {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-status-expired {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* --- Archive Layout --- */
.opportunity-detail-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0 2rem 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

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

.breadcrumbs a:hover {
  color: var(--ghair-navy);
  text-decoration: underline;
}

.breadcrumbs span {
  color: #94a3b8;
}

.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- Sidebar Filters --- */
.filters-sidebar {
  background: var(--ghair-white);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ghair-text-dark);
  margin-bottom: 0.4rem;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #fff;
  color: #1e293b;
  transition: border-color 0.15s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--ghair-navy);
  box-shadow: 0 0 0 3px rgba(3, 31, 131, 0.1);
}

/* --- Active Filters Bar --- */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 28px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.8125rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-weight: 500;
}

.active-filter-pill button {
  background: none;
  border: none;
  color: #1e40af;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  font-weight: 700;
}

.active-filter-pill button:hover {
  color: #dc2626;
}

/* --- Opportunities Grid & Cards --- */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  transition: opacity 0.2s ease;
}

.opportunity-card {
  background: var(--ghair-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.opportunity-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.opportunity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.btn-bookmark {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-bookmark:hover {
  color: var(--ghair-red);
  transform: scale(1.1);
}

.btn-bookmark.saved {
  color: var(--ghair-red);
}

.opportunity-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.opportunity-title a {
  color: var(--ghair-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.opportunity-title a:hover {
  color: var(--ghair-red);
}

.opportunity-org {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475467;
  margin-bottom: 0.75rem;
}

.opportunity-summary {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.opportunity-facts {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fact-item .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.fact-item .value {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ghair-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opportunity-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

/* --- Opportunity Detail Template --- */
body.single-ghair_opportunity {
  overflow-x: clip; /* Ensures position: sticky functions flawlessly without scroll container disruption */
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.75rem;
  align-items: stretch !important;
  position: relative;
}

.detail-content-area {
  min-width: 0;
}

.detail-content-area h2 {
  font-size: 1.45rem;
  color: var(--ghair-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.detail-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #334155;
}

.detail-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.detail-sidebar-column {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-sidebar-top-card {
  margin-bottom: 1.5rem;
}

.sidebar-facts {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   PERSISTENT STICKY GHAIR SUPPORT CARD (Desktop)
   ========================================================================== */
.ghair-sticky-support-card {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 30;
  background: #ffffff;
  border: 2px solid var(--ghair-navy);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(3, 31, 131, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ghair-sticky-support-card:hover {
  box-shadow: 0 12px 36px rgba(3, 31, 131, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.support-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: var(--ghair-navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.support-tag-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.support-headline {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ghair-navy);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.support-lead {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.support-checklist-intro {
  font-size: 0.825rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.support-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.support-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #334155;
}

.support-checklist li .check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.support-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.1rem;
}

.support-price-row .price-label {
  font-size: 0.825rem;
  color: #475467;
  font-weight: 700;
  display: block;
}

.support-price-row .price-sub {
  font-size: 0.72rem;
  color: #64748b;
}

.support-price-row .price-amount {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ghair-navy);
  font-family: var(--font-heading);
}

.btn-support-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--ghair-navy);
  color: #ffffff !important;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(3, 31, 131, 0.28);
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-support-cta:hover {
  background: #02165e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(3, 31, 131, 0.35);
  color: #ffffff !important;
}

.support-footer-note {
  margin-top: 0.85rem;
  text-align: center;
}

.support-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #059669;
  font-weight: 700;
}

.support-free-link-wrap {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e2e8f0;
}

.support-direct-link {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.support-direct-link:hover {
  color: var(--ghair-navy);
}

.option-badge-neutral {
  background: #475467;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-free {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: auto;
}

/* ==========================================================================
   MOBILE FIXED BOTTOM SUPPORT BAR (< 992px)
   ========================================================================== */
.ghair-mobile-bottom-support-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 2px solid var(--ghair-navy);
  box-shadow: 0 -4px 22px rgba(3, 31, 131, 0.16);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 1rem;
}

.ghair-mobile-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ghair-mobile-bar-info {
  flex: 1;
  min-width: 0;
}

.ghair-mobile-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ghair-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ghair-dot-pulse {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.ghair-mobile-bar-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ghair-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ghair-mobile-bar-sub {
  font-size: 0.72rem;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ghair-mobile-bar-action {
  flex-shrink: 0;
}

.ghair-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--ghair-navy);
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(3, 31, 131, 0.25);
}

.ghair-mobile-pill {
  background: #ffffff;
  color: var(--ghair-navy);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* --- Mobile Filter Drawer (< 992px) --- */
@media (max-width: 991px) {
  .ghair-mobile-bottom-support-bar {
    display: block !important;
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .mobile-filter-toggle {
    display: inline-flex !important;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .filters-sidebar.drawer-open {
    transform: translateX(0);
  }

  .mobile-drawer-close {
    display: block !important;
  }

  .mobile-apply-filters-wrap {
    display: block !important;
  }

  body.drawer-active::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 99998;
  }

  .detail-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-bottom: 6rem !important;
  }

  .detail-sidebar-column {
    height: auto !important;
    position: static !important;
  }

  .ghair-sticky-support-card {
    position: static !important;
    margin-top: 1.5rem !important;
  }
}
/* ==========================================================================
   OPPORTUNITY PLATFORM POLISHED RESPONSIVE STYLES
   ========================================================================== */

/* --- Card Alignment & Equal Heights --- */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.opportunity-card {
  background: var(--ghair-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.opportunity-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.opportunity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.opportunity-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  word-break: break-word;
}

.opportunity-title a {
  color: var(--ghair-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.opportunity-title a:hover {
  color: var(--ghair-red);
}

.opportunity-org {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475467;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  word-break: break-word;
}

.opportunity-summary {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opportunity-facts {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.fact-item .label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.fact-item .value {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ghair-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opportunity-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  gap: 0.5rem;
}

/* --- Archive Responsive Controls --- */
.archive-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Multi-Step Form Responsive Polish --- */
@media (max-width: 768px) {
  .support-form-container form {
    padding: 1.5rem !important;
  }

  .support-opp-banner {
    padding: 1.25rem !important;
  }

  .support-opp-banner > div:last-child {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem !important;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .support-form-container form > div[style*="grid-template-columns"],
  .support-checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .support-step-indicator {
    padding: 0.85rem 0.5rem !important;
  }

  .step-label {
    font-size: 0.7rem !important;
  }

  .step-circle {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 0.75rem !important;
  }

  .archive-controls-bar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .archive-controls-bar > div {
    justify-content: space-between;
    width: 100%;
  }

  .archive-controls-bar select {
    width: 100%;
  }

  .opportunities-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================================================
   GHAIR REDESIGNED HOMEPAGE STYLES
   ========================================================================== */

/* --- Hero Section --- */
.ghair-opportunity-hero {
  background: linear-gradient(135deg, #031F83 0%, #02165e 60%, #0c1c4d 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.ghair-opportunity-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-main-title {
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-main-title .hero-highlight {
  color: #ff8079;
}

.hero-sub-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-buttons .btn-hero-primary {
  background-color: var(--ghair-red);
  color: #ffffff;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(229, 51, 42, 0.4);
  transition: all 0.2s ease;
}

.hero-cta-buttons .btn-hero-primary:hover {
  background-color: var(--ghair-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 51, 42, 0.6);
  color: #ffffff;
}

.hero-cta-buttons .btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.hero-cta-buttons .btn-hero-secondary:hover {
  background-color: #ffffff;
  color: var(--ghair-navy);
  transform: translateY(-2px);
}

.hero-media-wrapper {
  position: relative;
}

.hero-media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.hero-media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-media-card:hover img {
  transform: scale(1.02);
}

.hero-stat-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  color: var(--ghair-text-dark);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid #e2e8f0;
}

.hero-stat-floating .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Global Search Bar --- */
.hero-search-wrapper {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
}

.hero-search-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  box-shadow: 0 16px 36px rgba(3, 31, 131, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-search-card .search-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.hero-search-card input[type="text"] {
  border: none;
  font-size: 1.05rem;
  color: #1e293b;
  width: 100%;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
}

.hero-search-card .search-cat-group {
  border-left: 1px solid #e2e8f0;
  padding-left: 0.75rem;
}

.hero-search-card select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #475467;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 1.5rem;
}

.hero-search-card button {
  background-color: var(--ghair-navy);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-search-card button:hover {
  background-color: var(--ghair-navy-dark);
  transform: translateY(-1px);
}

/* --- Category Cards Section --- */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.category-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.category-pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.category-card-thumb {
  height: 170px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.category-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-pillar-card:hover .category-card-thumb img {
  transform: scale(1.05);
}

.category-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(3, 31, 131, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.category-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-title {
  font-size: 1.25rem;
  color: var(--ghair-navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.category-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ghair-red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.category-pillar-card:hover .category-card-cta {
  gap: 0.6rem;
}

/* --- How GHAIR Works --- */
.how-ghair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.how-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.how-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.how-step-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: rgba(3, 31, 131, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.how-step-title {
  font-size: 1.25rem;
  color: var(--ghair-navy);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.how-step-desc {
  font-size: 0.9375rem;
  color: #475467;
  line-height: 1.6;
}

/* --- Dual Fellowship & Postdoc Grid --- */
.dual-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* --- Paid Consultancy Highlight Section --- */
.support-promo-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.support-promo-image {
  position: relative;
  background: #f1f5f9;
}

.support-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.support-promo-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem 0;
}

.support-service-tag {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.support-price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.support-price-tag .price-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ghair-navy);
  font-family: var(--font-heading);
}

/* --- Direct Apply vs GHAIR Support Comparison --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.comparison-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.comparison-card.card-support {
  border-color: var(--ghair-navy);
  box-shadow: 0 8px 24px rgba(3, 31, 131, 0.08);
}

.comparison-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.badge-apply-free {
  background: #f1f5f9;
  color: #475467;
}

.badge-support-paid {
  background: var(--ghair-navy);
  color: #ffffff;
}

.comparison-step-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.comparison-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #334155;
}

.step-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Trust Pillars Grid --- */
.trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trust-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ghair-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.trust-pillar-title {
  font-size: 1.05rem;
  color: var(--ghair-navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.trust-pillar-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* --- Final Homepage CTA Banner --- */
.final-cta-section {
  background: linear-gradient(135deg, #031F83 0%, #02165e 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.final-cta-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

/* --- Responsive Breakpoints for Homepage --- */
@media (max-width: 1100px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media-card img {
    height: 320px;
  }
  .hero-stat-floating {
    position: static;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  .support-promo-box {
    grid-template-columns: 1fr;
  }
  .support-promo-image img {
    min-height: 260px;
    max-height: 320px;
  }
  .support-promo-content {
    padding: 2rem 1.5rem;
  }
  .dual-section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .how-ghair-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ghair-opportunity-hero {
    padding: 3rem 0 2.5rem 0;
  }
  .hero-search-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .hero-search-card .search-cat-group {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 0.75rem;
  }
  .hero-search-card select {
    width: 100%;
    padding: 0.5rem 0;
  }
  .hero-search-card button {
    width: 100%;
    padding: 0.85rem;
  }
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  .trust-pillars-grid {
    grid-template-columns: 1fr;
  }
  .comparison-card {
    padding: 1.75rem 1.25rem;
  }
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}


/* =============================================================================
   GHAIR REDESIGNED HOMEPAGE: HERO SLIDER & DUAL-VALUE STYLES
   ============================================================================= */

.hero-slider-section {
  position: relative;
  background: linear-gradient(135deg, #021557 0%, #031F83 55%, #08299b 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 3.5rem 0 3.5rem 0;
}

.hero-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-slider-wrapper {
  position: relative;
  z-index: 2;
}

.hero-slider-track {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease-in-out, visibility 0.45s ease-in-out, transform 0.45s ease-out;
  transform: translateY(10px);
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.slide-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.slide-title .accent-text {
  color: #ff8079;
}

.slide-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.slide-subtext {
  font-size: 0.9375rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-subtext svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-slide-primary {
  background-color: var(--ghair-red);
  color: #ffffff !important;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(229, 51, 42, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-slide-primary:hover {
  background-color: var(--ghair-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 51, 42, 0.6);
  color: #ffffff !important;
}

.btn-slide-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-slide-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Slide Media Card */
.slide-media-wrapper {
  position: relative;
}

.slide-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.15);
  background-color: #0c1938;
}

.slide-media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.slide-floating-tag {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.slide-floating-tag .tag-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Slider Controls */
.slider-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  width: 32px;
  background: var(--ghair-red);
  box-shadow: 0 0 10px rgba(229, 51, 42, 0.6);
}

.slider-arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: scale(1.05);
}

.slider-nav-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* =============================================================================
   DUAL PATHWAY SECTION (OPTION 1 vs OPTION 2)
   ============================================================================= */

.dual-pathways-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pathway-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pathway-card.pathway-assisted {
  border-color: #031F83;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  position: relative;
}

.pathway-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.badge-free {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-assisted {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.pathway-title {
  font-size: 1.65rem;
  color: var(--ghair-navy);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.pathway-desc {
  font-size: 1.025rem;
  color: #475467;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.pathway-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.pathway-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.pathway-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.icon-free {
  background: #ecfdf5;
  color: #059669;
}

.icon-assisted {
  background: #031F83;
  color: #ffffff;
}

.pathway-price-box {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pathway-price-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #475467;
}

.pathway-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #031F83;
}

/* =============================================================================
   SERVICES SPOTLIGHT: CAN'T FIND A JOB? HOW GHAIR ASSISTS YOU
   ============================================================================= */

.services-spotlight-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 5rem 0;
}

.pain-points-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.pain-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #475467;
  line-height: 1.5;
}

.pain-point-bullet {
  color: #e5332a;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.services-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.service-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-matrix-card:hover {
  border-color: #031F83;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: #031F83;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-matrix-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ghair-navy);
  margin-bottom: 0.5rem;
}

.service-matrix-desc {
  font-size: 0.925rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Ethical Disclaimer Box */
.ethical-disclaimer-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2rem;
}

.ethical-disclaimer-icon {
  width: 32px;
  height: 32px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.ethical-disclaimer-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 0.35rem 0;
}

.ethical-disclaimer-text p {
  font-size: 0.8875rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

/* Responsive Rules for Slider & New Sections */
@media (max-width: 991px) {
  .hero-slide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .slide-media-card img {
    height: 300px;
  }
  .slide-floating-tag {
    position: static;
    margin-top: 1rem;
  }
  .dual-pathways-container {
    grid-template-columns: 1fr;
  }
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
  .services-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-slider-section {
    padding: 2.5rem 0 2rem 0;
  }
  .hero-slider-track {
    min-height: 520px;
  }
  .slide-title {
    font-size: 1.85rem;
  }
  .slide-desc {
    font-size: 1rem;
  }
  .slide-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .slide-actions .btn-slide-primary,
  .slide-actions .btn-slide-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .services-matrix-grid {
    grid-template-columns: 1fr;
  }
  .ethical-disclaimer-card {
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
  }
}


/* =============================================================================
   GHAIR HOMEPAGE ENHANCEMENTS: POTENTIAL & COMPETITIVE REALITY STYLES
   ============================================================================= */

/* Slide highlight callout badge */
.slide-highlight-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #ff8079;
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

/* SECTION: YOU HAVE THE POTENTIAL */
.potential-section {
  background: linear-gradient(180deg, #021447 0%, #031F83 100%);
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.potential-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.potential-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem auto;
  position: relative;
  z-index: 2;
}

.potential-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff8079;
  background: rgba(229, 51, 42, 0.15);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.potential-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.potential-lead-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
}

.potential-subtitle {
  font-size: 1.45rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 0;
}

.potential-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3.5rem;
}

.potential-step-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.65rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  border-top: 4px solid var(--ghair-red);
  position: relative;
}

.potential-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.potential-step-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--ghair-navy);
  line-height: 1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  opacity: 0.85;
}

.potential-step-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ghair-navy);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  min-height: 2.7rem;
}

.potential-step-body {
  font-size: 0.925rem;
  color: #475467;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.potential-step-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.potential-step-list li {
  font-size: 0.875rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.potential-step-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ghair-red);
  flex-shrink: 0;
}

/* Visually Dominant CTA */
.dominant-cta-wrap {
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-dominant-cta {
  background: #E5332A;
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1.2rem 3rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(229, 51, 42, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.btn-dominant-cta:hover {
  background: #c5241b;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(229, 51, 42, 0.6);
  color: #ffffff !important;
}

.btn-dominant-cta svg {
  transition: transform 0.2s ease;
}

.btn-dominant-cta:hover svg {
  transform: translateX(4px);
}

.dominant-cta-sub {
  font-size: 0.925rem;
  color: #94a3b8;
  margin-top: 0.85rem;
}

/* SECTION: THE JOB MARKET IS COMPETITIVE */
.competitive-section {
  background: #ffffff;
  padding: 5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.competitive-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.competitive-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--ghair-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.competitive-text {
  font-size: 1.075rem;
  color: #475467;
  line-height: 1.65;
  margin: 0;
}

.strategy-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.strategy-card {
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.strategy-card.unassisted {
  background: #fff5f5;
  border: 2px dashed #fca5a5;
}

.strategy-card.assisted {
  background: #f8faff;
  border: 2px solid #031F83;
  box-shadow: 0 12px 30px rgba(3, 31, 131, 0.08);
}

.strategy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.badge-warning {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-success {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.strategy-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ghair-navy);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.strategy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.strategy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.975rem;
  line-height: 1.5;
}

.strategy-item.negative {
  color: #64748b;
}

.strategy-item.positive {
  color: #1e293b;
  font-weight: 600;
}

.strategy-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 2px;
}

.strategy-icon.negative {
  background: #fee2e2;
  color: #dc2626;
}

.strategy-icon.positive {
  background: #031F83;
  color: #ffffff;
}

/* Responsive Rules for New Sections */
@media (max-width: 1024px) {
  .potential-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .strategy-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .potential-section {
    padding: 3.5rem 0;
  }
  .potential-title {
    font-size: 1.85rem;
  }
  .potential-steps-grid {
    grid-template-columns: 1fr;
  }
  .potential-step-heading {
    min-height: auto;
  }
  .btn-dominant-cta {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.1rem 1.5rem;
  }
}


/* =============================================================================
   HERO SLIDER: WHITE BACKGROUND & GHAIR BLUE HEADINGS / TEXT
   Visual Hierarchy: Blue Header -> White Hero Slider -> Blue Potential Section
   ============================================================================= */

.hero-slider-section {
  position: relative;
  background: #ffffff !important;
  color: #1e293b !important;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 3.5rem 0 3.5rem 0;
}

.hero-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(3, 31, 131, 0.04) 1px, transparent 1px) !important;
  background-size: 24px 24px;
  pointer-events: none;
}

/* Headings in GHAIR Blue */
.slide-title {
  color: #031F83 !important; /* GHAIR Blue */
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.slide-title .accent-text {
  color: #E5332A !important; /* GHAIR Red accent */
}

/* Supporting Copy */
.slide-desc {
  color: #475467 !important;
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

/* Subtext & Callout */
.slide-subtext {
  color: #64748b !important;
  font-weight: 600;
}

.slide-subtext svg {
  color: #031F83 !important;
}

.slide-highlight-callout {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #031F83 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.slide-highlight-callout svg {
  color: #E5332A !important;
}

/* Badge Tags */
.slide-badge-tag {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #031F83 !important;
  font-weight: 700;
}

.slide-badge-tag svg {
  stroke: #031F83 !important;
}

/* Primary CTA Button (GHAIR Red) */
.btn-slide-primary {
  background-color: #E5332A !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(229, 51, 42, 0.35);
}

.btn-slide-primary:hover {
  background-color: #c5241b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(229, 51, 42, 0.5);
}

/* Secondary CTA Button (GHAIR Blue Outline) */
.btn-slide-secondary {
  background-color: #ffffff !important;
  color: #031F83 !important;
  border: 2px solid #031F83 !important;
  backdrop-filter: none !important;
}

.btn-slide-secondary:hover {
  background-color: #031F83 !important;
  color: #ffffff !important;
  border-color: #031F83 !important;
}

/* Slide Media Card on White */
.slide-media-card {
  border: 3px solid #e2e8f0 !important;
  box-shadow: 0 16px 36px rgba(3, 31, 131, 0.12) !important;
  background-color: #f1f5f9 !important;
}

.slide-floating-tag {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Slider Controls on White */
.slider-controls-row {
  border-top: 1px solid #e2e8f0 !important;
}

.slider-dot {
  background: #cbd5e1 !important;
}

.slider-dot.active {
  background: #E5332A !important;
  box-shadow: 0 0 8px rgba(229, 51, 42, 0.4) !important;
}

.slider-nav-btn {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #031F83 !important;
}

.slider-nav-btn:hover {
  background: #031F83 !important;
  border-color: #031F83 !important;
  color: #ffffff !important;
}

/* Embedded Quick Search Card on White */
.hero-search-card {
  background-color: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(3, 31, 131, 0.08) !important;
}

/* =========================================================================
   PROMINENT HOMEPAGE SEARCH ENGINE & FREEMIUM SUBSCRIPTION SYSTEM
   ========================================================================= */

/* --- Prominent Homepage Search Engine --- */
.prominent-search-section {
  width: 100%;
  max-width: 1060px;
  margin: 2.5rem auto 1rem;
}

.prominent-search-card {
  background: #ffffff;
  border: 2px solid #031F83;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 16px 40px rgba(3, 31, 131, 0.12);
  position: relative;
}

.search-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.search-eyebrow {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.search-card-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--ghair-navy);
  margin-bottom: 0.5rem;
  line-height: 1.25;
  font-weight: 800;
}

.search-card-subtitle {
  color: #475467;
  font-size: 1.025rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Category Tabs */
.search-type-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.search-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  background: transparent;
  color: #475467;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tab-btn:hover {
  color: var(--ghair-navy);
}

.search-tab-btn.active {
  background: var(--ghair-navy);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(3, 31, 131, 0.25);
}

/* Search Input Bar */
.search-bar-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 1.2rem;
  color: #94a3b8;
  pointer-events: none;
}

.prominent-input {
  width: 100%;
  padding: 1.1rem 2.8rem 1.1rem 3.2rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.prominent-input:focus {
  outline: none;
  border-color: var(--ghair-navy);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(3, 31, 131, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.search-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  background: #E5332A;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 51, 42, 0.3);
}

.search-submit-button:hover {
  background: #c5251d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 51, 42, 0.4);
}

/* Popular Search Pills */
.search-popular-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 0.25rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-pill:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .prominent-search-card {
    padding: 1.75rem 1.25rem;
  }
  .search-type-tabs {
    width: 100%;
    display: flex;
  }
  .search-tab-btn {
    flex: 1;
    justify-content: center;
  }
  .search-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-submit-button {
    width: 100%;
    padding: 1rem;
  }
}

/* --- Locked Opportunity Card --- */
.opportunity-card-locked {
  position: relative;
  background: #fafafa;
  border: 1px dashed #cbd5e1;
  border-left: 4px solid #f59e0b;
  opacity: 0.92;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-card-locked:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.badge-locked-status {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.locked-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fffbeb;
  border-radius: 50%;
  color: #b45309;
}

.locked-blurred-content {
  position: relative;
  overflow: hidden;
  margin: 0.75rem 0;
}

.blurred-text {
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.55;
  pointer-events: none;
}

.locked-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.locked-access-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #b45309;
}

.btn-unlock-card {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1rem !important;
  background: var(--ghair-navy) !important;
}

.btn-unlock-card:hover {
  background: #021760 !important;
}

/* --- In-Grid Freemium Paywall Banner --- */
.paywall-grid-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #031F83 0%, #062b9e 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(3, 31, 131, 0.18);
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.paywall-grid-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 128, 121, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.paywall-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.paywall-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
}

.paywall-price-tag .currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
}

.paywall-price-tag .amount {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #ffffff;
}

.paywall-price-tag .period {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.paywall-banner-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  font-weight: 800;
}

.paywall-banner-lead {
  font-size: 1.075rem;
  color: #dbeafe;
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 2rem;
}

.paywall-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.paywall-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #f8fafc;
  line-height: 1.45;
}

.paywall-benefit-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.paywall-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.paywall-cta-btn {
  background: #E5332A !important;
  border-color: #E5332A !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 0.9rem 2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 4px 16px rgba(229, 51, 42, 0.4) !important;
}

.paywall-cta-btn:hover {
  background: #c5251d !important;
  transform: translateY(-1px);
}

.paywall-learn-btn {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
  font-weight: 700 !important;
  padding: 0.9rem 1.75rem !important;
}

.paywall-learn-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
}

@media (max-width: 768px) {
  .paywall-grid-banner {
    padding: 2rem 1.5rem;
  }
  .paywall-benefits-grid {
    grid-template-columns: 1fr;
  }
  .paywall-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .paywall-cta-btn, .paywall-learn-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
