/* ============================================================
   ADARSH NASHA MUKTI KENDRA — styles.css
   Medical De-Addiction Centre Website
   REPLACE COLOURS: Primary #1a5276 (deep blue), Accent #e74c3c (red)
============================================================ */

/* ── CSS Variables ── */
:root {
  --primary:       #1a5276;
  --primary-light: #2471a3;
  --primary-dark:  #154360;
  --accent:        #e74c3c;
  --accent-light:  #f1948a;
  --green:         #1d8348;
  --gold:          #d4ac0d;
  --text-dark:     #1c2833;
  --text-muted:    #717d7e;
  --bg-light:      #f0f4f8;
  --bg-white:      #ffffff;
  --shadow:        0 4px 24px rgba(26,82,118,0.12);
  --radius:        12px;
  --font-head:     'Merriweather', Georgia, serif;
  --font-body:     'Source Sans 3', sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }

a { color: inherit; text-decoration: none; transition: all .3s ease; }

img { max-width: 100%; height: auto; }

.section-pad { padding: 80px 0; }

/* ── NAVBAR ── */
#mainNav {
  background: var(--primary-dark);
  padding: 12px 0;
  transition: all .4s ease;
  border-bottom: 3px solid var(--accent);
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(21, 67, 96, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  padding: 8px 0;
}

.brand-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--accent-light);
  font-weight: 400;
  letter-spacing: .5px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .4px;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all .3s;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.btn-cta {
  background: var(--accent);
  color: white !important;
  border: none;
  padding: 8px 18px !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: .88rem;
  transition: all .3s;
}

.btn-cta:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231,76,60,.4);
}

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2471a3 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(231,76,60,.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero-title .highlight {
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 30px;
}

.stat-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-light);
}

.stat-num1 {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.btn-primary-custom {
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 20px rgba(231,76,60,.4);
  transition: all .3s;
}

.btn-primary-custom:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(231,76,60,.5);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .3s;
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
  color: white;
  transform: translateY(-3px);
}

.hero-card {
  background: white;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
}

.hero-card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 20px;
}

.hero-card h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.hero-card p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-emergency {
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  width: 100%;
  border: none;
  transition: all .3s;
  animation: pulse 2s infinite;
}

.btn-emergency:hover {
  background: #c0392b;
  color: white;
  transform: translateY(-2px);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,.4); }
  50% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── TICKER ── */
.ticker-strip {
  background: var(--primary-dark);
  border-top: 3px solid var(--accent);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.ticker-label {
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content span {
  display: inline-block;
  animation: ticker 40s linear infinite;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  padding-left: 100%;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── SECTION LABELS / TITLES ── */
.section-label {
  display: inline-block;
  background: rgba(26,82,118,.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(26,82,118,.2);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title em {
  color: var(--accent);
  font-style: normal;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── ABOUT ── */
.about-img-wrap {
  position: relative;
  display: inline-block;
}

.about-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 4px solid var(--bg-white);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(231,76,60,.4);
}

.about-text {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.feature-pill {
  background: rgba(26,82,118,.06);
  border: 1px solid rgba(26,82,118,.15);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-pill i { color: var(--green); }

/* ── SERVICES ── */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(26,82,118,.1);
  transition: all .35s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 18px;
}

.service-card h5 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── HARMS ── */
.bg-danger-soft {
  background: linear-gradient(135deg, #fef9f9 0%, #fdecea 100%);
}

.harm-heading {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.harm-list {
  list-style: none;
  padding: 0;
}

.harm-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  font-size: .97rem;
  color: var(--text-dark);
}

.harm-list li i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── RIGHTS ── */
.rights-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,82,118,.12);
  box-shadow: var(--shadow);
}

.rights-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(26,82,118,.07);
}

.rights-item:last-child { border-bottom: none; }

.rights-num {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  flex-shrink: 0;
}

.rights-num.danger { background: var(--accent); }

.rights-item p {
  margin: 0;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 4px;
}

.rights-warning { background: rgba(231,76,60,.05); }

/* ── DIET TABLE ── */
.diet-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}

.diet-table thead tr {
  background: var(--primary-dark);
  color: white;
}

.diet-table thead th {
  font-family: var(--font-head);
  font-size: .9rem;
  padding: 14px 16px;
  border: none;
  white-space: nowrap;
}

.diet-table tbody tr {
  transition: background .2s;
}

.diet-table tbody tr:nth-child(even) { background: rgba(26,82,118,.04); }
.diet-table tbody tr:hover { background: rgba(26,82,118,.09); }

.diet-table td {
  padding: 13px 16px;
  font-size: .92rem;
  vertical-align: middle;
  border-color: rgba(26,82,118,.08);
}

.day-cell {
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-head);
  background: rgba(26,82,118,.06) !important;
}

.diet-notes p {
  font-size: .9rem;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

/* ── TESTIMONIALS ── */
.testimonial-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.testimonial-section .section-label {
  background: rgba(255,255,255,.15);
  color: white;
  border-color: rgba(255,255,255,.3);
}

.testimonial-section .section-title { color: white; }

.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: all .35s;
}

.testimonial-card.featured {
  background: white;
  border-color: white;
  transform: scale(1.03);
}

.testimonial-card.featured p,
.testimonial-card.featured .testi-author strong { color: var(--primary-dark); }
.testimonial-card.featured .testi-author span { color: var(--text-muted); }

.testi-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar i {
  font-size: 2.4rem;
  color: var(--accent-light);
}

.testimonial-card.featured .testi-avatar i { color: var(--primary); }

.testi-author strong {
  display: block;
  font-size: .95rem;
  color: white;
}

.testi-author span {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}

/* ── GALLERY ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,82,118,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s;
  font-size: 2rem;
  color: white;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── CONTACT ── */
.contact-section { background: var(--bg-light); }

.contact-info-card {
  background: var(--primary-dark);
  color: white;
  border-radius: var(--radius);
  padding: 36px 30px;
  height: 100%;
}

.contact-info-card h5 {
  color: white;
  font-size: 1.2rem;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.contact-info-item p {
  color: rgba(255,255,255,.85);
  font-size: .97rem;
  margin: 0;
}

.contact-info-item a {
  color: rgba(255,255,255,.85);
}
.contact-info-item a:hover { color: white; }

.contact-form-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}

.contact-form-card h5 {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary-dark);
  letter-spacing: .3px;
}

.custom-input {
  border: 1.5px solid rgba(26,82,118,.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .95rem;
  transition: all .3s;
  background: var(--bg-light);
}

.custom-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(36,113,163,.15);
  background: white;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all .3s;
}

.btn-submit:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,82,118,.35);
  color: white;
}

