/* Start Variables */
:root {
    --main-color: #fdc022;
    --secondary-color: #013564;
    --transparent-color: rgba(253, 192, 34, 0.8);
    --transparent-secondary-color: rgba(1, 53, 100, 0.65);
    --section-padding: 100px;
}
/* End Variables */

/* Start Global Rules */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Open Sans", sans-serif;
}

ul {
    list-style: none;
}

/* .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
} */

/* Small */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}
/* Medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}
/* Large */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}
/* End Global Rules */

/* Start Components */
.main-heading {
    text-align: center;
}

.main-heading h2 {
    font-weight: normal;
    font-size: 40px;
    position: relative;
    margin-bottom: 70px;
    text-transform: uppercase;
}

.main-heading h2::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: #333;
    bottom: -30px;
    width: 120px;
}

.main-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #333;
    bottom: -38px;
    background-color: white;
}

.main-heading p {
    width: 550px;
    margin: 0 auto 100px;
    max-width: 100%;
    line-height: 2;
    color: #777;
}
/* End Components */

.container-fluid {
    padding: 20px 50px;
}

.post-container {
    margin-top: 150px;
}

.card {
    padding: 0;
    margin-bottom: 30px;
    margin-right: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.card-body {
    background-color: #efefef;
    text-align: center;
}

.container .text-center {
    margin-bottom: 50px;
}

/* Footer Styles */
footer {
    margin-top: 50px;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px;
    color: white;
}

footer .footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
}

footer .title {
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
}

footer .logo img{
    width: 70%;
    height: 50%;
    margin-bottom: 20px;
}

footer .logo p{
    font-size: 14px;
} 

footer .footer-content {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    flex-wrap: wrap;
    margin-top: 30px;
}

footer .footerHUL {
    text-align: center;
    flex: 1;
    margin-right: 50px;
    min-width: 200px;
}

footer .footerHUL h3 {
    margin-bottom: 40px;
    margin-left: 25px;
    font-size: 20px;
    background: var(--main-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer .footerUrl li {
    list-style: none;
    margin-bottom: 50px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

footer .footerUrl li:hover,
footer a:hover {
    cursor: pointer;
    color: var(--main-color);
}

footer .right li {
    margin-bottom: 57px;
}

footer .footerUrl i {
    margin-right: 10px;
}

footer .link-active {
    color: var(--main-color);
    text-decoration: underline;
}

footer a {
    text-decoration: none;
    color: white;
}

footer i {
    color: white;
    font-size: 20px;
}

footer i img {
    width: 20px;
    height: 20px;
}

/* تحسين dropdown الفوتر لجميع الأجهزة */
footer .dropdown {
    position: relative;
    display: inline-block;
  }
  
  footer .dropbtn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
  }
  
  footer .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0;
    top: 100%;
  }
  
  footer .dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  footer .dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--main-color);
  }

/* تحسينات للهواتف المحمولة */
@media (max-width: 767px) {
    /* تحسين الهيدر */
    header .container {
      padding: 0 15px;
    }
    
    header .logo img {
      height: 60px;
    }
    
    /* تحسين القوائم */
    nav ul.show {
      flex-direction: column;
      width: 100%;
      background-color: var(--secondary-color);
      position: absolute;
      top: 100%;
      left: 0;
      display: none;
    }
    
    nav ul.show.active {
      display: flex;
    }
    
    nav ul.show li {
      width: 100%;
      text-align: center;
    }
    
    nav ul.show li a {
      padding: 15px 0;
    }
    
    /* تحسين الفوتر */
    footer .footer-container {
      flex-direction: column;
      padding: 20px;
    }
    
    footer .footerHUL {
      margin-right: 0;
      margin-bottom: 30px;
    }
    
    footer .logo img {
      width: 50%;
    }

  }
  
  /* تحسينات للتابلت */
  @media (min-width: 768px) and (max-width: 991px) {
    /* تعديلات متوسطة الحجم */
    header .container {
      padding: 0 20px;
    }
    
    footer .footerHUL {
      min-width: 180px;
    }
  }