/* Base Styles */
:root {
  --primary: #2c5f8b;
  --secondary: #e8f1f5;
  --accent: #ff7d00;
  --dark: #1a2e40;
  --light: #f8f9fa;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --gold: #c2a072;
  --text-dark: #212529;
  --text-light: #6c757d;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Amiri", serif;
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: #b38d5a;
  border-color: #b38d5a;
}

.btn-outline-primary {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-primary:hover {
  background-color: var(--gold);
  color: white;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

.donation-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 22%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

.madrasah-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 22%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

.section-subtitle {
  color: white;
  font-size: 1.1rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--dark);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.announcement-bar p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.social-icons a {
  color: white;
  margin-left: 15px;
  font-size: 1rem;
}

.social-icons a:hover {
  color: var(--gold);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
}

.masjid-name {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.masjid-slogan {
  font-size: 0.8rem;
  color: var(--text-light);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--dark) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}

.donate-btn {
  background-color: var(--gold);
  border-color: var(--gold);
  color: white;
}

.donate-btn:hover {
  background-color: #b38d5a;
  border-color: #b38d5a;
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
}

.carousel-item {
  height: 80vh;
  min-height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  bottom: 30%;
  text-align: left;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
}

.carousel-caption h1 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  margin: 0 8px !important;
}

/* Prayer Times Section */
.prayer-times-section {
  background-color: white;
}

.prayer-times-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.prayer-times-header {
  background-color: var(--dark);
  color: white;
  padding: 20px;
  text-align: center;
}

.prayer-times-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.prayer-times-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

.prayer-time {
  background-color: var(--light);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.prayer-time:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prayer-time h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.prayer-time .time {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.prayer-time .iqamah {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 5px;
}

.prayer-times-footer {
  background-color: var(--light);
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.full-timetable-btn {
  margin-top: 5px;
  display: flex;
  justify-content: center;
}

/* YouTube Videos Section */
.videos-section {
  background-color: var(--light);
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.play-button i {
  color: #c2a072;
  font-size: 24px;
  margin-left: 5px;
}

.video-thumbnail:hover .play-button {
  background-color: rgba(194, 160, 114, 0.9);
}

.video-thumbnail:hover .play-button i {
  color: white;
}

.video-info {
  padding: 20px;
}

.video-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.video-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Services Section */

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-link {
  color: var(--gold);
  font-weight: 500;
}

/* Madrasah Section */
.madrasah-section {
  background-color: white;
}

.features-list {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.feature-item {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.feature-item i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Donation Section */
.donation-section {
  background-color: var(--primary);
  color: white;
}

.donation-options {
  margin-top: 20px;
}

.option {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.option i {
  margin-right: 15px;
  font-size: 1.3rem;
  color: var(--gold);
}

.donation-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donation-card h3 {
  color: var(--dark);
}

/* Enhanced Madrasah Styles */
.madrasah-hero {
  background: linear-gradient(135deg, #2c5f8b 0%, #3a7cb9 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.madrasah-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/mataq-darul-ulum-FIE6XplzgZs-unsplash.jpg")
    no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
}

.madrasah-hero .container {
  position: relative;
  z-index: 1;
}

.section-title-madrasah {
  font-family: "Amiri", serif;
  font-weight: 700;
  color: #2c5f8b;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title-madrasah::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: var(--gold);
}

.madrasah-section {
  position: relative;
  padding: 4rem 0;
}

.madrasah-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/islamic-pattern.png") repeat;
  opacity: 0.03;
  z-index: 0;
}

.madrasah-section .container {
  position: relative;
  z-index: 1;
}

.features-list {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.feature-item i {
  margin-right: 10px;
  color: #2c5f8b;
}

.img-fluid.rounded.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  border: 5px solid white;
  transition: transform 0.3s ease;
}

.img-fluid.rounded.shadow:hover {
  transform: scale(1.02);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #555 !important;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.donate-btn {
  background: #2c5f8b;
  border: none;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: #1e4a6f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 95, 139, 0.3);
}

.btn-primary {
  background: var(--gold);
  border: none;
  padding: 0.6rem 1.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e4a6f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 95, 139, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .madrasah-hero {
    padding: 3rem 0;
  }

  .section-title::after {
    bottom: -8px;
    height: 2px;
  }
}

/* Contact Section */
.contact-info-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-item h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-form-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

/* Events Section Styles */
.gold-section {
  background: #faf6f0;
  padding: 80px 0;
  position: relative;
}

.events-intro {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: #8e6d45;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  color: #2c5e92;
  font-size: 36px;
  margin-bottom: 20px;
}

.section-description {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* Timeline Events */
.events-timeline {
  margin-bottom: 60px;
}

.events-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-header h2 {
  color: #2c5e92;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.events-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.event-block {
  display: flex;
  margin-bottom: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.event-icon {
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  font-size: 24px;
}

.event-date {
  padding: 20px;
  min-width: 180px;
  border-right: 1px solid #eee;
}

.event-date h3 {
  color: #2c5e92;
  margin-bottom: 5px;
}

.event-date p {
  color: var(--gold);
  font-weight: 500;
}

.event-details {
  padding: 20px;
  flex-grow: 1;
}

.event-details h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 18px;
}

.event-details p {
  color: #666;
  margin-bottom: 15px;
}

.event-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.event-meta span {
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2c5e92;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.event-btn:hover {
  background: #8e6d45;
}

/* Special Events Grid */
.special-events {
  margin-top: 60px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.special-event {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-date-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(44, 94, 146, 0.9);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  min-width: 80px;
}

.event-date-badge .month {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.event-date-badge .days {
  display: block;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.event-content {
  padding: 20px;
}

.event-content h3 {
  color: #2c5e92;
  margin-bottom: 10px;
}

.event-time {
  color: #8e6d45;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-events-card {
  opacity: 0.9;
}

.no-events-card .event-banner {
  background-color: #f5f5f5;
  background-blend-mode: overlay;
}

.no-events-card .event-date-badge {
  background-color: #c2a072; /* Islamic gold color */
}

.no-events-card .arabic-text {
  font-family: "Amiri", "Traditional Arabic", serif;
  font-size: 1.4rem;
  color: #2a5a8d;
  text-align: center;
  margin: 10px 0;
  line-height: 1.6;
}

.no-events-card .translation {
  font-style: italic;
  color: #666;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.no-events-card .event-content p:first-of-type {
  margin-bottom: 10px;
}

/* Registration Styling */

.form-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  background: #f5f5f5 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Responsive iframe */
.google-form {
  width: 100% !important;
  max-width: 640px !important; /* Match your form width */
  height: 2394px !important; /* Match your form height */
  border: none !important;
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .google-form {
    height: 3000px !important; /* Extra space for mobile */
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .event-block {
    flex-direction: column;
  }

  .event-date {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}
/* Map Section */

.map-section iframe {
  border: none;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

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

.newsletter-form .form-control {
  height: 50px;
  border-radius: 4px 0 0 4px;
  border: none;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
}

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

.footer-bottom-links li {
  display: inline-block;
  margin-left: 15px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

.footer-masjid {
  color: white;
}
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .carousel-caption .lead {
    font-size: 1rem;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 60vh;
  }

  .carousel-caption {
    bottom: 20%;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .prayer-times-grid {
    grid-template-columns: 1fr;
  }

  .footer .col-lg-4 {
    margin-bottom: 30px;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 50vh;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
