/*
 * Great Hope Foundation - Custom Styles
 * Modern and responsive design styles
 */

/* General Styles */
:root {
  --primary-color: #e36c09;
  --secondary-color: #0d9e00;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --bs-primary: #09d7fc;
  --bs-secondary: #e36c09;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.btn {
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3e68d9;
  border-color: #3e68d9;
}

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

.btn-secondary:hover {
  background-color: #e78e04;
  border-color: #e78e04;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary-color) !important;
  font-size: 0.85rem;
}

.social-icons .list-inline-item {
  margin-right: 0.5rem;
}

.social-icons a {
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.8;
}

.navbar {
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 10px 15px !important;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 750px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* About Section */
.about-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-img img {
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.03);
}

.about-content {
  padding: 20px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

/* Services Section */
.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h4 {
  margin-bottom: 15px;
}

/* Featured Stories */
.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  height: 100%;
}

.story-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.5s ease;
}

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

.story-content {
  background: #fff;
  padding: 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.story-content h4 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.story-date {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

/* Team Section */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-img {
  position: relative;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(78, 122, 237, 0.8);
  transition: all 0.3s ease;
  opacity: 0;
}

.team-card:hover .team-social {
  bottom: 0;
  opacity: 1;
}

.team-social a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.team-social a:hover {
  transform: scale(1.2);
}

.team-content {
  padding: 20px;
  text-align: center;
}

.team-content h4 {
  margin-bottom: 5px;
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: #fff;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: #fff;
  padding: 0 15px;
  text-align: center;
}

/* News Section */
.news-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.news-img {
  position: relative;
  overflow: hidden;
}

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

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

.news-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-content {
  padding: 20px;
}

.news-content h4 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.news-content p {
  margin-bottom: 15px;
}

/* Documents Section */
.document-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.document-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
}

.document-content {
  flex: 1;
}

.document-content h5 {
  margin-bottom: 5px;
}

.document-meta {
  font-size: 0.8rem;
  color: var(--gray-color);
}

/* Contact Section */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-details h5 {
  margin-bottom: 5px;
}

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  height: auto;
  padding: 12px 15px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
}

/* Call to Action */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  z-index: 1;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 20px;
}

.cta-content p {
  color: #fff;
  margin-bottom: 30px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top i {
  font-size: 24px;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* Animations */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Breadcrumb Styles */
.breadcrumb-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/breadcrumb-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  position: relative;
}

.breadcrumb-content {
  text-align: center;
}

.breadcrumb-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.custom-breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-breadcrumb li {
  color: #fff;
  font-size: 1rem;
}

.custom-breadcrumb li a {
  color: #fff;
  text-decoration: none;
}

.custom-breadcrumb li a:hover {
  text-decoration: underline;
}

.custom-breadcrumb li + li:before {
  content: "/";
  padding: 0 10px;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }
}

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

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about-img {
    margin-bottom: 30px;
  }
}

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

  .hero-section {
    min-height: 450px;
  }

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

  .btn {
    padding: 8px 20px;
  }
}
