/*--------------------------------------------------------------
# Import Google Fonts - Poppins & Cairo (Arabic Support)
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700&display=swap');

/*--------------------------------------------------------------
# Centralized Color Variables - ROYAL GOLDEN & DARK GREEN ISLAMIC THEME
--------------------------------------------------------------*/
:root {
  /* Main Islamic Brand Colors - Royal Golden & Dark Green */
  --primary-color: #1a4d2e;      /* Premium Dark Green */
  --primary-dark: #0e3a1f;       /* Deeper Islamic Green */
  --primary-light: #2e7d5e;      /* Rich Green for accents */
  
  /* Royal Golden Accents */
  --golden-primary: #d4af37;      /* Royal Golden */
  --golden-light: #f5e7b2;        /* Soft Golden */
  --golden-dark: #b49450;         /* Deep Golden */
  
  /* Text Colors */
  --text-color: #2c3e50;          /* Dark Blue-Gray for readability */
  --text-light: #4a5568;          /* Light text */
  --text-muted: #718096;          /* Muted text */
  --text-white: #ffffff;          /* Pure White */
  --text-light-gray: #f7fafc;     /* Light Gray */
  --text-golden: #d4af37;         /* Golden text */
  
  /* Background Colors */
  --light-bg: #fef9e7;            /* Creamy off-white */
  --body-bg: #fff9f0;             /* Warm body background */
  --white-bg: #ffffff;            /* White background */
  --dark-bg: #0a2f1d;             /* Dark Green for special elements */
  --darker-bg: #052012;           /* Near Black Green */
  --black-bg: #000000;
  
  /* Border Colors - Golden accents */
  --border-light: #e9d6a1;        /* Light Golden border */
  --border-lighter: #f3e9c0;      /* Lighter Golden border */
  --border-dark: #1a4d2e;         /* Dark Green border */
  --border-golden: #d4af37;       /* Royal Golden border */
  
  /* Gradient Combinations - Royal & Green */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-golden: linear-gradient(135deg, var(--golden-primary), var(--golden-dark));
  --gradient-primary-reverse: linear-gradient(175deg, var(--primary-color) 50%, var(--primary-dark) 50%);
  --gradient-green: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  --gradient-header: linear-gradient(135deg, #ffffff 0%, #fef9e7 100%);
  --gradient-navbar: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-footer: linear-gradient(135deg, #0a2f1d 0%, #052012 100%);
  --gradient-footer-cta: linear-gradient(135deg, var(--golden-primary), var(--golden-dark));
  --gradient-copyright: linear-gradient(135deg, #052012, #0a2f1d);
  --gradient-golden-green: linear-gradient(135deg, var(--golden-primary), var(--primary-light));
  
  /* Social Media Colors - Enhanced */
  --facebook-color: #3b5998;
  --facebook-hover: #4267b2;
  --twitter-color: #55acee;
  --twitter-hover: #1da1f2;
  --instagram-color: #d6249f;
  --instagram-hover: #e4405f;
  --youtube-color: #ff0000;
  --youtube-hover: #ff6b6b;
  --android-color: #a4c639;
  --android-hover: #8bc34a;
  
  /* Supporter Card Colors */
  --supporter-primary: #1a4d2e;
  --supporter-light: #d4af37;
  --supporter-golden: #f5e7b2;
  
  /* Shadow Colors - Warmer */
  --shadow-light: rgba(212, 175, 55, 0.1);
  --shadow-medium: rgba(26, 77, 46, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --shadow-darker: rgba(0, 0, 0, 0.25);
  --shadow-darkest: rgba(0, 0, 0, 0.35);
  --shadow-golden: rgba(212, 175, 55, 0.3);
  
  /* Overlay Colors */
  --overlay-light: rgba(255, 255, 255, 0.1);
  --overlay-medium: rgba(255, 255, 255, 0.2);
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-darker: rgba(0, 0, 0, 0.6);
  --overlay-darkest: rgba(0, 0, 0, 0.7);
  --primary-color-overlay: rgba(26, 77, 46, 0.85);
  --golden-overlay: rgba(212, 175, 55, 0.2);
  
  /* Form Colors */
  --form-bg: #fef9e7;
  --form-border: #e9d6a1;
}

/*--------------------------------------------------------------
# General Styles with Animation
--------------------------------------------------------------*/
body {
  font-family: "Poppins", "Cairo", sans-serif;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--body-bg);
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cairo", "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Specific heading size adjustments */
h1 { 
  font-size: 2.2rem; 
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-dark), var(--golden-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { 
  font-size: 1.9rem; 
  color: var(--primary-color);
}
h3 { 
  font-size: 1.6rem; 
  color: var(--golden-dark);
}
h4 { 
  font-size: 1.3rem; 
  color: var(--primary-dark);
}
h5 { 
  font-size: 1.1rem; 
  color: var(--golden-primary);
  font-weight: 600;
}
h6 { 
  font-size: 1rem; 
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: var(--golden-dark);
  transition: all 0.3s ease;
}
a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.section-heading {
  color: var(--text-white);
  background: var(--gradient-primary);
  padding: 8px 15px;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  text-align: center;
  border-radius: 5px;
  font-weight: 500;
  animation: slideInLeft 0.5s ease-out;
  border: 2px solid var(--border-golden);
  position: relative;
  overflow: hidden;
}

.section-heading::before {
  content: "✦";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--golden-primary);
  font-size: 1.2rem;
  opacity: 0.7;
}

.section-heading::after {
  content: "✦";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--golden-primary);
  font-size: 1.2rem;
  opacity: 0.7;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.section-heading span {
  background-color: var(--white-bg);
  padding: 0 15px;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 3px;
}

.card-custom {
  background: var(--white-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 15px var(--shadow-medium);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  position: relative;
}

.card-custom::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: var(--gradient-golden);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-custom:hover::after {
  opacity: 0.5;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card-custom:hover {
  box-shadow: 0 8px 25px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.navbar-margin-pusher {
  margin-top: 0px;
}

/*--------------------------------------------------------------
# Floating Action Buttons with Animation
--------------------------------------------------------------*/
.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: bounceIn 1s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.floating-btn-problem {
  background: var(--gradient-golden);
  color: var(--primary-dark);
  border-radius: 25px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--shadow-golden);
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  position: fixed;
  right: 20px;
  bottom: 20px;
  margin-bottom: 55px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
  70% {
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
}

.floating-btn-problem:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-darker);
  border-color: var(--primary-dark);
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--text-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px var(--shadow-golden);
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
}

.floating-btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px) rotate(360deg);
  box-shadow: 0 6px 20px var(--shadow-darker);
  border-color: var(--primary-dark);
}

.floating-btn-donate {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  background: var(--gradient-golden);
  color: var(--primary-dark);
  border-radius: 25px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--shadow-golden);
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  animation: shake 2s infinite;
}

@keyframes shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.floating-btn-donate:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-darker);
  color: var(--text-white);
  background: var(--primary-dark);
  border-color: var(--golden-primary);
}

