/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Scheherazade+New:wght@400;700&display=swap");

/* Updated Islamic Color Scheme */
:root {
  --primary-color: #016b3f !important; /* Deep Islamic green */
  --secondary-color: #d4af37; /* Gold */
  --dark-color: #0a3a2a; /* Dark green */
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-color: #333;
  --light-green: #e8f5e9;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

.highlight-gold {
  color: var(--secondary-color);
}

.section-title {
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  bottom: -10px;
  left: 0;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Top Bar */
.top-bar {
  background: var(--dark-color);
  color: white;
  font-size: 0.9rem;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

/* Prayer Times Ribbon */
.prayer-times {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
}

.prayer-time {
  display: inline-block;
  margin: 0 15px;
}

.prayer-time span {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Navigation */
.navbar {
  padding: 15px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: all 0.3s;
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 15px;
  transition: width 0.3s;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: calc(100% - 30px);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 8px 20px;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(1, 107, 63, 0.1);
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-section:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("islamic-pattern.png") repeat;
  opacity: 0.05;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #015732;
  border-color: #015732;
}

.btn-outline-light:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-color);
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

.feature-card {
  background: white;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--secondary-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(1, 107, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: white;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: #6c757d;
  margin-bottom: 20px;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-features i {
  font-size: 24px;
  color: var(--primary-color);
}

/* Calculator Section */
.calculator-section {
  padding: 80px 0;
  background: url("calculator-bg.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
}

.calculator-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.calculator-section .section-title,
.calculator-section .section-subtitle {
  color: white;
  position: relative;
}

.calculator-section .section-title:after {
  background: white;
}

.calculator-card {
  background: white;
  border-radius: 10px;
  position: relative;
}

.calculator-result {
  background-color: var(--light-green);
  border: 2px solid var(--secondary-color);
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
}

.testimonial-card {
  max-width: 800px;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary-color);
}

.quote-icon {
  font-size: 40px;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.author-info {
  margin-left: 15px;
}

.author-info h5 {
  margin-bottom: 5px;
}

.author-info p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

/* Sharia Section */
.sharia-section {
  padding: 80px 0;
}

.sharia-features i {
  font-size: 24px;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: white;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h5:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
}

.footer ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  color: var(--dark-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .prayer-times {
    font-size: 0.8rem;
  }

  .prayer-time {
    margin: 0 8px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .d-flex {
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer .text-md-end {
    text-align: left !important;
    margin-top: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .feature-card {
    margin-bottom: 30px;
  }

  .calculator-section {
    padding: 60px 0;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  justify-content: center;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Services Section */
.services-section {
  background: white;
}

.service-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 107, 63, 0.05);
  font-size: 3rem;
  color: var(--primary-color);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.service-features li {
  margin-bottom: 8px;
}

/* Sharia Compliance Section */
.sharia-compliance {
  background: var(--light-green);
}

.compliance-features i {
  font-size: 24px;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .service-icon {
    padding: 20px 0;
  }

  .service-content {
    padding: 20px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
}

/* About Company Section */
.about-company {
  background: white;
}

.achievement-number {
  font-weight: 700;
  line-height: 1;
}

.achievement-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Mission Vision Section */
.core-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border-top: 3px solid var(--secondary-color);
}

.core-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.core-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(1, 107, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
}

/* Team Sections */
.team-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.team-card h4 {
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .achievement-number {
    font-size: 2.5rem;
  }

  .team-card {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .achievement-number {
    font-size: 2rem;
  }

  .team-card img {
    width: 120px;
    height: 120px;
  }
}

/* Contact Section */
.contact-section {
  background: white;
}

.contact-info {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-method i {
  font-size: 24px;
  margin-top: 5px;
}

.contact-form-card {
  background: white;
  border-radius: 10px;
  height: 100%;
}

.social-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(1, 107, 63, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: var(--primary-color);
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Branches Section */
.branch-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.branch-header {
  background: var(--primary-color);
  color: white;
  padding: 15px;
}

.branch-header h5 {
  margin-bottom: 5px;
}

.branch-body {
  padding: 20px;
}

.branch-body p {
  margin-bottom: 10px;
}

/* Map Section */
.map-section {
  position: relative;
}

.map-section iframe {
  filter: grayscale(20%);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .contact-method i {
    font-size: 20px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }
}

/* Sharia Principles Section */
.sharia-principles {
  background: white;
}

.principle-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border-top: 3px solid var(--secondary-color);
}

.principle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.principle-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: rgba(1, 107, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
}

/* Product Structures Section */
.structure-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s;
}

.structure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.structure-header {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
}

.structure-header h4 {
  margin-bottom: 0;
}

.structure-body {
  padding: 20px;
}

.structure-body ul {
  padding-left: 20px;
}

.structure-body ul li {
  margin-bottom: 8px;
}

/* Fatwa Section */
.fatwa-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.fatwa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.fatwa-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: rgba(1, 107, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .principle-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .fatwa-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Loan Status Section */
.loan-status-section .card {
  border-radius: 10px;
  overflow: hidden;
}

.loan-status-section .card-header {
  font-weight: 600;
}

/* Status Timeline */
.status-timeline {
  position: relative;
  padding-left: 30px;
}

.status-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.status-step {
  position: relative;
  padding-bottom: 20px;
}

.status-step:last-child {
  padding-bottom: 0;
}

.step-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e9ecef;
  z-index: 1;
}

.step-content {
  padding-left: 15px;
}

.status-step.completed .step-icon {
  background: #016b3f;
  border-color: #016b3f;
  color: #ffffff;
}

.status-step.active .step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #016b3f;
  animation: pulse 2s infinite;
}

.status-step.pending .step-icon {
  background: #adb5bd;
  border-color: #adb5bd;
  color: #adb5bd;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 107, 63, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(1, 107, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(1, 107, 63, 0);
  }
}

/* FAQ Section */
.accordion-button {
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(1, 107, 63, 0.05);
  color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .status-timeline {
    padding-left: 25px;
  }

  .status-timeline::before {
    left: 12px;
  }

  .step-icon {
    left: -25px;
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
}