/* ── MAP ── */
.map-section { line-height: 0; }
.map-section iframe { display: block; filter: grayscale(20%); }

/* ── FOOTER ── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-badge {
  display: inline-block;
  background: rgba(231,76,60,.2);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.footer-heading {
  color: white;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  transition: all .3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--accent-light);
}

.footer-links a:hover { color: white; padding-left: 4px; }

.addiction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.addiction-tags span {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .8rem;
}

.footer-contact a {
  color: var(--accent-light);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.footer-contact a:hover { color: white; }

.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 40px 0 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: .87rem;
  color: rgba(255,255,255,.45);
}

/* ── FLOATING BUTTONS ── */
.floating-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: all .3s;
}

.float-btn:hover {
  transform: scale(1.12);
  color: white;
}

.whatsapp-btn { background: #25d366; }
.whatsapp-btn:hover { background: #1ebe5d; box-shadow: 0 6px 20px rgba(37,211,102,.5); }

.call-btn { background: var(--accent); }
.call-btn:hover { background: #c0392b; box-shadow: 0 6px 20px rgba(231,76,60,.5); }

/* ── AOS overrides ── */
[data-aos] { will-change: transform, opacity; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .navbar-collapse { background: var(--primary-dark); padding: 16px; border-radius: 12px; margin-top: 10px; }
  .hero-stats .col-4 { padding: 0 4px; }
  .stat-num { font-size: 1.4rem; }
  .stat-num1 { font-size: 1.4rem; }
  .about-badge { left: 10px; }
  .testimonial-card.featured { transform: none; }
}

@media (max-width: 575px) {
  .section-pad { padding: 50px 0; }
  .hero-title { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary-custom, .btn-outline-custom { text-align: center; }
  .about-badge { position: static; margin-top: 12px; display: inline-flex; }
  .contact-form-card, .contact-info-card { padding: 24px 18px; }
  .rights-item { padding: 14px 16px; }
}




/* ===== NAVBAR FIX FOR MANY ITEMS ===== */

#mainNav .navbar-nav {
  flex-wrap: nowrap;              /* Prevent wrapping */
  overflow-x: auto;               /* Allow horizontal scroll if needed */
  scrollbar-width: none;          /* Firefox */
}

#mainNav .navbar-nav::-webkit-scrollbar {
  display: none;                  /* Chrome */
}

#mainNav .nav-link {
  white-space: nowrap;            /* Keep text in single line */
  font-size: 14px;                /* Slightly smaller */
  padding: 8px 10px;              /* Reduce spacing */
}

#mainNav .btn-cta {
  padding: 6px 12px;
  font-size: 14px;
}