* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    font-family: Arial, Helvetica, sans-serif;
}

/* 
@font-face {
    font-family: sazeh;
    src: url(../Persian/Mj_Sazeh/Mj_Sazeh\ Bold_0.ttf);
  } */

/* Home Icon */
.fix-icon {
    position: fixed;
    right: 20px; /* distance from the left edge */
    top: 89%; /* vertically centered */
    z-index: 1000; /* stay on top of other elements */
    width: 50px; /* size of the icon */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fix-icon img {
    width: 100%;
}


/* Whatsapp */
#whatsapp-fixed {
    position: fixed;
    left: 20px; /* distance from the left edge */
    top: 90%; /* vertically centered */
    transform: translateY(-50%);
    z-index: 1000; /* stay on top of other elements */
    width: 50px; /* size of the icon */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* WhatsApp green background */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

#whatsapp-fixed img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* make icon white */
}

#whatsapp-fixed:hover {
    background-color: #1ebe5b; /* darker green on hover */
}

/* Header For Desktop */

/* Header styling */
header {
    display: flex;
    align-items: center;
    /* padding: 10px 20px; */
    justify-content: center;
    height: 200px;
    /* background-color: #111; */
    margin-bottom: 50px;
    border-bottom: 1px solid #1d256e;
}

/* Logo styling */
.logo {
    width: 20%;
    transform: translateX(-200px);
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
    display: inline-block;
    transform: translateX(200px);
    z-index: 10000;
}

/* Dropdown button styling */
.dropbtn {
    /* background-color: #333; */
    color: #111;
    padding: 14px 16px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 10px;
    /* background-color: #f9f9f9; */
}

.dropbtn a {
    color: #111;
}

/* Dropdown content styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: right;
    border-radius: 10px;
    z-index: 10000;
}

/* Links inside dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change button color on hover */
.dropbtn:hover {
    /* background-color: #555; */
}

/* Main */

.flex-container {
    display: flex;
    flex-direction: row;
    font-size: 30px;
    text-align: center;
}

.flex-item-left {
    padding: 10px;
    flex: 75%;
}

/* Tables */
/* .table-wrapper p {
  text-align: right;
  background-color: #bbb;
  padding: 20px 0;
  width: 100%;
  font-size: 25px;
} */

.title {
    display: flex;
    justify-content: space-around;
    background-color: #dddddd;
    flex-direction: row;
    width: 100%;
    min-width: 600px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.title-right {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.title-right img {
    width: 16%;
}

.title-right p {
    font-size: 20px;
    padding-top: 28px;
}

.title-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: left;
    text-align: left;
    align-items: left;
}

.title-left p {
    font-size: 11px;
    text-align: left;
    font-weight: 500;
    padding-top: 20px;
    align-items: center;
    text-align: center;
    transform: translateX(-150px);
}

.table-wrapper {
    width: 92%;
    margin: 10px auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-wrapper::after {
    content: "← اسکرول کنید →";
    position: absolute;
    bottom: -25px;
    right: 50%;
    transform: translateX(50%);
    font-size: 12px;
    color: #666;
    display: none;
}

.table-wrapper a {
    display: flex;
    text-align: center;
    font-size: 15px;
    justify-content: center;
    align-items: center;
    padding: px;
    color: #111;
    background-color: #F79620;
}

.table-wrapper a:hover {
    background-color: #F79620;
    color: #eee;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
    min-width: 600px;
    margin: 0;
}

td, th {
    border: 1px solid #dddddd;
    text-align: right;
    padding: 10px 15px;
    white-space: nowrap;
    min-width: 120px;
}

tr:hover {
    transform: translateX(3px);
}

tr:nth-child(even) {
    background-color: #dddddd;
    color: #1d256e;
}

tr:nth-child(odd) {
    color: #111;
}


.flex-item-right {
    padding: 10px;
    flex: 8%;
}

.flex-item-right p {
    font-size: 24px;
    color: #F79620;
}

.flex-item-right a {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 100px;
    font-size: 15px;
    color: #111;
}

.flex-item-right a:hover {
    color: #F79620;
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 100%;
    /* background-color: #bbb; */
    padding-top: 20px;
    text-align: right;
}

/* Sidebar links */
.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #111;
    text-decoration: none;
    cursor: pointer;
}

/* Hover effect */
.sidebar a:hover {
    background-color: transparent;
}

/* Dropdown container (hidden by default) */
.dropdown-container {
    display: none;
    background-color: transparent;
}

/* Show dropdown when active */
.dropdown-container.show {
    display: block;
}

/* Optional: style for nested links */
.dropdown-container a {
    padding-left: 40px;
}


/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.loti img {
    height: 80%;
}

.loti p {
    transform: translateY(-50px);
}

.line {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.line span {
    border-bottom: 2px solid #F79620;
    width: 80%;
    margin-bottom: 30px;
}

.address {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    margin: 10px 0;
}

.address img {
    width: 1.5%;
    margin-left: 10px;
}

.address p {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.navs {
    display: flex;
    justify-content: center;
    text-align: center;
}

.navs a {
    margin: 0px 20px;
    color: #111;
    align-items: center;
    text-align: center;
    font-size: 12px;
}

.navs a:hover {
    color: #F79620;
}


/* MediaQuery */
@media (max-width: 800px) {
    .flex-container {
        flex-direction: column;
    }

    .table-wrapper {
        width: 95%;
        margin: 10px auto;
        margin-bottom: 40px;
    }

    .table-wrapper::after {
        display: block;
    }

    .title {
        flex-direction: column;
        text-align: center;
        min-width: 500px;
    }

    .title-right {
        justify-content: center;
        margin-bottom: 10px;
    }

    .title-right img {
        width: 60px;
        height: 60px;
    }

    .title-right p {
        font-size: 16px;
        padding-top: 15px;
    }

    .title-left {
        align-items: center;
        text-align: center;
    }

    .title-left p {
        font-size: 10px;
        transform: none;
        padding-top: 5px;
    }

    table {
        font-size: 14px;
        min-width: 500px;
    }

    td, th {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
    }

    .flex-item-right a {
        margin-right: 20px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .table-wrapper {
        width: 98%;
        margin: 5px auto;
    }

    .title {
        min-width: 400px;
    }

    table {
        font-size: 12px;
        min-width: 400px;
    }

    td, th {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 80px;
    }

    .title-right p {
        font-size: 14px;
    }

    .title-left p {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .title {
        min-width: 350px;
    }

    table {
        font-size: 11px;
        min-width: 350px;
    }

    td, th {
        padding: 5px 6px;
        font-size: 10px;
        min-width: 70px;
    }

    .title-right p {
        font-size: 12px;
    }

    .title-left p {
        font-size: 8px;
    }
}


