/* تنظیمات کلی */
body {
    font-family: 'Tahoma', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: right;
    /* background-color: #e74c3c; */
}
/* From Uiverse.io by SujitAdroja */ 
.btn {
    color: purple;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid purple;
    padding: 10px 20px;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    position: relative;
    transition: all 1s;
    overflow: hidden;
    /* margin: 0 auto; */
    /* text-align: center; */
  }
  
  .btn:hover {
    color: white;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: purple;
    z-index: -1;
    transition: all 1s;
  }
  
  .btn:hover::before {
    width: 160%;
  }
  
/* main{
    width: 950px;
    height: 1000;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas: 
    'header header'
    'aside aside'
    'footer footer'
    ;
}

header {
    position: relative;
    grid-area: header;
}
aside{
    grid-area: aside;
}
footer{
    grid-area: footer;
} */
.header-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.slide-content h1 {
    font-size: 2.5em;
    margin: 0;
}

.slide-content p {
    font-size: 1.2em;
    margin: 10px 0 0;
}
.fd h1{
    text-align: center;
    border: 6px solid #0F1C2E;
    background-color: #4d648d;
    color: white;
    margin: 6px;
    border-radius: 20px 0 20px 0;
    padding: 7px;
}
.fd p{
    text-align: center;
    border: 6px solid #4d648d;
    background-color: #0F1C2E;
    color: white;
    border-radius: 15px 0 15px 0;
    margin: 10px;
    padding: 8px;
}
.fd li{
    list-style-type: none;
    text-align: center;
    margin: 7px;
}
img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.fa h1{
    text-align: center;
    border: 6px solid #0F1C2E;
    background-color: #4d648d;
    color: white;
    margin: 6px;
    border-radius: 20px 0 20px 0;
    padding: 7px;
    
}
.fa p{
    text-align: center;
    border: 6px solid #4d648d;
    background-color: #0F1C2E;
    color: white;
    border-radius: 15px 0 15px 0;
    margin: 10px;
    padding: 8px;
    
}
.card h5{
    text-align: center;
    border: 6px solid #4d648d;
    background-color: #0F1C2E;
    color: white;
    border-radius: 15px 0 15px 0;
    margin: 10px;
    padding: 8px;
}
.card p{
    text-align: center;
    border: 6px solid #0F1C2E;
    background-color: #4d648d;
    color: white;
    margin: 6px;
    border-radius: 20px 0 20px 0;
    padding: 7px;
}
.er h2{
    text-align: center;
    border: 6px solid #4d648d;
    background-color: #0F1C2E;
    color: white;
    border-radius: 15px 0 15px 0;
    margin: 10px;
    padding: 8px;
}
.df{
    border: #0F1C2E 5px solid;
    background-color: #4d648d;
    margin: 0 auto;
    margin: 6px;
}
.df h2{
    text-align: center;
    border: #0F1C2E 5px solid;
    background-color: #fffefb;
    border-radius: 0 20px 0 20px;
    margin: 5px;
}
.df img{
    margin-top: 6px;
}
.button-container {
    position: relative;
    margin: 7px;
}
.df h4{
    text-align: center;
    border: #0F1C2E 5px solid;
    background-color: #fffefb;
    border-radius: 0 20px 0 20px;
    margin: 5px;
}
.qw{
    border: 6px solid #4d648d;
    background-color: #0F1C2E;
    margin: 0 auto;
    margin-top: 6px;
    border-radius: 0 20px 0 20px;
    margin: 7px;
}
.qw img{
    margin-top: 6px;
}
.qw h2{
    border: 5px solid #1F3A5F;
    background-color: #4d648d;
    text-align: center;
    color: white;
    /* padding: 7px; */
    border-radius: 0 20px 0 20px;
    margin: 8px;
}
.qw p{
    border: 6px solid #4d648d;
    background-color: #1F3A5F;
    color: white;
    padding: 6px;
    margin: 6px;3
    border-radius: 0px 20px 0px 20px;
    text-align: center;
}
.dm{
    border: #0F1C2E solid 6px;
    background-color: #1F3A5F;
    margin: 0 auto; 
    margin-top: 6px;
    border-radius: 0 20px 0 20px;
    margin: 7px;
}
.dm h2{
    border: 6px solid #0F1C2E;
    background-color: white;
    text-align: center;
    border-radius: 0 20px 0 20px;
    margin: 6px;
    padding: 5px;
}
.dm img{
    margin-top: 6px;
}
.dm p{
    border: 6px solid #0F1C2E;
    background-color: white;
    text-align: center;
    border-radius: 0 20px 0 20px;
    margin: 6px;
    padding: 5px;
}
.va{
    border: #1F3A5F solid 6px;
    margin: 0 auto; 
    margin-top: 6px;
    border-radius: 0 20px 0 20px;
    margin: 7px;
    background-color: #0F1C2E;
}
.va h2{
    border: #1F3A5F solid 6px;
    margin: 6px;
    border-radius: 0 20px 0 20px;
    /* background-color: white; */
    text-align: center;
    color: white;
}
.va p{
    border: #1F3A5F solid 6px;
    margin: 6px;
    border-radius: 0 20px 0 20px;
    /* background-color: white; */
    text-align: center;
    color: white;
}
.va img{
    margin-top: 6px;
}
h2{
    /* color: white; */
    text-align: center;
    margin: 8px;
}
p{
    /* color: white; */
    text-align: center;
    margin: 8px;
}
footer{
    background-color: #3498db;
}
A{
    /* background-color: #f4f4f4; */
}
#cool-button {
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
#cool-button:hover, #cool-button.auto-hover {
    background-color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7);
}

#cool-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

#cool-button:hover::before, #cool-button.auto-hover::before {
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
    }
    /* img{
        width: 500px;
    } */
    .menu li {
        text-align: center;
        margin: 10px 0;
    }

    .menu-icon {
        display: flex;
    }

    .menu.active {
        display: flex;
        animation: slideIn 0.5s ease-in-out;
    }
}

/* انیمیشن */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}