/* =========================================
   About Us Page Styles
   Prefix: abt-
   ========================================= */

/* -----------------------------------------
   Variables
   ----------------------------------------- */

:root {
    --abt-primary: #007791;
    --abt-primary-hover: #005669;
    --abt-secondary: #00a8cc;
    --abt-dark: #2b2d42;
    --abt-light: #f8f9fa;
    --abt-gray: #6c757d;
    --abt-border: #e9ecef;
    --abt-radius: 12px;
    --abt-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --abt-transition: all 0.3s ease;
}

/* -----------------------------------------
   Base Container
   ----------------------------------------- */

.abt-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */

.abt-hero {
    background: linear-gradient(135deg, var(--abt-primary) 0%, #0a4f60 100%);
    color: #ffffff;
    padding: 50px 0;
    text-align: right;
    border-bottom: 4px solid var(--abt-secondary);
}

.abt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.abt-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--abt-transition);
}

.abt-breadcrumb a:hover {
    color: var(--abt-secondary);
}

.abt-breadcrumb .abt-divider {
    color: rgba(255, 255, 255, 0.5);
}

.abt-breadcrumb .abt-current {
    color: #e9ecef;
}

.abt-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.abt-hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin: 0 0 25px;
}

/* -----------------------------------------
   Quick Links
   ----------------------------------------- */

.abt-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.abt-qlink-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;

    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;

    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--abt-transition);
}

.abt-qlink-btn:hover {
    background: #ffffff;
    color: var(--abt-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* -----------------------------------------
   Main Content
   ----------------------------------------- */

.abt-body-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.abt-scroll-section {
    scroll-margin-top: 100px;
}

/* -----------------------------------------
   Cards
   ----------------------------------------- */

.abt-card {
    background: #ffffff;
    border: 1px solid var(--abt-border);
    border-radius: var(--abt-radius);
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--abt-shadow);
    transition: var(--abt-transition);
}

.abt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.abt-card-header {
    display: flex;
    align-items: center;
    gap: 15px;

    border-bottom: 2px solid var(--abt-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.abt-header-icon {
    color: var(--abt-primary);
    font-size: 1.8rem;
}

.abt-card-header h2 {
    margin: 0;
    color: var(--abt-dark);
    font-size: 1.45rem;
    font-weight: 700;
}

/* -----------------------------------------
   History
   ----------------------------------------- */

.abt-history-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .abt-history-wrapper {
        grid-template-columns: 7fr 5fr;
    }
}

.abt-history-text p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: justify;
}

.abt-lead-text {
    color: var(--abt-dark) !important;
    font-size: 1.15rem !important;
    font-weight: 600;
    line-height: 1.9 !important;
}

.abt-history-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--abt-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.abt-history-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--abt-transition);
}

.abt-history-image:hover img {
    transform: scale(1.03);
}

.abt-image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 10px 15px;
    background: rgba(0, 119, 145, 0.9);
    color: #ffffff;

    font-size: 0.85rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* -----------------------------------------
   Milestones
   ----------------------------------------- */

.abt-milestones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px dashed var(--abt-border);
}

@media (min-width: 768px) {
    .abt-milestones-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.abt-milestone-item {
    display: flex;
    gap: 15px;

    padding: 20px;
    background: #fafbfc;
    border: 1px solid var(--abt-border);
    border-radius: 8px;
    transition: var(--abt-transition);
}

.abt-milestone-item:hover {
    background: #f0f9ff;
    border-color: var(--abt-secondary);
}

.abt-milestone-icon {
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--abt-primary);
    font-size: 1.8rem;
}

.abt-milestone-info h4 {
    margin-bottom: 8px;
    color: var(--abt-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.abt-milestone-info p {
    margin: 0;
    color: var(--abt-gray);
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: justify;
}

/* -----------------------------------------
   President Section
   ----------------------------------------- */

.abt-president-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .abt-president-flex {
        flex-direction: row;
        align-items: flex-start;
    }
}

.abt-president-photo-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
}

