* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
  /*font-family: poppins;*/
  font-family: arial;
}
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1f2937;
  --light: #f9fafb;
  --border: #e5e7eb;
  --text: #374151;
  --text-light: #6b7280;
  --white: #fff;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--text);
}
/* =========================================================
   TYPOGRAPHY
========================================================= */
p, h1, h2, h3, h4, h5, h6,ul,ol,table {
  margin-top:.8rem!important;
}

h1 { font-size:2rem; font-weight:700; }
h2 { font-size:1.9rem; font-weight:700; }
h3 { font-size:1.5rem; font-weight:700; }
h4 { font-size:1.3rem; font-weight:700; }

p, ul, ol {
  font-size:1.2rem;
  font-weight: 400;
}
b{
  font-weight: 600;
}
ul, ol {
  padding-left: 1.4rem;
}
.w-100{
  width: 100%;
}
.bg-success{
  background-color:var(--success);
}
.bg-danger{
background-color: var(--danger);
}
.bg-light{
background-color: hsl(210 20% 95% / 1);
}
.text-white{
    color: var(--light);
}


.container {
  width:100%;
  padding:2rem 0rem!important;
  margin:auto;
}

@media (max-width:768px){ .container{padding:2rem 1rem!important;} }
@media (min-width:768px){ .container{max-width:720px;} }
@media (min-width:992px){ .container{max-width:960px;} }
@media (min-width:1200px){ .container{max-width:1140px;} }

/* =========================================================
   GRID SYSTEM
========================================================= */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px; /* replaces padding hacks */
}
.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
@media (min-width: 768px) {
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-6  { grid-column: span 6; }
  .col-md-8  { grid-column: span 8; }
  .col-md-12 { grid-column: span 12; }

  .offset-md-1 { grid-column-start: 2; }
  .offset-md-2 { grid-column-start: 3; }
}
@media (max-width: 768px) {
  .col-md-3  { grid-column: span 12; }
  .col-md-4  { grid-column: span 12; }
  .col-md-6  { grid-column: span 12; }
  .col-md-8  { grid-column: span 12; }
  .col-md-12 { grid-column: span 12; }

  .offset-md-1 { grid-column-start: 1; }
  .offset-md-2 { grid-column-start: 1; }
}

/* =========================================================
   SPACING UTILITIES
========================================================= */
.p-3{padding:1.5rem;}
.p-5{padding: 3rem !important;}
.pt-0{padding-top: 0px!important;}

.py-2{padding:.5rem 0;}
.py-3{padding:1rem 0;}
.py-5{padding:3rem 0!important;}

.pt-3{padding-top:1rem;}
.pt-5{padding-top:3rem;}

.mt-2{margin-top:.5rem;}
.mt-3{margin-top:1rem;}
.mt-5{margin-top:3rem;}
.mb-2{margin-bottom:.5rem;}
.mb-3{margin-bottom:1rem;}
.mr-1{margin-right:1rem;}
.mt-0{margin-top: 0px!important;}
.m-auto{margin-left:auto!important;margin-right:auto!important;}

@media(min-width:768px){
  .px-md-5{padding-left:3rem;padding-right:3rem;}
}
@media(max-width:768px){
  .p-5{padding: 2rem 1rem !important;}
}
/* =========================================================
   TEXT UTILITIES
========================================================= */
.text-white{color:var(--white)!important;}
.text-center{text-align:center;}
.text-danger{color:#dc3545;}
.internal_link{color: inherit;font-weight: 600;text-decoration: underline!important;}
@media(max-width:768px){
.text-center{text-align:left;}
}

.shadow{box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175);}
.rounded{border-radius:.375rem;}
/* HEADER & NAVIGATION */
        header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}
