* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: dimaSina;
    src: url(./fonts/alfont_com_ديما-سينا-1.ttf);
}

@font-face {
    font-family: noor;
    src: url(./fonts/AGCRegular.ttf);
}

#body {
    background-color: #EAE4E1;
    font-family: noor;
}

header {
      transition: box-shadow 0.3s ease;
}

header .logo img {
    width: 200px;
}

.sticky-header {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#hero-section-title {
    font-family: dimaSina;
    line-height: 120px;
}

@media (max-width: 659px) {
    #hero-section-title {
    font-family: dimaSina;
    line-height: 70px;
}
}

    .section {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
      gap: 40px;
      max-width: 1200px;
      margin: auto;
    }

    .image-placeholder {
      width: 400px;
      height: 300px;
      flex-shrink: 0;
    }

    .content {
      max-width: 600px;
      text-align: right;
    }

    .title {
      font-size: 3em;
      margin-bottom: 20px;
      font-family: DimaSina;
    }

    .paragraph {
      font-size: 18px;
      line-height: 1.8;
      margin-bottom: 25px;
      color: #222;
    }

    .button {
      background-color: black;
      color: white;
      padding: 10px 20px;
      text-decoration: none;
      display: inline-block;
    }

    @media (max-width: 768px) {
      .section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
      }

      .image-placeholder {
        width: 75%;
        height: 150px;
      }

      .title {
        font-size: 1.8em;
      }

      .paragraph {
        font-size: 16px;
      }
    }

    .carousel {
      background-color: #EDEBEB;
      padding: 100px;
      margin: 120px 0;
    }

  #album-title {
      font-size: 4em;
      font-weight: bold;
      margin-bottom: 60px;
      font-family: DimaSina;
      text-align: center;
    }

    .gallery-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      padding: 0 20px;
    }

    .arrow {
      background-color: black;
      color: white;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      user-select: none;
      flex-shrink: 0;
      z-index: 10;
    }

    .gallery-container {
      overflow: hidden;
      width: 80%;
    }

    .gallery-track {
      display: flex;
      transition: transform 0.5s ease;
    }

    .image-box img {
      min-width: 350px;
      height: 350px;
      padding: 0 5px;
      flex-shrink: 0;
    }

    @media (max-width: 769px) {
      .image-box {
        width: 100%; /* صورة واحدة */
      }
      .carousel {
      padding: 100px;
      padding: 20px;
    }
    #album-title {
      font-size: 2em;
      font-weight: bold;
      margin-bottom: 60px;
      font-family: DimaSina;
      text-align: center;
    }
      .image-box img {
      min-width: 200px;
      height: 200px;
    }
    }

    .poems-section {
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }

    .main-wrapper {
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: flex-start;
      padding: 40px 20px;
      flex-wrap: wrap;
      gap: 40px;
    }

    .main-wrapper .title {
      font-size: 4em;
      font-family: DimaSina;
      white-space: nowrap;
    }

    .cards-container {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .poem-card {
      background-color: #EDEBEB;
      padding: 50px 20px;
      max-width: 450px;
      text-align: center;
    }

    .poem-title {
      font-weight: bold;
      margin-bottom: 20px;
      font-family: DimaSina;
      text-align: right;
    }

    .poem-text {
      font-size: 14px;
      line-height: 1.6;
      text-align: right;
    }

    @media (max-width: 768px) {
      .main-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
      }

      .cards-container {
        flex-direction: column;
        gap: 20px;
      }
    }

    @media (max-width: 571px) {
      .poem-card {
      max-width: 350px;
    }
      .main-wrapper .title {
      font-size: 2em;
    }
      .stories-section .section-title {
      font-size: 2.5em;
    }
    }

    .stories-section {
      background-color: #EDEBEB;
      padding: 60px 0;
    }

      .section-title {
      text-align: center;
      font-size: 4em;
      font-family: DimaSina;
      margin: 50px 0 70px 0;
    }

    .cards-center {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .cards-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      padding: 0 20px 60px;
    }

    .card-link {
      text-decoration: none;
      color: inherit;
    }

    .story-card {
      display: flex;
      background-color: #EAE4E1;
      max-width: 680px;
      width: 100%;
      min-height: 220px;
    }

    .card-text {
      padding: 20px;
      flex: 2;
    }

    .card-title {
      font-weight: bold;
      margin-bottom: 15px;
      font-family: DimaSina;
    }

    .card-body {
      font-size: 14px;
      line-height: 1.6;
    }

    .card-image {
      flex: 1;
      background-color: #bdbdbd;
    }

    .card-image img {
      width: 300px;
      height: 220px;
    }

    @media (max-width: 1445px) {
      .cards-grid {
              grid-template-columns: 100%;
      }
    }