.abt-president-photo {
    width: 220px;
    height: 290px;
    margin: 0 auto 15px;

    overflow: hidden;
    background-color: #f1f5f9;
    border: 5px solid #ffffff;
    border-radius: var(--abt-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.abt-president-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abt-president-name {
    margin-bottom: 5px;
    color: var(--abt-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.abt-president-title {
    color: var(--abt-gray);
    font-size: 0.85rem;
}

/* -----------------------------------------
   President Message
   ----------------------------------------- */

.abt-president-msg {
    position: relative;
    flex-grow: 1;
    min-width: 0;

    /*
      برای اینکه علامت نقل‌قول در بالا-راست متن جا داشته باشد،
      از سمت راست فاصله ایجاد شده است.
    */
    padding: 20px 72px 0 0;
}

/*
  علامت نقل‌قول:
  - بدون z-index منفی
  - با رنگ قابل مشاهده
  - در بالای متن و سمت راست
*/
.abt-quote-mark {
    position: absolute;
    top: -12px;
    right: 4px;
    z-index: 1;

    display: block;
    width: 62px;
    height: 82px;

    color: rgba(0, 119, 145, 0.18);
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 6.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 0.8;

    pointer-events: none;
    user-select: none;
}

/*
  متن پیام از علامت نقل‌قول بالاتر است؛
  اما خود علامت همچنان در فضای خالی سمت راست دیده می‌شود.
*/
.abt-msg-salutation,
.abt-msg-intro,
.abt-msg-content,
.abt-msg-footer {
    position: relative;
    z-index: 2;
}

.abt-msg-salutation {
    margin: 0 0 10px;
    color: var(--abt-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.abt-msg-intro {
    margin-bottom: 15px;
    color: var(--abt-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.abt-msg-content p {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.02rem;
    line-height: 1.85;
    text-align: justify;
}

/* -----------------------------------------
   President Signature — Right Aligned
   ----------------------------------------- */

.abt-msg-footer {
    display: flex;
    flex-direction: column;

    /*
      این مورد برای والد flex ضروری است.
      بدون آن، محتوا ممکن است چپ باقی بماند.
    */
    align-items: flex-end;

    width: 100%;
    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px dashed var(--abt-border);
    direction: rtl;
    text-align: right;
    font-family: inherit;
    line-height: 1.8;
}

/*
  inline-block باعث می‌شود هر سطر فقط به اندازه محتوای خود باشد
  و align-items: flex-end آن را قطعاً به سمت راست ببرد.
*/
.abt-msg-footer p,
.abt-msg-footer strong,
.abt-msg-footer span {
    max-width: 100%;
    text-align: right;
    font-family: inherit;
}

.abt-msg-footer p {
    margin: 0 0 9px;
    color: var(--abt-gray);
    font-size: 0.98rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
}

.abt-msg-footer strong {
    margin: 0 0 4px;
    color: var(--abt-primary);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.75;
}

.abt-msg-footer span {
    color: var(--abt-dark);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.75;
}

/* -----------------------------------------
   Mission & Vision
   ----------------------------------------- */

.abt-mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .abt-mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.abt-mv-card {
    height: 100%;
    margin-bottom: 0;
}

.abt-mv-card .abt-header-icon {
    color: var(--abt-secondary);
}

.abt-mv-text {
    margin: 0;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: justify;
}

/* -----------------------------------------
   Policies
   ----------------------------------------- */

.abt-policies-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .abt-policies-list-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.abt-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px;
    background: #fafbfc;
    border: 1px solid var(--abt-border);
    border-radius: 8px;
    transition: var(--abt-transition);
}

.abt-policy-item:hover {
    background: #f0f9ff;
    border-color: var(--abt-primary);
    transform: translateX(-4px);
}

.abt-policy-item i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--abt-primary);
    font-size: 1.15rem;
}

.abt-policy-item span {
    color: var(--abt-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

/* -----------------------------------------
   Responsive Adjustments
   ----------------------------------------- */

@media (max-width: 767px) {
    .abt-hero {
        padding: 38px 0;
    }

    .abt-hero-content h1 {
        font-size: 1.65rem;
    }

    .abt-hero-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .abt-card {
        padding: 22px 18px;
    }

    .abt-card-header h2 {
        font-size: 1.2rem;
    }

    .abt-quick-links {
        gap: 8px;
    }

    .abt-qlink-btn {
        padding: 9px 13px;
        font-size: 0.83rem;
    }

    /*
      در موبایل، نقل‌قول بالای پیام قرار می‌گیرد تا با متن برخورد نکند.
    */
    .abt-president-msg {
        padding: 68px 0 0;
    }

    .abt-quote-mark {
        top: 0;
        right: 0;
        width: 55px;
        height: 65px;
        font-size: 5.8rem;
        color: rgba(0, 119, 145, 0.16);
    }

    .abt-msg-footer {
        margin-top: 25px;
    }
}

/* =========================================
   Final fix: President signature alignment
   ========================================= */

.abt-president-msg .abt-msg-footer {
    display: block !important;
    width: 100% !important;

    margin-top: 30px;
    padding-top: 18px;

    direction: rtl !important;
    text-align: right !important;
    border-top: 1px dashed var(--abt-border);
}

/* هر سه خط، تمام عرض پیام را داشته و از راست آغاز می‌شوند */
.abt-president-msg .abt-msg-footer p,
.abt-president-msg .abt-msg-footer strong,
.abt-president-msg .abt-msg-footer span {
    display: block !important;
    width: 100% !important;

    margin-right: 0 !important;
    margin-left: 0 !important;

    direction: rtl !important;
    text-align: right !important;
    font-family: inherit !important;
}

/* متن سپاس */
.abt-president-msg .abt-msg-footer p {
    margin-top: 0 !important;
    margin-bottom: 10px !important;

    color: var(--abt-gray);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.9;
}

/* نام رئیس */
.abt-president-msg .abt-msg-footer strong {
    margin-top: 0 !important;
    margin-bottom: 4px !important;

    color: var(--abt-primary);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.8;
}

/* عنوان ریاست */
.abt-president-msg .abt-msg-footer span {
    margin: 0 !important;

    color: var(--abt-dark);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.8;
}
