/* ==========================================================================
   Dr Accounting — main.css
   Purple + gold academy design system shared by every page (navbar, footer,
   buttons, sections, cards). This is the ONLY custom stylesheet for the site
   besides vendor Bootstrap; there is no separate "old theme" anymore.
   ========================================================================== */

:root {
  --brand-primary: #2d1740;
  --brand-primary-dark: #4b0082;
  --brand-primary-light: #9b59b6;
  --brand-primary-soft: #f3e8ff;
  --brand-accent: #f6c387;
  --brand-accent-dark: #e6be00;
  --brand-accent-light: #fff4b3;
  --brand-accent-2: #ffc107;

  --brand-ink: #1a1a2e;
  --brand-body: #6c757d;
  --brand-bg-soft: #f8f9fa;
  --brand-border: #eaeaea;
  --brand-white: #ffffff;

  --brand-radius-sm: 12px;
  --brand-radius: 20px;
  --brand-radius-lg: 20px;

  --brand-shadow: 0 20px 50px -20px rgba(106, 13, 173, 0.25);
  --brand-shadow-sm: 0 10px 30px -12px rgba(106, 13, 173, 0.15);

  --brand-font: "Cairo", "Segoe UI", sans-serif;
}

body {
  font-family: var(--brand-font);
  color: var(--brand-ink);
  background: var(--brand-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font);
  font-weight: 800;
  color: var(--brand-ink);
}
p { color: var(--brand-body); }
a { text-decoration: none; }
.text-accent { color: var(--brand-primary); }
.bg-soft { background: var(--brand-bg-soft); }

