/* file: wp-content/plugins/archived_issues/css/archived-issues.css */
.issue_row {
    display: block;
}
.issue_row .col-1 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 8.333333333% - 10px );
}

.issue_row .col-2 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 16.666666666% - 10px );
}

.issue_row .col-3 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 25% - 10px );
}

.issue_row .col-4 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 33.333333333% - 10px );
}

.issue_row .col-5 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 41.666666666% - 10px );
}

.issue_row .col-6 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 50% - 10px );
}

.issue_row .col-7 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 58.333333333% - 10px );
}

.issue_row .col-8 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 66.666666666% - 10px );
}

.issue_row .col-9 {
    margin: 0;
    float: right;
    width: calc( 75% - 10px );
    padding: 5px;
}

.issue_row .col-10 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 83.333333333% - 10px );
}

.issue_row .col-11 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 91.666666666% - 10px );
}

.issue_row .col-12 {
    margin: 0;
    float: right;
    padding: 5px;
    width: calc( 100% - 10px );
}

.issue_row {
    display: block;
    width: 100%;
    min-width: 100%;
}
.issue_row .cloud-download {
    position: relative;
    top: 5px;
    margin-bottom: 0 !important;
}
.issue_row::after {
    display: block;
    width: 100%;
    height: 3px;
    content: "";
    overflow: auto;
}

.last_issue {
    margin-inline-start: 15px;
    margin-inline-end: 15px;
    margin-bottom: 15px;
}

.last_issue .cover-image-container {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    height: 250px;
    overflow: hidden;
}
.last_issue img.cover-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0 !important;
}

.bg-red {
    background-color: #fd332f;
    color: #fff;
    font-size: 12pt;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: auto;
    margin-top: 0px;
    font-weight: bold;
}

.bg-red a {
    color: white;
    text-decoration: none;
}

.a-calendar-container {
    display: flex;
    flex-direction: row-reverse;
}

.a-calendar {
    flex: 1;
    margin-left: 15px;
}

.a-calendar span {
    text-align: center;
}

.a-calendar span::after {
    content: "لتغيير الشهر و السنة اضغط على اسم الشهر";
    color: darkgray;
    display: block;
    font-size: 13pt;
}
.a-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    color:#000;
}
.a-calendar-nav a {
    color: #000;
    font-size: 18pt;
    text-decoration: none;
}
.a-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.a-calendar-table th,
.a-calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.a-calendar-table th {
    background-color: #f2f2f2;
}

.a-calendar-day {
    display: block;
    text-decoration: none;
    color: inherit;
}

#a-issue-details {
    text-align: center;
    /* margin-top: 6rem; */
    margin-left: 1rem;
}

#a-issue-details img {
    /* margin-bottom: 10px; */
    position: relative;
    top:25px;
}

#a-issue-info {
    background-color: red;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: -8px;
}

#a-issue-date {
    margin-right: 10px;
}

#a-issue-no {
    font-size: 11pt;
    font-weight: bold;
    position: relative;
    top: 7px;
}


