/* Islamic Center of East Bay - Main Stylesheet */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #1D6F42;    /* Deep Green */
  --secondary-color: #D4AF37;  /* Gold/Amber */
  --neutral-color: #F5F5F5;    /* Light Gray */
  --text-color: #333333;       /* Dark Gray */
  --white: #FFFFFF;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

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

.btn-membership {
  background-color: #E8913A !important;
  color: var(--white) !important;
}

.btn-membership:hover {
  background-color: #D07A2A !important;
  color: var(--white) !important;
}

.topbar-membership-btn {
  background-color: #E8913A;
  color: var(--white) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.topbar-membership-btn:hover {
  background-color: #D07A2A;
  color: var(--white) !important;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

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

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

.contact-info .ein-info {
  color: var(--white);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-ein-mobile {
  display: none;
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .logo-ein-mobile {
    display: block;
  }
}

.logo-text {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-menu li a {
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.instagram-icon i {
  font-size: 28px;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285AEB 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.3s ease;
}

.instagram-icon i:hover {
  transform: scale(1.2);
}


.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../resources/images/mosque_interior.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ===== PRAYER TIMES SECTION ===== */

.prayer-section{
	margin-top: 30px;
	margin-bottom: 30px;
}

.prayer-times {
  background-color: var(--white);
  padding: 40px 0;
}

.prayer-times-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.prayer-time-card {
  flex: 1;
  min-width: 150px;
  background-color: var(--neutral-color);
  padding: 15px;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.prayer-name {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

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

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--neutral-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ===== ANNOUNCEMENTS SECTION ===== */
.announcements {
  background-color: var(--white);
}

.announcement-card {
  background-color: var(--neutral-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.announcement-date {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.announcement-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ===== DONATION SECTION ===== */
.donation {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.donation .section-title {
  color: var(--white);
}

.donation .section-title::after {
  background-color: var(--white);
}

.donation-content {
  max-width: 700px;
  margin: 0 auto;
}

.donation-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--neutral-color);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.list {
    margin-left: 20px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 50vh;
    border: none;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .prayer-times-container {
    justify-content: center;
  }
  
  .prayer-time-card {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
	margin-right: 20px;
  }
  
  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .donation-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 822px) {
  .iframe-wrapper iframe {
    height: calc(50vh + 300px);
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .prayer-time-card {
    min-width: 100%;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .iframe-wrapper iframe {
    width: 100%;
    height: 800px;
  }
}

/* ===== JUMMAH & HADITH SECTION ===== */
.jummah-hadith-section {
  background-color: var(--neutral-color);
}

.jummah-hadith-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.jummah-card,
.hadith-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.jummah-card {
  border-left: 4px solid var(--primary-color);
}

.hadith-card {
  border-left: 4px solid var(--secondary-color);
}

.jummah-card .section-title,
.hadith-card .section-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .jummah-hadith-grid {
    grid-template-columns: 1fr;
  }
}

.hadith-content {
  /* Remove card styling since parent has it */
}

.hadith-narrator {
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.hadith-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.hadith-source {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--neutral-color);
  font-size: 0.9rem;
}

.hadith-book {
  font-weight: 600;
  color: var(--primary-color);
}

.hadith-number {
  color: var(--secondary-color);
  font-weight: 600;
}

.hadith-loading,
.hadith-error {
  text-align: center;
  padding: 30px;
  color: var(--text-color);
}

.hadith-loading i {
  margin-right: 8px;
  color: var(--primary-color);
}
