/* ========= Global Reset ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f1faee, #a8dadc);
  color: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* ✅ smoother text */
}

/* Links & Focus Styles */
a {
  text-decoration: none;
  color: inherit;
}
a:focus, button:focus, input:focus {
  outline: 2px solid #e63946;
  outline-offset: 3px;
}

/* ========= Header ========= */
header {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header img {
  max-height: 60px;
  width: auto;
  margin-bottom: 0.5rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #e63946;
}

header p {
  font-size: 1rem;
  margin-top: 0.3rem;
  color: #333;
  font-weight: 500;
}

/* ========= Search Bar ========= */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 25px;
  border: 2px solid #e63946;
  outline: none;
  font-size: 1rem;
}

/* ========= Sections ========= */
section {
  padding: 4rem 2rem;
  text-align: center;
}

/* ========= Mission & Values ========= */
.mission-values-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.mission-card {
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* ========= Homepage Topics Grid ========= */
.topics-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 15px;
  background: #fff;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  min-height: 80px;
}

.topic-card i {
  font-size: 1.5rem;
  color: #e63946;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

/* ========= Cards (General) ========= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.card h2 {
  color: #e63946;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.card ul {
  list-style: none;
  text-align: left;
}

.card ul li {
  margin: 0.5rem 0;
}

/* ========= Buttons ========= */
.goal-btn, .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  background: #e63946;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.3s;
}

.goal-btn:hover, .btn:hover {
  background: #d62839;
  transform: scale(1.05);
}

/* ========= Accordion ========= */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.accordion-header {
  background: #e63946;
  color: white;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  background: #fff;
  text-align: left;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1rem;
}

/* ========= Results Box ========= */
#result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

/* ========= Footer ========= */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: white;
  color: #e63946;
  border-radius: 50%;
  transition: 0.3s;
  font-size: 1.2rem;
  border: 2px solid #e63946;
}

.socials a:hover {
  background: #e63946;
  color: white;
  transform: scale(1.1);
}

/* ========= About Us Page Image ========= */
.about-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  border-radius: 15px;
}

/* ========= New: Media Section ========= */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.media-gallery img,
.media-gallery video {
  width: 100%;
  max-height: 300px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========= Responsive ========= */
@media (max-width: 992px) {
  /* Tablet view */
  .topics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile view */
  header h1 {
    font-size: 1.7rem;
  }
  header p {
    font-size: 1rem;
  }
  .search-bar input {
    width: 70%;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .topics-container {
    grid-template-columns: 1fr;
  }
  .media-gallery {
    grid-template-columns: 1fr;
  }
}
