@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
@font-face {
  font-family: Arslan;
  src: url(/fonts/Arslan_Wessam.ttf);
}
@font-face{
  font-family: Janna;
  src: url(/fonts/Janna_LT_Bold.ttf)
}
@font-face{
  font-family: Uthmanic;
  src: url(/fonts/Uthmanic.otf)
}
@font-face{
  font-family: Shoroq;
  src: url(/fonts/Shoroq-Font.ttf)
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.welcome{
    font-family: Uthmanic;
}

:root {
    --primary-color: #16a34a;
    --secondary-color: #2c3e50;
    --text-color: #ffffff;
    --hover-color: #2980b9;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  header.scrolled {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #374151;
  }
  
  header a {
    color: white;
    transition: color 0.3s ease;
  }
  
  header.scrolled a {
    color: #374151;
  }

.logo img {
    height: 60px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.auth-links a {
    margin-right: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-color);
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #1d9261;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.sign_action{
    display: none;
}

@media(max-width: 320px) {
  .card {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav {
        display: none;
        width: 50%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        background-color: white;
        border-radius: 10px;
        box-shadow: 1px 1px 10px 6px #cccccc7a;
        position: absolute;
        top: 0;
        margin-top: 50px;
        z-index: 99;
        color: var(--secondary-color);
    }

    nav a{
        color: var(--secondary-color);
    }

    nav.show {
        display: flex;
    }

    .menu-icon {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .logo img{
        width: 50px;
        height: 50%;
    }

    .auth-links {
        display: none;
    }

    .sign_action{
        order: 3;
        display: block;
    }

    nav {
        order: 4;
    }
}