@charset "utf-8";

/*==================================================
    Reset & Global Styling 
==================================================*/
*{
    margin:0;
    padding:0;
    direction:rtl;
    font-family: 'Light', sans-serif;
    font-style:normal;
    font-weight:normal;
    -webkit-transition:.3s ease-out;
    transition:.3s ease-out;
    box-sizing: border-box;
}

body {
    background:var(--text);
}

/*==================================================
    Brand Colors & Custom Variables
==================================================*/
:root{
    --primary:#37aa9c;
    --primary-dark:#2b8a7e;
    --primary-light:#eefaf8;
    --bg:#ebebe3;
    --text:#4a4a48;
    --border:#cecec7;
    --white:#ffffff;

    --alert-primary: #ff9800;   
    --alert-light: #fff3e0;     
    --alert-hover: #ffe0b2;     
    --alert-text: #e65100;      

    --social-color: var(--text);      
    --social-hover: var(--primary);   

    --accordion-gap: 16px;         
    --social-icon-gap: 15px;
    
    --profile-size: 125px;
    --profile-radius: 50%;
    --profile-border: 4px solid var(--primary);
    --profile-margin-bottom: 12px;

    --hero-title-size: 17px;
    --hero-title-weight: bold;

    --hero-top-padding: 25px;      
    --hero-bottom-padding: 50px;   
}

/*==================================================
    Base Elements
==================================================*/
a{
    text-decoration:none;
    color:var(--primary);
}

img{
    max-width:100%;
}

ul, li{
    list-style:none;
}

p{
    margin:0 0 10px;
}

b, strong, h1, h2, h3, h4, h5, h6 {
    font-weight: bold !important;
}

.footer-link-highlight {
    color: var(--primary) !important;
}
.footer-link-highlight:hover {
    color: var(--primary-dark) !important;
}

/*==================================================
    Helpers (Standard Naming)
==================================================*/
.float-right { float: right; }
.float-left { float: left; }
.w-full, header, footer { width: 100%; float: right; }
.text-center { text-align: center; }
.clearfix { clear: both; }
.d-none { display: none; }

/*==================================================
    Font Sizes (Standard Naming)
==================================================*/
.text-sm { font-size: 12.5px; }
.text-md { font-size: 15px; }
.text-lg { font-size: 18px; }

/*==================================================
    Hero Area & Profile Layout
==================================================*/
.hero-content {
    padding: var(--hero-top-padding) 0 var(--hero-bottom-padding); 
}

.hero-content .title-side {
    width: 100%;
    text-align: center;
}

.profile-pic-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: var(--profile-margin-bottom);
}

.profile-pic {
    width: var(--profile-size);
    height: var(--profile-size);
    border-radius: var(--profile-radius);
    border: var(--profile-border);
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.hero-title{
    margin: 10px 0 25px 0;
    font-size: var(--hero-title-size) !important;
    font-weight: var(--hero-title-weight) !important;
    line-height: 1.6;
    color: var(--border);
}

.hero-content .logo-box {
    padding: 12px 15px;
    color: var(--border);
    border-radius: 5px;
    background: rgba(0,0,0,.2);
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.hero-content .logo-box a {
    display: inline-block;
    padding: 0;
    color: var(--white);
}

/*==================================================
    Main Layout
==================================================*/
.main {
    width: 1140px;
    max-width: 95%;
    margin: 0 auto;
}

.content-wrapper {
    position: relative;
    z-index: 100;
    margin-top: -50px;
    background: var(--bg);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
}

.page {
    width: calc(100% - 0px);
    padding: 30px;
}

/*==================================================
    Contact Section 
==================================================*/
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-bottom: 25px;
    align-items: stretch;
}

.phone-action, .social-actions {
    flex: 1; 
    min-width: 260px;
    background: var(--bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
    display: flex;
}

.phone-action {
    padding: 15px;
    align-items: center;
    justify-content: center;
}

.phone-action .btn {
    width: 100%;
}

.social-actions {
    overflow: hidden; 
}

.social-actions .action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    color: var(--text);
    text-align: center;
    transition: 0.3s;
}

.social-actions .action-btn:hover {
    background: #e0e0d8;
}

.social-actions .action-btn.border-left {
    border-left: 1px solid var(--border);
}

.social-actions .action-btn i {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--text);
}

.social-actions .action-btn span {
    font-weight: bold;
    display: block;
}

@media (max-width: 650px){
    .contact-actions { flex-direction: column; }
    .phone-action, .social-actions { width: 100%; min-width: auto; }
}

