:root {
  --primary: #0a7c6a;
  --primary-dark: #065c4e;
  --primary-light: #e6f4f1;
  --accent: #f0a500;
  --accent-light: #fff8e6;
  --navy: #0d2137;
  --text: #1a2b3c;
  --text-muted: #5a7080;
  --border: #dde6eb;
  --surface: #ffffff;
  --bg: #f4f7f9;
  --shadow-sm: 0 1px 4px rgba(10,124,106,0.08);
  --shadow-md: 0 4px 20px rgba(10,124,106,0.12);
  --shadow-lg: 0 8px 40px rgba(10,124,106,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-main: 'Cairo', 'Tajawal', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  direction: rtl;
  padding-top: 68px;
}

@media (max-width: 750px) { body { padding-top: 54px; padding-bottom: 64px; } }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.section-title i {
  color: var(--primary);
  margin-left: 0.4rem;
}

/* ========= NAVBAR ========= */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1500;
  background: var(--navy);
  height: 68px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
  transition: transform 0.28s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
}

.nav-menu a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  display: block;
}

.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-menu .btn-book {
  background: var(--primary);
  color: #fff !important;
  border-radius: 30px;
  padding: 7px 18px !important;
  font-weight: 700;
}

.nav-menu .btn-book:hover {
  background: var(--primary-dark) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 750px) {
  .navbar { height: 54px; }
  .navbar-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 54px; right: 0;
    background: var(--navy);
    width: 75vw; max-width: 280px;
    height: calc(100vh - 54px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1600;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 13px 24px; border-radius: 0; font-size: 1.02rem; }
  .nav-menu .btn-book { margin: 0.5rem 1rem; border-radius: 30px; }
}

/* ========= MOBILE BOTTOM APP-STYLE NAV ========= */
.bottom-app-nav {
  display: none;
}

@media (max-width: 750px) {
  .bottom-app-nav {
    display: flex;
    position: fixed;
    bottom: 0; right: 0; left: 0;
    z-index: 1400;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(13,33,55,0.08);
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-app-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
  }

  .bottom-app-nav a i { font-size: 1.15rem; }

  .bottom-app-nav a.active,
  .bottom-app-nav a:active {
    color: var(--primary);
  }
}

/* ========= ANNOUNCEMENT BAR ========= */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 0;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  position: relative;
}

.announcement-text {
  white-space: nowrap;
  animation: marquee-rtl 16s linear infinite;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0 2rem;
  position: absolute;
}

@keyframes marquee-rtl {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========= HERO / HEADER ========= */
.clinic-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a4033 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.clinic-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.clinic-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(240,165,0,0.08);
  border-radius: 50%;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Cpath d='M30 14v32M14 30h32'/%3E%3Ccircle cx='90' cy='90' r='13'/%3E%3Cpath d='M90 80v20M80 90h20' stroke-width='1.6'/%3E%3Cpath d='M55 95c0-9 7-13 7-21a7 7 0 0 0-14 0c0 8 7 12 7 21z' transform='translate(0,-3) scale(0.9)'/%3E%3Cpath d='M8 70a10 10 0 0 1 20 0v8a10 10 0 0 1-20 0z' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
}

.clinic-hero > *:not(.hero-pattern) { position: relative; z-index: 1; }


.clinic-logo {
  width: 90px; height: 90px;
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid rgba(255,255,255,0.2);
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.08);
}

.clinic-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.clinic-hero p.tagline {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.22);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.hero-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ========= AD CAROUSEL ========= */
.ad-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.ad-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.ad-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.ad-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (min-width: 600px) {
  .ad-carousel-slide img { height: 220px; }
}

.ad-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.ad-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ad-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ========= BOOKING SECTION ========= */
.booking-card {
  background: linear-gradient(135deg, #e8f8f5 0%, #d5f0ea 100%);
  border: 1.5px solid #aadace;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.booking-card .section-title { color: var(--primary-dark); }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.booking-grid .full { grid-column: 1 / -1; }

.booking-grid input,
.booking-grid textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #aacec8;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  direction: rtl;
}

.booking-grid input:focus,
.booking-grid textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,124,106,0.12);
}

.booking-grid textarea { min-height: 72px; resize: vertical; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 11px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.85rem;
}

