/* ==========================================================================
   Gold Health Care Food Product - Modern UI & Design System
   Preserving theme, sections, and Hindi Unicode text with responsive UX
   ========================================================================== */

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

:root {
  --primary-gold: #d4af37;
  --primary-gold-dark: #b89428;
  --primary-gold-light: #fff8e7;
  --accent-blue: #168eea;
  --accent-blue-dark: #0d6efd;
  --emerald-green: #1b4d3e;
  --surface-dark: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 20px 30px -10px rgba(22, 142, 234, 0.22);
  --font-english: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Typography */
body {
  font-family: var(--font-english);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hindi Text Enhancements */
p, li, .wthree-text p, .w3agile_footer_grid p, .team-grid-text-agile p {
  font-family: var(--font-hindi);
  word-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6, .agile-tittle, .navbar-brand {
  font-family: var(--font-english);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Top Header & Contact Bar
   -------------------------------------------------------------------------- */
.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #168eea 100%) !important;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w3l_header_left ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.w3l_header_left ul li {
  font-family: var(--font-english);
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  padding: 4px 10px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.w3l_header_left ul li:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.w3l_header_left ul li span.glyphicon {
  color: var(--primary-gold) !important;
  padding-right: 0 !important;
}

.w3l_header_left ul li a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-weight: 500;
}

.w3l_header_left ul li a:hover {
  color: var(--primary-gold) !important;
}

.w3l_header_right ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.w3l_header_right ul li {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: var(--transition) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.w3l_header_right ul li:hover {
  transform: translateY(-2px) scale(1.08);
}

/* --------------------------------------------------------------------------
   Sticky Main Navigation
   -------------------------------------------------------------------------- */
.header-bottom {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0 !important;
  transition: var(--transition);
}

.header-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bottom nav.navbar-default {
  width: 100%;
  margin: 0;
}

.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 768px) {
  .navbar-header {
    width: auto;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px;
}

.logo h1 img {
  width: 75px !important;
  height: 60px !important;
  object-fit: contain;
  padding: 0 !important;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand {
  font-family: var(--font-english) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  color: var(--text-dark) !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.navbar-brand span {
  color: var(--accent-blue) !important;
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav Menu Links */
.navbar-nav {
  margin: 0 0 0 auto !important;
  float: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav > li > a {
  font-family: var(--font-english) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--text-dark) !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  transition: var(--transition) !important;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0d6efd 100%) !important;
  box-shadow: 0 4px 14px rgba(22, 142, 234, 0.35);
}

/* --------------------------------------------------------------------------
   Hero Carousel Banner
   -------------------------------------------------------------------------- */
.banner {
  margin-bottom: 25px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-inner .item img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;

}

.carousel-control {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5) !important;
  border-radius: 50%;
  margin: 0 20px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-control:hover {
  background: var(--accent-blue) !important;
  opacity: 1;
}

.carousel-control .glyphicon {
  font-size: 20px;
  top: auto;
}

/* --------------------------------------------------------------------------
   Welcome / About Section (.work)
   -------------------------------------------------------------------------- */
.work {
  padding: 40px 0;
  margin-top: 0 !important;
}

.agileits_works-grid.two {
  padding: 25px;
}

.wthree-text {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-left: 5px solid var(--accent-blue);
  transition: var(--transition);
}

.wthree-text:hover {
  box-shadow: var(--hover-shadow);
}

.wthree-text h4 {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.line-style span {
  background: var(--primary-gold) !important;
  height: 3px !important;
  width: 60px !important;
  border-radius: 2px;
}

.wthree-text p {
  font-size: 17px !important;
  color: #334155;
  line-height: 1.8 !important;
  margin-top: 15px;
  font-weight: 500;
}

.about-agile {
  margin-top: 20px;
  list-style: none;
}

.about-agile li {
  font-family: var(--font-hindi) !important;
  font-size: 16px !important;
  color: var(--text-dark);
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--primary-gold);
  transition: var(--transition);
}

.about-agile li:hover {
  background: var(--primary-gold-light);
  transform: translateX(5px);
}

.about-agile li i {
  color: var(--accent-blue);
  font-size: 16px;
}

.agileits_works-grid img {
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.agileits_works-grid img:hover {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Our Products Gallery & Carousel
   -------------------------------------------------------------------------- */
.gallery {
  padding: 50px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.w3_tittle h3.agile-tittle {
  font-size: 32px;
  color: var(--text-dark);
  text-align: center;
  font-weight: 700;
}

.agileits_work_grid {
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--card-shadow) !important;
  margin: 15px 10px !important;
  background: #ffffff;
  transition: var(--transition) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.agileits_work_grid:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--hover-shadow) !important;
}

.agileits_work_grid img {
  border: none !important; /* Override legacy inline blue border */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 15px;
  background: #ffffff;
  transition: var(--transition);
}

.agileits_work_grid .mask {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(4px);
  display: flex !align-items: center;
  justify-content: center;
}

.agileits_work_grid .mask a.info {
  background: var(--primary-gold) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   Quality Section (.team)
   -------------------------------------------------------------------------- */
.team {
  padding: 60px 0;
  background: #ffffff;
}

.team-grid-text-agile {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 35px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.team-grid-text-agile h3.agile-tittle {
  font-family: var(--font-hindi) !important;
  color: var(--primary-gold) !important;
  font-size: 26px !important;
  font-weight: 700;
}

.team-grid-text-agile p {
  color: #cbd5e1 !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  margin-top: 15px;
}

.team-grid {
  padding: 8px;
}

.team-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}

.team-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.team-img img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.team-img figcaption.overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,23,42,0.9) 100%) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 15px !important;
}

.team-img figcaption h4 {
  font-size: 16px !important;
  font-weight: 600;
  color: #ffffff;
}

.team-img figcaption span {
  color: var(--primary-gold) !important;
  font-weight: 600;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Modern Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #0f172a !important;
  color: #94a3b8;
  padding: 50px 0 30px !important;
  border-top: 4px solid var(--primary-gold);
}

.w3agile_footer_grid h3 {
  font-family: var(--font-english) !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 700;
  margin-bottom: 20px !important;
  position: relative;
  padding-bottom: 10px;
}

.w3agile_footer_grid h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.w3agile_footer_grid p {
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.w3agile_footer_grid h2 a {
  color: var(--primary-gold) !important;
  font-size: 18px !important;
  font-weight: 700;
  display: inline-block;
  margin-top: 15px;
}

.w3agile_footer_grid ul li a {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  transition: var(--transition);
  display: inline-block;
  padding: 4px 0;
}

.w3agile_footer_grid ul li a:hover {
  color: var(--accent-blue) !important;
  transform: translateX(5px);
}

.agileinfo_copy_right {
  background: #090d16 !important;
  padding: 18px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agileinfo_copy_right_left p {
  color: #64748b !important;
  font-size: 13px !important;
  font-family: var(--font-english) !important;
}

.agileinfo_copy_right_left p a {
  color: var(--primary-gold) !important;
}

/* --------------------------------------------------------------------------
   Sub-Pages Modernization (About, Products, Infrastructure, Contact)
   -------------------------------------------------------------------------- */
.services-breadcrumb, .banner-1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  padding: 40px 0 !important;
  color: #ffffff;
}

.wthree_service_breadcrumb_left h3 {
  font-size: 32px !important;
  color: var(--primary-gold) !important;
  font-weight: 700;
}

.wthree_service_breadcrumb_left ul li {
  color: #94a3b8;
  font-size: 14px;
}

.wthree_service_breadcrumb_left ul li a {
  color: #ffffff !important;
}

/* Forms (Contact.aspx) */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-english);
  border-radius: var(--radius-sm) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 12px 16px !important;
  transition: var(--transition) !important;
  box-shadow: none !important;
  width: 100%;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 4px rgba(22, 142, 234, 0.15) !important;
  outline: none;
}

input[type="submit"], button[type="submit"] {
  font-family: var(--font-english);
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0d6efd 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  border: none !important;
  padding: 12px 30px !important;
  cursor: pointer;
  transition: var(--transition) !important;
  box-shadow: 0 4px 14px rgba(22, 142, 234, 0.35) !important;
}

input[type="submit"]:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 142, 234, 0.45) !important;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .header-bottom .container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .navbar-nav {
    margin: 15px 0 0 0 !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .w3l_header_left ul {
    justify-content: center;
  }
  
  .w3l_header_right {
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }

  .agileits_works-grid.two {
    padding: 10px 0;
  }
}

@media (max-width: 767px) {
  .header-bottom {
    padding: 8px 0 !important;
  }
  
  .header-bottom .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .navbar-default {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
  }

  .navbar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  .navbar-toggle {
    float: none !important;
    margin: 0 10px 0 0 !important;
    padding: 7px 9px !important;
    border-radius: 6px !important;
    background-color: #168eea !important;
    border: 1px solid #168eea !important;
    flex-shrink: 0 !important;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo h1 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
  }

  .logo h1 img {
    height: 40px !important;
    width: auto !important;
    max-width: 50px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  .navbar-header .navbar-brand,
  .header-bottom .navbar-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    white-space: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
  }

  .navbar-header .navbar-brand span,
  .header-bottom .navbar-brand span {
    color: #168eea !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    line-height: 1.1 !important;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }

  .navbar-nav > li {
    width: 100%;
    text-align: center;
  }

  .navbar-nav > li > a {
    display: block;
    width: 100%;
  }

  .wthree-text {
    padding: 20px;
  }

  .wthree-text p {
    font-size: 15px !important;
  }

  .team-grid-text-agile {
    padding: 20px;
  }
  
  .kb_wrapper {
    max-height: none !important;
    height: auto !important;
  }
  .kb_wrapper > .carousel-inner > .item > img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  /* Prevent text spillage & handle bottom brand box on mobile */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container, .container-fluid, .row, [class*="col-"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  h1, h2, h3, h4, h5, h6, p, li, div, span, a {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .bottom-info-section {
    text-align: center !important;
  }
  .bottom-brand {
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  .bottom-brand .brand-title {
    font-size: 22px !important;
  }
  .bottom-brand .brand-sub {
    font-size: 15px !important;
  }
  .bottom-brand .brand-tagline {
    font-size: 16px !important;
  }
  .bottom-iso-badge {
    text-align: center !important;
    justify-content: center !important;
  }
  .bottom-iso-badge img {
    width: 120px !important;
    margin: 0 auto !important;
  }
}

/* Bottom Info Section Styling for Desktop & Mobile */
.bottom-info-section {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.bottom-brand a {
  text-decoration: none !important;
  display: block;
}
.bottom-brand .brand-title {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #168eea;
  line-height: 1.2;
}
.bottom-brand .brand-sub {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-top: 2px;
}
.bottom-brand .brand-tagline {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  margin-top: 8px;
  font-family: var(--font-hindi);
}
.bottom-iso-badge {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.bottom-iso-badge img {
  width: 140px;
  height: auto;
}


