/* =====================================================
   Jolly's Dental Care - Custom Stylesheet
   Mobile-first | Bootstrap 5 companion
   ===================================================== */

/* ── CSS Variables ── */
:root {
  --primary: #0e9aa7;
  --primary-light: #5cc6d0;
  --primary-dark: #087f8c;
  --secondary: #1b2e4b;
  --accent: #f26522;
  --accent-light: #ff8a50;
  --gold: #f5a623;
  --light-bg: #f5f7fa;
  --lighter-bg: #eef2f7;
  --white: #ffffff;
  --text: #2d3748;
  --text-light: #5a6a7e;
  --border: #e2e8f0;
  --whatsapp: #25D366;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* ── Global Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { word-wrap: break-word; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) { body { font-size: 1.05rem; } }
@media (min-width: 1200px) { body { font-size: 1.1rem; } }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); color: var(--secondary); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
@media (min-width: 768px) { h1 { font-size: 2.75rem; } h2 { font-size: 2.25rem; } h3 { font-size: 1.625rem; } }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
p { color: var(--text-light); margin-bottom: 1.125rem; font-size: inherit; }

.section-padding { padding: 70px 0; }
@media (min-width: 768px) { .section-padding { padding: 100px 0; } }

.section-header { margin-bottom: 1rem; }
.section-header .section-subtitle { display: inline-block; }
.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 45px;
}
.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 35px;
  height: 2px;
  background: var(--primary);
}
.text-center .section-subtitle { padding-left: 0; }
.text-center .section-subtitle::before { display: none; }

.section-title {
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.section-desc { max-width: 620px; color: var(--text-light); font-size: 1.05rem; }

.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-light { background-color: var(--light-bg) !important; }

/* ── Navigation / Header ── */
.navbar {
  background-color: var(--primary) !important;
  padding: 0.875rem 0;
  transition: all 0.4s ease;
  border: none;
  box-shadow: none;
}
.navbar.scrolled {
  background-color: var(--secondary) !important;
  padding: 0.625rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.navbar-brand img { max-height: 60px; width: auto; }
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1rem !important;
  position: relative;
  letter-spacing: 0.2px;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.4rem;
  height: 2px;
  background-color: var(--white);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--white) !important; }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-appointment {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  border: none;
  padding: 0.55rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem !important;
  letter-spacing: 0.3px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-appointment:hover {
  background-color: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 101, 34, 0.35);
}

@media (min-width: 992px) {
  .navbar { padding: 0.75rem 0; }
  .navbar .nav-link { padding: 0.9rem 1.1rem !important; font-size: 0.95rem; }
}
@media (max-width: 991px) {
  .navbar-collapse { background: var(--secondary); padding: 1rem; border-radius: var(--radius-sm); margin-top: 0.5rem; }
  .btn-appointment { margin-top: 0.5rem; display: inline-block; text-align: center; }
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: url("../images/hero-doctors.webp") center center / cover no-repeat;
  padding: 120px 0 60px;
}
@media (min-width: 992px) { .hero-section { min-height: 85vh; padding: 110px 0 80px; } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(14, 154, 167, 0.85) 0%, rgba(27, 46, 75, 0.92) 70%);
}
.hero-section .container { position: relative; z-index: 2; }
.min-vh-hero { min-height: 65vh; display: flex; align-items: center; }
@media (min-width: 992px) { .min-vh-hero { min-height: 80vh; } }

.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
@media (min-width: 768px) { .hero-title { font-size: 2.75rem; } }
@media (min-width: 1200px) { .hero-title { font-size: 3.25rem; } }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.7;
}
.hero-buttons .btn {
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.hero-buttons .btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}
.hero-buttons .btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(242, 101, 34, 0.4);
}
.hero-buttons .btn-outline-light {
  border-width: 2px;
  backdrop-filter: blur(4px);
}
.hero-buttons .btn-outline-light:hover {
  background-color: var(--white);
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item { text-align: left; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--white); display: inline; }
.stat-suffix { font-size: 1.75rem; font-weight: 800; color: var(--gold); }
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.25rem;
}

