/* =====================================================
   WORK WITH US PAGE STYLES (AHDA)
   Cleaned version - only matches actual HTML structure
===================================================== */

.ahda-workwithus {
  background: var(--ahda-bg);
  color: var(--primary-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* =======================
   HERO SECTION
======================= */
.work-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ahda-white);
  margin-top: -100px;
  padding: 5.5rem 0 4rem;
  padding-top: 140px;
  background: linear-gradient(135deg, var(--ahda-teal) 0%, var(--ahda-green) 70%, var(--ahda-orange) 120%);
}

.work-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.work-hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 2s ease;
}

.work-hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.work-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 20% 30%, rgba(245,123,44,.25), transparent 60%),
              linear-gradient(135deg, rgba(11,79,102,.85), rgba(20,119,109,.85));
  pointer-events: none;
}

.work-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .18;
  background-image: radial-gradient(circle at 15% 25%, rgba(255,255,255,.25), transparent 30%),
                    radial-gradient(circle at 80% 40%, rgba(255,255,255,.20), transparent 30%);
  pointer-events: none;
}

#workHero .container { 
  position: relative; 
  z-index: 5; 
}

.work-hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  backdrop-filter: blur(5px);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.work-hero-title {
  font-weight: 900;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #ffffff, var(--ahda-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 34px rgba(0,0,0,0.45);
}

.work-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.95);
}

.work-hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* =======================
   HEADINGS
======================= */
.work-head {
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
}

.work-head-center { 
  text-align: center; 
}

.work-h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-heading);
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.work-h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--ahda-green));
  margin: 0.8rem auto 0;
  border-radius: 4px;
  opacity: 0.9;
}

.work-sub {
  margin-top: 1rem;
  color: var(--secondary-text);
  font-size: 1.05rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* =======================
   CATEGORY CARDS
======================= */
.work-categories {
  padding: 5rem 0 2.5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 1050px;
  margin: 2.2rem auto 0;
}

.work-card {
  text-decoration: none;
  color: inherit;
  background: var(--ahda-white);
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 8px 25px rgba(11,79,102,0.06);
  border: 1px solid rgba(11,79,102,0.06);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(11,79,102,0.1);
  border-color: rgba(245,123,44,0.15);
}

.work-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.work-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ahda-teal), var(--ahda-green));
  color: var(--ahda-white);
  font-size: 1.5rem;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(11,79,102,0.25);
}

.work-card-text { 
  flex: 1; 
}

.work-h3 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-heading);
}

.work-p {
  margin: 0;
  color: var(--secondary-text);
  line-height: 1.65;
  font-size: .98rem;
}

/* =======================
   OPPORTUNITIES SECTION
======================= */
.work-opps {
  padding: 3.5rem 0 4.5rem;
}

/* Equal Opportunity Statement */
.work-eos {
  max-width: 1050px;
  margin: 3rem auto 0;
  border-radius: 24px;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(135deg, rgba(11,79,102,.04), rgba(245,123,44,.04));
  border: 1px solid rgba(11,79,102,.06);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.work-eos-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ahda-teal), var(--ahda-green));
  color: var(--ahda-white);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.work-eos-title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-heading);
}

.work-eos-p {
  margin: 0;
  color: var(--secondary-text);
  line-height: 1.7;
}

/* =======================
   BUTTON STYLES (from programs.php)
======================= */
.btn-ahda-primary {
  background: var(--primary-accent);
  color: var(--ahda-white);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-orange);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ahda-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: height 0.3s ease;
  z-index: -1;
}

.btn-ahda-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245,123,44,0.5);
}

.btn-ahda-primary:hover::after {
  height: 100%;
}

.btn-ahda-outline {
  background: transparent;
  color: var(--ahda-white);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.5);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ahda-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  transition: height 0.3s ease;
  z-index: -1;
}

.btn-ahda-outline:hover {
  background: transparent;
  border-color: white;
  transform: translateY(-3px);
}

.btn-ahda-outline:hover::after {
  height: 100%;
}

/* Bootstrap Icons utility */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.me-2 {
  margin-right: 0.5rem;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 992px) {
  .work-grid { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 768px) {
  .work-hero {
    padding-top: 120px;
    padding-bottom: 3rem;
  }
  
  .work-hero-actions .btn-ahda-primary,
  .work-hero-actions .btn-ahda-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .work-hero-title { 
    font-size: 2.2rem; 
  }
  
  .work-h2 { 
    font-size: 2rem; 
  }
  
  .work-card {
    padding: 1.2rem 1rem;
  }
  
  .work-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .work-h3 {
    font-size: 1.1rem;
  }
  
  .work-p {
    font-size: 0.9rem;
  }
  
  .work-eos {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem;
  }
}

@media (max-width: 360px) {
  .work-hero-title {
    font-size: 1.9rem;
  }
  
  .work-h2 {
    font-size: 1.7rem;
  }
}