/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #0F3E26;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

header.scrolled {
    background: #1c5236 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 65px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff; /* White text so it's readable on deep green */
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #d4af37; /* Elegant gold highlight on hover */
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 520px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #d4af37; /* Gold theme matching the foundation logo */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: 0.3s;
}

.btn:hover {
    background: #bfa030;
    transform: translateY(-3px);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #0F3E26;
}

.section p {
    text-align: center;
    max-width: 850px;
    margin: auto;
    font-size: 18px;
    color: #555;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card img {
    width: 90px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0F3E26;
}

.card p {
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
   INNER PAGES HERO BANNERS (Unified and Consolidated)
   ========================================================================== */
.sadaqah-hero, .zakat-hero, .about-hero, .appeals-hero, 
.blog-hero, .contact-hero, .donate-hero, .gallery-hero, .projects-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sadaqah-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/sadaqah-bg.jpg');
}

.zakat-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/zakat-bg.jpg');
}

.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/about-bg.jpg');
}

.appeals-hero, .contact-hero, .donate-hero, .gallery-hero, .projects-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
}

.blog-hero {
    background-color: #0F3E26;
}

/* ==========================================================================
   DONATION SECTION (Professional Brand Aesthetic)
   ========================================================================== */
.donation-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.donation-card {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.donation-card h2 {
    color: #0F3E26; /* Deep Brand Green */
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.currency-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Currency selector tabs */
.currency-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: #f0f2f0;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: #0F3E26;
    color: #fff;
}

/* Preset Amounts Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.amount-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 12px 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0F3E26;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn.active, .amount-btn:hover {
    border-color: #0F3E26;
    background: #f0f7f3;
}

/* Custom Input and Submit Button */
.donation-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-amount-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease;
}

.custom-amount-input:focus {
    border-color: #0F3E26;
}

.donate-submit-btn {
    width: 100%;
    background: #d4af37; /* Clean Gold Accent */
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    animation: flashEffect 2.5s infinite ease-in-out;
}

.donate-submit-btn:hover {
    background: #b89326;
}

/* Flash Animation for CTAs */
@keyframes flashEffect {
    0% { opacity: 1; }
    50% { opacity: 0.9; transform: scale(1.01); }
    100% { opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #111;
    color: #ddd;
    padding: 50px 0;
    text-align: center;
}

footer h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

footer p {
    font-size: 15px;
    margin-top: 10px;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }
    .hero p {
        font-size: 18px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .amount-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout for easier mobile tapping */
    }
}
/* --- Premium Donation Widget Styling --- */
.donation-section {
  padding: 60px 20px;
  background-color: #f6f8fb;
  display: flex;
  justify-content: center;
}

.donation-card-modern {
  background-color: #2aaae2; /* Vibrant Blue */
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
}

/* Rows Styling */
.donation-row, 
.donation-amount-row, 
.donation-input-row, 
.donation-footer-row {
  margin-bottom: 14px;
  display: flex;
  width: 100%;
  gap: 12px;
}

.donation-footer-row {
  margin-bottom: 0;
}

/* Dropdowns */
.select-wrapper, .currency-dropdown-wrapper {
  position: relative;
  flex: 1;
}

.donation-select {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrapper::after, .currency-dropdown-wrapper::after {
  content: "▼";
  font-size: 12px;
  color: #888888;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Preset Buttons */
.donation-amount-row {
  justify-content: space-between;
}

.amount-btn {
  flex: 1;
  background-color: #ffffff;
  color: #e62a5d;
  border: none;
  border-radius: 12px;
  padding: 18px 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.amount-btn:hover {
  background-color: #f7f7f7;
}

.amount-btn.active {
  background-color: #e62a5d;
  color: #ffffff;
}

/* Input Fields & Currency Dropdown */
.currency-select {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  background-color: #ffffff;
  border: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.input-wrapper {
  flex: 1.5;
}

.custom-amount-input {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: #333333;
}

.custom-amount-input:focus {
  outline: none;
}

/* Logos Container (Bottom Left) */
.payment-logos-box {
  flex: 1.2;
  background-color: #7bbfe9; /* Light blue contrasting element */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  max-height: 56px; /* Prevents the container from stretching */
  overflow: hidden;
}

.payment-logos-box .pay-logo {
  height: 24px;
  width: auto;
  max-width: 45px;
  display: inline-block;
}

/* Quick Donate Button (Bottom Right) */
.quick-donate-btn {
  flex: 1;
  background-color: #e62a5d; /* Dark Pink */
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.quick-donate-btn:hover {
  background-color: #c91e4a;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  .donation-amount-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .donation-footer-row {
    flex-direction: column;
  }
  .payment-logos-box, .quick-donate-btn {
    width: 100%;
    padding: 15px;
  }
}
