/* =================================
   Islamic Home Lending - Complete Stylesheet
   Fonts: Cinzel Decorative (headings), Epilogue (body)
   Colors: #004B39 (Primary Green), #DB9E30 (Gold)
   ================================= */

/* Root Variables */
:root {
  --primary-green: #004b39;
  --secondary-gold: #db9e30;
  --dark-green: #003529; 
  --light-green: #e8f5e9; 
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Global Styles - Fixed Horizontal Overflow */
html, 
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

* {
  box-sizing: inherit;
}

body {
  font-family: "Epilogue", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  background-color: var(--white);
}

/* Typography - Cinzel Decorative for Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-green);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

h1 { font-size: 3.75rem; }
h2 { font-size: 3.375rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.625rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-family: "Epilogue", sans-serif;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover { color: var(--secondary-gold); }

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

/* Top Header */
.top-header {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
  font-family: "Epilogue", sans-serif;
}

.top-header a {
  color: var(--white);
  margin: 0 15px;
  font-weight: 600;
}

.top-header a:hover {
  color: var(--secondary-gold);
}

.top-header i {
  margin-right: 8px;
  color: var(--secondary-gold);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar-brand {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-green) !important;
}

.navbar-brand img {
  max-height: 80px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 20px;
  position: relative;
  transition: all 0.3s ease;
  font-family: "Epilogue", sans-serif;
  font-size: 16px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-green);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 0;
  height: 3px;
  background-color: var(--secondary-gold);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 40px);
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: var(--white);
  border: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
}

.dropdown-item {
  color: var(--text-dark);
  padding: 10px 25px;
  font-family: "Epilogue", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-green);
  color: var(--primary-green);
  padding-left: 30px;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Epilogue", sans-serif;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 75, 57, 0.3);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Epilogue", sans-serif;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 75, 57, 0.3);
}

.btn-gold {
  background-color: var(--secondary-gold);
  border-color: var(--secondary-gold);
  color: var(--white);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Epilogue", sans-serif;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: #c29d2f;
  border-color: #c29d2f;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 650px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 80px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.islamic-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--secondary-gold);
  padding: 8px 20px;
  border-radius: 25px;
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.islamic-badge i {
  margin-right: 8px;
  color: var(--secondary-gold);
}

.hero-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  margin: 20px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: "Epilogue", sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-features {
  margin: 25px 0;
}

.hero-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--white);
  font-family: "Epilogue", sans-serif;
}

.hero-features .feature-item i {
  color: var(--secondary-gold);
  margin-right: 12px;
  font-size: 1.2rem;
}

.hero-buttons {
  margin: 35px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 5px;
}

.hero-stats .stat-item p {
  font-family: "Epilogue", sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.islamic-pattern-overlay {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: var(--secondary-gold);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

.floating-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--white);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3;
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary-green);
}

.floating-card h6 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.1rem;
  color: var(--primary-green);
  margin: 0;
}

.floating-card p {
  font-family: "Epilogue", sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

/* Section Styles */
.section-padding {
  padding: 80px 0;
}

.section-badge {
  display: inline-block;
  background-color: rgba(0, 75, 57, 0.1);
  color: var(--primary-green);
  padding: 8px 20px;
  border-radius: 25px;
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.section-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.75rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: "Epilogue", sans-serif;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 35px 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #c29d2f 100%);
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-green);
}

.service-card p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-link {
  color: var(--primary-green);
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--secondary-gold);
  gap: 12px;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us / Features */
.feature-list {
  margin-top: 30px;
}

.feature-item-large {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item-large:hover {
  background: var(--light-green);
  transform: translateX(10px);
}

.feature-icon-large {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item-large h5 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.25rem;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.feature-item-large p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Process Cards */
.process-card {
  background: var(--white);
  border-radius: 15px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
  border: 2px solid transparent;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-gold);
}

.process-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #c29d2f 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.process-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin: 15px 0;
}

.process-card h5 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.25rem;
  color: var(--primary-green);
  margin: 15px 0;
}

.process-card p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--secondary-gold);
  opacity: 0.15;
}

.stars {
  color: var(--secondary-gold);
  margin-bottom: 15px;
}

.stars i {
  font-size: 1.1rem;
  margin-right: 3px;
}

.testimonial-card p {
  font-family: "Epilogue", sans-serif;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--secondary-gold);
  object-fit: cover;
}

.testimonial-author h6 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.1rem;
  color: var(--primary-green);
  margin: 0 0 5px 0;
}