/* sm size */
.display-sm {
    width: 300px;
    max-width: 300px !important;
    height: 183px;
    max-height: 183px;
    display: block;
    background-image: url("../images/img-sm.jpg");
}
.display-sm .a_date {
    position: relative;
    width: 78px;
    text-align: center;
    font-size: 13px;
    top: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

.display-sm .a_days {
    /* border: 1px solid #000; */
    position: relative;
    top: 77px;
    text-align: center;
    font-size: 20px;
    left: 10px;
    color: #fd332f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    text-shadow: 0 1px black;
}

/* md size  */
.display-md {
    width: 500px;
    max-width: 500px !important;
    height: 305px;
    max-height: 305px;
    display: block;
    background-image: url("../images/img-md.jpg");
}
.display-md .a_date {
    position: relative;
    width: 128px;
    /* border: 1px solid #000; */
    text-align: center;
    font-size: 19px;
    top: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.display-md .a_days {
    /* border: 1px solid #000; */
    position: relative;
    top: 138px;
    text-align: center;
    font-size: 30px;
    left: 30px;
    color: #fd332f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    text-shadow: 0 1px black;
}


/* lg size */

.display-lg {
    width: 985px;
    max-width: 985px !important;
    height: 600px;
    max-height: 600px;
    display: block;
    background-image: url("../images/img-lg.jpg");
}
.display-lg .a_date {
    position: relative;
    width: 250px;
    /* border: 1px solid #000; */
    text-align: center;
    font-size: 30px;
    top: 35px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.display-lg .a_days {
    /* border: 1px solid #000; */
    position: relative;
    top: 290px;
    text-align: center;
    font-size: 50px;
    left: 30px;
    color: #fd332f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    text-shadow: 0 1px black;
}

.display_of_martyrs {
    background-image: url(../images/bg2.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1.71;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FD312F;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3.2rem;
    font-weight: bold;
    text-shadow: 1px 1px black;
    width: 100%;
    min-width: 100%;
}


.a-calendar-months {
    width: fit-content;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    flex-direction: row-reverse;
    
}
.a-calendar-months input {
    border: 1px solid #fd332f;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    width: 160px;
    text-align: center;
    font-size: 14pt;
    height: 40px;
    flex: 1;
}

.a-calendar-months button {
    border: 1px solid hsl(1, 98%, 59%);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    text-align: center;
    font-size: 14pt;
    height: 40px;
    width: fit-content;
}

.a-calendar-months::after {
    display: block;
    width: 100%;
    height: 3px;
    content: "";
    overflow: auto;
} 


#a-issue-info #a-issue-date {
    line-height: 46px;
    font-size: 12pt;
    font-weight: bold;
}

#a-issue-info #a-download-link {
    line-height: 46px;
}

/** @media small screen under 400px */
@media screen and (max-width: 767px) {
    .a-calendar-container {
        flex-direction: column !important;
    }
    .display-lg, .display-md {
        display: none;
    }
    .issue_row .col-6 , .issue_row .col-3{
        width: calc( 100% - 10px );
    }
    .a-calendar-table th, .a-calendar-table td {
        padding: 3px;
        font-size: 13px;
    }

    .display_of_martyrs  {
        font-size: 2rem;
    }
}
/** @media meduim screens */
@media screen and (min-width: 768px) {
    .display-lg,.display-sm {
        display: none;
    }

    /* .issue_row .col-6 , .issue_row .col-3{
        width: calc( 100% - 10px );
    } */
}
/** @media large screens */
@media screen and (min-width: 769px) {
    .display-sm, .display-md {
        display: none;
    }
    .display-lg {
        display: block;
    }

    /* .issue_row .col-6, .issue_row .col-3 {
        width: calc( 100% - 10px );
    } */
}

/* ==========================================================================
   نظام العرض العصري لأرشيف الأعداد (Modern Archive System)
   ========================================================================== */

.ai-modern-archive {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    margin: 25px auto 45px;
    max-width: 1200px;
    margin: 20px 0 45px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.ai-modern-archive *,
.ai-modern-archive *::before,
.ai-modern-archive *::after {
    box-sizing: border-box;
}

.ai-years-section,
.ai-months-section,
.ai-year-months-wrapper,
.ai-months-list,
.ai-month-accordion-item,
.ai-navigation-bar,
.ai-month-content,
.ai-years-grid,
.ai-issues-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* الترويسة الرئيسية */
.ai-section-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 20px 10px;
}

.ai-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-title-icon {
    font-size: 1.8rem;
}

.ai-sub-title {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
}

/* شبكة السنوات */
.ai-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.ai-year-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-year-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ai-primary, #c01b22), #ef4444);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-year-card:hover {
    transform: translateY(-6px);
    border-color: var(--ai-primary, #c01b22);
    box-shadow: 0 14px 28px -6px rgba(192, 27, 34, 0.15), 0 6px 12px -2px rgba(0, 0, 0, 0.05);
}

.ai-year-card:hover::before {
    opacity: 1;
}

.ai-year-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.ai-year-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ai-year-meta {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 18px;
}

.ai-year-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ai-primary, #c01b22);
    transition: gap 0.2s ease, color 0.2s ease;
}

.ai-year-card:hover .ai-year-action-btn {
    gap: 12px;
}

.ai-arrow-icon {
    transition: transform 0.2s ease;
}

.ai-year-card:hover .ai-arrow-icon {
    transform: translateX(-3px);
}

/* شريط التنقل والرجوع */
.ai-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 22px;
    border-radius: 14px;
    margin-bottom: 28px;
}

