:root {
  --color-primary: #6E5849;       /* Sufi Brown */
  --color-primary-hover: #5A473A;

  --color-accent: #D9A441;        /* Desert Gold */
  --color-accent-hover: #C9951D;

  --color-text: #444444;          /* Warm dark gray */
  --color-headings: #2B2B2B;      /* Deep black-brown */

  --color-bg: #FAF8F4;            /* Sand/Cream Background */
  --color-light-bg: #FFFFFF;      /* White block sections */
  --color-border: #E0E0E0;        /* Neutral light border */

  --color-error: #D32F2F;
  --color-success: #4CAF50;

  --color-link: #8B5E3C;          /* Slightly richer brown – better contrast */
  --color-link-hover: #A2653E;    /* Slight glow / richer on hover */

  --color-menu-item-hover-active: #FAD538;
}


/* Base Body Setup */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-headings);
  line-height: 1.3;
}

h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 700; }
h4 { font-size: 24px; font-weight: 700; }
h5 { font-size: 20px; font-weight: 700; }
h6 { font-size: 16px; font-weight: 700; }

/* Paragraphs */
p {
  font-weight: 400;
  font-size: 16px;
}

/* Bold and Strong */
strong, b {
  font-weight: 600;
  color: var(--color-headings);
}

/* Links */
a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline wavy;
}

/* Blockquotes */
blockquote {
  margin: 1em 0;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  font-style: italic;
}

/* Inputs (for tools) */
input, select, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 0.5em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-light-bg);
  color: var(--color-text);
}

/* Primary Button */
button,
.button-primary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
button:hover,
.button-primary:hover {
  background-color: var(--color-primary-hover);
}

/* Accent Button */
.button-accent {
  background-color: var(--color-accent);
  color: #000;
}
.button-accent:hover {
  background-color: var(--color-accent-hover);
}

/* Optional: Error & Success */
.alert-error {
  background-color: var(--color-error);
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
}
.alert-success {
  background-color: var(--color-success);
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
}

/* Header */
.header-topbar {
  background-color: var(--color-accent);
}
.header-topbar p {
  color: #000;
  font-weight: 600;
  margin: 0;
}
.text-carousel {
  height: 30px;
}
.carousel-line {
  position: absolute;
  width: 100%;
  left: 100%;
  opacity: 0;
  transition: all 0.6s ease-in-out;
  white-space: nowrap;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  marin: 0;
}
.carousel-line.active {
  left: 0;
  opacity: 1;
}
.carousel-line.exit-left {
  left: -100%;
  opacity: 0;
}
.header-navbar {
  background-color: var(--color-primary);
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar-brand img {
  width: 300px;
  height: auto;
}
.nav-link {
  color: #ffffff;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: var(--color-menu-item-hover-active);
  text-decoration: underline wavy;
}
.nav-link:focus, .nav-link:hover {
  color: var(--color-menu-item-hover-active);
  text-decoration: underline wavy;
}
.dropdown-menu {
  background-color: var(--color-accent);
}
.dropdown-item {
  color: #000;
}
.dropdown-item:focus, .dropdown-item:hover {
  background-color: var(--color-primary);
  color: #fff;
}
/* Footer */
footer {
  background-color: var(--color-accent);
  color: #000;
  height: auto;
}
footer h2 {
  font-size: 24px;
  text-decoration: underline dashed;
}
.footer-brand img {
  width: 350px;
  height: auto;
  padding-bottom: 20px;
  padding-top: 0px;
  margin-left: -15px;
}
.copyright {
  padding-bottom: 12px;
}

#goToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--color-primary);
  color: white;
  border: 2px solid var(--color-accent);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none;
  transition: background-color 0.3s, transform 0.3s;
}

#goToTop:hover {
  background-color: var(--color-accent);
  border-color: var(--color-primary);
  transform: scale(1.1);
}



/* hero section */
.hero-section {
  background-color: var(--color-border);
}
.button-accent {
  background-color: var(--color-accent);
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.button-accent:hover {
  background-color: var(--color-accent-hover);
  color: #000;
}
.button-primary {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.button-primary:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
}


/* Tools Overview Section */
.tools-overview-section h3 {
  font-size: 24px;
}

/* Why Faith Number section */
.why-faith-numbers-section h3 {
  font-size: 24px;
}
.why-faith-numbers-section .bi-icon-custom {
  font-size: 3rem;
  color: var(--color-accent);
}
/* Stats section */
.stats-section .stats-text {
  color: var(--color-accent);
}

/* CTA Section */
.cta-section, .prefooter-section {
  background-color: var(--color-primary);
}
.cta-section h2, .cta-section p, .prefooter-section h2, .prefooter-section p {
  color: #fff;
}

#tools-hero-section-img {
  max-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.tools-list-images, .home-tools-images, .article-featured-image {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}
.home-tools-images {
  max-width: 40%;
}
.article-featured-image {
  height: 280px;
}

#single-tool-hero-section-img {
  max-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}