@media (max-width: 550px) {
    .card-image img {
      flex: 2;
      width: 340px;
      height: 240px;
    }
        .story-card {
        flex-direction: column-reverse;
    }
    }

      .videos-section {
      padding: 60px 20px;
      text-align: center;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }

    .videos-section h2 {
      font-size: 4em;
      font-family: DimaSina;
      margin-bottom: 60px;
    }

    .videos-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .video-container {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* 16:9 aspect ratio */
      overflow: hidden;
    }

    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }
    
    @media (max-width: 1126px) {
    .videos-grid {
      max-width: 800px;
    }
    }

   @media (max-width: 835px) {
    .videos-grid {
      max-width: 600px;
    }
    }

    @media (max-width: 560px) {
    .videos-grid {
      max-width: 400px;
    }
    .videos-section h2 {
      font-size: 2em;
    }
    }

      .contact-section {
      max-width: 1200px;
      margin: auto;
      padding: 40px 20px;
    }

    .contact-section h2 {
      text-align: center;
      font-size: 4em;
      margin-bottom: 40px;
      font-family: DimaSina;
    }

    .contact-container {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
    }

    .form-container {
      flex: 1 1 350px;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input[type="text"],
    .contact-section textarea {
      padding: 10px;
      border: 1px solid #000;
      background-color: #f4f1ee;
      font-size: 16px;
      resize: none;
    }

    .contact-section textarea {
      height: 200px;
    }

    .contact-section button {
      width: 80px;
      padding: 10px;
      background-color: #000;
      color: #fff;
      border: none;
      cursor: pointer;
      align-self: flex-start;
    }

    .info-container {
      flex: 1 1 350px;
    }

    .info-box {
      width: 100%;
      height: 200px;
      margin-bottom: 10px;
    }

    .info-text {
      font-size: 14px;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .contact-container {
        flex-direction: column;
      }

      .form-container button {
        align-self: stretch;
      }

      .info-box {
      width: 100%;
      height: 150px;
    }
    }

      footer {
      background-color: #EDEBEB;
      padding: 40px 20px 10px;
      border-top: 1px solid #aaa;
    }

    .footer-container {
      max-width: 1200px;
      margin: auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 40px;
      text-align: right;
    }

    .footer-column {
      flex: 1 1 200px;
      min-width: 180px;
    }

    .footer-column h3 {
      font-size: 1.8em;
      margin-bottom: 15px;
      font-family: DimaSina;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-column ul li {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .footer-logo {
      max-width: 200px;
    }

    .copyright {
      text-align: center;
      margin-top: 30px;
      font-size: 1em;
    }

    @media (max-width: 768px) {
      .footer-container {
        flex-direction: column;
        text-align: center;
      }

      .footer-column, .footer-container {
        align-items: center;
      }

      .footer-column ul li {
        justify-content: center;
      }
    }

        body {
      font-family: 'Cairo', sans-serif;
      margin: 0;
      background: #fefefe;
      color: #333;
      line-height: 1.8;
    }

    .tribe-section {
      max-width: 1200px;
      margin: auto;
      padding: 40px 20px;
    }

    .tribe-section .section-title {
      font-size: 32px;
      color: #7a4c16;
      border-bottom: 3px solid #d4af7f;
      display: inline-block;
      padding-bottom: 5px;
      margin-bottom: 30px;
    }

    .tribe-section .box {
      background: #fff8f0;
      border-right: 6px solid #d4af7f;
      margin-bottom: 40px;
      padding: 25px 30px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }

    .tribe-section .box h3 {
      color: #5c3920;
      margin-top: 0;
      font-size: 24px;
    }

    .tribe-section ul {
      padding-right: 20px;
    }

   .tribe-section ul li {
      margin-bottom: 8px;
    }

    @media (max-width: 768px) {
     .tribe-section .section-title {
        font-size: 26px;
      }

     .tribe-section .box {
        padding: 20px;
      }

     .tribe-section .box h3 {
        font-size: 20px;
      }
    }

    @media (max-width: 480px) {
    .tribe-section  .section-title {
        font-size: 22px;
      }

    .tribe-section  .box {
        padding: 15px;
      }
    }


    .history-section {
      max-width: 1100px;
      margin: 100px auto;
      padding: 30px 20px;
    }

    .history-section h1 {
      font-size: 3em;
      font-family: DimaSina;
      margin-bottom: 30px;
      display: inline-block;
      padding-bottom: 10px;
    }

    .history-section ul {
      padding-right: 20px;
      list-style-type: '★ ';
    }

    .history-section ul li {
      margin-bottom: 18px;
      font-size: 18px;
      color: #333;
    }

    @media (max-width: 600px) {
      .history-section {
        padding: 20px 15px;
      }

      .history-section h1 {
        font-size: 1.8em;
      }

      .history-section ul li {
        font-size: 16px;
      }
    }

    .tribes-section {
      max-width: 1100px;
      margin: 40px auto;
      padding: 30px 20px;
    }

    .tribes-section h1 {
      font-size: 3em;
      font-family: DimaSina;
      margin-bottom: 30px;
      display: inline-block;
      padding-bottom: 10px;
    }

    .tribe-box {
      background-color: #EDEBEB;
      margin-bottom: 15px;
      padding: 15px 20px;
      border-radius: 5px;
      font-size: 18px;
      line-height: 1.8;
      color: #333;
    }

    .tribe-box strong {
      font-weight: bold;
      color: #000;
    }

    @media (max-width: 600px) {
      .tribes-section {
        padding: 20px 15px;
      }

      .tribes-section h1 {
        font-size: 1.8em;
      }

      .tribe-box {
        font-size: 16px;
        padding: 12px 15px;
      }
    }

      .sheikhs-section {
      max-width: 1100px;
      margin: 120px auto 20px auto;
      padding: 30px 25px;
      line-height: 1.9;
      color: #222;
    }

    .sheikhs-section h1 {
      font-size: 3em;
      font-family: DimaSina;
      margin-bottom: 30px;
      display: inline-block;
      padding-bottom: 10px;
    }

    .sheikhs-section p {
      font-size: 18px;
      margin-bottom: 18px;
    }

    @media (max-width: 600px) {
      .sheikhs-section {
        padding: 20px 15px;
      }

      .sheikhs-section h1 {
        font-size: 1.8em;
      }

      .sheikhs-section p {
        font-size: 16px;
      }
    }

      .shaikh-section {

        padding: 30px 25px;
        line-height: 1.9;
        background-color: #EDEBEB;
        color: #222;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .shaikh-section .container {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-evenly;
      padding: 40px 20px;
      gap: 40px;
      flex-wrap: wrap;
    }

    .shaikh-section .images {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .shaikh-section .images img {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 4px;
      background-color: #ccc;
    }

    .shaikh-section .content {
      max-width: 600px;
    }

    .shaikh-section .content h1 {
      font-family: DimaSina;
      font-size: 2.5em;
      margin-bottom: 20px;
    }

    .shaikh-section .content p {
      font-size: 18px;
      line-height: 1.8;
      color: #333;
      margin-bottom: 20px;
    }

    @media (max-width: 1045px) {
        .shaikh-section .images {
        flex-direction: row;
        justify-content: center;
      }
    }

    @media (max-width: 768px) {
    .shaikh-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .shaikh-section .images {
        flex-direction: row;
        justify-content: center;
      }

      .shaikh-section .images img {
        width: 130px;
        height: 130px;
      }

      .shaikh-section .content h1 {
        font-size: 1.8em;
      }

      .shaikh-section .content p {
        font-size: 16px;
      }
    }

    @media (max-width: 480px) {
      .shaikh-section .images {
        align-items: center;
      }

      .shaikh-section .images img {
        width: 110px;
        height: 110px;
      }
    }

        .sheyoukh {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    .sheyoukh h1 {
      text-align: center;
      font-size: 3em;
      font-family: DimaSina;
      margin-bottom: 50px;
    }

    .sheikh-card {
      max-width: 1200px;
      display: flex;
      flex-direction: row;
      gap: 20px;
      margin-bottom: 40px;
      align-items: flex-start;
      background-color: #EDEBEB;
      padding: 15px;
    }

    .sheikh-card span {
      font-weight: bold;
    } 

    .sheikh-card img {
      width: 250px;
      height: 250px;
      object-fit: cover;
      background-color: #ccc;
      flex-shrink: 0;
    }

    .sheikh-card .text {
      flex: 1;
    }

    .sheikh-card .text h3 {
      font-weight: bold;
      font-size: 20px;
      margin-bottom: 10px;
    }

    .sheikh-card .text p {
      font-size: 16px;
      line-height: 1.8;
      margin: 0;
    }

    @media (max-width: 768px) {
      .sheyoukh h1 {
      font-size: 1.8em;
    }
      
      .sheikh-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .sheikh-card img {
        width: 120px;
        height: 120px;
      }

      .sheikh-card .text h3 {
        font-size: 18px;
      }

      .sheikh-card .text p {
        font-size: 15px;
      }
    }

      .image-section {
      width: 100%;
      height: 100%;
      background-color: #ccc; /* لون رمادي مؤقت كمثال */
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .image-section img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain; /* غطي المنطقة بالكامل */
    }

      .featured-figures-section {
      padding: 40px 20px;
      text-align: center;
      max-width: 900px;
      margin: 140px auto 50px auto;
    }

    .featured-figures-title {
      font-size: 3em;
      font-family: DimaSina;
      margin-bottom: 20px;
      text-align: right;
    }

    .featured-figures-text {
      font-size: 1.2rem;
      line-height: 2;
      color: #000;
      text-align: right;
    }

    @media (max-width: 768px) {
      .featured-figures-title {
        font-size: 2rem;
      }

      .featured-figures-text {
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .featured-figures-title {
        font-size: 1.6rem;
      }

      .featured-figures-text {
        font-size: 0.95rem;
      }
    }

.Blogs {
  padding: 30px 0;
  margin: 40px auto;
}


    .Blogs .form-section {
      background: #EDEBEB;  
      padding: 20px;
      margin-bottom: 50px;
    }

    .Blogs .form-section h2 {
      text-align: right;
      font-size: 3em;
      margin: 60px 0;
    }

    .Blogs .form-section input,
    .Blogs .form-section textarea {
      display: block;
      width: 100%;
      margin-bottom: 10px;
      padding: 8px;
      border: 2px solid #aaa;
      background: none;
      font-size: 16px;
    }

    .Blogs .form-section button {
      padding: 10px 20px;
      background: black;
      color: white;
      border: none;
      cursor: pointer;
    }

    .Blogs h2.title {
      text-align: center;
      font-size: 3em;
      margin-bottom: 30px;
    }

    .Blogs .articles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
    }

    .Blogs .article {
      background: white;
      padding: 15px;
      text-align: right;
    }

    .Blogs .image-placeholder {
      background: #aaa;
      height: 150px;
      margin-bottom: 10px;
    }

    .Blogs .article-author {
      font-weight: bold;
    }

    .Blogs .admin-section {
      background: #EAE4E1;
      margin-top: 40px;
      padding: 20px;
    }

    .Blogs .admin-section h3 {
      margin-bottom: 10px;
    }

    .Blogs .admin-article {
      border: 1px solid #ccc;
      padding: 10px;
      margin-bottom: 10px;
    }

    .Blogs .admin-article button {
      margin-left: 10px;
      background: darkred;
      color: white;
      border: none;
      padding: 5px 10px;
      cursor: pointer;
    }

    .Blogs .admin-article button.accept {
      background: green;
    }