/* =========================================================
   AL-USLUB: Journal of Islamic and Arabic Studies
   Clean Homepage + OJS Custom Style
   Color scheme preserved: Emerald Green, Gold, Soft Green
   ========================================================= */

/* ===== GLOBAL ===== */
body {
    background: #f4faf8;
    color: #1f3d36;
    font-family: Georgia, Garamond, "Times New Roman", serif;
    line-height: 1.7;
}

a {
    color: #1f6f5f;
    text-decoration: none;
}

a:hover {
    color: #c8a96a;
    text-decoration: none;
}

/* ===== HEADER / NAVIGATION ===== */
.pkp_structure_head {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    border-bottom: 5px solid #c8a96a;
}

.pkp_site_name,
.pkp_site_name a,
.pkp_site_name_wrapper {
    color: #ffffff !important;
    font-family: Georgia, Garamond, "Times New Roman", serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.pkp_site_name .is_text {
    color: #ffffff !important;
    text-transform: uppercase;
}

.pkp_navigation_primary_row {
    background: #0f3d2e;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #c8a96a !important;
}

.pkp_navigation_primary ul {
    background: #ffffff;
    border: 1px solid #b7d4cc;
    box-shadow: 0 8px 22px rgba(0,77,64,0.18);
}

.pkp_navigation_primary ul a {
    color: #0f3d2e !important;
}

.pkp_navigation_primary ul a:hover {
    background: #eef7f5;
    color: #1f6f5f !important;
}

/* ===== MAIN LAYOUT ===== */
.pkp_structure_content {
    background: #f4faf8;
}

.pkp_structure_main {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,77,64,0.10);
    border: 1px solid #d7efe9;
}

.homepage_image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid #b7d4cc;
    box-shadow: 0 10px 28px rgba(0,77,64,0.13);
    margin-bottom: 24px;
}

/* ===== HOMEPAGE JOURNAL CARD ===== */
.aluslub-home {
    width: 100%;
    font-family: Georgia, Garamond, "Times New Roman", serif;
    color: #1f3d36;
}

.aluslub-card {
    background: linear-gradient(180deg, #f9fdfc, #eef7f5);
    border-radius: 22px;
    border: 1px solid #b7d4cc;
    box-shadow: 0 14px 38px rgba(0,77,64,0.15);
    overflow: hidden;
}

.aluslub-card-header {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    padding: 24px 22px;
    border-bottom: 5px solid #c8a96a;
    text-align: center;
}

.aluslub-card-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.aluslub-card-header p {
    margin: 8px 0 0;
    color: #d7efe9;
    font-size: 14px;
    letter-spacing: 0.4px;
}

.aluslub-card-body {
    padding: 22px;
}

.aluslub-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #cfe4df;
}

.aluslub-info-table td {
    padding: 12px;
    border-bottom: 1px solid #cfe4df;
}

.aluslub-info-table tr:nth-child(odd) {
    background: #ffffff;
}

.aluslub-info-table tr:nth-child(even) {
    background: #f2faf8;
}

.aluslub-info-table tr:last-child td {
    border-bottom: none;
}

.aluslub-info-table td:first-child {
    width: 32%;
}

.aluslub-info-table a {
    color: #1f6f5f;
    font-weight: bold;
    text-decoration: none;
}

.aluslub-buttons {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.aluslub-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #c8a96a, #1f6f5f);
    color: #ffffff !important;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(0,77,64,0.20);
}

