/* ==========================================================================
   ABM PAKISTAN (Association for Biorisk Management) Official Theme CSS
   Pixel-Perfect Implementation matching template media_1788968769435.jpg
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --abm-navy-dark: #031427;
  --abm-navy-main: #061c38;
  --abm-navy-light: #0d2a52;
  --abm-green-main: #008744;
  --abm-green-dark: #006b35;
  --abm-green-light: #e6f4ea;
  --abm-blue-main: #0f62fe;
  --abm-blue-hover: #0043ce;
  --abm-text-dark: #0b1f38;
  --abm-text-muted: #64748b;
  --abm-bg-slate: #f8fafc;
  --abm-border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--abm-text-dark);
  background-color: var(--abm-bg-slate);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. Top Utility Bar
   -------------------------------------------------------------------------- */
.abm-top-bar {
  background-color: var(--abm-navy-dark);
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.abm-top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.abm-top-bar a:hover {
  color: white;
}

/* --------------------------------------------------------------------------
   2. Main Header & Navigation Menu
   -------------------------------------------------------------------------- */
.abm-main-header {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.abm-logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.abm-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--abm-green-main) 0%, var(--abm-navy-main) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 135, 68, 0.25);
}

.abm-logo-title {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--abm-navy-main);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.abm-logo-subtitle {
  font-size: 0.65rem;
  color: var(--abm-text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.abm-nav .nav-link {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--abm-navy-main) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.5rem 0.7rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.abm-nav .nav-link:hover,
.abm-nav .nav-link.active {
  color: var(--abm-green-main) !important;
}

.abm-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 3px;
  background-color: var(--abm-green-main);
  border-radius: 3px 3px 0 0;
}

.btn-partner {
  background-color: var(--abm-green-main);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-partner:hover {
  background-color: var(--abm-green-dark);
  color: white;
}

/* --------------------------------------------------------------------------
   3. Hero Banner Section
   -------------------------------------------------------------------------- */
.abm-hero-section {
  background: linear-gradient(135deg, rgba(3, 20, 39, 0.94) 0%, rgba(6, 28, 56, 0.90) 60%, rgba(13, 42, 82, 0.88) 100%),
              url('https://images.unsplash.com/photo-1579165466741-7f35e4755660?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
  padding: 95px 0 135px;
  position: relative;
}

.abm-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.abm-hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
  font-weight: 400;
}

.btn-abm-blue {
  background-color: var(--abm-blue-main);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.8rem 1.85rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-abm-blue:hover {
  background-color: var(--abm-blue-hover);
  color: white;
}

.btn-abm-outline-green {
  border: 1.5px solid var(--abm-green-main);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.8rem 1.85rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 135, 68, 0.15);
  transition: all 0.2s ease;
}

.btn-abm-outline-green:hover {
  background-color: var(--abm-green-main);
  color: white;
}

/* --------------------------------------------------------------------------
   3b. Detail Page Banner (No Slider)
   -------------------------------------------------------------------------- */
.abm-page-banner {
  background: linear-gradient(135deg, var(--abm-navy-dark) 0%, var(--abm-navy-main) 60%, var(--abm-navy-light) 100%);
  color: white;
  padding: 45px 0;
  border-bottom: 3px solid var(--abm-green-main);
}

.abm-page-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.abm-page-banner .breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}

.abm-page-banner .breadcrumb a:hover {
  color: white;
}

.abm-page-banner .breadcrumb-item.active {
  color: #cbd5e1 !important;
  font-size: 0.875rem;
}

.abm-page-banner .breadcrumb-item+.breadcrumb-item::before {
  color: #64748b;
}


/* --------------------------------------------------------------------------
   4. Floating Stats Counter Box
   -------------------------------------------------------------------------- */
.abm-stats-wrapper {
  margin-top: -65px;
  position: relative;
  z-index: 10;
}

.abm-stats-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  padding: 28px 20px;
  border: 1px solid var(--abm-border-color);
}

.abm-stat-item {
  text-align: center;
  padding: 10px 5px;
}

.abm-stat-icon {
  font-size: 1.85rem;
  color: var(--abm-green-main);
  margin-bottom: 10px;
  display: inline-block;
}

.abm-stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--abm-navy-main);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.abm-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--abm-text-muted);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   5. Section Titles
   -------------------------------------------------------------------------- */
.section-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--abm-green-main);
  margin-bottom: 6px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--abm-navy-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   6. About Us Section ("Who We Are")
   -------------------------------------------------------------------------- */
.abm-about-section {
  padding: 85px 0;
}

.abm-building-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  height: 330px;
}

