@import url("https://fonts.googleapis.com/css?family=Inter:700|Inter:400");

html {
  font-size: 100%;
} /* 16px */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  font-weight: 400;
}

html,
body {
  min-height: 100vh;
  background: #e6e0e0;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Inter";
  font-weight: 700;
}

h1 {
  font-size: 4.21rem; /* 67.36px */
}

h2 {
  font-size: 3.158rem; /* 50.56px */
}

h3 {
  font-size: 2.369rem; /* 37.92px */
}

h4 {
  font-size: 1.777rem; /* 28.48px */
}

h5 {
  font-size: 1.333rem; /* 21.28px */
}

small {
  font-size: 0.75rem; /* 12px */
}

/* Header and Navigation */
header {
  background-color: #f3efef;
  padding: 1rem;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgb(201, 194, 194);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: rgb(26, 24, 24);
  text-decoration: none;
  font-size: 1.5rem;
}

.nav-menu a:hover {
  color: #d61b1b;
}

.hamburger {
  display: none;
  cursor: pointer;
  color: rgb(123, 11, 11);
}

/* end of header and navigation */

/* Main Content */
.main-content {
  max-width: 1200px;
  height: 80%;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.banner {
  background-color: #f5f5f5; /* Light background for contrast */
  padding: 2rem 1rem;
  text-align: center;
}
.banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.banner h1 {
  color: #333;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.featured-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}
.featured-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*Additional Videos Section */
.additional-videos {
  /* background-color: ; */
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem 1rem;
}

.additional-videos h2 {
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.video-wrapper {
  flex: 1 1 300px; /* Flexible width, minimum 300px */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* end of main content */

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* About */
.about-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  color: #333;
  margin-bottom: 1rem;
}

.about-section p {
  line-height: 1.6;
  color: #555;
}

.mission-list {
  list-style: none;
  padding: 0;
}

.mission-list li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.mission-list li:before {
  content: "✓";
  color: #333;
  position: absolute;
  left: 0;
}

/* Memberlist */
.members-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.leadership,
.members {
  margin-bottom: 2rem;
}

.member-list {
  list-style: none;
  padding: 0;
}

.member-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

h2 {
  color: #333;
  margin-bottom: 1rem;
}

/* contact */
.contact-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-info,
.contact-form {
  margin-bottom: 2rem;
}

.contact-info h2,
.contact-form h2 {
  color: #333;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 0.75rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

/* Footer */
footer {
  background-color: #f3efef;
  color: rgb(0, 0, 0);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  margin: 1rem;
}

.footer-section h3 {
  /* color: #fff; */
  margin-bottom: 1rem;
}

.footer-section p {
  margin: 0.5rem 0;
}

.footer-section a {
  color: black;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #555;
  padding-top: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* end of footer */

/* book-insights */
.insights-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.book-section {
  margin-bottom: 2rem;
}

.book-section h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 1rem;
}

.hadith {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid #333;
  background-color: #f9f9f9;
}

.hadith p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin: 0.5rem 0;
}

.hadith .arabic {
  font-size: 20px;
  direction: rtl;
  color: #000;
}

.hadith .reference {
  font-style: italic;
  color: #777;
}

/* end of book-insights */

.logo img {
  width: 100px;
  height: auto;
  max-width: 100%;
}

/* ******* */
a:hover,
a:focus {
  color: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #d3caca;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 1rem 0;
    text-align: center;
  }

  .nav-container {
    position: relative;
  }
}
