
/* =============================================
   Grand Mosque - Main Stylesheet
   Colors: Primary #006260 | Gold #c9a84c
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #006260;
  --primary-dark: #004d4b;
  --gold: #c9a84c;
  --gold-light: #e0c274;
  --dark: #0f172a;
  --text: #475569;
  --heading: #0f172a;
  --light-bg: #fdfdfb;
  --border: #f1f5f9;
  --white: #ffffff;
}

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

html, body {
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Prata', serif;
  color: var(--heading);
  line-height: 1.3;
}

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

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

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary);
  padding: 8px 0;
  font-size: 13px;
  color: #fff;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .social-links a {
  display: inline-block;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  margin-left: 4px;
  font-size: 12px;
}
.top-bar .social-links a:hover { background: var(--gold); }

/* ---- NAVBAR ---- */
.navbar-main {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-main .container {
  padding-left: 0;
}
.logo-box {
  background: var(--primary);
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}
.logo-box img {
  max-width: 180px;
  height: auto;
}

.navbar-main .nav-link {
  color: var(--heading) !important;
  font-weight: 500;
  font-size: 13px !important;
  padding: 25px 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.navbar-main .nav-link:hover, .navbar-main .nav-link.active {
  color: var(--primary) !important;
}
  padding: 25px 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.navbar-main .navbar-nav .nav-link:hover,
.navbar-main .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}
.navbar-main .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.navbar-main .navbar-nav .nav-link:hover::after,
.navbar-main .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-main .dropdown-menu {
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 10px 0;
}
.navbar-main .dropdown-item {
  font-size: 14px;
  padding: 8px 20px;
  color: var(--heading);
  transition: all 0.3s;
}
.navbar-main .dropdown-item:hover {
  background: var(--primary);
  color: #fff;
  padding-left: 28px;
}

.btn-donate {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 0;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 10px;
}
.btn-donate:hover { background: var(--primary) !important; color: #fff !important; }

/* ---- HERO SLIDER ---- */
.hero-slider { position: relative; }
.hero-slide {
  background-size: cover;
  background-position: center;
  height: 650px;
  display: flex;
  align-items: center;
  position: relative;
}
/* ---- PREMIUM UTILITIES ---- */
.white-card {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
}
.shadow-soft { box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.text-gold { color: var(--gold) !important; }

/* ---- HERO SLIDE OVERLAY SIMPLIFICATION ---- */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* ---- SECTION HEADING ---- */
.section-heading { margin-bottom: 60px; }
.section-heading .sub-title {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.section-heading h2 { font-size: 42px; color: var(--heading); margin-bottom: 20px; font-weight: 400; }
.section-heading p { color: var(--text); max-width: 650px; font-size: 17px; line-height: 1.8; }
.section-heading .divider {
  width: 80px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.section-heading.text-center .divider { margin: 20px auto; }

/* ---- ABOUT SECTION (Modern Overlap) ---- */
.about-section { padding: 120px 0; }
.about-section .img-wrap { position: relative; padding-right: 50px; }
.about-section .img-wrap img { border-radius: 12px; box-shadow: 20px 20px 60px rgba(0,0,0,0.1); }
.about-section .experience-badge {
  position: absolute;
  bottom: -30px; right: 0;
  background: var(--gold);
  color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 10px 10px 30px rgba(201,168,76,0.3);
}
.about-section .experience-badge .num { font-family: 'Prata', serif; font-size: 56px; line-height: 1; }

/* ---- COUNTER SECTION ---- */
.counter-section {
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1548199569-3e1c6aa8f469?w=1600&q=80') center/cover fixed;
  position: relative;
}
.counter-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,98,96,0.9); }
.counter-item { text-align: center; color: #fff; position: relative; z-index: 2; }
.counter-item .count { font-family: 'Prata', serif; font-size: 64px; line-height: 1; color: var(--gold); }
.counter-item .label { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; margin-top: 10px; font-weight: 500; }

/* ---- EVENTS ---- */
.events-section { padding: 90px 0; }
.event-card { display: flex; gap: 20px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.event-card:last-child { border-bottom: none; }
.event-date {
  min-width: 80px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  flex-shrink: 0;
}
.event-date .day { font-family: 'Prata', serif; font-size: 32px; line-height: 1; }
.event-date .month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.event-info h5 { font-size: 17px; margin-bottom: 8px; }
.event-info p { font-size: 13px; color: var(--text); margin-bottom: 5px; }
.event-info .meta { font-size: 12px; color: var(--primary); }
.event-info .meta i { margin-right: 4px; }

/* ---- CAMPAIGN / DONATION ---- */
.campaign-section { padding: 90px 0; background: var(--light-bg); }
.campaign-card { background: #fff; overflow: hidden; transition: all 0.3s; height: 100%; }
.campaign-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.campaign-card img { width: 100%; height: 220px; object-fit: cover; }
.campaign-card .card-body { padding: 25px; }
.campaign-card h5 { font-size: 18px; margin-bottom: 12px; font-family: 'Prata', serif; }
.campaign-card p { font-size: 14px; color: var(--text); margin-bottom: 15px; }
.progress-bar-custom { height: 6px; background: #eee; border-radius: 0; margin-bottom: 10px; }
.progress-bar-custom .fill { height: 100%; background: var(--primary); border-radius: 0; }
.campaign-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); }
.campaign-meta .raised { color: var(--primary); font-weight: 600; }

/* ---- BLOG ---- */
.blog-section { padding: 90px 0; }
.blog-card { background: #fff; overflow: hidden; transition: all 0.3s; }
.blog-card:hover { box-shadow: 0 10px 35px rgba(0,0,0,0.1); }
.blog-card .img-wrap { overflow: hidden; }
.blog-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover img { transform: scale(1.05); }
.blog-card .card-body { padding: 25px; }
.blog-card .meta { font-size: 12px; color: var(--text); margin-bottom: 12px; }
.blog-card .meta a { color: var(--primary); }
.blog-card h5 { font-size: 18px; margin-bottom: 12px; font-family: 'Prata', serif; line-height: 1.4; }
.blog-card h5 a { color: var(--heading); }
.blog-card h5 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; color: var(--text); margin-bottom: 15px; }
.read-more { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.read-more:hover { color: var(--gold); }

/* ---- TEAM ---- */
.team-section { padding: 90px 0; background: var(--light-bg); }
.team-card { text-align: center; background: #fff; overflow: hidden; }
.team-card .img-wrap { position: relative; overflow: hidden; }
.team-card img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s; }
.team-card:hover img { transform: scale(1.05); }
.team-card .overlay {
  position: absolute; inset: 0;
  background: rgba(0,98,96,0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.team-card:hover .overlay { opacity: 1; }
.team-card .overlay .social a {
  display: inline-block;
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  line-height: 36px;
  color: var(--primary);
  margin: 0 4px;
  font-size: 14px;
}
.team-card .card-body { padding: 20px; }
.team-card h5 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.newsletter-section h3 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.newsletter-section p { color: rgba(255,255,255,0.8); }
.newsletter-form { display: flex; max-width: 480px; }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
}
.newsletter-form button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: #b8933e; }

/* ---- FOOTER ---- */
footer {
  background: #1a1a2e;
  padding: 70px 0 0;
  color: rgba(255,255,255,0.7);
}
footer h5 {
  color: #fff;
  font-family: 'Prata', serif;
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}
footer h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}
footer p { font-size: 14px; line-height: 1.9; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all 0.3s;
}
.footer-links a::before { content: '› '; color: var(--gold); }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 15px; font-size: 14px; }
.footer-contact li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  margin-right: 6px;
  font-size: 13px;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  background: #12121f;
  margin-top: 50px;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold); }

/* ---- PAGE HEADER (Breadcrumb) ---- */
.page-header {
  background: var(--primary);
  padding: 70px 0;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://via.placeholder.com/1920x400') center/cover;
  opacity: 0.1;
}
.page-header .container { position: relative; }
.page-header h1 { color: #fff; font-size: 42px; margin-bottom: 15px; }
.breadcrumb { background: none; padding: 0; justify-content: center; margin: 0; }
.breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 14px; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- FAQ ---- */
.faq-section { padding: 90px 0; }
.accordion-item { border: 1px solid var(--border); border-radius: 0 !important; margin-bottom: 10px; }
.accordion-button {
  font-family: 'Prata', serif;
  font-size: 16px;
  color: var(--heading);
  background: #fff;
  border-radius: 0 !important;
  padding: 18px 25px;
}
.accordion-button:not(.collapsed) { background: var(--primary); color: #fff; box-shadow: none; }
.accordion-button::after { filter: brightness(0); }
.accordion-button:not(.collapsed)::after { filter: brightness(10); }
.accordion-body { font-size: 14px; color: var(--text); padding: 20px 25px; }

/* ---- CONTACT ---- */
.contact-section { padding: 90px 0; }
.contact-info-card { background: var(--primary); padding: 35px; color: #fff; height: 100%; }
.contact-info-card h5 { color: #fff; font-size: 20px; margin-bottom: 25px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-info-item .icon-box {
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--heading);
}
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: none; }
.contact-form textarea { resize: none; height: 130px; }
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover { background: var(--gold); }

/* ---- 404 ---- */
.error-section { padding: 120px 0; text-align: center; }
.error-section .error-code { font-family: 'Prata', serif; font-size: 150px; color: var(--primary); line-height: 1; }
.error-section h3 { font-size: 32px; margin-bottom: 20px; }
.error-section p { max-width: 500px; margin: 0 auto 30px; }

/* ---- VIDEO POPUP ---- */
.video-btn {
  width: 70px; height: 70px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  position: relative;
}
.video-btn::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.6; } }

/* ---- SIDEBAR ---- */
.sidebar .widget { background: #fff; padding: 30px; margin-bottom: 30px; border: 1px solid var(--border); }
.sidebar .widget-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); font-family: 'Prata', serif; }

/* ---- UTILITY & SECTION BASICS ---- */
.section-pad { padding: 80px 0; }
.bg-light-custom { background: #fdfdfb; }
.divider { width: 50px; height: 3px; background: var(--gold); margin: 20px 0 30px; }
.section-heading { margin-bottom: 50px; }
.section-heading .sub-title { 
  display: block; font-size: 13px; font-weight: 700; color: var(--gold); 
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; 
}
.section-heading h2 { font-size: 38px; font-weight: 400; color: var(--heading); }

/* ---- PREMIUM CARDS ---- */
.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  transition: all 0.3s;
  height: 100%;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.service-card .icon { font-size: 35px; color: var(--primary); margin-bottom: 25px; }

/* ---- HERO SLIDER ---- */
.hero-slide { height: 650px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7) 40%, transparent); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 { color: #fff; font-size: 56px; line-height: 1.1; margin-bottom: 25px; }
.hero-slide p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 600px; margin-bottom: 35px; }
.news-grid-small {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 20px;
  transition: 0.3s;
  display: flex;
  gap: 15px;
}
.news-grid-small:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.news-grid-small .img-wrap { width: 100px; height: 80px; flex-shrink: 0; }
.news-grid-small img { width: 100%; height: 100%; object-fit: cover; }
.news-grid-small h6 { font-size: 15px; margin: 0; line-height: 1.4; }

/* ---- BUTTONS ---- */
.btn-gold {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 25px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-gold:hover { background: var(--primary-dark); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 0;
}
footer h5 { color: var(--gold); margin-bottom: 25px; font-family: 'Prata', serif; }
footer p { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; font-size: 14px; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 50px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .hero-slide { height: 450px; }
  .header-identity .logo-text { font-size: 24px; }
  .news-grid-large { min-height: 300px; }
}