.abm-vision-box {
  background: white;
  border-radius: 10px;
  padding: 20px 22px;
  border: 1px solid var(--abm-border-color);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abm-vision-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.abm-vision-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--abm-green-light);
  color: var(--abm-green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.abm-vision-box h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--abm-navy-main);
  margin-bottom: 4px;
}

.abm-vision-box p {
  font-size: 0.875rem;
  color: var(--abm-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   7. Programs Grid ("What We Do")
   -------------------------------------------------------------------------- */
.abm-programs-section {
  padding: 75px 0;
  background-color: white;
}

.abm-program-card {
  background: var(--abm-bg-slate);
  border: 1px solid var(--abm-border-color);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: all 0.25s ease;
}

.abm-program-card:hover {
  background: white;
  border-color: var(--abm-green-main);
  box-shadow: 0 14px 30px rgba(0, 135, 68, 0.12);
  transform: translateY(-5px);
}

.abm-program-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--abm-green-light);
  color: var(--abm-green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin: 0 auto 18px;
}

.abm-program-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--abm-navy-main);
  margin-bottom: 12px;
}

.abm-program-card p {
  font-size: 0.875rem;
  color: var(--abm-text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.abm-program-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--abm-blue-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.abm-program-link:hover {
  color: var(--abm-green-main);
}

/* --------------------------------------------------------------------------
   8. Success Story & News Section
   -------------------------------------------------------------------------- */
.abm-featured-story-card {
  background: var(--abm-navy-main);
  color: white;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.abm-story-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.abm-story-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.abm-story-badge {
  background: var(--abm-blue-main);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.abm-story-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.abm-story-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.6;
}

.abm-news-item {
  background: white;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--abm-border-color);
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abm-news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.abm-news-thumb {
  width: 115px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.abm-news-cat {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--abm-green-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.abm-news-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--abm-navy-main);
  margin: 4px 0;
  line-height: 1.35;
}

.abm-news-date {
  font-size: 0.75rem;
  color: var(--abm-text-muted);
}

/* --------------------------------------------------------------------------
   9. Partners Section
   -------------------------------------------------------------------------- */
.abm-partners-section {
  padding: 55px 0;
  background: white;
  border-top: 1px solid #f1f5f9;
}

.partner-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all 0.25s ease;
}

.partner-logo-box:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo-box img {
  max-height: 50px;
  width: auto;
}

/* --------------------------------------------------------------------------
   10. Newsletter Subscription Bar
   -------------------------------------------------------------------------- */
.abm-newsletter-bar {
  background: linear-gradient(90deg, var(--abm-green-main) 0%, #006633 100%);
  color: white;
  padding: 35px;
  border-radius: 12px;
  margin: 45px 0;
  box-shadow: 0 12px 30px rgba(0, 135, 68, 0.22);
}

.abm-newsletter-input {
  border-radius: 6px 0 0 6px;
  border: none;
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
}

.abm-newsletter-btn {
  background-color: var(--abm-navy-dark);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: 0 6px 6px 0;
  border: none;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.abm-footer-main {
  background-color: var(--abm-navy-dark);
  color: #94a3b8;
  padding: 75px 0 25px;
}

.abm-footer-heading {
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.abm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.abm-footer-links li {
  margin-bottom: 12px;
}

.abm-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.abm-footer-links a:hover {
  color: white;
}

.abm-footer-bottom {
  background-color: #020c18;
  color: #64748b;
  font-size: 0.8rem;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   12. User Login Page & Login Card Styling
   -------------------------------------------------------------------------- */
.abm-login-page-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.abm-login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(7, 25, 47, 0.08);
  border: 1px solid var(--abm-border-color);
  padding: 40px 35px;
  max-width: 460px;
  margin: 0 auto;
}

.abm-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.abm-login-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--abm-green-main) 0%, var(--abm-navy-main) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  box-shadow: 0 6px 15px rgba(0, 135, 68, 0.25);
}

.abm-login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--abm-navy-main);
  margin-bottom: 6px;
}

.abm-login-subtitle {
  font-size: 0.875rem;
  color: var(--abm-text-muted);
}

/* Drupal User Login Form styling overrides */
.user-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-login-form .form-item {
  margin-bottom: 16px;
}

.user-login-form label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--abm-navy-main);
  margin-bottom: 6px;
  display: block;
}

.user-login-form input[type="text"],
.user-login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.user-login-form input[type="text"]:focus,
.user-login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--abm-green-main);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 135, 68, 0.12);
}

.user-login-form .form-submit {
  background-color: var(--abm-green-main);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.user-login-form .form-submit:hover {
  background-color: var(--abm-green-dark);
  color: white;
}

.user-login-form .description {
  font-size: 0.78rem;
  color: var(--abm-text-muted);
  margin-top: 4px;
}

