@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmath",sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    color: #333;
    line-height: 1.8;
    transition: all 0.3s ease-in-out;
}

.header {
    background: #60a979;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 10px 10px 0 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    font-family: "Amiri";
}

.nav-links {
    /* Hidden by default */
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #60a979;
    padding: 10px 0;
    text-align: center;
    border-radius: 0 0 8px 8px;
    max-height: 0; /* For animation */
    opacity: 0;
    overflow: hidden; /* Hide overflowing content */
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.nav-links li {
    margin: 0;
    padding-bottom: 20px;
    border-top: #77c793 1px solid;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #004d26;
}

.nav-links.show {
    max-height: 710px; /* Large enough to display all items */
    opacity: 1; /* Make menu visible */
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}


.resume-container {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.resume-container h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 3px solid #21f35d;
    padding-bottom: 10px;
}

.resume-container h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-container ul {
    list-style: disc inside;
    margin: 15px 0;
}

.resume-container li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    padding-left: 10px;
    border-left: 3px solid #21f35d;
}

.resume-container a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.resume-container a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.resume-container p {
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rtl {
    direction: rtl;
    text-align: right;
}

.dr_image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 400px;
    border-radius: 10px ;
    padding-bottom: 30px;
} 

h1,
h2,
h3 {
    margin-top: 40px;
    margin-bottom: 5px;
    color: #2c3e50;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    color: #34495e;
}

h4 {
    font-size: 1.2rem;
    color: #5d6d7e;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #34495e;
}

.note {
    background: linear-gradient(135deg, #85ffae, #bdf8c0);
    border-left: 5px solid #21f35d;
    border-bottom: 5px solid #21f35d;
    padding: 15px;
    margin: 25px 0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #21f35d;
    box-shadow: 0 0 5px rgba(33, 243, 93, 0.5);
    outline: none;
}

.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn {
    background: linear-gradient(45deg, #60a979, #2cb452);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #2cb452, #60a979);
    transform: scale(1.05);
}

.results-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wife-column,
.husband-column {
    width: 48%;
}
.user-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    background: #85ffae;
    padding: 20px;
    border-radius: 10px;
}

.title {
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.photo {
    flex: 1;
    text-align: left;
}

.photo img {
    max-width: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.photo img:hover {
    transform: scale(1.05);
}

.user-info {
    flex: 1;
    text-align: right;
}

.footer-centered {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px 0;
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    color: #333;
    position: relative;
    margin-top: 3em;
}

.footer-centered a {
    color: #007bff;
    text-decoration: none;
}

.footer-centered a:hover {
    text-decoration: underline;
}

.responsive-img {
    max-width: 200px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}




ul {
    list-style-type: none;
}

li {
    margin: 5px 0;
}

@media (max-width: 1000px) {
    .results-container {
        flex-direction: column;
    }

    .wife-column,
    .husband-column {
        width: 45%;
    }
    .dr_image {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        max-width:200px;
    }
    .nav-links {
        display: flex; /* Only flex on small screens */

    .photo img{
         max-width: 100px;
    
    }
    .title{
        font-size: 0.8em;
    }


}

@media (max-width: 800px) {
    .results-container {
        flex-direction: column; /* ستون‌ها در دستگاه‌های کوچکتر زیر هم قرار گیرند */
    }

    .wife-column,
    .husband-column {
        width: 100%; /* هر ستون عرض کامل داشته باشد */
    }
    .photo img{
         max-width: 100px;
}
.title{
    font-size: 0.8em;
}

}

@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    .photo img{
        max-width: 100px;
}
.title{
    font-size: 0.8em;
}
}
}