/*--------------------------------------------------------------
# Enhanced Header with Royal Islamic Theme
--------------------------------------------------------------*/
.header-section {
  background: var(--gradient-header);
  padding: 10px 0;
  border-bottom: 3px solid var(--border-golden);
  box-shadow: 0 4px 15px var(--shadow-golden);
  position: relative;
  z-index: 1030;
}

.dropdown-menu {
  z-index: 1050 !important;
  position: absolute;
  font-size: 0.9rem;
  border: 2px solid var(--border-golden);
  background: var(--white-bg);
}

/*--------------------------------------------------------------
# UPDATED: Logo Styles - Border Removed, Size Increased, Darkened
--------------------------------------------------------------*/
.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 80px; /* Increased from 60px to 80px */
  width: auto;
  max-width: 100%;
  transition: all 0.3s ease;
  border: none; /* Border completely removed */
  border-radius: 0; /* Border radius removed */
  padding: 0; /* Padding removed */
  filter: brightness(0.95) contrast(1.1); /* Slightly darkened */
  object-fit: contain;
}

.header-logo:hover img {
  transform: scale(1.05) rotate(1deg);
  filter: brightness(0.85) contrast(1.15); /* Darker on hover */
}

.header-title {
  text-align: center;
}

.main-title {
  font-size: 2.2rem;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px var(--shadow-golden);
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-dark), var(--golden-dark));
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -moz-text-fill-color: transparent;
  font-weight: 700;
  border-bottom: 2px solid var(--border-golden);
  padding-bottom: 5px;
  font-family: "Cairo", "Poppins", sans-serif;
}

@supports not (-webkit-background-clip: text) {
  .main-title {
    background: none;
    color: var(--primary-color);
  }
}

.subtitle {
  font-size: 1rem;
  color: var(--golden-dark);
  margin: 5px 0 0 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: "Cairo", sans-serif;
}

.header-right-section {
  text-align: center;
}

.header-contact {
  margin-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.contact-item:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  border: 1px solid var(--border-golden);
  background: rgba(212, 175, 55, 0.1);
}

.contact-item i {
  color: var(--golden-primary);
  margin-right: 8px;
  width: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  color: var(--golden-dark);
  transform: scale(1.2);
}

