/**
 * Home Page Styles (Beta Design)
 * Consolidated from inline styles in index.blade.php
 */

/* ========== CSS Variables ========== */
:root {
  --primary-green: #1b5532;
  --primary-gold: #bd8e34;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.home {
  background-color: #FAFAFA;
}

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  padding-top: 0 !important;
}

.hero-section .swiper-slide {
  position: relative;
  height: 75vh;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 85, 50, 0.7) 0%, rgba(189, 142, 52, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: #fff;
  max-width: 800px;
  padding: 20px;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.5s;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.8s;
}

.btn-donate-hero {
  background: var(--primary-gold);
  color: #fff;
  padding: 15px 50px;
  font-size: 1.2rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 20px rgba(189, 142, 52, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 1.1s;
}

.btn-donate-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(189, 142, 52, 0.6);
  color: #fff;
  background: #a67c2e;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero-fixed-img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-link:hover .hero-fixed-img {
  opacity: 0.9;
  transform: scale(1.02);
}

.hero-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-link:hover .hero-overlay-hover {
  opacity: 1;
}

.btn-donate-hover {
  padding: 18px 45px;
  font-size: 1.6rem;
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700;
}

.hero-link:hover .btn-donate-hover {
  transform: translateY(0);
}

/* ========== Hero Animations ========== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-animate-load {
  opacity: 0;
  animation-name: heroEntrance;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.hero-animate-load.floating-content {
  animation-name: heroEntrance;
  animation-iteration-count: 1;
}

/* ========== Section Styles ========== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  color: var(--primary-green);
  font-weight: 800;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gold);
  border-radius: 2px;
}

/* ========== Azhar Word Section ========== */
.azhar_word {
  padding: 80px 0 !important;
  background-color: #fff;
}

.azhar_word_img img {
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.azhar_word_txt {
  padding: 20px !important;
}

.azhar_word_txt h5 {
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 15px;
}

.azhar_word_txt p {
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
}

/* ========== Swiper Pagination ========== */
.donationChannels .swiper-pagination,
.zakah-request .swiper-pagination,
.electronic-services .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  text-align: center;
  margin-top: 30px;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--primary-green);
  width: 25px;
  border-radius: 5px;
}

/* ========== News Section ========== */
.news_section {
  pointer-events: none;
}

.news_section .container {
  pointer-events: auto;
}

.news-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-gold);
}

.news-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img-wrapper img {
  transform: scale(1.05);
}

.news-date-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--primary-gold);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 50px;
}

html[lang="ar"] .news-date-badge {
  right: auto;
  left: 15px;
}

.news-date-badge .day {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.news-date-badge .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
}

.news-title {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.news-card:hover .news-title {
  color: var(--primary-gold);
}

.news-excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f1f1f1;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arrow-icon {
  color: var(--primary-gold);
  transition: transform 0.3s;
}

.news-card:hover .arrow-icon {
  transform: translateX(-5px);
}

html[lang="en"] .news-card:hover .arrow-icon {
  transform: translateX(5px);
}

html[lang="en"] .arrow-icon {
  transform: rotate(180deg);
}

/* ========== Gaza Relief Section ========== */
.gaza-img-card {
  position: absolute;
  width: 200px;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gaza-img-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gaza-img-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  z-index: 1;
}

.gaza-img-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 320px;
  z-index: 2;
}

.gaza-img-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(5deg);
  z-index: 1;
}

