/*
Theme Name: Bait al-Ilm lil Banat
Theme URI: https://bait-al-ilm.org
Author: Hakeem
Author URI: https://hakeem.com
Description: A custom WordPress theme for Bait al-Ilm lil Banat - Empowering girls with knowledge, faith, and opportunity.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bait-al-ilm
Tags: education, islamic, responsive, bootstrap
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.0
*/

/* ===== RESET & BASE STYLES ===== */
/* Bootstrap handles most of the reset, these are additional customizations */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: #2C3E50;
  background-color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
/* Override Bootstrap typography with our custom fonts */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2C3E50;
}

/* Custom heading sizes that work with Bootstrap */
h1, .h1 {
  font-size: 3rem; /* 48px */
}

h2, .h2 {
  font-size: 2.25rem; /* 36px */
}

h3, .h3 {
  font-size: 1.75rem; /* 28px */
}

h4, .h4 {
  font-size: 1.5rem; /* 24px */
}

h5, .h5 {
  font-size: 1.25rem; /* 20px */
}

h6, .h6 {
  font-size: 1rem; /* 16px */
}

p {
  margin-bottom: 1rem;
  font-size: 1rem; /* 16px */
}

/* Additional text utility classes */
.text-small, .small {
  font-size: 0.875rem; /* 14px */
}

.text-large, .lead {
  font-size: 1.125rem; /* 18px */
}

/* Section titles with decorative elements */
.section-title {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #0F6B3C;
  margin: 0.5rem auto 0;
}

/* ===== COLOR CLASSES ===== */
.bg-emerald {
  background-color: #0F6B3C;
}

.bg-beige {
  background-color: #F6EBD9;
}

.bg-gold {
  background-color: #CFAF6E;
}

.bg-pink {
  background-color: #F7D6D0;
}

.text-emerald {
  color: #0F6B3C;
}

.text-gold {
  color: #CFAF6E;
}

.text-white {
  color: #FFFFFF;
}

.text-secondary {
  color: #5D6D7E;
}

.text-light {
  color: #85929E;
}

/* ===== BUTTONS ===== */
/* Extend Bootstrap buttons with our custom styles */
.btn {
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  padding: 0.5rem 1.5rem;
}

/* Override Bootstrap primary button */
.btn-primary {
  background-color: #0F6B3C !important;
  border-color: #0F6B3C !important;
  color: #FFFFFF !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #0A5530 !important;
  border-color: #0A5530 !important;
}

/* Override Bootstrap secondary button */
.btn-secondary {
  background-color: transparent !important;
  color: #0F6B3C !important;
  border: 2px solid #0F6B3C !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: #0F6B3C !important;
  color: #FFFFFF !important;
}

/* Donate button with special styling */
.btn-donate {
  background-color: #CFAF6E !important;
  border-color: #CFAF6E !important;
  color: #FFFFFF !important;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(207, 175, 110, 0.3);
}

.btn-donate:hover, .btn-donate:focus, .btn-donate:active {
  background-color: #C09C5A !important;
  border-color: #C09C5A !important;
  transform: translateY(-2px);
}

/* ===== LAYOUT ===== */
/* Bootstrap handles the container and grid system */

/* Section spacing */
.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* Common section styles */
.hero-section {
  background-color: #F6EBD9;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.mission-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.programs-section {
  padding: 5rem 0;
  background-color: #F8F9FA;
}

.impact-section {
  padding: 5rem 0;
  background-color: #0F6B3C;
  color: #FFFFFF;
}

.impact-section .section-title {
  color: #FFFFFF;
}

.impact-section .section-title:after {
  background-color: #FFFFFF;
}

.testimonials-section {
  padding: 5rem 0;
  background-color: #F6EBD9;
}

.donate-section {
  padding: 5rem 0;
  background-color: #CFAF6E;
  color: #FFFFFF;
  text-align: center;
}

.blog-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

/* ===== SPACING ===== */
/* Bootstrap handles spacing utilities with its own classes */

/* Additional custom spacing utilities */
.mb-6 { margin-bottom: 4rem; }
.mb-7 { margin-bottom: 5rem; }
.mb-8 { margin-bottom: 6rem; }

.mt-6 { margin-top: 4rem; }
.mt-7 { margin-top: 5rem; }
.mt-8 { margin-top: 6rem; }

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }
.py-8 { padding-top: 6rem; padding-bottom: 6rem; }