.header-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-social-icons a {
  color: var(--text-white);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-golden);
  box-shadow: 0 3px 10px var(--shadow-golden);
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.header-social-icons a:hover {
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 5px 15px var(--shadow-golden);
  background: var(--primary-dark);
  border-color: var(--golden-primary);
}

/* Header Bottom Bar */
.header-bottom-bar {
  background: var(--gradient-golden);
  padding: 8px 0;
  color: var(--primary-dark);
  border-top: 2px solid var(--border-golden);
  border-bottom: 2px solid var(--border-golden);
  font-weight: 600;
}

.header-quick-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--primary-dark);
}

.quick-link-item:hover {
  transform: translateY(-2px);
  color: var(--text-white);
  border: 1px solid var(--border-golden);
  background: var(--primary-dark);
}

.quick-link-item i {
  margin-right: 8px;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.quick-link-item:hover i {
  color: var(--text-white);
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .header-social-icons {
    gap: 6px;
  }
}

@media (max-width: 991.98px) {
  .main-title {
    font-size: 1.8rem;
  }
  
  .header-social-icons {
    gap: 8px;
    flex-wrap: wrap;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .header-logo img {
    height: 70px; /* Slightly smaller on mobile but still larger than before */
  }
}

@media (max-width: 767.98px) {
  .main-title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .header-social-icons {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .header-logo img {
    height: 60px; /* Responsive size for mobile */
  }
}

@media (max-width: 575.98px) {
  .main-title {
    font-size: 1.3rem;
  }
  
  .contact-item {
    font-size: 0.75rem;
  }
  
  .header-social-icons {
    justify-content: center;
  }
  
  .header-logo img {
    height: 50px; /* Smaller on very small screens */
  }
}

/*--------------------------------------------------------------
# Enhanced Navigation with Royal Islamic Theme
--------------------------------------------------------------*/
.main-navbar-container {
  background: var(--gradient-primary);
  border-bottom: 3px solid var(--border-golden);
  box-shadow: 0 4px 15px var(--shadow-golden);
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.main-navbar-container .nav-link {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 15px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0 2px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.main-navbar-container .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(212, 175, 55, 0.3);
  transition: left 0.3s ease;
  z-index: -1;
}

.main-navbar-container .nav-link:hover::before,
.main-navbar-container .dropdown:hover .nav-link::before {
  left: 0;
}

.main-navbar-container .nav-link:hover,
.main-navbar-container .dropdown:hover .nav-link {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border: 2px solid var(--border-golden);
}

.dropdown-menu {
  background-color: var(--white-bg);
  border: 2px solid var(--border-golden);
  border-top: 3px solid var(--golden-primary);
  box-shadow: 0 8px 25px var(--shadow-golden);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1050 !important;
  position: absolute;
  display: none;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  display: block;
}

.dropdown {
  position: relative;
}

.admin-topbar {
  position: relative;
  z-index: 1040;
}

.dropdown-item {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(26, 77, 46, 0.05));
  color: var(--primary-dark);
  padding-left: 25px;
  border-left: 3px solid var(--golden-primary);
}

/* Mobile Nav Toggle Button - Enhanced */
.mobile-nav-toggle {
  position: absolute;
  top: 150px;
  right: 20px;
  z-index: 1060;
  background: var(--gradient-golden);
  border: 2px solid var(--border-golden);
  color: var(--primary-dark);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--shadow-golden);
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px var(--shadow-golden);
  color: var(--text-white);
  background: var(--primary-dark);
  border-color: var(--golden-primary);
}

/* Enhanced Mobile Navigation */
.offcanvas {
  background: var(--gradient-primary);
  width: 280px !important;
  animation: slideInRight 0.3s ease-out;
  border-left: 3px solid var(--border-golden);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.offcanvas-header {
  border-bottom: 2px solid var(--border-golden);
  padding: 1.5rem;
  background: rgba(212, 175, 55, 0.1);
}

.offcanvas-title {
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-family: "Cairo", sans-serif;
}

.offcanvas-body .nav-link {
  color: var(--text-white);
  font-size: 0.95rem;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.offcanvas-body .nav-link::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 175, 55, 0.3);
  transition: left 0.3s ease;
  z-index: -1;
}

.offcanvas-body .nav-link:hover::before {
  left: 0;
}

.offcanvas-body .nav-link:hover {
  color: var(--text-white);
  padding-left: 30px;
  border-bottom: 1px solid var(--border-golden);
}

.offcanvas-body .nav-link i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  color: var(--golden-primary);
  transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover i {
  color: var(--text-white);
  transform: rotate(15deg);
}

/* Enhanced Accordion for mobile */
.offcanvas-body .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.offcanvas-body .accordion-button {
  background: transparent;
  color: var(--text-white);
  font-size: 0.95rem;
  padding: 15px 20px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.offcanvas-body .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(26, 77, 46, 0.3));
  color: var(--golden-primary);
  border-left: 3px solid var(--border-golden);
}

.offcanvas-body .accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
  transform: scale(0.8);
}