.ai-back-to-years-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-back-to-years-btn:hover {
    background: var(--ai-primary, #c01b22);
    border-color: var(--ai-primary, #c01b22);
    color: #ffffff;
}

.ai-current-year-badge {
    font-size: 1.15rem;
    color: #334155;
}

.ai-current-year-badge strong {
    color: var(--ai-primary, #c01b22);
    font-size: 1.3rem;
}

/* قائمة الأشهر (الأكورديون) */
.ai-months-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-month-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-month-accordion-item.ai-item-open {
    border-color: var(--ai-primary, #c01b22);
    box-shadow: 0 8px 24px -4px rgba(192, 27, 34, 0.08);
}

.ai-month-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.ai-month-header:hover {
    background-color: #fff5f5;
}

.ai-month-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-month-icon {
    font-size: 1.25rem;
}

.ai-month-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.ai-month-count {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

.ai-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ai-primary, #c01b22);
    font-size: 0.95rem;
    font-weight: 700;
}

.ai-chevron-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-month-accordion-item.ai-item-open .ai-chevron-icon {
    transform: rotate(180deg);
}

/* محتوى الشهر والأعداد */
.ai-month-content {
    border-top: 1px solid #f1f5f9;
    padding: 26px 24px 30px;
    background: #fafafa;
}

/* مؤشر التحميل Spinner */
.ai-issues-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 10px;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
}

.ai-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--ai-primary, #c01b22);
    border-radius: 50%;
    animation: ai-spin 0.75s linear infinite;
}

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

/* شبكة الأعداد */
.ai-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}

/* كارت العدد الفردي */
.ai-issue-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ai-issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

/* صورة الغلاف */
.ai-card-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ai-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-issue-card:hover .ai-card-cover {
    transform: scale(1.05);
}

.ai-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-issue-card:hover .ai-cover-overlay {
    opacity: 1;
}

.ai-overlay-btn {
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ai-cover-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.ai-fallback-icon {
    font-size: 2.2rem;
}

.ai-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* معلومات العدد وأزرار التحميل */
.ai-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    flex-grow: 1;
    background: #ffffff;
}

.ai-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

.ai-card-date svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.ai-card-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ai-primary, #c01b22);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 4px rgba(192, 27, 34, 0.2);
}

.ai-card-download-btn:hover {
    background: #99141a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(192, 27, 34, 0.3);
}

.ai-card-download-btn svg {
    flex-shrink: 0;
}

/* رسائل التنبيه الفارغة */
.ai-empty-notice {
    text-align: center;
    padding: 30px 15px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}

/* استجابة الشاشات الصغيرة (Responsive Design) */
@media screen and (max-width: 768px) {
    .ai-main-title {
        font-size: 1.6rem;
    }

    .ai-years-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .ai-year-card {
        padding: 20px 15px;
    }

    .ai-year-number {
        font-size: 2rem;
    }

    .ai-month-header {
        padding: 15px 16px;
    }

    .ai-month-name {
        font-size: 1.05rem;
    }

    .ai-month-content {
        padding: 18px 14px 22px;
    }

    .ai-issues-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .ai-card-body {
        padding: 12px;
    }

    .ai-card-download-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .ai-navigation-bar {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }

    .ai-back-to-years-btn {
        justify-content: center;
    }

    .ai-issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