.aluslub-button:hover {
    background: linear-gradient(135deg, #1f6f5f, #0f3d2e);
    color: #ffffff !important;
}

.aluslub-about {
    margin-top: 24px;
    background: linear-gradient(180deg, #ffffff, #eef7f5);
    border-radius: 22px;
    border: 1px solid #b7d4cc;
    box-shadow: 0 12px 32px rgba(0,77,64,0.13);
    padding: 24px;
}

.aluslub-about h3 {
    color: #0f3d2e;
    margin-top: 0;
    font-size: 22px;
    font-weight: 800;
    border-bottom: 3px solid #c8a96a;
    padding-bottom: 10px;
}

.aluslub-about p {
    text-align: justify;
    line-height: 1.9;
    color: #2b4a43;
    font-size: 15px;
    margin-bottom: 0;
}

/* ===== SIDEBAR BLOCKS ===== */
.pkp_structure_sidebar {
    background: transparent;
}

.pkp_block {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #b7d4cc;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0,77,64,0.10);
    margin-bottom: 20px;
}

.pkp_block .title {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    color: #ffffff;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-bottom: 4px solid #c8a96a;
}

.pkp_block .content {
    padding: 14px;
    color: #1f3d36;
}

.pkp_block a {
    color: #1f6f5f;
    font-weight: bold;
}

.pkp_block a:hover {
    color: #c8a96a;
}

/* ===== CUSTOM MENU BLOCK ===== */
.aluslub-menu {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #b7d4cc;
    box-shadow: 0 8px 22px rgba(0,77,64,0.14);
    font-family: Georgia, Garamond, "Times New Roman", serif;
}

.aluslub-menu-title {
    padding: 11px 8px;
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    text-align: center;
    border-bottom: 4px solid #c8a96a;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.aluslub-menu-item {
    padding: 8px;
    border-bottom: 1px solid #d7efe9;
}

.aluslub-menu-item:nth-child(odd) {
    background: #0f3d2e;
}

.aluslub-menu-item:nth-child(even) {
    background: #1f6f5f;
}

.aluslub-menu-item:last-child {
    border-bottom: none;
}

.aluslub-menu-item a {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
}

.aluslub-menu-item em {
    color: #c8a96a !important;
}

.aluslub-menu-item span {
    font-size: 14px;
    font-family: Georgia, Garamond, "Times New Roman", serif;
    color: #ffffff;
}

/* ===== EDITORIAL TEAM BLOCK ===== */
.aluslub-editorial {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #b7d4cc;
    background: #f9fdfc;
    box-shadow: 0 8px 22px rgba(0,77,64,0.15);
    font-family: Georgia, Garamond, "Times New Roman", serif;
}

.aluslub-editorial-title {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    padding: 12px 10px;
    text-align: center;
    border-bottom: 4px solid #c8a96a;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.8px;
    font-weight: bold;
}

.aluslub-editor {
    padding: 16px 12px;
    text-align: center;
}

.aluslub-editor + .aluslub-editor {
    border-top: 1px solid #d7efe9;
}

.aluslub-editor img {
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #c8a96a;
    box-shadow: 0 6px 16px rgba(0,77,64,0.25);
}

.aluslub-editor h4 {
    margin: 12px 0 4px;
    color: #0f3d2e;
    font-size: 15px;
    font-weight: bold;
}

.aluslub-editor p {
    margin: 0;
    color: #1f6f5f;
    font-size: 13px;
    font-weight: bold;
}

.aluslub-scholar-button {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 13px;
    background: linear-gradient(135deg, #c8a96a, #1f6f5f);
    color: #ffffff !important;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,77,64,0.2);
}

/* ===== PAGE TITLES ===== */
.page h1,
.page h2,
.page h3,
.obj_issue_toc .heading h2,
.obj_article_details .page_title {
    color: #0f3d2e;
    font-family: Georgia, Garamond, "Times New Roman", serif;
    font-weight: bold;
}

.page h1,
.obj_article_details .page_title {
    border-bottom: 3px solid #c8a96a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ===== ARTICLE LIST ===== */
.obj_article_summary {
    background: #ffffff;
    border: 1px solid #d7efe9;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,77,64,0.08);
}

.obj_article_summary:hover {
    border-color: #c8a96a;
    box-shadow: 0 10px 25px rgba(0,77,64,0.13);
}

.obj_article_summary .title a {
    color: #0f3d2e;
    font-weight: bold;
}

.obj_article_summary .title a:hover {
    color: #1f6f5f;
}

.obj_article_summary .authors {
    color: #3f5f57;
    font-style: italic;
}

/* ===== BUTTONS ===== */
.cmp_button,
.cmp_form .buttons button,
.page_search .submit button,
.block_make_submission a,
a.action,
button {
    background: linear-gradient(135deg, #c8a96a, #1f6f5f) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font-weight: bold !important;
    box-shadow: 0 6px 16px rgba(0,77,64,0.18);
    transition: all 0.25s ease;
}

.cmp_button:hover,
.cmp_form .buttons button:hover,
.page_search .submit button:hover,
.block_make_submission a:hover,
a.action:hover,
button:hover {
    background: linear-gradient(135deg, #1f6f5f, #0f3d2e) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ===== ISSUE / ARTICLE DETAIL ===== */
.obj_issue_toc {
    background: #ffffff;
    border: 1px solid #d7efe9;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,77,64,0.10);
}

.obj_issue_toc .heading {
    border-bottom: 3px solid #c8a96a;
    margin-bottom: 20px;
}

.obj_article_details .main_entry {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d7efe9;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,77,64,0.08);
}

.obj_article_details .abstract {
    background: #eef7f5;
    border-left: 5px solid #1f6f5f;
    padding: 16px;
    border-radius: 10px;
}

.obj_galley_link {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f) !important;
    color: #ffffff !important;
    border: 1px solid #c8a96a !important;
    border-radius: 999px !important;
    font-weight: bold;
}

.obj_galley_link:hover {
    background: linear-gradient(135deg, #c8a96a, #1f6f5f) !important;
    color: #ffffff !important;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid #b7d4cc !important;
    border-radius: 8px !important;
    padding: 9px !important;
    background: #ffffff !important;
    color: #1f3d36 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1f6f5f !important;
    box-shadow: 0 0 0 3px rgba(31,111,95,0.15) !important;
    outline: none !important;
}

/* ===== TABLES ===== */
table {
    border-collapse: collapse;
}

table th {
    background: #0f3d2e;
    color: #ffffff;
    padding: 10px;
}

table td {
    border: 1px solid #d7efe9;
    padding: 10px;
}

table tr:nth-child(even) {
    background: #f2faf8;
}

/* ===== FOOTER ===== */
.pkp_structure_footer_wrapper {
    background: linear-gradient(135deg, #0f3d2e, #1f6f5f);
    border-top: 5px solid #c8a96a;
    color: #ffffff;
}

.pkp_structure_footer,
.pkp_footer_content {
    color: #ffffff;
}

.pkp_structure_footer a {
    color: #d7efe9;
}

.pkp_structure_footer a:hover {
    color: #c8a96a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pkp_structure_main {
        padding: 16px;
        border-radius: 12px;
    }

    .pkp_site_name .is_text {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .pkp_navigation_primary > li > a {
        font-size: 12px;
    }

    .obj_article_summary {
        padding: 14px;
    }

    .aluslub-card-header h2 {
        font-size: 20px;
    }

    .aluslub-info-table td:first-child {
        width: 40%;
    }

    .aluslub-buttons {
        display: block;
    }

    .aluslub-button {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
}