.offcanvas-body .accordion-body {
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
}

.offcanvas-body .accordion-body .nav-link {
  padding-left: 45px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

/*--------------------------------------------------------------
# FIXED: Hero Slider with Royal Islamic Theme - Improved Sizing
--------------------------------------------------------------*/
.main_slider {
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.main_slider .carousel-item {
  height: 550px;
  background-color: var(--black-bg);
  position: relative;
  border: 3px solid var(--border-golden);
  border-radius: 10px;
  overflow: hidden;
}

.main_slider .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 77, 46, 0.4), rgba(212, 175, 55, 0.2));
  z-index: 1;
}

.main_slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from 'fill' to 'cover' for better image presentation */
  object-position: center;
  transition: transform 0.5s ease;
}

.main_slider .carousel-item:hover img {
  transform: scale(1.02); /* Subtle zoom effect on hover */
}

.main_slider .carousel-caption {
  bottom: 30px;
  left: 10%;
  right: 10%;
  text-shadow: 0 2px 4px var(--overlay-darkest);
  z-index: 2;
  animation: fadeInUp 1s ease-out;
  background: rgba(26, 77, 46, 0.85);
  padding: 20px 25px;
  border-radius: 8px;
  border: 2px solid var(--border-golden);
  font-family: "Cairo", sans-serif;
  max-width: 80%;
  margin: 0 auto;
}

.main_slider .carousel-caption h3 {
  color: var(--golden-primary);
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.main_slider .carousel-caption p {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.main-navbar-container + .main_slider {
  margin-top: 0;
}

/* Carousel control buttons */
.main_slider .carousel-control-prev,
.main_slider .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--gradient-golden);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
}

.main_slider .carousel-control-prev {
  left: 20px;
}

.main_slider .carousel-control-next {
  right: 20px;
}

.main_slider .carousel-control-prev:hover,
.main_slider .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--primary-dark);
  border-color: var(--golden-primary);
}

/* Carousel indicators */
.main_slider .carousel-indicators {
  bottom: 10px;
}

.main_slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--golden-primary);
  border: 2px solid var(--border-golden);
  opacity: 0.6;
  margin: 0 5px;
}

.main_slider .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--primary-dark);
  transform: scale(1.2);
}

@media (max-width: 991.98px) {
  .main_slider .carousel-item {
    height: 400px;
  }
  
  .main_slider .carousel-caption h3 {
    font-size: 1.6rem;
  }
  
  .main_slider .carousel-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .main_slider .carousel-item {
    height: 300px;
  }
  
  .main_slider .carousel-caption {
    padding: 15px;
    max-width: 90%;
  }
  
  .main_slider .carousel-caption h3 {
    font-size: 1.3rem;
  }
  
  .main_slider .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .main_slider .carousel-item {
    height: 250px;
  }
  
  .main_slider .carousel-caption h3 {
    font-size: 1.1rem;
  }
  
  .main_slider .carousel-caption p {
    font-size: 0.8rem;
  }
}

/*--------------------------------------------------------------
# Main Grid & Content
--------------------------------------------------------------*/
.marquee-box {
  border: 2px solid var(--border-golden);
  padding: 8px 10px;
  border-radius: 5px;
  background: var(--light-bg);
  animation: slideInRight 0.5s ease-out;
}
.marquee-box p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.quick-action-buttons .btn-action {
  background: var(--gradient-golden);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 15px;
  font-size: 0.95rem;
  border: none;
  flex-grow: 1;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
}

.quick-action-buttons .btn-action:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.member-card {
  background: var(--gradient-primary);
  color: var(--text-white);
  text-align: center;
  padding: 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-golden);
}
.member-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}
.member-card:hover::before {
  left: 100%;
}
.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
}
.member-card:hover img {
  transform: scale(1.05);
  border-color: var(--golden-primary);
}
.member-card h5 {
  font-family: "Cairo", "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  color: var(--golden-primary);
}
.member-card p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.view-all-btn {
  display: block;
  text-align: center;
  background: var(--gradient-golden);
  color: var(--primary-dark);
  padding: 6px 10px;
  margin-top: 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-golden);
  font-weight: 600;
}
.view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  transition: left 0.3s ease;
}
.view-all-btn:hover::before {
  left: 0;
}
.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border-color: var(--primary-dark);
  color: var(--text-white);
}