.accordion-item h3 {
  margin-top: 0;
}
#lifepathnumbercalculator-card {
  background-color: #222;
  color: #fff;
}
.tool-card-heading {
  font-size: 28px;
  color: #fff;
}
.accordion-header button:hover, .accordion-button:not(.collapsed) {
  color: var(--color-headings);
  background-color: var(--color-accent);
}
h3.card-title {
  font-size: 24px;
}
#lifePathValue, #angelNumberValue, #abjadValue {
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff, #f5e9d7);
  color: #198754;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 0 15px #75b798;
  transition: transform 0.3s ease;
}
#lifePathValue:hover, #angelNumberValue:hover {
  transform: scale(1.05);
}
.highlight-card {
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.4);
  transition: all 0.3s ease;
}

/*article h2 {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 5px var(--color-primary);
    padding: 10px 10px;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

article h3 {
    background: var(--color-accent);
    box-shadow: 0 0 5px var(--color-accent);
    padding: 10px 10px;
    margin-top: 3rem;
    margin-bottom: 1rem;
}*/

/* Base toggle button style */
.choose-input-method-buttons .btn-group .btn {
    padding: 0.45rem 1.2rem;
    font-weight: 500;
    background-color: #000; /* black background */
    color: #fff;
    transition: all 0.2s ease-in-out;
}

/* When selected (radio checked) */
.choose-input-method-buttons .btn-check:checked + .btn {
    border-color: #28a745 !important; /* green border */
    background-color: #000 !important; /* keep background black */
    color: #28a745 !important; /* optional: make text green */
}

/* Optional: hover effect */
.choose-input-method-buttons .btn:hover {
    border-color: #28a745;
    color: #28a745;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--color-primary);
  color: var(--color-menu-item-hover-active);
  text-decoration: underline wavy;
}

/* Default styling for mobile and tablet (already working fine) */
#arabicKeyboard .arabic-key {
    padding: 6px 10px;
    font-size: 2rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
    flex: 0 0 auto;
    text-align: center;
}

#arabicKeyboard .arabic-key:hover {
    background-color: #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    color: #000;
}

#abjad_word {
  font-size: 1.5rem;
}

#matchedVerseTranslationEn {
  font-size: 18px;
}
#matchedVerseTranslationUr {
  font-size: 22px;
}

#article-ref-video {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.about-page a:not(.btn) { text-decoration: none; }
.about-page a:not(.btn):hover { text-decoration: underline wavy; }
.contact-email-link { text-decoration: none; }
.contact-email-link:hover { text-decoration: underline wavy; }

/* Navbar spacing & rhythm */
.header-navbar .navbar-nav {
  gap: 0.5rem;
}

/* Hoverable navbar dropdowns — parent links stay clickable */
@media (min-width: 992px) {
  .header-navbar .dropdown:hover > .dropdown-menu,
  .header-navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

/* X-Small */
@media only screen and (max-width: 575px) {
  h1 { font-size: 36px; font-weight: 700; }
  h2 { font-size: 32px; font-weight: 700; }
  h3 { font-size: 28px; font-weight: 700; }
  h4 { font-size: 24px; font-weight: 700; }
  h5 { font-size: 20px; font-weight: 700; }
  h6 { font-size: 16px; font-weight: 700; }
  .header-topbar p {
    font-size: 11px;
    margin: 0;
  }
  .header-navbar {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .navbar-brand img {
    width: 210px;
  }
  .text-carousel {
    height: 20px;
  }
  .carousel-line {
    height: 20px;
  }
  .tools-overview-section h3 {
    font-size: 22px;
  }
  .why-faith-numbers-section h3 {
    font-size: 22px;
  }
  .lead {
    font-size: 1.12rem;
  }
  #tools-hero-section-img {
    max-width: 200px;
  }

  #arabicKeyboard .arabic-key {
      padding: 6px 10px;
      font-size: 1.2rem;
      min-width: 30px;
      min-height: 30px;
      border-radius: 6px;
      flex: 0 0 auto;
      text-align: center;
  }
}

/* Small */
@media only screen and (max-width: 767px) and (min-width: 576px) {
  #arabicKeyboard .arabic-key {
      padding: 6px 10px;
      font-size: 1.2rem;
      min-width: 30px;
      min-height: 30px;
      border-radius: 6px;
      flex: 0 0 auto;
      text-align: center;
  }
}

/* Medium */
@media only screen and (max-width: 991px) and (min-width: 768px) {
  #arabicKeyboard .arabic-key {
      padding: 6px 10px;
      font-size: 1.2rem;
      min-width: 30px;
      min-height: 30px;
      border-radius: 6px;
      flex: 0 0 auto;
      text-align: center;
  }
}

/* Large */
@media only screen and (max-width: 1199px) and (min-width: 992px) {

}

/* X-Large */
@media only screen and (max-width: 1399px) and (min-width: 1200px) {

}

/* XX-Large */
@media only screen and (min-width: 1400px) {

}