.gaza-icon-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== Mobile Responsiveness ========== */
@media (max-width: 768px) {
  .hero-image-wrapper {
    height: auto !important;
    min-height: 400px;
  }

  .hero-fixed-img {
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hero-main-title {
    font-size: 2rem !important;
  }

  .hero-main-desc {
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
  }

  .btn-donate-hover {
    padding: 12px 30px !important;
    font-size: 1.2rem !important;
  }

  .gaza-img-left,
  .gaza-img-right {
    display: none;
  }

  .gaza-img-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 300px;
    height: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .news_section {
    margin-top: -40px;
  }

  .gaza-relief-section .row {
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) {
  .news_section {
    margin-top: 0;
    padding-top: 40px;
    background-color: #f8f9fa;
  }

  .news-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
}

/* ========== Gaza Relief Section Extended ========== */
.gaza-img-card {
  width: 250px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: absolute;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  top: 50%;
}

.gaza-img-center {
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 10;
  border: 4px solid #fff;
}

.gaza-img-left {
  left: 0;
  transform: translateY(-50%) rotate(-10deg) scale(0.9);
  z-index: 1;
  opacity: 0.85;
}

.gaza-img-right {
  left: auto;
  right: 0;
  transform: translateY(-50%) rotate(10deg) scale(0.9);
  z-index: 1;
  opacity: 0.85;
}

.gaza-icon-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .gaza-relief-section {
    padding: 60px 0;
  }

  .gaza-img-card {
    width: 180px;
    height: 250px;
    position: relative;
  }

  .gaza-img-left {
    left: -20px;
  }

  .gaza-img-right {
    right: -20px;
  }

  .gaza-img-center {
    position: absolute;
  }

  .col-lg-6.position-relative {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .gaza-img-card {
    width: 140px;
    height: 200px;
  }

  .gaza-img-left {
    left: -10px;
    transform: rotate(-10deg) scale(0.9);
  }

  .gaza-img-right {
    right: -10px;
    transform: rotate(10deg) scale(0.9);
  }

  .gaza-img-center {
    transform: scale(1.05);
  }

  .col-lg-6.position-relative {
    min-height: 260px;
  }

  .gaza-stats h3 {
    font-size: 2.5rem !important;
  }
}

/* ========== Projects Bento Section ========== */
.btn-donate {
  background-color: #bd8e34;
  color: #fff !important;
  font-weight: 700;
  border-radius: 5px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  border: none;
}

.btn-donate:hover {
  background-color: #074620;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(189, 142, 52, 0.3);
}

.standard-project .btn-donate {
  opacity: 1;
  transform: translateY(0);
}

.projects-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  grid-template-rows: auto auto;
}

.project-item.featured-project {
  grid-column: span 3;
  background: #fff;
  min-height: 400px;
  border: 1px solid #eee;
}

.project-item.standard-project {
  background: #fff;
  min-height: 300px;
  border: 1px solid #eee;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-item.standard-project:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  border-color: transparent;
}

.hover-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hover-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 85, 50, 0.75), rgba(189, 142, 52, 0.85));
}

.standard-project:hover .hover-bg-img {
  opacity: 1;
}

.project-content {
  z-index: 2;
}

.standard-project:hover .project-category {
  color: rgba(255, 255, 255, 0.8);
}

.standard-project:hover .project-title {
  color: #fff;
}

.standard-project:hover .project-excerpt-small {
  color: rgba(255, 255, 255, 0.9);
}

.standard-project:hover .read-more-link {
  color: #fff;
}

.standard-project:hover .read-more-link i {
  color: #fff;
}

.transition-colors {
  transition: color 0.3s ease;
}

.project-excerpt-small {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-img-featured {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-img-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-title-featured {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
}

.project-excerpt {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.read-more-link {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.read-more-link i {
  color: #e74c3c;
  transition: transform 0.3s;
}

.read-more-link:hover {
  color: #e74c3c;
  text-decoration: none;
}

.read-more-link:hover i {
  transform: translateX(-5px);
}

@media (max-width: 992px) {
  .projects-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .project-item.featured-project {
    grid-column: span 1;
  }

  .featured-project .row {
    flex-direction: column;
  }

  .project-img-featured {
    height: 250px;
  }
}

html[lang="ar"] .text-right {
  text-align: right !important;
}

html[lang="ar"] .read-more-link i {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

/* ========== Achievements Section ========== */
.achievements-section {
  overflow: hidden;
}

.achievements-section .identity-box {
  background-color: var(--primary-green);
  min-height: 150px;
  position: relative;
  z-index: 2;
}

.achievements-section .stats-box {
  background: linear-gradient(90deg, #d39e33 0%, #bd8e34 100%);
  min-height: 150px;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 2.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {

  .achievements-section .identity-box,
  .achievements-section .stats-box {
    min-height: auto;
    padding: 20px 0;
  }

  .stat-item {
    width: 45%;
    margin-bottom: 15px !important;
  }
}

/* ========== Donation Channels Section ========== */
.donationChannels {
  background-color: #fff !important;
  padding: 80px 0;
}

.donationChannels .section_title h4,
.donationChannels .section_title p {
  color: var(--primary-green) !important;
  opacity: 1 !important;
}

.donation-card {
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.4s ease !important;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donationChannels_tabs_col_tab {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.donation-card i {
  color: var(--primary-green) !important;
  font-size: 2.5rem !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease;
}

.donation-card h5 {
  color: var(--primary-green) !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.donation-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--primary-gold) !important;
}

.donation-card:hover i,
.donation-card:hover h5 {
  color: var(--primary-gold) !important;
  transform: scale(1.05);
}

.transition-transform {
  transition: transform 0.3s ease, color 0.3s ease;
}

.home .donationChannels_content,
.donationChannels_content {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

@media (min-width: 992px) {
  .donationChannels_tabs .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.donationChannels_tabs_col {
  margin-bottom: 30px !important;
}