.logo-icon {
  font-size: 2rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  font-size: 0.95rem;
}
.nav-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}
.mobile-menu span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}
/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 2rem;

}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.search-container {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
}
.search-container input {
  flex: 1;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  outline: none;
}
.search-container a, .search-container button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none;
}
.search-container a:hover {
  background: var(--primary-dark);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: white;
  color: var(--primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-secondary:hover {
  background: white;
  color: var(--primary);
}
/* DISCLAIMER BANNER */
        .disclaimer-banner {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  color: var(--dark);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
}
.disclaimer-banner strong {
  color: var(--danger);
}
/* FEATURES SECTION */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.tool-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.tool-link {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: gap 0.3s;
}
/* BLOG SECTION */
        .blog {
  padding: 4rem 2rem;
  background: white;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.blog-image img{
  width: 100%;
}
.blog-content {
  padding: 1.5rem;
}
.blog-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.read-more:hover {
  text-decoration: underline;
}
@keyframes fadeIn {
  from {
  opacity: 0;
}
to {
  opacity: 1;
}
}
/* TOOL PAGES */
        .tool-page {
  background: var(--light);
}
.tool-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.tool-header h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tool-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
        .form-group select,
        .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.result-box {
  background: #d1fae5;
  border-left: 4px solid var(--success);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  display: none;
}
.result-box.show {
  display: block;
}
.warning-box {
  background: #fee2e2;
  border-left: 4px solid var(--danger);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  display: none;
}
.warning-box.show {
  display: block;
}
.info-box {
  background: #dbeafe;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
/* FOOTER */
        footer {
  background: var(--dark);
  color: white;
  padding: 1rem 2rem;
  margin-top: 4rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
footer h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
footer ul {
  list-style: none;
  margin-left: -1.4rem!important;
}
footer li a, footer li {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}
footer li a:hover, footer li:hover {
  color: white;
}
.social_links{
  display: flex;
  gap: 10px;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
.nav-links {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: #111;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  /* hidden by default */
  display: none;
}
.nav-links.active {
  display: flex;
}
.mobile-menu {
  display: flex;
}
.hero h1 {
  font-size: 2rem;
}
.hero p {
  font-size: 1rem;
}
.search-container {
  flex-direction: column;
}
.section-title {
  font-size: 2rem;
}
.hero-buttons {
  flex-direction: column;
}
.hero-buttons .btn {
  width: 100%;
}
.mobile-menu {
  display: flex;
}
.page {
  padding: 2rem 1rem;
}
.page h1 {
  font-size: 1.8rem;
}
.tools-grid, .blog-grid {
  grid-template-columns: 1fr;
}
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow-y: auto;
}
.modal.active {
  display: block;
}
.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}
.close-modal {
  color: var(--text-light);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal:hover {
  color: var(--dark);
}
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
table th, table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  /* width: 100%; */
}
table th {
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
}
/* =========================================================
   ACCORDION – FULL STYLES
========================================================= */
.accordion {
  width: 100%;
}
/* Accordion Item */
.accordion-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark);
  /* dark green */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* Accordion Button */
.accordion-button {
  width: 100%;
  background: var(--dark);
  color: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition: background 0.3s ease;
}
.accordion-button:hover {
  background: var(--light);
  color: var(--dark);
}
/* Question text */
.accordion-button p {
  margin: 0!important;
  font-weight: inherit;
}
/* Arrow */
.accordion-button::after {
  content: "▼";
  font-size: 14px;
  transition: transform 0.3s ease;
}
/* Rotate arrow when active */
.accordion-button.active::after {
  transform: rotate(180deg);
}
/* Accordion Content */
.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  color: #333;
  transition: max-height 0.35s ease;
}
/* Open state */
.accordion-collapse.active {
  max-height: 500px;
  /* enough for content */
}
/* Body */
.accordion-body {
  padding: 18px 20px;
  line-height: 1.6;
  font-size: 15px;
}
/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */
@media (max-width: 768px) {
  .accordion-button {
  font-size: 14px;
  padding: 14px 16px;
}
.accordion-body {
  font-size: 14px;
  padding: 14px 16px;
}
}

.med-list-container{
  height: 700px;
  overflow: auto;
}