/* style.css */

@font-face {
  font-family: vazir;
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/Vazir-Thin-UI.eot");
  src: url("../fonts/Vazir-Thin-UI.woff") format("woff"),
    url("../fonts/Vazir-Thin-UI.ttf") format("ttf"),
    url("../fonts/Vazir-Thin-UI.woff2") format("woff2");
}
@font-face {
  font-family: vazir;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/Vazir-Light-UI.eot");
  src: url("../fonts/Vazir-Light-UI.woff") format("woff"),
    url("../fonts/Vazir-Light-UI.ttf") format("ttf"),
    url("../fonts/Vazir-Light-UI.woff2") format("woff2");
}

@font-face {
  font-family: vazir;
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/Vazir-Regular-UI.eot");
  src: url("/fonts/Vazir-Regular-UI.woff") format("woff"),
    url("/fonts/Vazir-Regular-UI.ttf") format("ttf"),
    url("/fonts/Vazir-Regular-UI.woff2") format("woff2");
}
@font-face {
  font-family: vazir;
  font-style: normal;
  font-weight: 950;
  src: url("/fonts/Vazir-Black-UI.eot");
  src: url("/fonts/Vazir-Black-UI.woff") format("woff"),
    url("/fonts/Vazir-Black-UI.ttf") format("ttf"),
    url("/fonts/Vazir-Black-UI.woff2") format("woff2");
}

body {
    font-family: vazir;
    background: #f2f2f2;
    margin: 0;
    padding: 0;
    direction: rtl;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #060546;
    padding: 0 20px;
    direction: rtl;
}

.navbar a {
    margin: 0 10px;
    text-decoration: none;
    color: #eee2bc;
    font-weight: bold;
}

.navbar .menu {
    display: flex;
    gap: 15px;
}

.navbar .logo img {
    height: 70px;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), rgba(114, 126, 176, 0.3)),
                url('/img/header.png') no-repeat center center;
    background-size: cover;
    color: #eee2bc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
    padding: 20px;
    box-sizing: border-box;
    direction: rtl;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    font-size: 18px;
    line-height: 2;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
}

.container {
    padding: 20px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.item h3 {
    font-size: 1.1em;
    margin: 10px 0 5px;
}

.item p {
    font-size: 0.9em;
    color: #555;
}

.footer {
    background-color: #060546;
    color: #eee2bc;
    padding: 30px 20px;
    direction: rtl;
    font-family: Tahoma, sans-serif;
    margin-top: 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 250px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.footer p, .footer li {
    font-size: 15px;
    margin: 5px 0;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer-logo img {
    height: 150px;
    margin: 20px;
    margin-left: 50px;
    float: left;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
    border-top: 1px solid #555;
    padding-top: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-grid div {
    padding: 5px 10px;
    border-radius: 5px;
}

.responsive-slider-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  direction: rtl; 
}
 
.preview-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  text-align: center; /* Centers images and controls */
  direction: ltr; /* Keep controls like arrows left-to-right */
}

.preview-slide {
  display: none;
  text-align: center;
}

.preview-slide.active {
  display: block;
}

.preview-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.preview-slider-controls {
  text-align: center;
  margin-top: 10px;
}

.preview-slider-controls button {
  padding: 10px 16px;
  margin: 0 8px;
  font-size: 16px;
  background-color: #060546;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.preview-slider-controls button:hover {
  background-color: #3a3f88;
}

.preview-slider-controls button {
    padding: 8px 12px;
    font-size: 14px;
  }

    .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    background-color: white;
    padding: 20px;
}

.detail-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align:center
}

.detail-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    background: #ffffff;
}

.detail-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 15px;
}

.detail-value {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}


        form {
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 500px;
            margin: auto;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        label {
            display: block;
            margin-top: 15px;
        }

        input, textarea, select {
            width: 100%;
            padding: 8px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        button {
            margin-top: 20px;
            padding: 10px 20px;
            background: #27ae60;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .success {
            background: #dff0d8;
            color: #3c763d;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            text-align: center;
        }

        html {
            scroll-behavior: smooth;
        }

        
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 10px 0;
    }

    .hero-section {
        height: auto;
        padding: 40px 20px;
        text-align: center;
    }

    form {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .preview-slider-container {
        width: 100%;
        max-width: 100%;
    }

    .preview-slide img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 16px;
    }

    h2 {
        font-size: 20px;
    }

    .item h3 {
        font-size: 1em;
    }

    .item p {
        font-size: 0.85em;
    }

    button {
        width: 100%;
    }
}