/*==================================================
    Profile Accordion Components
==================================================*/
.profile-panel{
    margin-bottom: var(--accordion-gap);
    overflow:hidden;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:5px;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.profile-panel[open]{
    border-top:4px solid var(--primary);
}

.profile-panel summary{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 18px;
    cursor:pointer;
    list-style:none;
    background:var(--bg);
}

.profile-panel summary:hover{
    background:var(--primary-light);
}

.profile-panel summary::-webkit-details-marker{
    display:none;
}

.profile-title{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    font-size:16px;
}

.profile-title i{
    color:var(--primary);
    font-size:19px;
}

.accordion-icon{
    color:var(--primary);
    font-size:16px;
}

.profile-panel[open] .accordion-icon{
    transform:rotate(180deg);
}

.profile-content{
    padding:20px;
    text-align:right;
    background:var(--white);
}

.alert-content {
    padding: 20px 20px 26px 20px;
}

.profile-panel.alert-panel {
    border: 1px solid var(--alert-primary);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.1);
}
.profile-panel.alert-panel[open] {
    border-top: 4px solid var(--alert-primary);
}
.profile-panel.alert-panel summary {
    background: var(--alert-light);
}
.profile-panel.alert-panel summary:hover {
    background: var(--alert-hover);
}
.profile-panel.alert-panel .profile-title {
    color: var(--alert-text);
}
.profile-panel.alert-panel .profile-title i, 
.profile-panel.alert-panel .accordion-icon {
    color: var(--alert-primary);
}

/*==================================================
    Minimal Card
==================================================*/
.minimal-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    transition: 0.3s;
}

.minimal-card:last-child { margin-bottom: 0; }
.minimal-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.minimal-card > i {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--primary);
    margin-top: 2px;
}

.minimal-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--text);
}

.minimal-card p {
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.8;
    text-align: justify; 
}

.minimal-card.menu-box {
    align-items: center;
    padding: 15px;
}

@media (max-width:768px){
    .profile-title{ font-size:15px; }
    .minimal-card{ flex-direction:column; gap:10px; }
    .minimal-card.menu-box { flex-direction: row; }
}

/*==================================================
    Modern Buttons & Grid Layout
==================================================*/
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin: 15px auto 25px;
}

@media (max-width: 650px) {
    .links-grid { grid-template-columns: 1fr; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    font-size: 14.5px;
    box-sizing: border-box;
    transition: .25s;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.btn-dark { background: var(--text); color: var(--bg); }
.btn-green { background: var(--primary); color: var(--white); }
.btn-orange { background: var(--alert-primary); color: var(--white); }
.btn-gray { background: var(--border); color: var(--text); }
.btn-light { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/*==================================================
    Social Media 
==================================================*/
.footer-socials .social {
    text-align: center;
    padding: 10px 0;
}

.footer-socials .social a {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    margin: 0 var(--social-icon-gap); 
    color: var(--social-color); 
}

.footer-socials .social a:hover {
    color: var(--social-hover); 
    transform: translateY(-3px);
}

@media (max-width: 750px) {
    .footer-socials .social a { margin: 0 10px; }
}

/*==================================================
    Advanced Note Boxes inside Accordion
==================================================*/
.note-color {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}
.note-color:last-child { margin-bottom: 0; }
.note-icon { font-size: 20px; flex-shrink: 0; }

.note-color.help {
    color: #2b6cb0;
    background-color: #ebf8ff;
    border-color: #bee3f8;
}
.note-color.hint {
    color: #b7791f;
    background-color: #fefcbf;
    border-color: #fef08a;
}
.note-color.warning {
    color: #c53030;
    background-color: #fff5f5;
    border-color: #fed7d7;
}

.note-color p {
    font-size: 13.5px; 
    line-height: 1.7;  
    margin: 0;         
}

/*==================================================
    Footer Area
==================================================*/
footer{
    position:relative;
    margin-top:-90px;
    padding-top:48px;
    color:var(--white);
    background:var(--text);
    border-top:5px solid var(--primary);
}

footer .copyright{
    margin-top:30px;
    padding:20px 0;
}

footer .copyright p{
    padding:2px 0;
    color:var(--bg);
}

@media (max-width:580px){
    footer{ padding-top:45px; }
    footer .copyright{ margin-top:-25px; padding:10px 0; }
}

/*==================================================
    Modern Modal
==================================================*/
.custom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-card-header {
    background: var(--bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-card-header h3 {
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-card-header h3 i {
    color: var(--primary);
}

.close-modal-btn {
    font-size: 26px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.close-modal-btn:hover { color: #333; }

.modal-card-body {
    padding: 22px 20px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.8;
}
.modal-card-body p { margin-bottom: 12px; text-align: justify; }
.modal-card-body p:last-child { margin-bottom: 0; }

.modal-card-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center; /* اصلاح: دکمه‌ها در مُدال وسط‌چین شدند */
}
.modal-card-footer .btn { width: auto; min-width: 140px; }

/*==================================================
    Minimal Contact Form
==================================================*/
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: right;
    padding: 10px 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13.5px;
    color: var(--text);
    font-weight: bold;
}

.required-star {
    color: #c53030;
    margin-right: 3px;
    font-size: 16px;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(55, 170, 156, 0.15);
    background: var(--white);
}

.minimal-form textarea {
    resize: vertical; 
    min-height: 100px;
}

.minimal-form button {
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
}
/*==================================================
    حالت غیرفعال برای دکمه‌ها (Disabled State)
==================================================*/
.disabled-link {
    opacity: 0.4 !important;
    pointer-events: none !important; /* جلوگیری از کلیک */
    cursor: not-allowed !important;
    background-color: var(--border) !important;
    color: var(--text) !important;
    border: none !important;
    box-shadow: none !important;
}

/*==================================================
    Alert Actions (Two Columns on Desktop)
==================================================*/
.alert-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .alert-actions {
        flex-direction: row;
    }
    .alert-actions .btn {
        flex: 1;
    }
}