/* ── About Section ── */
.about-image-wrapper { position: relative; }
.about-image-wrapper img { border-radius: var(--radius); }
.experience-badge {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.exp-number { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.exp-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }

@media (max-width: 767.98px) {
  .about-image-wrapper { margin-bottom: 1rem; }
  .about-image-wrapper .experience-badge {
    position: static;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 1rem auto 0;
    padding: 0.75rem 1.25rem;
    border: none;
    box-shadow: var(--shadow);
  }
  .exp-number { font-size: 1.75rem; }
  .exp-text { font-size: 0.65rem; }
}

.about-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 3px solid var(--primary);
}
.about-features .feature-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
  background: var(--white);
}
.about-features .feature-item i { font-size: 1.35rem; color: var(--primary); }
.about-features .feature-item span { font-weight: 600; color: var(--secondary); font-size: 0.95rem; }

/* ── Doctors Section ── */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}
.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}
.doctor-image {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
}
.doctor-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
@media (min-width: 768px) { .doctor-image img { height: 420px; } }
.doctor-card:hover .doctor-image img { transform: scale(1.04); }

.doctor-social {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.doctor-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.doctor-social a:hover { background: var(--secondary); color: var(--white); }
.doctor-card:hover .doctor-social { opacity: 1; transform: translateY(0); }

.doctor-info { padding: 1.75rem 1.5rem; }
.doctor-info h3 { color: var(--secondary); font-weight: 700; margin-bottom: 0.35rem; font-size: 1.35rem; }
.doctor-degree {
  display: inline-block;
  background: var(--lighter-bg);
  color: var(--primary-dark);
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.doctor-exp { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0.65rem; }
.doctor-exp i { color: var(--gold); }
.doctor-rating { margin-bottom: 0.75rem; }
.doctor-rating i { color: var(--gold); font-size: 0.9rem; }
.doctor-rating span { color: var(--text-light); font-size: 0.85rem; margin-left: 0.35rem; }
.doctor-speciality {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Services Section ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(14, 154, 167, 0.1), rgba(92, 198, 208, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.service-card h3 { font-size: 1.125rem; color: var(--secondary); margin-bottom: 0.75rem; font-weight: 700; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-light); }

/* ── Why Choose Us ── */
.bg-primary-custom {
  background: linear-gradient(135deg, var(--secondary) 0%, #243b5e 50%, var(--primary-dark) 100%) !important;
}
.why-card {
  padding: 2rem 1.25rem;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  text-align: center;
}
.why-card:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-5px); }
.why-card h4 { color: var(--white); font-weight: 600; margin-bottom: 0.75rem; font-size: 1.125rem; }
.why-card p { color: rgba(255, 255, 255, 0.75); margin-bottom: 0; font-size: 0.95rem; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 46, 75, 0.85) 0%, rgba(27, 46, 75, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-caption { text-align: center; transform: translateY(10px); transition: var(--transition); }
.gallery-title {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.3px;
}
.gallery-overlay i { color: var(--primary-light); font-size: 1.1rem; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-modal-title {
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border);
}
.testimonial-quote { font-size: 3rem; color: var(--primary); opacity: 0.2; line-height: 1; margin-bottom: 0.5rem; }
.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-name { color: var(--secondary); font-weight: 700; margin-bottom: 0.15rem; font-size: 1.05rem; }
.testimonial-treatment { color: var(--text-light); font-size: 0.875rem; }
.testimonial-stars i { color: var(--gold); font-size: 1rem; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 1.35rem;
  background-size: 50%;
}
.carousel-indicators { position: relative; margin-top: 1.5rem; }
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.3;
  border: none;
}
.carousel-indicators button.active { opacity: 1; width: 28px; border-radius: 5px; }

/* ── Blog Cards ── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.blog-card-image { overflow: hidden; }
.blog-card-image img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; }
.blog-card-body .blog-date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.6rem; display: block; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card-body h3 a { color: var(--secondary); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body h4 { font-size: 1rem; line-height: 1.4; }
.blog-card-body h4 a { color: var(--secondary); }
.blog-card-body h4 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 0.9rem; color: var(--text-light); }
.read-more {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover { color: var(--primary-dark); gap: 0.6rem; }

/* ── Contact Section ── */
.contact-form-card,
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contact-form-card h3,
.contact-info-card h3 { color: var(--secondary); font-weight: 700; font-size: 1.4rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
  align-items: flex-start;
}
.contact-info-item i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 0.25rem;
  min-width: 28px;
  text-align: center;
  background: rgba(14, 154, 167, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item strong { display: block; color: var(--secondary); font-weight: 600; font-size: 0.95rem; }
.contact-info-item p { margin-bottom: 0; font-size: 0.95rem; }
.contact-info-item a { color: var(--primary); }
.contact-info-item a:hover { color: var(--primary-dark); }

.map-container { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-container iframe { width: 100%; min-height: 250px; border: 0; }
.map-full-width { width: 100%; line-height: 0; }
.map-full-width iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ── FAQ ── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm) !important; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--secondary); font-size: 1.05rem; padding: 1.1rem 1.25rem; }
.accordion-button:not(.collapsed) { background-color: rgba(14, 154, 167, 0.06); color: var(--secondary); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(14, 154, 167, 0.15); }
.accordion-button::after { filter: none; }

/* ── Footer ── */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 0;
}
.footer-logo { max-height: 85px; width: auto; margin-bottom: 1.25rem; }
.footer-title {
  color: var(--white) !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-links { list-style: none; padding-left: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { display: inline-block; font-size: 0.95rem; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; }
.footer-contact li i { color: var(--primary-light); margin-top: 0.2rem; min-width: 18px; }
.footer-contact li a { color: rgba(255, 255, 255, 0.8); }
.footer-contact li a:hover { color: var(--primary-light); padding-left: 0; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.footer-divider { border-color: rgba(255, 255, 255, 0.08); margin: 2.5rem 0 1.25rem; }
@media (max-width: 767.98px) { .footer-divider { display: none; } }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-bottom: 0; }
.footer-contact li { word-break: break-word; }
.about-image-wrapper { overflow: hidden; }

/* Mobile fine-tuning */
@media (max-width: 767.98px) {
  .footer { padding-top: 50px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 86px; }
}

/* ── Page Header (Blog, etc.) ── */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 130px 0 60px;
}
.page-header h1 { color: var(--white); font-weight: 700; font-size: 2rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 2.5rem; } }
.page-header p { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.page-header .breadcrumb { margin-bottom: 0.5rem; }
.page-header .breadcrumb-item a { color: var(--primary-light); }
.page-header .breadcrumb-item.active { color: rgba(255, 255, 255, 0.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }
.blog-meta span { color: rgba(255, 255, 255, 0.8); margin-right: 1.5rem; font-size: 0.9rem; }

/* ── Blog Content ── */
.blog-content { line-height: 1.9; }
.blog-content h2 { color: var(--secondary); font-weight: 700; margin: 2rem 0 1rem; font-size: 1.5rem; }
.blog-content h3 { color: var(--secondary); font-weight: 600; margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.blog-content p { color: var(--text); margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; }
.blog-content li { margin-bottom: 0.5rem; color: var(--text); }
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.sidebar-widget h4 { color: var(--secondary); font-weight: 700; margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-widget p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.blog-share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ── Pagination ── */
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  padding: 0.6rem 1rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  margin: 0 0.2rem;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.pagination .page-link:hover { background-color: var(--light-bg); color: var(--primary-dark); }
.pagination .page-link:focus { box-shadow: 0 0 0 0.2rem rgba(14, 154, 167, 0.2); }

/* ── Buttons ── */
.btn-primary { background-color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-primary:focus { box-shadow: 0 0 0 0.2rem rgba(14, 154, 167, 0.3); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover {
  background-color: #1ebd55;
  color: var(--white);
  transform: scale(1.1);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--primary); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.15); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}
.fadeInUp { animation: fadeInUp 0.8s ease-out both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

.animate-on-scroll { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Form styling ── */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 154, 167, 0.12);
}
.form-label { color: var(--secondary); font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