/*--------------------------------------------------------------
# Owl Carousel (Gallery) with Royal Islamic Theme
--------------------------------------------------------------*/
.post-slide {
  margin: 0 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  border-radius: 10px;
  overflow: hidden;
}
.post-slide:hover {
  transform: translateY(-5px);
  border-color: var(--primary-dark);
}
.post-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.post-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.3s ease 0s;
}
.post-slide:hover .post-img img {
  transform: scale(1.1);
}
#news-slider .owl-buttons .owl-prev,
#news-slider .owl-buttons .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-golden);
  color: var(--primary-dark);
  padding: 4px 10px !important;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s;
  border: 2px solid var(--border-golden);
}
#news-slider .owl-buttons .owl-prev:hover,
#news-slider .owl-buttons .owl-next:hover {
  opacity: 1;
  background: var(--primary-dark);
  color: var(--text-white);
  border-color: var(--golden-primary);
}
#news-slider .owl-buttons .owl-prev {
  left: -20px;
}
#news-slider .owl-buttons .owl-next {
  right: -20px;
}

/*--------------------------------------------------------------
# UPDATED: Enhanced Footer with Dark Green Background & Golden Text
--------------------------------------------------------------*/
.footer-section {
  background: linear-gradient(135deg, #0a2f1d 0%, #052012 100%); /* Dark green gradient */
  position: relative;
  color: var(--golden-primary); /* Golden text color */
  font-size: 0.9rem;
  animation: fadeInUp 0.8s ease-out;
  border-top: 3px solid var(--border-golden);
}

.footer-cta {
  border-bottom: 2px solid var(--border-golden);
}

.single-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.05);
  margin-bottom: 20px;
  border: 2px solid var(--border-golden);
}

.single-cta:hover {
  transform: translateY(-5px);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 10px 25px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.cta-icon {
  margin-bottom: 15px;
}

.single-cta i {
  color: var(--golden-primary);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.single-cta:hover i {
  transform: rotate(15deg) scale(1.2);
  color: #f5e7b2; /* Lighter golden on hover */
}

.cta-text h4 {
  color: var(--golden-primary); /* Golden text */
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "Cairo", sans-serif;
}

.cta-text span {
  color: #e9d6a1; /* Light golden for secondary text */
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-widget-heading h3 {
  color: var(--golden-primary); /* Golden text */
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-golden);
  font-family: "Cairo", sans-serif;
}

.footer-widget-heading h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-golden);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  padding-left: 15px;
  border-left: 2px solid transparent;
}

.footer-links li:hover {
  border-left: 2px solid var(--golden-primary);
}

.footer-links li a {
  color: #e9d6a1; /* Light golden for links */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 5px 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-links li a:hover {
  color: var(--golden-primary); /* Brighter golden on hover */
  padding-left: 10px;
}

.footer-links li a i {
  margin-right: 10px;
  color: var(--golden-primary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-links li a:hover i {
  transform: rotate(15deg);
  color: #f5e7b2; /* Lighter golden */
}

.footer-text p {
  line-height: 1.8;
  color: #e9d6a1; /* Light golden */
  font-size: 0.9rem;
  padding: 10px;
  border: 1px solid var(--border-golden);
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.05);
}

.footer-social-icon span {
  color: var(--golden-primary); /* Golden text */
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-icon a {
  color: var(--primary-dark); /* Dark green for icon contrast */
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px var(--shadow-golden);
  border: 2px solid var(--border-golden);
}

.footer-social-icon a:hover {
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 5px 15px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.facebook-bg {
  background: linear-gradient(135deg, var(--facebook-color), var(--facebook-hover));
}
.twitter-bg {
  background: linear-gradient(135deg, var(--twitter-color), var(--twitter-hover));
}
.instagram-bg {
  background: linear-gradient(135deg, var(--instagram-color), var(--instagram-hover));
}
.youtube-bg {
  background: linear-gradient(135deg, var(--youtube-color), var(--youtube-hover));
}
.android-bg {
  background: linear-gradient(135deg, var(--android-color), var(--android-hover));
}

.facebook-widget {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-golden);
  border: 2px solid var(--border-golden);
}

.copyright-area {
  background: #052012; /* Darker green for copyright */
  padding: 15px 0;
  border-top: 2px solid var(--border-golden);
}

.copyright-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--golden-primary); /* Golden text */
}

.copyright-text a {
  color: #f5e7b2; /* Light golden */
  font-weight: 600;
  transition: all 0.3s ease;
}

.copyright-text a:hover {
  color: var(--golden-primary);
  text-decoration: underline;
}

