/* ============================================================
   McRiyavin Bio-Research — Modern UI Stylesheet
   20+ Years of Manufacturing Excellence
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-primary: #0284c7;       /* Bio Cyan-Blue */
  --brand-primary-hover: #0369a1;
  --brand-secondary: #0ea5e9;     /* Vibrant Cyan */
  --brand-dark: #0b3c5d;          /* Deep Navy */
  --brand-dark-2: #07273e;
  --brand-accent: #38bdf8;
  --gold-accent: #f59e0b;
  --gold-accent-dark: #d97706;
  
  /* Semantic Colors */
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #0284c7;
  
  /* Neutral Colors */
  --bg-app: #f8fafc;              /* Soft slate background */
  --bg-card: #ffffff;
  --text-main: #0f172a;           /* Deep slate */
  --text-muted: #64748b;          /* Slate for secondary labels */
  --border-color: #e2e8f0;
  --border-color-focus: #7dd3fc;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* UI Elements */
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-button: 12px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(11, 60, 93, 0.12), 0 4px 6px -2px rgba(11, 60, 93, 0.05);
  --shadow-btn: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
}

/* ---- Global Viewport & Overflow Containment ---- */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---- Global Typography & Background ---- */
body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar Modernization ---- */
#mainNav {
  background: rgba(11, 60, 93, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.65rem 1rem !important;
  transition: all 0.3s ease;
}
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#mainNav .navbar-brand img {
  height: 2.85rem !important;
  width: auto;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
#mainNav .navbar-brand:hover img {
  transform: scale(1.03);
}
#mainNav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus,
#mainNav .nav-item.active .nav-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}
.navbar-toggler {
  border: none !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.9rem;
}

/* ---- 20+ Years Jubilee Hero Section ---- */
.jubilee-hero {
  background: linear-gradient(135deg, #0b3c5d 0%, #154c79 45%, #0284c7 100%);
  position: relative;
  padding-top: 7.5rem !important;
  padding-bottom: 5.5rem !important;
  overflow: hidden;
}
.jubilee-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.jubilee-badge-container {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.jubilee-badge-container:hover {
  transform: translateY(-2px);
}
.hero-logo-img {
  max-height: 115px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}
.hero-logo-img:hover {
  transform: scale(1.03);
}
.btn-jubilee-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0.85rem 1.75rem !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
  transition: all 0.2s ease;
}
.btn-jubilee-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
  color: #ffffff !important;
}
.btn-jubilee-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.75rem !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}
.btn-jubilee-outline:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-md) !important;
  margin-bottom: 1.5rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg) !important;
}
.card-body {
  padding: 1.75rem !important;
}
@media (max-width: 768px) {
  .card-body { padding: 1.25rem 1rem !important; }
}

/* ---- Form Controls ---- */
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100% !important;
  background-color: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
  border-radius: var(--radius-input) !important;
  font-size: 0.98rem !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease-in-out;
  height: auto !important;
}
.form-control:focus, textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12) !important;
  outline: none;
}
textarea { min-height: 110px !important; resize: vertical; }

/* ---- Action Buttons ---- */
.btn-primary,
button[type="submit"] {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border: none !important;
  border-radius: var(--radius-button) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.8rem 1.5rem !important;
  box-shadow: var(--shadow-btn) !important;
  transition: all 0.2s ease;
}
.btn-primary:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
  color: #ffffff !important;
}
.btn-primary:active,
button[type="submit"]:active {
  transform: scale(0.98);
}

/* ---- Modern Tables ---- */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.table-modern thead {
  background: #f1f5f9;
}
.table-modern th {
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  border-bottom: 1.5px solid var(--border-color);
}
.table-modern td {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}
.table-modern tbody tr:hover {
  background-color: #f8fafc;
}

/* ---- Carousel Polish ---- */
.carousel {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.carousel-inner img {
  object-fit: cover;
  width: 100%;
  height: 420px;
}
@media (max-width: 768px) {
  .carousel-inner img {
    height: 250px;
  }
}
.carousel-control-prev, .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  opacity: 0.85;
  transition: all 0.2s ease;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
  background: rgba(15, 23, 42, 0.8);
  opacity: 1;
}

