
.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #a7aaa6 50%, rgb(80, 125, 156) 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction:alternate-reverse;
    animation-duration:4s;
  }
  
  .bg3 {
    animation-duration:5s;
  }
  
  .content {
    background-color:rgb(184, 184, 184);
    border-radius:.25em;
    box-shadow:0 0 .25em rgb(255, 255, 255)
  ;
    box-sizing:border-box;
    left:50%;
    padding:10vmin;
    position:fixed;
    text-align:center;
    top:50%;
    transform:translate(-50%, -50%);
  }
  
  h1 {
    font-family:monospace;
  }
  
  @keyframes slide {
    0% {
      transform:translateX(-25%);
    }
    100% {
      transform:translateX(25%);
    }
  }




  *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

body{
    background: rgb(64, 63, 63);
    color: #fff;
}

/* utility classes */

a{
    text-decoration: none;
      color: #000000;
    font-weight: 700;
}

li{
    list-style: none;
}

/* nav */

nav{
    background: #ffffff;
    padding: 1rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 80px;
    
}


nav {
  position: relative;
  z-index: 9999;
}


.logo{
     color: #fff;
    margin-top: 7px;
        margin-left: -27px;
}

nav ul{
    display: flex;
    align-items: center;
    gap: 40px;

}

nav ul li a{
    font-size: 18px;
}

nav ul li a::after{
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background:hsl(206, 62%, 20%) ;
    margin-right: auto;
    transition: 0.4s;

    
}

nav ul li a:hover::after{
    width: 100%;
}

nav ul li a:hover{
    color: hsl(206, 62%, 20%);
}

.fa-bars{
    font-size: 24px;
    cursor: pointer;
    
}

.menu-icon{
    display: none;
    color: black;
}



.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px 5%;
  flex-direction: row;
}


.contact-box {
  background:rgb(203 203 203 / 62%) ;
  padding: 35px;
  border-radius: 15px;
  width: 45%;
  text-align: center; /* ✅ النصوص كلها بنص */
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-in-out;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  flex-direction: row-reverse; /* ✅ يجعل الأيقونة يمين والنص يسار */
}

.info-item p {
  margin: 0;
  text-align: right; /* ✅ يخلي النص مضبوط مع الأيقونة */
      font-size: 21px;
    color: #2e3030;
}


.section-title {
  font-size: 34px;
  text-align: center;
  color: #1a7255;
  position: relative;
  margin-bottom: 30px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1a7255;
  margin: 10px auto 0;
  border-radius: 3px;
  animation: slideLine 2s infinite;
}

@keyframes slideLine {
  0%, 100% { width: 40px; }
  50% { width: 100px; }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.6;
}

.info-item i {
  color: #1a7255;
  font-size: 22px;
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-image {
  width: 45%;
}

.contact-image img {
  width: 100%;
  border-radius: 15px;
  animation: float 3s ease-in-out infinite;
}

/* ✅ حركة الصورة */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ✅ Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 للجوال */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-box, .contact-image {
    width: 95%;
  }
  .info-item {
    justify-content: center;
    text-align: center;
  }
}



.branches {
    justify-content: center;
    align-items: center;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    padding: 47px;
    flex-direction: row-reverse;
}

.branch-info {
  flex: 1;
    background: rgb(0 0 0 / 60%);
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    min-width: 283px;
    text-align: center;
    font-size: 20px;
    line-height:1.6;
        margin-left: 4px;
}

.branch-info h3 {
  margin-bottom: 12px;
     font-size: 28px;
    color: #1a7255;
}

.branch-map {
  flex: none;
  background: #a7aaa694;
  padding: 25px;
  border-radius: 12px;
  width: 95%;         /* ✅ صار أعرض */
  max-width: 1200px;  /* ✅ الحد الأقصى */
  margin: 0 auto;     /* ✅ يخلي البوكس بالنص */
  text-align: center;
}

.map-container {
  position: relative;
  width: 100%;
  height: 350px;      /* ✅ رفعنا الطول */
  border-radius: 10px;
  overflow: hidden;
}


.map-buttons {
  text-align: center;
  margin-bottom: 12px;
}

.map-buttons button {
  background: #2a5e4dc2;
  color: white;
  border: none;
  padding: 10px 18px;
  margin: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.contact-line {
  display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    text-align: end;
    align-items: flex-start;
}

.contact-line p {
  margin: 0;
}

.contact-line img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}


.map-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.map-frame.active {
  display: block;
}

/* ✅ موبايل */
@media (max-width: 768px) {
  .branches {
    flex-direction: column;
    align-items: center;
  }
  .branch-info, .branch-map {
    width: 100%;
    max-width: 95%;
  }
  .map-container {
    height: 220px;
  }
}


.footer {
  background-color: #1c3c2e69;
  color: #333030;
  font-weight: 900;
  padding: 60px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* ✅ تقسيم الأعمدة على الشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1200px) {
  .footer .col {
    flex: 1 1 45%;   /* كل عمود يأخذ 45% */
    max-width: 45%;
  }
  .footer {
    justify-content: center;
  }
}

/* ✅ للجوال */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .col {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* 📱 في الجوال والآيباد */
@media (max-width: 1024px) {
  .footer {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .col {
    width: 100%;
    text-align: center;
  }

  .contact {
    text-align: center;
  }

  .contact .number,
  .contact .title {
    text-align: center;
    display: block;
    width: 100%;
  }

  .social-icons {
    justify-content: center;
    margin: 10px auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.col h3 {
 font-size: 26px;
    margin-bottom: 17px;
    font-weight: 900;
}

.col p, .col li, .col a {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 25px;
    text-decoration: none;
}

.col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.col li {
  margin-bottom: 6px;
}

.contact .title {
      font-size: 24px;
    margin-bottom: 17px;
    color: #232323;
}

.contact .number {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  
}

.social-icons a {
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #012a4a;
  font-size: 20px;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: #61a5c2;
  color: #fff;
}

.footer-bottom {
  background:#00000040 ;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.footer-bottom p {
  color: #fff;
 font-size: 17px;
    font-weight: 800;
}

.footer-logo {
  width: 60px;
  height: auto;
}

/* 📱 الجوال */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .col {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* media query */

@media (max-width:800px) {
    nav ul{
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        overflow: hidden;
        transition: max-height 0.5s;
    }
    nav ul li:last-child{
        padding-bottom: 40px;
    }
    .menu-icon{
        display: block;
    }
    .hero-section{
        flex-direction: column;
        height: auto;
        padding-top: 40px;
        padding-bottom: 0;
    }
    .hero-section .left,.hero-section .right{
        width: 100%;
    }
    #heroSection,#blogsection,#testimonialSection,#trendSection,#blogsection{
        padding: 40px 2rem;
        padding-top: 80px;
    }
    nav{
        padding: 1rem 2rem;
    }
}

@media (max-width:500px) {
    .hero-section .left h1{
        font-size: 30px;
    }
    footer{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px 0;
    }
}