.footer-menu ul {
  margin: 0;
  padding: 0;
}

.footer-menu .list-inline-item {
  margin-right: 15px;
  position: relative;
}

.footer-menu .list-inline-item::after {
  content: '•';
  color: var(--golden-primary);
  position: absolute;
  right: -10px;
}

.footer-menu .list-inline-item:last-child::after {
  content: '';
}

.footer-menu .list-inline-item a {
  font-size: 0.85rem;
  color: #e9d6a1; /* Light golden */
  transition: color 0.3s ease;
  padding: 5px;
  border-radius: 3px;
}

.footer-menu .list-inline-item a:hover {
  color: var(--golden-primary);
  background: rgba(212, 175, 55, 0.1);
}

.footer-bottom {
  background: #052012; /* Darker green */
  color: var(--golden-primary); /* Golden text */
  text-align: center;
  padding: 10px 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-golden);
}

.footer-bottom a {
  color: #f5e7b2; /* Light golden */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--golden-primary);
  text-decoration: underline;
}

/* Responsive adjustments for footer */
@media (max-width: 767.98px) {
  .single-cta {
    padding: 15px;
  }

  .single-cta i {
    font-size: 1.8rem;
  }

  .cta-text h4 {
    font-size: 1rem;
  }

  .footer-social-icon a {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# User Apply Form Page with Royal Islamic Theme
--------------------------------------------------------------*/
.form-container {
  background-color: var(--white-bg);
  box-shadow: 0 5px 25px var(--shadow-golden);
  border-top: 3px solid var(--border-golden);
  border: 2px solid var(--border-golden);
  border-radius: 10px;
}

.form-field-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  border-left: 3px solid var(--golden-primary);
  padding-left: 10px;
}

.image-uploader {
  border: 2px dashed var(--border-golden);
  border-radius: 8px;
  position: relative;
  width: 140px;
  height: 140px;
  margin: auto;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.image-uploader:hover {
  border-color: var(--golden-primary);
  background-color: rgba(212, 175, 55, 0.1);
  transform: scale(1.05);
}

.uploader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: var(--primary-color);
}

.uploader-empty p {
  margin: 0;
  font-size: 0.85rem;
}

.uploader-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.uploader-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border-golden);
}

.uploader-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 77, 46, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 6px;
}

.uploader-preview:hover .uploader-controls {
  opacity: 1;
}

.payment-info-section {
  background-color: rgba(212, 175, 55, 0.1);
  border-left: 5px solid var(--border-golden);
  padding: 15px;
  font-size: 0.95rem;
  animation: slideInLeft 0.5s ease-out;
  border: 1px solid var(--border-golden);
  border-radius: 5px;
}

.btn-submit-grad {
  background: var(--gradient-golden);
  color: var(--primary-dark);
  font-weight: bold;
  border: none;
  padding: 10px 35px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-golden);
  border-radius: 5px;
}

.btn-submit-grad::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  transition: left 0.3s ease;
}

.btn-submit-grad:hover::before {
  left: 0;
}

.btn-submit-grad:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--text-white);
  box-shadow: 0 5px 15px var(--shadow-golden);
  border-color: var(--primary-dark);
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 77, 46, 0.95);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .form-field-title {
    text-align: left;
    margin-bottom: 5px;
  }
}

/*--------------------------------------------------------------
# Gallery Page Styles with Royal Islamic Theme
--------------------------------------------------------------*/
.gallery-card {
  background-color: var(--white-bg);
  border-radius: 10px;
  box-shadow: 0 10px 20px var(--shadow-golden);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 220px;
  border: 2px solid var(--border-golden);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  border-color: var(--golden-primary);
  transform: translateY(-5px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 77, 46, 0.9), rgba(212, 175, 55, 0.6));
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border: 2px solid var(--border-golden);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

#galleryModal .modal-dialog {
  max-width: 90vw;
}

#galleryModal .modal-content {
  box-shadow: none;
  border: 3px solid var(--border-golden);
}

#galleryModal .modal-body img {
  border-radius: 5px;
  max-height: 90vh;
  border: 2px solid var(--border-golden);
}

/*--------------------------------------------------------------
# ID Card Download Page with Royal Islamic Theme
--------------------------------------------------------------*/
.download-card {
  background-color: var(--white-bg);
  border: 2px solid var(--border-golden);
  border-top: 5px solid var(--border-golden);
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease-out;
  border-radius: 10px;
}

.btn-download-primary {
  background: var(--gradient-golden);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  border-radius: 5px;
}

.btn-download-primary:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.btn-download-secondary {
  background: var(--gradient-primary);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  border-radius: 5px;
}

