/* style.css - Basic styling for the breadcrumb navigation */

.breadcrumb {
  display: flex;
  list-style: none;
  padding-left: 10px;
  font-family: Arial, sans-serif;
}

.breadcrumb li {
  margin-right: 5px;
}

.breadcrumb li + li:before {
  content: ">";
  margin-right: 5px;
  color: #555;
}

.breadcrumb a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/*======= text styles======*/
 #text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
margin-top: 100px;
margin-bottom: 50px;
}
 #text h3 {
    text-align: left;
}
 #text a {
    color: blue;
}
@media (max-width: 768px) {
 #text {
    width: 90%;
}
}
 /* Basic Reset */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      background: #f5f5f5;
    }
    a {
      text-decoration: none;
      color: inherit;
    }
    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
    }
    /* Header / Navigation */
    header {
      background: #2c3e50;
      padding: 20px 0;
    }
    .logo {
      font-size: 1.5em;
      font-weight: bold;
      color: #fff;
    }
 @media (max-width: 768px) {
   .logo {
      font-size: 1.2em;
      font-weight: bold;
      color: #fff;
    }
}
    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .menu {
      display: flex;
      list-style: none;
    }
    .menu li {
      margin-left: 25px;
      position: relative;
    }
    .menu li a {
      padding: 5px 0;
      color: #fff;
      font-size: 1em;
    }
    /* Submenu */
    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #34495e;
      list-style: none;
      padding: 10px 0;
      min-width: 180px;
      z-index: 1000;
    }
    .submenu li {
      padding: 8px 20px;
    }
    .submenu li a {
      color: #fff;
      font-size: 0.9em;
    }
    .submenu li:hover {
      background: #3d566e;
    }
    .submenu-toggle {
      cursor: pointer;
      margin-left: 5px;
      font-size: 0.8em;
color: white;
    }
    @media (min-width: 769px) {
      #calculators-item:hover > .submenu {
        display: block;
      }
    }
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }
    .hamburger span {
      height: 3px;
      width: 25px;
      background: #fff;
      margin-bottom: 4px;
      border-radius: 2px;
    }
    /* Hero Section using Grid */
    .hero {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
      align-items: center;
      padding: 60px 0;
      background: #fff;
    }
    /* On Desktop: two columns centered */
   
    .hero-text {
      text-align: left;
      padding: 20px;
    }
    .hero-text h1 {
      font-size: 2.0em;
      margin-bottom: 20px;
      color: #2c3e50;
    }
    .hero-text p {
      margin-bottom: 20px;
      font-size: 1.1em;
      color: #555;
    }
    .hero-text .btn {
      background: #2c3e50;
      color: #fff;
      padding: 12px 25px;
      border: none;
      cursor: pointer;
      border-radius: 4px;
      font-size: 1em;
    }
    .hero-image {
      text-align: right;
      padding: 20px;
    }
    .hero-image img {
  
      object-fit: contain;  /* Changed to 'contain' to display complete image */
      max-width: 100%;

    }
 @media (min-width: 769px) {
      .hero {
 gap: 200px;
        grid-template-columns: auto auto;
        justify-content: center;

      }
      .hero-text {
        width: 550px;
      }
      .hero-image {
        width: 400px;
      }
    }
    /* Boxes Section */
    .boxes {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      padding: 40px 0;
      justify-content: center;
    }
    .box {
      background: #fff;
      border: 1px solid #ddd;
      padding: 20px;
      flex: 1 1 calc(25% - 40px);
      text-align: center;
      border-radius: 4px;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .box:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .box a {
      font-weight: bold;
      color: #2c3e50;
      font-size: 1.1em;
    }
    /* Zakat Info Section */
    .zakat-info {
      padding: 40px 20px;
      background: #fff;
      text-align: justify;
      font-size: 1.1em;
      color: #555;
    }
    /* Footer */
    footer {
      background: #2c3e50;
      padding: 20px 0;
      text-align: center;
      color: #fff;
      font-size: 0.9em;
    }
    /* Back-to-Top Button */
    #back-to-top {
      position: fixed;
      bottom: 40px;
      right: 20px;
      background: #2c3e50;
      color: #fff;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
      z-index: 1000;
    }
    #back-to-top.show {
      opacity: 1;
      visibility: visible;
    }
    /* Responsive Mobile Styles */
    @media (max-width: 768px) {
      nav {
        flex-wrap: wrap;
      }
      .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2c3e50;
        margin-top: 10px;
      }
      .menu li {
        margin: 10px 0;
        padding: 0 20px;
      }
      .submenu {
        position: relative;
        padding-left: 20px;
      }
      .hamburger {
        display: flex;
      }
      .hero {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .hero-text, .hero-image {
        width: 100%;
        padding: 10px;
      }
      .hero-image {
        text-align: center;
      }
      .hero-image img {
        width: 100%;
        height: auto;
      }
      .boxes {
        flex-direction: column;
        align-items: center;
      }
      .box {
        flex: 1 1 80%;
      }
    }