.px-6 { padding-left: 4rem; padding-right: 4rem; }
.px-7 { padding-left: 5rem; padding-right: 5rem; }
.px-8 { padding-left: 6rem; padding-right: 6rem; }

/* Negative margins for overlapping elements */
.mt-n1 { margin-top: -0.25rem; }
.mt-n2 { margin-top: -0.5rem; }
.mt-n3 { margin-top: -1rem; }
.mt-n4 { margin-top: -1.5rem; }
.mt-n5 { margin-top: -3rem; }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== CARDS ===== */
/* Extend Bootstrap cards with our custom styles */
.card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-family: 'Playfair Display', serif;
  color: #2C3E50;
  font-weight: 700;
}

/* Program cards */
.program-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.program-icon {
  font-size: 2.5rem;
  color: #0F6B3C;
  margin-bottom: 1.5rem;
}

/* Testimonial cards */
.testimonial-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content:before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  left: -1.5rem;
  top: -2rem;
  color: rgba(15, 107, 60, 0.2);
  font-family: Georgia, serif;
}

.testimonial-author {
  font-weight: 700;
  color: #2C3E50;
}

.testimonial-role {
  color: #5D6D7E;
  font-size: 0.9rem;
}

/* Post cards */
.post-card {
  height: 100%;
}

.post-card-image {
  height: 200px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-date {
  color: #5D6D7E;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-card-title {
  margin-bottom: 1rem;
}

.post-card-title a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-title a:hover {
  color: #0F6B3C;
}

.post-card-excerpt {
  margin-bottom: 1rem;
  color: #5D6D7E;
}

.post-card-link {
  color: #0F6B3C;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-link:hover {
  color: #0A5530;
}

/* ===== HEADER STYLES ===== */
.top-bar {
  background-color: #0F6B3C;
  color: #FFFFFF;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar-contact {
  display: flex;
  align-items: center;
}

.top-bar-contact i {
  margin-right: 0.5rem;
}

.top-bar-contact-item {
  margin-right: 1.5rem;
}

.top-bar-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-bar-social a {
  margin-left: 1rem;
  font-size: 1rem;
}

.navbar {
  padding: 1rem 0;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #2C3E50;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.active .nav-link {
  color: #0F6B3C;
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #2C3E50;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: #F8F9FA;
  color: #0F6B3C;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.search-icon {
  cursor: pointer;
  font-size: 1.2rem;
  color: #2C3E50;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #0F6B3C;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
  background-color: #2C3E50;
  color: #FFFFFF;
  padding: 4rem 0 0;
}

.footer-widget {
  margin-bottom: 2rem;
}

.footer-widget-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #0F6B3C;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-menu a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
  margin-right: 1rem;
  color: #0F6B3C;
}

.footer-social {
  display: flex;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #0F6B3C;
  transform: translateY(-3px);
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-newsletter-form {
  display: flex;
}

.footer-newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  border-radius: 4px 0 0 4px;
}

.footer-newsletter-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-newsletter-button {
  background-color: #0F6B3C;
  color: #FFFFFF;
  border: none;
  padding: 0 1.25rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-newsletter-button:hover {
  background-color: #0A5530;
}

.footer-bottom {
  background-color: #1A252F;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: #FFFFFF;
}

/* ===== RESPONSIVE STYLES ===== */
/* Bootstrap handles most responsive behaviors */

/* Custom responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-brand img {
    max-height: 50px;
  }
  
  .top-bar {
    display: none;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.25rem; /* 36px */
  }
  
  h2 {
    font-size: 1.75rem; /* 28px */
  }
  
  h3 {
    font-size: 1.5rem; /* 24px */
  }
  
  h4 {
    font-size: 1.25rem; /* 20px */
  }
  
  .container {
    padding: 0 16px;
  }
  
  .row {
    margin: 0 -8px;
  }
  
  .col {
    padding: 0 8px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-title:after {
    width: 40px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .footer-widget-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 575.98px) {
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section {
    padding: 2.5rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .btn {
    padding: 0.4rem 1.25rem;
  }
  
  .footer-newsletter-form {
    flex-direction: column;
  }
  
  .footer-newsletter-input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .footer-newsletter-button {
    border-radius: 4px;
    width: 100%;
    padding: 0.75rem;
  }
}