.btn-whatsapp:hover { background: #1aad52; transform: translateY(-1px); }
.btn-whatsapp i { font-size: 1.1rem; }

@media (max-width: 540px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-grid .full { grid-column: 1; }
}

/* ========= OFFERS ========= */
.offers-card {
  background: linear-gradient(135deg, #fff8e6 0%, #fef0cc 100%);
  border: 1.5px solid #f5d78a;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.offers-card .section-title { color: #c07700; }
.offers-card .section-label { color: #c07700; background: #fff3cc; }

.offers-content {
  font-size: 1.05rem;
  color: #7a4e00;
  line-height: 1.9;
}

/* ========= INSULIN CALCULATOR ========= */
.calc-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  margin-bottom: 1.75rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.calc-inputs { display: flex; flex-direction: column; gap: 1rem; margin: 1.2rem 0; }

.calc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.calc-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  direction: ltr;
  text-align: right;
}

.calc-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,124,106,0.1);
}

.btn-calc {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-calc:hover { background: var(--primary-dark); }

.calc-result {
  margin-top: 1rem;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}

.calc-result.error { background: #fdecea; color: #c62828; }

/* ========= ABOUT / DOCTOR ========= */
.doctor-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.doctor-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.doctor-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.doctor-title { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 480px) {
  .doctor-card { flex-direction: column; text-align: center; }
}

/* ========= SERVICES ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.service-item i { color: var(--primary); font-size: 1rem; }

/* ========= DYNAMIC SECTIONS ========= */
.dyn-section {
  margin-bottom: 1.75rem;
}

.dyn-section-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.1rem;
}

.dyn-section-images img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ========= FAQ ========= */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.9rem; }

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: var(--primary); }

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  background: var(--surface);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-answer {
  padding: 12px 18px 16px;
  background: var(--primary-light);
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ========= CONTACT SECTION ========= */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.contact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  min-width: 90px;
}

.contact-chip i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-dark);
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-address i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

.map-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 14px;
  background: var(--surface);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.map-trigger:hover { background: var(--primary-light); }

/* ========= FOOTER MAIN ========= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.91rem;
  margin-top: 2rem;
}

.site-footer a { color: #25d366; font-weight: 700; }
.site-footer .copy { margin-top: 6px; font-size: 0.83rem; color: rgba(255,255,255,0.45); }

/* ========= STATS FOOTER ========= */
.stats-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  font-family: var(--font-main);
}

.stats-visits-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.stats-visits-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  direction: ltr;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.stars-section-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
}

.star-row {
  direction: ltr;
  display: inline-block;
  font-size: 2rem;
  cursor: pointer;
}

.star-row .star { color: #ddd; transition: color 0.15s, transform 0.15s; }
.star-row .star.lit { color: #ffd600; }
.star-row .star:hover, .star-row .star.hovered { color: #ffc107; transform: scale(1.18); }

.rating-thanks {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.6rem;
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.star-burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 3000;
  font-size: 1.3rem;
  color: #ffd600;
  animation: star-burst-fly 0.95s ease-out forwards;
}

@keyframes star-burst-fly {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--burst-x), var(--burst-y)) scale(0.3) rotate(var(--burst-rot));
    opacity: 0;
  }
}

/* ========= POSTS GRID (app-style cards) ========= */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  text-decoration: none;
}

.post-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  opacity: 0.5;
}

.post-card-body {
  padding: 10px 12px 12px;
}

.post-card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 420px) {
  .posts-grid { gap: 0.6rem; }
  .post-card-body { padding: 8px 10px 10px; }
}

/* ========= POST DETAIL PAGE ========= */
.post-detail-hero img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.post-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.post-detail-gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.post-detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.post-detail-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.back-to-posts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
  text-decoration: none;
}

.back-to-posts:hover { text-decoration: underline; }

/* ========= LOGIN PAGE ========= */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.login-card h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.login-card .sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1rem; text-align: right; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,124,106,0.12);
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-login:hover { background: var(--primary-dark); }

.login-error {
  background: #fdecea;
  color: #c62828;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 1rem;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: right;
}

.btn-back {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-back:hover { color: var(--primary); }

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { justify-content: flex-start; }
}
