html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #111;
    color: white;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 70px;
  background: black;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* LOGO */
.logo a {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}





@media (max-width: 460px) {
    .logo img {
        height: 60px;
        width: auto;
    }
}

@media (max-width: 422px) {
    .logo img {
        height: 50px;
        width: auto;
    }
}

@media (max-width: 392px) {
    .logo img {
        height: 40px;
        width: auto;
    }
}

.logo span {
  color: red;
}

/* DESKTOP NAV */
.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: 0.3s;
}



.desktop-nav ul li a:not(.header-cta):hover {
  color: red;
}

a.header-cta {
  background-color: #E11C1C;
  color: white;
  padding: 10px 20px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 3px;
  transition: 0.3s;
}

a.header-cta:hover {
  background-color: #B61919;
  color: white;
}

ul li a.current-link {
  color: #B61919;
}

.mobile-nav ul li a.current-link {
    color: #B61919;
}

/* HAMBURGER MENU (Hidden by default, shown below 850px) */
.hamburger {
  width: 30px;
  height: 22px;
  display: none; /* hidden on large screens */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100; /* above mobile nav */
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.4s;
}

/* ANIMATION - HAMBURGER TO "X" */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none; /* hidden by default */
}

.mobile-nav-overlay.open {
  display: block;
}

/* MOBILE NAV (slides in from the left) */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -950px; /* Hide offscreen to the left */
  width: 70%;
  height: 100%;
  background: black;
  transition: 0.4s ease;
  z-index: 1000;
  padding: 80px 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

.mobile-nav ul li img {
    height: 60px;
}

@media (max-width: 488px) {
    .mobile-nav {
        padding: 60px 5px;
    }
}

@media (max-width: 421px) {
    .mobile-nav ul li img {
        height: 50px;
    }
}

.mobile-nav.open {
  left: 0; /* Slides into view */
}

/* MOBILE NAV STYLES */
.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  margin-bottom: 30px;
}

.mobile-nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.mobile-nav ul li a:not(.header-cta):hover {
  color: red;
}

/* MEDIA QUERIES */
@media screen and (max-width: 850px) {
  /* Hide desktop nav on smaller screens */
  .desktop-nav {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }
}

/* Hero Section */
.hero {
    padding: 60px 80px;
    background: url('quran-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 50px;
    color: white;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.cta-button {
    background: red;
    padding: 10px 20px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 50px;
    transition: 0.3s;
    margin-right: 10px;
}

.cta-button:hover {
    background: #b30000;
}

.second-cta-button {
    background: #674e4e;
    padding: 10px 20px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 50px;
    transition: 0.3s;
}

.second-cta-button:hover {
    background: black;
    color: white;
}
@media all and (max-width: 450px) {
    .cta-button, .second-cta-button {
        font-size: 0.9rem;
    }
}
@media all and (max-width: 390px) {
    .cta-button, .second-cta-button {
        font-size: 0.8rem;
    }
}



.text-content-container {
    max-height: 70%;
}

.image-container {
    width: 300px; /* Set a fixed width */
    height: 300px; /* Set equal height to maintain a square */
    border-radius: 50%; /* Makes the container a circle */
    overflow: hidden; /* Ensures nothing spills outside */
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-picture {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image covers the circular area properly */
}

@media all and (max-width: 947px) {
    .hero {
        padding: 60px 30px;
        flex-direction: column-reverse;
        align-items: center;
    }
}

@media all and (max-width: 885px) {
    .hero h1 {
        font-size: 35px;
    }
}

@media all and (max-width: 661px) {
    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 15px;
    }
}

@media all and (max-width: 470px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 15px;
    }
}


/* Benefits Section */
.benefits {
    padding: 50px;
    text-align: center;
    background: #222;
}
@media all and (max-width: 445px) {
    .benefits {
        padding: 50px 10px;
    }
}

.benefit-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.benefit {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 30%;
    transition: 0.3s;
}

.benefit:hover {
    transform: scale(1.05);
}

.benefit h3 {
    color: red;
}

@media all and (max-width: 1042px) {
    .benefit-container {
        flex-direction: column;
        align-items: center;
    }

    .benefit {
        width: 80%;
        padding: 30px;
    }
}

@media all and (max-width: 742px) {

    .benefit {
        width: 100%;
    }
}

/* Registration Section */
.register {
    text-align: center;
    padding: 50px;
    background: black;
}

.register form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

.register input {
    padding: 10px;
    margin: 10px 0;
    background: #222;
    border: 1px solid red;
    color: white;
}

.register button {
    background: red;
    padding: 10px;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.register button:hover {
    background: #b30000;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: black;
    color: white;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    padding: 15px; /* Increased padding for a bigger icon */
    color: white;
    font-size: 2.5rem; /* Slightly larger icon */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline */
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.faq-section {
    max-width: 800px;
    margin: auto;
    padding: 50px 20px;
    background-color: #111;
    color: #fff;
    border-radius: 10px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #FE6363;
    margin-bottom: 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #333;
    color: #fff;
    transition: background 0.3s;
}


.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5D96FF;
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #444;
    color: #fff;
    padding: 0 20px;
    font-size: 1rem;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #FE6363;
}

/* Course Section */
.courses {
    padding: 100px 5%;
    background: linear-gradient(135deg, #000, #1a1a1a); /* Dark gym-inspired theme */
    color: white;
    text-align: center;
}

/* Course Container */
.course-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Course Card */
.course-card {
    background: rgba(255, 255, 255, 0.08); /* Glass effect */
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 0, 0, 0.4); /* Subtle red border for gym-style effect */
}

/* Hover Effect */
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.4); /* Red glow effect */
}

/* Course Image */
.course-image-container {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.1);
}

/* Course Title */
.course-heading {
    font-size: 22px;
    margin: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    color: #ff4d4d; /* Red for gym-like highlight */
}

/* Course Description */
.course-description {
    font-size: 16px;
    opacity: 0.8;
    padding: 0 10px;
}

/* Button */
.course-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background: red;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.course-btn:hover {
    background: #b30000;
}

/* ABOUT SECTION (Black + Red Theme) */
.about-section {
  background-color: #000; /* Dark background */
  padding: 80px 5%;
  color: #fff; /* Default text color is white */
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* SECTION TITLE */
.about-title {
  font-size: 36px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
  color: #B61919; /* Red accent from your theme */
}

/* DESCRIPTION */
.about-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #ccc; /* Slightly lighter text for readability */
}

/* FOUNDER SECTION LAYOUT */
.founder-section {
  display: flex;
  flex-wrap: wrap;        /* Allows items to wrap on smaller screens */
  align-items: center;    /* Vertically center content */
  gap: 30px;              /* Spacing between image and text */
  justify-content: center;/* Centers the entire section horizontally */
}

/* FOUNDER IMAGE */
.founder-image {
  flex: 1 1 300px;
  max-width: 300px;
}

.founder-image img {
  width: 100%;
  border-radius: 10px; 
  border: 3px solid #B61919; /* Red border for a bold accent */
}

/* FOUNDER INFO */
.founder-info {
  flex: 1 1 500px;
}

.founder-name {
  font-size: 28px;
  margin-bottom: 10px;
  color: #E11C1C; /* Another red accent variant */
}

.founder-bio {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc; /* Slightly lighter text for readability */
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .founder-section {
    flex-direction: column;  /* Stack image and text vertically */
    text-align: center;
  }
  .founder-image, .founder-info {
    max-width: 100%;         /* Ensure elements fill width on mobile */
  }

  .founder-image img {
    height: 450px;
  }
}