@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,.6); } 50% { box-shadow: 0 0 0 10px rgba(40,167,69,0); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: .8rem 1.9rem;
  border-radius: 50px;
  transition: all .25s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(106,13,173,.4); color: #fff; }
.btn-accent {
  background: var(--brand-accent);
  border: none;
  color: var(--brand-primary-dark);
  font-weight: 800;
  padding: .8rem 1.9rem;
  border-radius: 50px;
  transition: all .25s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-accent:hover { background: var(--brand-accent-dark); transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(255,215,0,.5); color: var(--brand-primary-dark); }
.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 700;
  padding: calc(.8rem - 2px) 1.85rem;
  border-radius: 50px;
  transition: all .25s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; transform: translateY(-3px); }

/* Navbar */
.site-navbar {
  background: var(--brand-white);
  padding: .9rem 0;
  box-shadow: 0 2px 20px rgba(106,13,173,.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: padding .25s ease, box-shadow .25s ease;
}
.site-navbar.scrolled { padding: .5rem 0; box-shadow: 0 4px 26px rgba(106,13,173,.15); }
.site-navbar .navbar-brand { display: flex; align-items: center; padding: 0; }
.site-navbar .navbar-brand img { height: 62px; width: auto; transition: height .25s ease; }
.site-navbar.scrolled .navbar-brand img { height: 50px; }
.site-navbar .nav-link { color: var(--brand-ink); font-weight: 600; padding: .55rem 1.1rem !important; border-radius: 8px; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: var(--brand-primary); background: var(--brand-primary-soft); }
.lang-switch { border: 1px solid var(--brand-border); border-radius: 50px; padding: .4rem .9rem; font-weight: 600; color: var(--brand-primary); font-size: .9rem; }
.lang-switch:hover { background: var(--brand-bg-soft); }

/* Breadcrumb header (used by inner pages: about/course/blog/contact/...) */
.page-breadcrumb {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  padding: 3.2rem 0;
  text-align: center;
}
.page-breadcrumb h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
.page-breadcrumb .crumbs { color: rgba(255,255,255,.75); font-size: .95rem; }
.page-breadcrumb .crumbs a { color: rgba(255,255,255,.9); }
.page-breadcrumb .crumbs a:hover { color: var(--brand-accent); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(135deg, #f3e8ff 0%, #fff8e1 55%, #f3e8ff 100%);
}
.hero .hero-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero .shape-1 { top: -110px; inset-inline-end: -110px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(106,13,173,.12) 0%, transparent 70%); }
.hero .shape-2 { bottom: -70px; inset-inline-start: -70px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,215,0,.18) 0%, transparent 70%); }
.hero .hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 2px solid var(--brand-accent);
  color: var(--brand-primary-dark); padding: .5rem 1.2rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem;
  animation: fadeup .7s ease both;
}
.hero-badge .live-dot { width: 9px; height: 9px; background: #28a745; border-radius: 50%; animation: livepulse 1.6s ease-in-out infinite; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.3; margin-bottom: 1.1rem; animation: fadeup .7s ease .05s both; }
.hero h1 .hl { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .ul { position: relative; display: inline-block; }
.hero h1 .ul::after { content: ""; position: absolute; bottom: 6px; inset-inline-start: 0; width: 100%; height: 10px; background: rgba(255,215,0,.5); border-radius: 4px; z-index: -1; }
.hero p.lead { font-size: 1.12rem; color: var(--brand-body); margin-bottom: 1.8rem; animation: fadeup .7s ease .1s both; }
.hero .hero-btns { animation: fadeup .7s ease .15s both; }

/* Hero image carousel */
.hero-image-wrap { position: relative; animation: fadeup .7s ease .2s both; }
.hero-carousel { border-radius: var(--brand-radius-lg); box-shadow: var(--brand-shadow); overflow: hidden; }
.hero-carousel .carousel-item { aspect-ratio: 4/3.1; }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-indicators { margin-bottom: .9rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background-color: #fff; opacity: .55; }
.hero-carousel .carousel-indicators .active { opacity: 1; background-color: var(--brand-accent); }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 3rem; opacity: 0; transition: opacity .2s ease; }
.hero-image-wrap:hover .carousel-control-prev,
.hero-image-wrap:hover .carousel-control-next { opacity: .85; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { width: 1.75rem; height: 1.75rem; background-color: rgba(0,0,0,.35); border-radius: 50%; padding: .4rem; background-size: 60%; }

.floating-card {
  position: absolute; background: #fff; border-radius: 16px; padding: .9rem 1.2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,.12); display: flex; align-items: center; gap: .75rem;
  font-weight: 700; font-size: .85rem; z-index: 3;
}
.floating-card.fc-1 { top: 8%; inset-inline-start: -8%; animation: floaty 4s ease-in-out infinite; }
.floating-card.fc-2 { bottom: 10%; inset-inline-end: -6%; animation: floaty 4s ease-in-out 1s infinite; }
.floating-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.floating-card .fc-icon.purple { background: var(--brand-primary-soft); color: var(--brand-primary); }
.floating-card .fc-icon.yellow { background: var(--brand-accent-light); color: var(--brand-accent-dark); }
.floating-card small { color: var(--brand-body); font-weight: 500; }
@media (max-width: 991.98px) { .floating-card.fc-1 { inset-inline-start: 0; } .floating-card.fc-2 { inset-inline-end: 0; } }

/* Stats strip */
.stats-strip { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); padding: 3rem 0; position: relative; overflow: hidden; }
.stats-strip::before { content: ""; position: absolute; top: -50%; inset-inline-start: -8%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,215,0,.08); }
.stats-strip .stat-item { text-align: center; color: #fff; position: relative; }
.stats-strip .stat-num { font-size: 2.5rem; font-weight: 900; color: var(--brand-accent); line-height: 1; }
.stats-strip .stat-label { font-weight: 500; opacity: .9; margin-top: .4rem; }

/* Sections */
.section-pad { padding: 5.5rem 0; }
.section-tag { display: inline-block; background: var(--brand-accent-light); color: var(--brand-primary-dark); padding: .4rem 1.1rem; border-radius: 50px; font-weight: 700; font-size: .88rem; margin-bottom: 1rem; }
.section-title { margin-bottom: .8rem; }
.section-sub { color: var(--brand-body); max-width: 620px; }

/* Feature cards */
.feature-card { text-align: center; padding: 2.1rem 1.4rem; border-radius: var(--brand-radius); background: #fff; border: 2px solid transparent; transition: all .25s ease; height: 100%; }
.feature-card:hover { border-color: var(--brand-primary); box-shadow: var(--brand-shadow-sm); transform: translateY(-6px); }
.feature-icon { width: 74px; height: 74px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; font-size: 1.7rem; }
.feature-icon.p { background: var(--brand-primary-soft); color: var(--brand-primary); }
.feature-icon.y { background: var(--brand-accent-light); color: var(--brand-accent-dark); }

/* Course cards */
.course-card { background: #fff; border-radius: var(--brand-radius); overflow: hidden; border: 2px solid transparent; transition: all .25s ease; height: 100%; position: relative; }
.course-card:hover { border-color: var(--brand-primary); transform: translateY(-8px); box-shadow: var(--brand-shadow); }
.course-ribbon {
  position: absolute; top: 16px; inset-inline-end: -6px; z-index: 3;
  background: var(--brand-accent); color: var(--brand-primary-dark);
  padding: .35rem 1rem; font-weight: 700; font-size: .78rem;
}
.course-ribbon.rtl-flip { border-radius: 8px 0 0 8px; }
.course-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--brand-primary-soft); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 1.5rem; }
.course-body h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.course-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--brand-body); }
.course-meta span { display: flex; align-items: center; gap: .35rem; }
.course-meta i { color: var(--brand-primary); }
.course-price-row { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #eee; }
.course-price { font-weight: 800; font-size: 1.25rem; color: var(--brand-primary); }
.btn-course { background: var(--brand-primary); color: #fff; border: none; padding: .55rem 1.2rem; border-radius: 50px; font-weight: 700; font-size: .88rem; transition: all .2s ease; display: inline-flex; align-items: center; gap: .4rem; }
.btn-course:hover { background: var(--brand-primary-dark); color: var(--brand-accent); transform: translateY(-2px); }

/* About */
.about-image-wrap { position: relative; }
.about-image-wrap img { border-radius: var(--brand-radius-lg); width: 100%; box-shadow: var(--brand-shadow); }
.exp-badge {
  position: absolute; bottom: -1.3rem; inset-inline-end: -1.3rem;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  color: var(--brand-primary-dark); padding: 1.1rem 1.5rem; border-radius: var(--brand-radius);
  text-align: center; font-weight: 800; box-shadow: 0 15px 35px rgba(255,215,0,.35);
}
.exp-badge .exp-num { font-size: 2.2rem; line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .85rem; font-weight: 500; }
.check-list i { color: var(--brand-primary); font-size: 1.15rem; margin-top: .15rem; flex-shrink: 0; }
@media (max-width: 991.98px) { .exp-badge { inset-inline-end: 0; bottom: -.8rem; padding: .8rem 1.1rem; } .exp-badge .exp-num { font-size: 1.6rem; } }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); border-radius: var(--brand-radius-lg); color: #fff; padding: 3.4rem; position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; bottom: -60%; inset-inline-end: -18%; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,215,0,.06); }
.cta-band h3 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.cta-band .btn-accent { position: relative; z-index: 1; }

/* Contact */
.contact-info-card { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; border-radius: var(--brand-radius); padding: 2.2rem; height: 100%; }
.contact-info-item { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem; }
.contact-info-item .ci-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,215,0,.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--brand-accent); flex-shrink: 0; }
.contact-info-item h6 { color: #fff; margin: 0 0 .2rem; font-weight: 700; }
.contact-info-item p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.contact-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.contact-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.contact-social a:hover { background: var(--brand-accent); color: var(--brand-primary-dark); }
.contact-form-wrap { background: #fff; border-radius: var(--brand-radius); padding: 2.2rem; border: 2px solid var(--brand-border); height: 100%; }
.form-control-t2 { width: 100%; padding: .85rem 1.1rem; border: 2px solid #e9ecef; border-radius: var(--brand-radius-sm); font-family: var(--brand-font); font-size: .95rem; background: var(--brand-bg-soft); transition: all .2s ease; }
.form-control-t2:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(106,13,173,.08); background: #fff; }
textarea.form-control-t2 { min-height: 130px; resize: vertical; }
.form-status { font-size: .9rem; margin-top: .8rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #1a7a3c; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--brand-ink); color: rgba(255,255,255,.72); padding: 4rem 0 1.5rem; }
.site-footer h5 { color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer .footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; margin-inline-end: .5rem; }
.site-footer .footer-social a:hover { background: var(--brand-primary); color: var(--brand-accent); transform: translateY(-2px); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.4rem; text-align: center; font-size: .9rem; }
.site-footer .heart { color: #e74c3c; }

/* Scroll to top + WhatsApp float */
.scroll-top-btn {
  position: fixed; bottom: 26px; inset-inline-start: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; border: none; font-size: 1.2rem; z-index: 1040;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .25s ease; box-shadow: 0 8px 22px rgba(106,13,173,.35);
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--brand-primary-dark); color: var(--brand-accent); }
.whatsapp-float {
  position: fixed; bottom: 26px; inset-inline-end: 26px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  z-index: 1040; box-shadow: 0 8px 22px rgba(37,211,102,.4); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 767.98px) {
  .hero { padding: 2.6rem 0 4rem; }
  .section-pad { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.4rem; }
}
