
/* هیرو */

.hero {
    background: url('/static/images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    font-size: 1em;
    margin-bottom: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background: rgba(0, 0, 0, 0.3); /* سایه برای خوانایی بهتر متن */
    z-index: 1;
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-family: 'vazir-normal';
    color: #c88889;
    position: relative;
    z-index: 2;
    overflow: hidden; /* مخفی کردن متن اضافی */
    white-space: nowrap; /* جلوگیری از شکستن خط */
    border-right: 2px solid #c88889; /* مکان نما */
    animation: 
        typing 3s steps(30, end) forwards,
        blink-caret 0.75s step-end infinite;
}

/* انیمیشن تایپینگ */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* انیمیشن چشمک زدن مکان نما */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #c88889 }
}

.hero-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
}


/* استایل مربع‌های تعاملی روی هیرو */
.hero-interactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactive-square {
    position: absolute;
    width: 3%;
    height: 5%;
    border: 2px solid rgba(0, 100, 255, 0.7);
    background-color: rgba(0, 100, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    transform-origin: center;
}

.interactive-square:hover {
    background-color: rgba(0, 100, 255, 0.4);
    border-color: rgba(0, 200, 255, 0.9);
    transform: scale(1.2);
}

.square-tooltip {
    position: fixed;
    width: 30vw;
    height: 30vh;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    display: none;
    z-index: 100;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.square-tooltip.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.square-tooltip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* موقعیت‌های مربع‌ها  */
.square-1 { top: 55%; left: 40%; }
.square-2 { top: 55%; left: 35%; }
.square-3 { top: 55%; left: 30%; }
.square-4 { top: 40%; left: 50%; }
.square-5 { top: 25%; left: 35%; }
.square-6 { top: 50%; left: 60%; }
.square-7 { top: 40%; left: 40%; }







/* استایل لینک‌های پویا */
.dynamic-links-container {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    bottom: 15%;
    z-index: 10;
    width: 100%;
}

.dynamic-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dynamic-link {
    color: #9c5556;
    text-decoration: none;
    font-family: 'vazir-normal';
    font-size: 1.1em;
    padding: 5px 15px;
    transition: all 0.5s ease;
    opacity: 0.8;
}

.dynamic-link:hover {
    opacity: 1;
    color: #210589;
    transform: scale(1.05);
}

.dynamic-link.fade-out {
    animation: fadeOutUp 0.5s ease forwards;
}

.dynamic-link.fade-in {
    animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeOutUp {
    0% { opacity: 0.8; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 0.8; transform: translateY(0); }
}

/* استایل‌های متن درباره شرکت */
.text-content {
    line-height: 1.8;
}

.company-details {
    background: rgba(200, 136, 137, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.detail-title {
    color: #c88889;
    font-weight: bold;
}

.company-description {
    text-align: justify;
    margin: 25px 0;
}

.mission-statement {
    background: #f8f8f8;
    padding: 15px;
    border-right: 3px solid #c88889;
    border-radius: 0 8px 8px 0;
}

.competitive-advantages h3 {
    color: #1a2a44;
    margin: 25px 0 15px;
    text-align: right;
}

.competitive-advantages ul {
    list-style-type: none;
    padding: 0;
}

.competitive-advantages li {
    padding: 8px 0;
    position: relative;
    padding-right: 30px;
}

.competitive-advantages li i {
    color: #c88889;
    position: absolute;
    right: 0;
}

.resume-btn i {
    margin-left: 8px;
}

.highlight {
    font-size: 1.05em;
    line-height: 2;
}



/* استایل بخش no1 */
.no1 {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.no1 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* بخش عمومی */
.section {
    padding:0 20px 0 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

.section h2 {
    font-family: 'vazir-normal';
    text-align: center;
    margin-bottom: 20px;
}

.section.visible {
    opacity: 1;
}

.content-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.content-container img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}

.text-content {
    flex: 1;
    text-align: justify;
}

.resume-btn {
    background-color: var(--accent-color, #c88889);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.resume-btn:hover {
    background-color: #e65b50;
}

/* گالری */
.section-gallery {
    background-color: #1a2a44;
}

.gallery-content-container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-container {
    flex: 1;
    position: relative;
    max-width: 100%;
}

.gallery-slides {
    position: relative;
    height: 500px;
    width: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #1a2a44;
    color: white;
    border-radius: 10px;
    max-width: 300px;
}

.gallery-caption h3 {
    font-family: 'vazir-normal';
    font-size: 1.5em;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 2em;
}

.gallery-caption p {
    margin: 0;
    font-size: 1em;
    line-height: 2em;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* بخش گواهینامه‌ها */
.section-certificates .certificate-grid,
.section-awards .award-grid,
.section-clients .client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.certificate-item,
.award-item,
.client-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.certificate-item img,
.award-item img,
.client-item img {
    width: 100%;
    height: 200px;
    min-height:200;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-item:hover img,
.award-item:hover img,
.client-item:hover img {
    transform: scale(1.1);
}

/* استایل تمام‌صفحه برای گواهینامه‌ها و افتخارات */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* بخش تماس */
.section-contact {
    background-color: #f5f5f5;
}

.contact-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.map-wrapper {
    flex: 1;
    min-width: 250px;
}

.map-wrapper iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.contact-info {
    flex: 1;
    padding: 0 20px 0 20px;
    /*min-width: 300px;*/
}

.contact-info p {
    margin: 10px 0;
    font-family: 'vazir-normal';
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20%;
    flex-wrap: wrap;
}

.social-links a {
    color: #210589;
    text-decoration: none;
    font-family: 'vazir-normal';
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a:hover {
    color: #c88889;
}

.social-links i {
    font-size: 1.2em;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    .hero h1 {
        font-size: 1.5em;
    }
    .dynamic-links-container {
        right: 10px;
        bottom: 15%;
    }
    .dynamic-link {
        font-size: 1em;
    }
    .no1 {
        padding: 0 10px;
    }
    .content-container {
        flex-direction: column;
        text-align: center;
    }
    .content-container img {
        max-width: 100%;
    }
    .gallery-content-container {
        flex-direction: column;
        gap: 20px;
    }
    .gallery-container {
        height: 300px;
    }
    .gallery-slides {
        height: 300px;
    }
    .gallery-caption {
        max-width: 100%;
        padding: 15px;
    }
    .certificate-grid,
    .award-grid,
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .certificate-item img,
    .award-item img,
    .client-item img {
        height: 200px;
    }
    .contact-container {
        flex-direction: column;
    }
    .map-wrapper iframe {
        height: 300px;
    }

}





.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
    width: 100%;
    margin-top: 50px;
}

.form-wrapper {
    flex: 1;
    max-width: 500px;
}

.form-wrapper h1 {
    font-family: 'vazir-bold';
    text-align: center;
    margin-bottom: 15px;
}

.form-wrapper form {
    padding: 15px;
}

.form-wrapper textarea {
    height: 80px;
}

.map-wrapper {
    flex: 1;
    width: 400px;
    height: 250px;
    max-width: 800px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* تنظیم کپچا */
.g-recaptcha {
    margin: 10px 0;
    text-align: center; /* وسط‌چین کردن کپچا */
}

/* صفحه‌های کوچک */
@media (max-width: 768px) {
    .contact {
        padding-top: 70px;
        min-height: auto;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .form-wrapper,
    .map-wrapper {
        width: 90%;
        max-width: 300px;
    }
.contact-info {
        max-width: 300px;
    }
    .map-wrapper {
        height: 250px;
    }

    .form-wrapper h1 {
        font-size: 1.5rem;
    }

    /* تنظیم کپچا تو موبایل */
    .g-recaptcha {
        transform: scale(0.9); /* کمی کوچک‌تر کردن */
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .form-wrapper,
    .map-wrapper {
        max-width: 280px;
    }

    .map-wrapper {
        height: 250px;
    }

    .form-wrapper h1 {
        font-size: 1.2rem;
    }
.contact-info {
        max-width: 280px;
    }
    /* تنظیم بیشتر کپچا */
    .g-recaptcha {
        transform: scale(0.85); /* کوچک‌تر برای موبایل‌های خیلی کوچک */
    }
}


/* استایل مربع‌های تعاملی روی هیرو */
.hero-interactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactive-square {
    position: absolute;
    width: 3%;
    height: 5%;
    border: 2px solid rgba(0, 100, 255, 0.7);
    background-color: rgba(0, 100, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    transform-origin: center;
}

.interactive-square:hover {
    background-color: rgba(0, 100, 255, 0.4);
    border-color: rgba(0, 200, 255, 0.9);
    transform: scale(1.2);
}

.square-tooltip {
    position: fixed;
    width: 30vw;
    height: 30vh;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    display: none;
    z-index: 100;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.square-tooltip.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.square-tooltip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* موقعیت‌های مربع‌ها  */
.square-1 { top: 55%; left: 40%; }
.square-2 { top: 55%; left: 35%; }
.square-3 { top: 55%; left: 30%; }
.square-4 { top: 40%; left: 50%; }
.square-5 { top: 25%; left: 35%; }
.square-6 { top: 50%; left: 60%; }
.square-7 { top: 40%; left: 40%; }







/* استایل لینک‌های پویا */
.dynamic-links-container {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    bottom: 15%;
    z-index: 10;
    width: 100%;
}

.dynamic-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dynamic-link {
    color: #9c5556;
    text-decoration: none;
    font-family: 'vazir-normal';
    font-size: 1.1em;
    padding: 5px 15px;
    transition: all 0.5s ease;
    opacity: 0.8;
}

.dynamic-link:hover {
    opacity: 1;
    color: #210589;
    transform: scale(1.05);
}

.dynamic-link.fade-out {
    animation: fadeOutUp 0.5s ease forwards;
}

.dynamic-link.fade-in {
    animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeOutUp {
    0% { opacity: 0.8; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 0.8; transform: translateY(0); }
}

/* استایل‌های متن درباره شرکت */
.text-content {
    line-height: 1.8;
}

.company-details {
    background: rgba(200, 136, 137, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.detail-title {
    color: #c88889;
    font-weight: bold;
}

.company-description {
    text-align: justify;
    margin: 25px 0;
}

.mission-statement {
    background: #f8f8f8;
    padding: 15px;
    border-right: 3px solid #c88889;
    border-radius: 0 8px 8px 0;
}

.competitive-advantages h3 {
    color: #1a2a44;
    margin: 25px 0 15px;
    text-align: right;
}

.competitive-advantages ul {
    list-style-type: none;
    padding: 0;
}

.competitive-advantages li {
    padding: 8px 0;
    position: relative;
    padding-right: 30px;
}

.competitive-advantages li i {
    color: #c88889;
    position: absolute;
    right: 0;
}

.resume-btn i {
    margin-left: 8px;
}

.highlight {
    font-size: 1.05em;
    line-height: 2;
}



/* استایل بخش no1 */
.no1 {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.no1 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* بخش عمومی */
.section {
    padding:0 20px 0 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

.section h2 {
    font-family: 'vazir-normal';
    text-align: center;
    margin-bottom: 20px;
}

.section.visible {
    opacity: 1;
}

.content-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.content-container img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}

.text-content {
    flex: 1;
    text-align: justify;
}

.resume-btn {
    background-color: var(--accent-color, #c88889);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.resume-btn:hover {
    background-color: #e65b50;
}

/* گالری */
.section-gallery {
    background-color: #1a2a44;
}

.gallery-content-container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-container {
    flex: 1;
    position: relative;
    max-width: 100%;
}

.gallery-slides {
    position: relative;
    height: 500px;
    width: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #1a2a44;
    color: white;
    border-radius: 10px;
    max-width: 300px;
}

.gallery-caption h3 {
    font-family: 'vazir-normal';
    font-size: 1.5em;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 2em;
}

.gallery-caption p {
    margin: 0;
    font-size: 1em;
    line-height: 2em;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* بخش گواهینامه‌ها */
.section-certificates .certificate-grid,
.section-awards .award-grid,
.section-clients .client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.certificate-item,
.award-item,
.client-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.certificate-item img,
.award-item img,
.client-item img {
    width: 100%;
    height: 200px;
    min-height:200;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-item:hover img,
.award-item:hover img,
.client-item:hover img {
    transform: scale(1.1);
}

/* استایل تمام‌صفحه برای گواهینامه‌ها و افتخارات */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* بخش تماس */
.section-contact {
    background-color: #f5f5f5;
}

.contact-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.map-wrapper {
    flex: 1;
    min-width: 250px;
}

.map-wrapper iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.contact-info {
    flex: 1;
    padding: 0 20px 0 20px;
    /*min-width: 300px;*/
}

.contact-info p {
    margin: 10px 0;
    font-family: 'vazir-normal';
}

.social-links {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20%;
    flex-wrap: wrap;
}

.social-links a {
    color: #210589;
    text-decoration: none;
    font-family: 'vazir-normal';
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a:hover {
    color: #c88889;
}

.social-links i {
    font-size: 1.2em;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    .hero h1 {
        font-size: 1.5em;
    }
    .dynamic-links-container {
        right: 10px;
        bottom: 15%;
    }
    .dynamic-link {
        font-size: 1em;
    }
    .no1 {
        padding: 0 10px;
    }
    .content-container {
        flex-direction: column;
        text-align: center;
    }
    .content-container img {
        max-width: 100%;
    }
    .gallery-content-container {
        flex-direction: column;
        gap: 20px;
    }
    .gallery-container {
        height: 300px;
    }
    .gallery-slides {
        height: 300px;
    }
    .gallery-caption {
        max-width: 100%;
        padding: 15px;
    }
    .certificate-grid,
    .award-grid,
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .certificate-item img,
    .award-item img,
    .client-item img {
        height: 200px;
    }
    .contact-container {
        flex-direction: column;
    }
    .map-wrapper iframe {
        height: 300px;
    }

}





.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
    width: 100%;
    margin-top: 50px;
}

.form-wrapper {
    flex: 1;
    max-width: 500px;
}

.form-wrapper h1 {
    font-family: 'vazir-bold';
    text-align: center;
    margin-bottom: 15px;
}

.form-wrapper form {
    padding: 15px;
}

.form-wrapper textarea {
    height: 80px;
}

.map-wrapper {
    flex: 1;
    width: 400px;
    height: 250px;
    max-width: 800px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* تنظیم کپچا */
.g-recaptcha {
    margin: 10px 0;
    text-align: center; /* وسط‌چین کردن کپچا */
}

/* صفحه‌های کوچک */
@media (max-width: 768px) {
    .contact {
        padding-top: 70px;
        min-height: auto;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .form-wrapper,
    .map-wrapper {
        width: 90%;
        max-width: 300px;
    }
.contact-info {
        max-width: 300px;
    }
    .map-wrapper {
        height: 250px;
    }

    .form-wrapper h1 {
        font-size: 1.5rem;
    }

    /* تنظیم کپچا تو موبایل */
    .g-recaptcha {
        transform: scale(0.9); /* کمی کوچک‌تر کردن */
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .form-wrapper,
    .map-wrapper {
        max-width: 280px;
    }

    .map-wrapper {
        height: 250px;
    }

    .form-wrapper h1 {
        font-size: 1.2rem;
    }
.contact-info {
        max-width: 280px;
    }
    /* تنظیم بیشتر کپچا */
    .g-recaptcha {
        transform: scale(0.85); /* کوچک‌تر برای موبایل‌های خیلی کوچک */
    }
}