.testimonial-author span {
  font-family: "Epilogue", sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83z' fill='%23FFFFFF' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

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

.cta-content h2 {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

.cta-content p {
  font-family: "Epilogue", sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.cta-buttons .btn {
  margin: 0 10px 10px 0;
}

/* Footer */
.footer {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.footer h4,
.footer h5 {
  font-family: "Cinzel Decorative", serif;
  color: var(--secondary-gold);
  margin-bottom: 25px;
  font-weight: 700;
}

.footer p,
.footer a {
  font-family: "Epilogue", sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--white);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 10px;
}

.footer-links i {
  color: var(--secondary-gold);
  margin-right: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  background-color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  background-color: var(--secondary-gold);
  transform: translateY(-5px);
  color: var(--white);
}

.footer-bottom {
  background-color: var(--dark-green);
  padding: 25px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  font-family: "Epilogue", sans-serif;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--secondary-gold);
  font-weight: 600;
}

/* Contact Page */
.contact-info-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.contact-info-card h5 {
  font-family: "Cinzel Decorative", serif;
  margin-bottom: 15px;
  color: var(--primary-green);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.form-label {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Epilogue", sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 75, 57, 0.15);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Calculator */
.calculator-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.result-card {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 30px;
  border-radius: 15px;
  margin-top: 30px;
  display: none;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "Epilogue", sans-serif;
}

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

.result-label {
  font-weight: 600;
}

.result-value {
  font-size: 1.4rem;
  color: var(--secondary-gold);
  font-weight: 700;
  font-family: "Cinzel Decorative", serif;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.back-to-top:hover {
  background-color: var(--secondary-gold);
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}

/* Alert Styles */
.alert {
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-family: "Epilogue", sans-serif;
}

.alert-success {
  background-color: var(--light-green);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.alert-danger {
  background-color: #ffe6e6;
  border-color: #dc3545;
  color: #dc3545;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease;
}

/* Responsive */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-stats {
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .page-title {
    font-size: 2.5rem;
  }

  .top-bar {
    text-align: center;
  }

  .top-info {
    justify-content: center;
  }

  .top-social {
    justify-content: center;
    margin-top: 10px;
  }

  .contact-info-card {
    margin-bottom: 30px;
  }

  .faq-category-title {
    font-size: 1.4rem;
  }

  .accordion-button {
    font-size: 1.05rem;
    padding: 1.2rem 1rem;
  }

  .faq-cta-card {
    padding: 3rem 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 80px 0 40px;
  }

  .page-title {
    font-size: 2rem;
  }

  .mvv-card,
  .team-card {
    margin-bottom: 20px;
  }

  .contact-form-card {
    padding: 30px 25px;
  }

  .map-container iframe {
    height: 350px;
  }

  .calculator-card {
    padding: 25px;
  }

  .stat-card {
    margin-bottom: 20px;
  }

  /* Footer Parallel Layout for Quick Links & Services */
  .footer .row:first-child {
    display: flex;
    flex-wrap: wrap;
  }

  /* Keep About section full width */
  .footer .row:first-child > div:nth-child(1) {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-logo {
    margin: 0 auto 20px;
    max-height: 70px;
  }

  .footer-social {
    justify-content: center;
  }

  /* Make Quick Links and Our Services parallel (50% each) */
  .footer .row:first-child > div:nth-child(2),
  .footer .row:first-child > div:nth-child(3) {
    width: 50% !important;
    margin-bottom: 30px;
  }

  /* Keep Contact section full width */
  .footer .row:first-child > div:nth-child(4) {
    width: 100%;
  }

  .footer-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-right: 0 !important;
  }

  .btn-primary,
  .btn-outline-primary,
  .btn-gold {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .service-card,
  .testimonial-card,
  .process-card {
    margin-bottom: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  padding: 100px 0 60px;
  color: var(--white);
  text-align: center;
}

.page-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  font-family: "Epilogue", sans-serif;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--secondary-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
  content: ">";
}

.breadcrumb-item.active {
  color: var(--secondary-gold);
}

/* MVV Cards (Mission, Vision, Values) */
.mvv-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.mvv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-gold);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.mvv-card:hover .mvv-icon {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #c29d2f 100%);
  transform: scale(1.1) rotate(5deg);
}

.mvv-card h4 {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.mvv-card p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* Shariah Features */
.shariah-features {
  margin-top: 30px;
}

.shariah-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.shariah-feature:hover {
  background: var(--light-green);
  transform: translateX(10px);
}

.shariah-feature i {
  color: var(--primary-green);
  font-size: 1.5rem;
}

.shariah-feature span {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

/* Team Cards */
.team-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--secondary-gold);
  transition: all 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.1);
  border-color: var(--primary-green);
}

.team-card h5 {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.team-role {
  font-family: "Epilogue", sans-serif;
  color: var(--secondary-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card .small {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
}

/* Stats Section - Changed to Golden Background */
.stats-section.bg-primary {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #c29d2f 100%) !important;
  position: relative;
  overflow: hidden;
}

.stats-section.bg-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83z' fill='%23FFFFFF' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.stat-box {
  position: relative;
  z-index: 2;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Epilogue", sans-serif;
  margin: 0;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--white);
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-info-card h3 {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.contact-info-card > p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item h6 {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.contact-item p {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--primary-green);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--secondary-gold);
}

/* Map Container */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-info {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.top-info a {
  color: var(--white);
  font-family: "Epilogue", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.top-info a:hover {
  color: var(--secondary-gold);
}

.top-info i {
  margin-right: 8px;
  color: var(--secondary-gold);
}

.top-social {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.top-social a {
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.top-social a:hover {
  background-color: var(--secondary-gold);
  transform: translateY(-3px);
}

/* Footer Logo */
.footer-logo {
  max-height: 85px;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Epilogue", sans-serif;
  line-height: 1.7;
}

.footer-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--secondary-gold);
  margin-bottom: 25px;
  font-size: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background-color: var(--secondary-gold);
  transform: translateY(-5px);
}

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

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Epilogue", sans-serif;
}

.footer-contact i {
  color: var(--secondary-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

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

/* Shariah Note Box - Golden Background with Dark Text */
.shariah-note-box {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #c29d2f 100%) !important;
  padding: 25px;
  border-radius: 15px;
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.shariah-note-box h5,
.shariah-note-box p {
  color: var(--primary-green) !important;
  opacity: 1 !important;
}

.shariah-note-box i {
  color: var(--primary-green) !important;
}

/* FAQ Page Styles */
.category-icon-box {
  width: 45px;
  height: 45px;
  background-color: var(--secondary-gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
}

.faq-category-title {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.8rem;
}

.custom-faq-card {
  background-color: var(--white);
  transition: all 0.4s ease;
  border: 2px solid transparent !important;
  border-radius: 15px !important;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
}

.custom-faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--secondary-gold) !important;
}

.accordion-button {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
  font-size: 1.15rem;
  box-shadow: none !important;
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

.accordion-button:focus {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
  color: var(--white) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  background-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.faq-q-text {
  flex: 1;
}

.faq-answer-wrapper {
  font-family: "Epilogue", sans-serif;
  color: var(--text-light);
  line-height: 1.8;
  background-color: var(--light-green);
  border-top: 1px solid var(--border-color);
}

.faq-cta-card {
  background-color: var(--white);
  position: relative;
  overflow: visible;
  border: 1px solid var(--border-color);
}

.cta-icon-float {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(0, 75, 57, 0.2);
  border: 5px solid var(--white);
}

.faq-cta-card h3 {
  font-family: "Cinzel Decorative", serif;
  margin-top: 15px;
  color: var(--primary-green);
}

/* Calculator Page Styles */
.calculator-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.calculator-card h3 {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
}

.custom-range::-webkit-slider-thumb {
  background: var(--secondary-gold);
  cursor: pointer;
}

.custom-range::-moz-range-thumb {
  background: var(--secondary-gold);
  cursor: pointer;
}

.custom-range::-ms-thumb {
  background: var(--secondary-gold);
  cursor: pointer;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card h2 {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
}

.border-top-green {
  border-top: 4px solid var(--primary-green) !important;
}

.summary-item {
  font-family: "Epilogue", sans-serif;
  padding: 15px 0;
}

.summary-item span:first-child {
  color: var(--text-light);
}

.summary-item .fw-bold {
  font-family: "Cinzel Decorative", serif;
  color: var(--primary-green);
}

.text-gold {
  color: var(--secondary-gold) !important;
}

.bg-gold {
  background-color: var(--secondary-gold) !important;
}

.progress-bar.bg-primary-green {
  background-color: var(--primary-green) !important;
}

/* Responsive Adjustments - Final Layout Fixes */
@media (max-width: 991px) {
  .page-title {
    font-size: 2.5rem;
  }

  .top-bar {
    text-align: center;
  }

  .top-info {
    justify-content: center;
  }

  .top-social {
    justify-content: center;
    margin-top: 10px;
  }

  .contact-info-card {
    margin-bottom: 30px;
  }

  .faq-category-title {
    font-size: 1.4rem;
  }

  .accordion-button {
    font-size: 1.05rem;
    padding: 1.2rem 1rem;
  }

  .faq-cta-card {
    padding: 3rem 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 80px 0 40px;
  }

  .page-title {
    font-size: 2rem;
  }

  .mvv-card,
  .team-card {
    margin-bottom: 20px;
  }

  .contact-form-card {
    padding: 30px 25px;
  }

  .map-container iframe {
    height: 350px;
  }

  .calculator-card {
    padding: 25px;
  }

  .stat-card {
    margin-bottom: 20px;
  }

  /* Footer Parallel Layout for Quick Links & Services */
  .footer .row:first-child {
    display: flex;
    flex-wrap: wrap;
  }

  /* Keep About section full width */
  .footer .row:first-child > div:nth-child(1) {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

  .footer-logo {
    margin: 0 auto 20px;
    max-height: 70px;
  }

  .footer-social {
    justify-content: center;
  }

  /* Make Quick Links and Our Services parallel (50% each) */
  .footer .row:first-child > div:nth-child(2),
  .footer .row:first-child > div:nth-child(3) {
    width: 50% !important;
    margin-bottom: 30px;
  }

  /* Keep Contact section full width */
  .footer .row:first-child > div:nth-child(4) {
    width: 100%;
  }

  .footer-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
}