.btn-download-secondary:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border-color: var(--golden-primary);
}

/*--------------------------------------------------------------
# Upcoming Event Page with Royal Islamic Theme
--------------------------------------------------------------*/
.event-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 2px solid var(--border-golden);
  background: var(--white-bg);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-golden);
  border-color: var(--golden-primary);
}

.event-image-container {
  height: 250px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-details {
  padding: 1.25rem;
}

.event-title {
  font-family: "Cairo", "Poppins", sans-serif;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--border-golden);
  padding-bottom: 10px;
}

.event-card:hover .event-title {
  color: var(--golden-dark);
  border-bottom-color: var(--golden-primary);
}

.event-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.event-meta span i {
  color: var(--golden-primary);
}

.event-description {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 3px solid var(--border-golden);
  padding-left: 10px;
}

.event-description::-webkit-scrollbar {
  width: 6px;
}
.event-description::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.1);
}
.event-description::-webkit-scrollbar-thumb {
  background: var(--border-golden);
  border-radius: 3px;
}
.event-description::-webkit-scrollbar-thumb:hover {
  background: var(--golden-primary);
}

.event-btn {
  background: var(--gradient-golden);
  border-color: transparent;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--primary-dark);
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
  border-radius: 5px;
}

.event-btn:hover {
  background: var(--primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-golden);
  border-color: var(--golden-primary);
}

@media (max-width: 767.98px) {
  .event-image-container {
    height: 180px;
  }
}

/*--------------------------------------------------------------
# Supporter / Donor Card Styles with Royal Islamic Theme
--------------------------------------------------------------*/
.supporter-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-white);
  box-shadow: 0 5px 15px var(--shadow-golden);
  transition: all 0.3s ease;
  border: 2px solid var(--border-golden);
}

.supporter-card:hover {
  transform: translateY(-5px);
  border-color: var(--golden-primary);
  box-shadow: 0 10px 25px var(--shadow-golden);
}

.supporter-img-container {
    background-color: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--border-golden);
    padding: 8px;
    border-radius: 8px;
    min-height: 220px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.supporter-card:hover .supporter-img-container {
    background-color: rgba(212, 175, 55, 0.25);
    border-color: var(--golden-primary);
}

.supporter-img-container img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--border-golden);
}

.supporter-card:hover .supporter-img-container img {
    transform: scale(1.05);
    border-color: var(--golden-primary);
}

@media (max-width: 768px) {
    .supporter-img-container {
        min-height: 180px;
        padding: 6px;
    }
}

.supporter-body {
  text-align: center;
}

.supporter-name {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  border: 2px solid var(--border-golden);
}

.supporter-name h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: "Cairo", "Poppins", sans-serif;
  color: var(--golden-primary);
}

.supporter-details .detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  padding: 0 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-golden);
  padding-bottom: 0.2rem;
  color: var(--text-white);
}

/*--------------------------------------------------------------
# Contact Us Page with Royal Islamic Theme
--------------------------------------------------------------*/
.contact-info-wrapper {
  background-color: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  border-left: 4px solid var(--border-golden);
  animation: slideInLeft 0.5s ease-out;
  border: 2px solid var(--border-golden);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid transparent;
}

.contact-info-item:hover {
  transform: translateX(5px);
  border: 1px solid var(--border-golden);
  background: rgba(212, 175, 55, 0.15);
}

.contact-info-item i {
  font-size: 1.3rem;
  color: var(--golden-primary);
  margin-right: 1.2rem;
  width: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info-item:hover i {
  color: var(--primary-color);
  transform: scale(1.2);
}

.contact-info-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.contact-info-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.5;
  font-size: 0.95rem;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-golden);
  border: 2px solid var(--border-golden);
  animation: slideInRight 0.5s ease-out;
}

/*--------------------------------------------------------------
# About Us Page with Royal Islamic Theme
--------------------------------------------------------------*/
.about-us-container {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text-color);
}

.about-us-container .about-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background: var(--white-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow-golden);
  transition: all 0.3s ease;
  border-left: 3px solid var(--border-golden);
  border: 2px solid var(--border-golden);
}

.about-us-container .about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow-golden);
  border-left-color: var(--golden-primary);
  border-color: var(--golden-primary);
}

.about-us-container .about-section .section-image {
  flex: 0 0 280px;
  margin-right: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-golden);
}

.about-us-container .about-section .section-image img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.about-us-container .about-section:hover .section-image img {
  transform: scale(1.05);
}

.about-us-container .about-section .section-content {
  flex: 1;
}

.about-us-container .about-section h4 {
  font-family: "Cairo", "Poppins", sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--border-golden);
  padding-left: 10px;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.about-us-container .about-section:hover h4 {
  color: var(--golden-dark);
  border-left-color: var(--golden-primary);
}