/* ---- Modals ---- */
.modal-content {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(11, 60, 93, 0.25) !important;
  animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: linear-gradient(135deg, #0b3c5d 0%, #154c79 100%) !important;
  color: #ffffff !important;
  padding: 1.1rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.modal-header .modal-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
}
.modal-header .close {
  color: #ffffff !important;
  opacity: 0.8;
  font-size: 1.5rem;
  transition: opacity 0.2s;
}
.modal-header .close:hover {
  opacity: 1;
}
.modal-body {
  padding: 1.5rem !important;
  background: #f8fafc;
}
.modal-footer {
  padding: 1rem 1.5rem !important;
}

/* ---- Section Headers ---- */
.page-section {
  padding-top: 5rem !important;
  padding-bottom: 4.5rem !important;
}
.section-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.section-title {
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.5px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
}

/* ---- Icon Circles ---- */
.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* ---- File Upload Card ---- */
.custom-file-upload-card {
  border: 2px dashed #cbd5e1 !important;
  border-radius: 12px;
  background: #ffffff;
  padding: 1.2rem;
  transition: all 0.2s ease;
}
.custom-file-upload-card:hover {
  border-color: var(--brand-primary) !important;
  background: #f0f9ff;
}

/* ---- Modernized Footer ---- */
footer.footer {
  background: linear-gradient(135deg, #0b3c5d 0%, #154c79 100%) !important;
  color: #cbd5e1;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
footer.footer h5 {
  letter-spacing: 0.5px;
  font-size: 1rem;
}
.btn-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transition: all 0.2s ease;
}
.btn-social:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}
.copyright {
  background: #07273e !important;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Modernized Pharmaceutical Tablet Bullet Points ---- */
.prod-list-group li {
  display: flex !important;
  align-items: flex-start !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}
.tablet-bullet,
.prod-list-group li i {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin-right: 0.75rem !important;
  margin-top: 3px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='2' y1='2' x2='22' y2='22' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0%25' stop-color='%2338bdf8'/%3E%3Cstop offset='50%25' stop-color='%230ea5e9'/%3E%3Cstop offset='100%25' stop-color='%230284c7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='9.5' fill='url(%23g)'/%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%23ffffff' stroke-opacity='0.75' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23ffffff' stroke-opacity='0.25' stroke-width='0.8'/%3E%3Cpath d='M6.5 10 A6.5 6.5 0 0 1 17.5 10' fill='none' stroke='%23ffffff' stroke-opacity='0.7' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='6.8' y1='6.8' x2='17.2' y2='17.2' stroke='%230369a1' stroke-width='1.8' stroke-linecap='round' stroke-opacity='0.65'/%3E%3Cline x1='7.2' y1='6.2' x2='17.6' y2='16.6' stroke='%23ffffff' stroke-width='1.3' stroke-linecap='round' stroke-opacity='0.95'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  transition: transform 0.2s ease;
}
.tablet-bullet:before,
.prod-list-group li i:before {
  content: "" !important;
  display: none !important;
}
.prod-list-group li:hover .tablet-bullet,
.prod-list-group li:hover i {
  transform: rotate(25deg) scale(1.15);
}

/* ---- Responsive Table Containment ---- */
.table-responsive,
.bootstrap-table,
.fixed-table-container,
.fixed-table-body {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Row safety against overflowing child elements */
.row {
  max-width: 100%;
}

/* ---- Mobile Responsiveness & Overflow Prevention ---- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem !important;
  }
  .jubilee-hero {
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 576px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .container, .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .jubilee-hero {
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .jubilee-badge-container {
    border-radius: 14px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
  .hero-logo-img {
    max-height: 70px !important;
    padding: 8px 16px !important;
  }
  #brandImage {
    height: 2.1rem !important;
    max-width: 120px !important;
    padding: 2px 5px !important;
  }
  .navbar-brand .badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  #mainNav .navbar-toggler {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
  .btn-jubilee-primary, .btn-jubilee-outline {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    padding: 0.75rem 1.25rem !important;
  }
  .card-body.p-4 {
    padding: 1rem !important;
  }
  .segment-header {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.95rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
  .prod-list-group li {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.85rem !important;
  }
}