.about-us-container .about-section p,
.about-us-container .about-section li {
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.about-us-container .about-section strong {
  color: var(--primary-dark);
}

.about-us-container ul,
.about-us-container ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.about-us-container ul li {
  list-style-type: disc;
  color: var(--golden-primary);
}

.about-us-container ol li {
  list-style-type: decimal;
  color: var(--golden-primary);
}

@media (max-width: 767.98px) {
  .about-us-container .about-section {
    flex-direction: column;
  }

  .about-us-container .about-section .section-image {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  .about-us-container .about-section .section-image img {
    max-height: 150px;
  }
}

/*--------------------------------------------------------------
# Solutions Page with Royal Islamic Theme
--------------------------------------------------------------*/
.solution-card {
  border: 2px solid var(--border-golden);
  border-radius: 10px;
  transition: all 0.3s ease;
  border-top: 3px solid var(--border-golden);
  background: var(--white-bg);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-golden);
  border-top-color: var(--golden-primary);
  border-color: var(--golden-primary);
}

.solution-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: all 0.3s ease;
}

.solution-card:hover .card-img-top {
  transform: scale(1.05);
}

.solution-card .card-title {
  color: var(--primary-color);
  font-size: 1.15rem;
  transition: all 0.3s ease;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

.solution-card:hover .card-title {
  color: var(--golden-dark);
}

.solution-card .card-text {
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Login Pages with Royal Islamic Theme
--------------------------------------------------------------*/
.login-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-card {
  border: 2px solid var(--border-golden);
  border-top: 5px solid var(--border-golden);
  animation: fadeInUp 0.6s ease-out;
  border-radius: 10px;
  background: var(--white-bg);
}

.login-card .card-title {
  font-family: "Cairo", "Poppins", sans-serif;
  color: var(--primary-dark);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-golden);
  padding-bottom: 10px;
}

/*--------------------------------------------------------------
# Dashboard Styles with Royal Islamic Theme
--------------------------------------------------------------*/
.dashboard-sidebar {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  font-size: 0.95rem;
  border-right: 3px solid var(--border-golden);
}

.dashboard-content {
  min-height: 100vh;
  background: var(--body-bg);
  font-size: 0.95rem;
}

.nav-link {
  color: var(--text-white) !important;
  border-radius: 5px;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(212, 175, 55, 0.2);
  border-left-color: var(--border-golden);
  padding-left: 15px;
}

.table-actions {
  white-space: nowrap;
}

.modal-lg {
  max-width: 90%;
}

/* Gallery Image Container */
.gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border-golden);
    transition: all 0.3s ease;
}
.gallery-image-container:hover {
    border-color: var(--golden-primary);
}
.gallery-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.gallery-image-container:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.9), rgba(212, 175, 55, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-image-container:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h6 {
    margin-bottom: 0.5rem;
    color: var(--golden-primary);
}

/* Index Gallery Section Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    animation: fadeIn 0.8s ease-out;
    border: 2px solid var(--border-golden);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image-container img {
    transition: transform 0.3s ease;
}

.gallery-image-container:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 77, 46, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-image-container:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--golden-primary);
    font-family: "Cairo", sans-serif;
}

/*--------------------------------------------------------------
# Management Team and Members Sections with Royal Islamic Theme
--------------------------------------------------------------*/
.card-custom .member-card a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    position: relative;
    display: inline-block;
    font-family: "Cairo", sans-serif;
}

.card-custom .member-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden-primary);
    transition: width 0.3s ease;
}

.card-custom .member-card a:hover {
    color: var(--golden-primary);
}

.card-custom .member-card a:hover::after {
    width: 100%;
    background: var(--golden-primary);
}

.card-custom .view-all-btn {
    background: var(--gradient-golden);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    display: block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-golden);
    font-family: "Cairo", sans-serif;
}

.card-custom .view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    transition: left 0.3s ease;
}

.card-custom .view-all-btn:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-golden);
    border-color: var(--golden-primary);
}

.card-custom .view-all-btn:hover::before {
    left: 0;
}

/*--------------------------------------------------------------
# Islamic Pattern Overlays (Optional Enhancement)
--------------------------------------------------------------*/
.islamic-pattern-bg {
    position: relative;
    overflow: hidden;
}

.islamic-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M50 10 L60 40 L90 40 L67 60 L75 90 L50 73 L25 90 L33 60 L10 40 L40 40 Z" fill="%23d4af37"/></svg>');
    background-repeat: repeat;
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.islamic-pattern-bg > * {
    position: relative;
    z-index: 1;
}