/* ==========================================================================
   JCDR-HS Custom Stylesheet (styleSheet.css)
   --------------------------------------------------------------------------
   - Migrated from https://so18.tci-thaijo.org/public/journals/20/styleSheet.css
   - Edit, customize, and test all website styles here locally
   - Once finalized, copy and paste this entire file into:
     Settings > Website > Appearance > Journal stylesheet on ThaiJO OJS Admin
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL & NAVIGATION STYLES
   ========================================================================== */
#navigationPrimary {
    font-weight: bold !important;
}

.pkp_navigation_primary_row {
    padding-left: 1rem !important;
}

.pkp_site_nav_menu {
    border-radius: 10px !important;
}

.pkp_navigation_user li {
    background-color: #4D0067 !important;
    border-radius: 10px !important;
}

li .profile a {
    color: #FFFFFF !important;
}

/* ==========================================================================
   HEADER LOGO (Centered Layout)
   ========================================================================== */
.pkp_site_name_wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    position: relative !important;
    padding: 15px 0 70px 0 !important;
}

.pkp_structure_head {
    padding-bottom: 1% !important;
}

.pkp_site_name {
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
    display: block !important;
}

.pkp_site_name .is_img {
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.pkp_site_name .is_img img {
    scale: 175%;
    border-radius: 25px !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
    cursor: pointer !important;
}

/* Header Logo Hover & Focus Effect (Movement & Scale) */
.pkp_site_name .is_img:hover img,
.pkp_site_name .is_img:focus img,
.pkp_site_name .is_img img:hover {
    transform: translateY(-6px) scale(1.05) !important;
    box-shadow: 0 12px 25px rgba(77, 0, 103, 0.25) !important;
}

/* Header Logo Active Effect */
.pkp_site_name .is_img:active img {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 15px rgba(77, 0, 103, 0.2) !important;
}


/* ==========================================================================
   2. TYPOGRAPHY & COMPONENTS
   ========================================================================== */
.head_menu,
.editorialteam_header {
    color: #4D0067 !important;
    font-style: italic !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    animation: fadein 1s ease-in-out;
}

/* Announcement Images */
.page_announcements ul li article div p img {
    border-radius: 16px !important;
    width: 45% !important;
    height: 45% !important;
}

/* Make a Submission Button */
a.block_make_submission_link {
    width: 100% !important;
    margin: auto !important;
    text-align: center !important;
}

.block_make_submission_link {
    color: #4D0067 !important;
    position: relative !important;
    font-size: 0 !important;
}

.block_make_submission_link:before {
    content: "Make a Submission";
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 16px;
    animation: blinker 1s linear infinite !important;
    color: #4D0067 !important;
}

/* Custom Block Layout */
.custom_block {
    text-align: center !important;
    border-radius: 25px !important;
    border: 2px solid #4D0067 !important;
    padding: 10px !important;
    animation: fadeRight 1.5s ease-out forwards;
}


/* ==========================================================================
   3. ANIMATIONS
   ========================================================================== */
.fade-left,
.fade-right {
    opacity: 0;
    position: relative;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.fade-left {
    animation-name: fadeLeft;
}

.fade-right {
    animation-name: fadeRight;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==========================================================================
   4. HOME PAGE LAYOUT
   ========================================================================== */
.page_index_journal {
    display: flex;
    flex-direction: column;
}

.page_index_journal::after {
    width: 100% !important;
    height: auto !important;
}

.page_index_journal .homepage_about {
    display: none !important;
}

.homepage_about h2 {
    font-size: 0 !important;
}

.homepage_about h2:before {
    content: "ABOUT THE JOURNAL";
    color: #4D0067 !important;
    font-style: italic !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    font-size: clamp(20px, 2.5vw, 80px) !important;
}

.additional_content::before {
    content: url('data:image/svg+xml; charset=utf8,%0A%3Csvg%20width%3D%22650%22%20height%3D%22auto%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3CforeignObject%20width%3D%22100%25%22%20height%3D%22100%25%22%20x%3D%220%22%20y%3D%220%22%3E%0A%20%20%20%20%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22color%3A%20%234D0067%20!important%3B%22%3E%0A%20%20%20%20%20%20%0A%3Cp%3E%0A%3Ch2%20align%3D%22left%22%3E%3Ci%3E%3Cu%3EJournal%20of%20Community%20Development%20Research%3C%2Fu%3E%3C%2Fi%3E%3C%2Fh2%3E%0A%3Ch2%20align%3D%22left%22%3E%3Ci%3E%3Cu%3E(Humanities%20and%20Social%20Sciences)%20(JCDR-HS)%3C%2Fu%3E%3C%2Fi%3E%3C%2Fh2%3E%0A%3C%2Fp%3E%0A%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2FforeignObject%3E%0A%3C%2Fsvg%3E%0A') !important;
}

.homepage_about {
    order: -2;
}

.additional_content {
    order: -1;
}

.current_issue {
    order: 0;
}


/* ==========================================================================
   5. ARCHIVES PAGE (NEW CUSTOM DESIGN)
   ========================================================================== */

/* Main Page Heading */
h1.page_title {
    color: #4D0067 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #4D0067;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.page_issue_archive .page.page_issue_archive {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

.page_issue_archive .issues_archive {
    margin-left: -1rem !important;
    margin-right: 0.1rem !important;
    border-top: 1px solid #ddd
}

.page_issue_archive .issues_archive>li {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Breadcrumbs Navigation */
.cmp_breadcrumbs ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.cmp_breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.cmp_breadcrumbs a:hover {
    color: #4D0067;
    text-decoration: underline;
}

.cmp_breadcrumbs .current {
    color: #4D0067;
    font-weight: bold;
}

/* Issue Archive Grid Card Layout */
.page_issue_archive .issues_archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
    /* margin-top: 20px; */
}

/* Issue Card Styling */
.page_issue_archive .obj_issue_summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card Hover Effect */
.page_issue_archive .obj_issue_summary:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -5px rgba(77, 0, 103, 0.15);
    border-color: #4D0067;
}

/* Cover Image Frame & Sizing */
.page_issue_archive .obj_issue_summary .cover {
    display: block;
    margin-bottom: 16px;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 0rem !important;
}

.page_issue_archive .obj_issue_summary .cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Issue Title (Month - Year) */
.page_issue_archive .obj_issue_summary h2 {
    font-size: 1.1rem !important;
    margin: 10px 0 6px 0 !important;
    font-weight: bold !important;
}

.page_issue_archive .obj_issue_summary h2 a.title {
    color: #4D0067 !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
}

.page_issue_archive .obj_issue_summary h2 a.title:hover {
    text-decoration: underline !important;
}

/* Vol. No. Series Text */
.page_issue_archive .obj_issue_summary .series {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 500;
}

/* Link to Former Website */
.page_issue_archive .issues_archive li:last-child {
    grid-column: 1 / -1;
    /* Span across full grid width */
    margin-top: 15px;
}

.page_issue_archive .issues_archive li:last-child .obj_issue_summary {
    border: 2px dashed #4D0067 !important;
    background-color: #FAF5FF;
    /* Light purple accent background */
    padding: 22px;
}

.page_issue_archive .issues_archive li:last-child a[title="archive"] {
    color: #4D0067 !important;
    font-weight: bold !important;
    font-size: 1.1rem;
    text-decoration: none !important;
}

.page_issue_archive .issues_archive li:last-child a[title="archive"]:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   MAIN NAVIGATION BAR (#navigationPrimary)
   ========================================================================== */

/* Main Navigation List (Flexbox Layout) */
#navigationPrimary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* gap: 5px !important; Space between menu items */
}

/* Main Navigation Items */
#navigationPrimary>li {
    text-align: center !important;
    position: relative !important;
    /* Required for dropdown positioning */
}

#navigationPrimary>li>a {
    display: block !important;
    color: #afafaf !important;
    /* Default link text color */
    /* padding: 10px 16px !important; */
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    transition: all 0.25s ease-in-out !important;
}

/* Main Navigation Hover & Focus */
#navigationPrimary>li:hover>a,
#navigationPrimary>li>a:focus {
    color: #4D0067 !important;
    /* Active purple color */
    background-color: #FAF5FF !important;
    /* Subtle purple background */
}


/* ==========================================================================
   DROPDOWN MENU STYLES (Submenus like About)
   ========================================================================== */

/* Dropdown Container */
#navigationPrimary .dropdown-menu {
    display: none;
    /* Hidden by default */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 220px !important;
    /* Minimum width of dropdown */
    padding: 8px 0 !important;
    /* margin: 4px 0 0 0 !important; */
    list-style: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    /* Rounded corners */
    box-shadow: 0 10px 25px -5px rgba(77, 0, 103, 0.15) !important;
    /* Soft purple shadow */
    animation: dropdownFadeIn 0.2s ease-out !important;
}

/* Display Dropdown on Hover */
#navigationPrimary li:hover .dropdown-menu {
    display: block !important;
}

/* Dropdown Menu Links */
#navigationPrimary .dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    clear: both !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #4A5568 !important;
    text-decoration: none !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
}

/* Dropdown Link Hover */
#navigationPrimary .dropdown-menu li a:hover {
    color: #ffffff !important;
    /* White text */
    background-color: #4D0067 !important;
    /* Primary purple background */
}


/* ==========================================================================
   ANIMATION FOR DROPDOWN
   ========================================================================== */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SEARCH ICON
   ========================================================================== */

/* Primary Navigation Container */
.pkp_navigation_primary_row {
    position: relative !important;
}

/* Search Box Container (Right Aligned) */
.pkp_navigation_search_wrapper {
    position: absolute !important;
    right: 1rem !important;
    /* Margin from right edge */
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Vertically centered */
    z-index: 999 !important;
}

/* Styled Search Button (Pill Design) */
a.pkp_search.pkp_search_desktop {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    /* Space between icon and Search text */
    color: #ffffff !important;
    /* White text */
    background-color: #4D0067 !important;
    /* Primary purple background */
    padding: 8px 16px !important;
    border-radius: 20px !important;
    /* Pill / capsule shape */
    font-weight: bold !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(77, 0, 103, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

/* Search Button Hover Effect */
a.pkp_search.pkp_search_desktop:hover {
    background-color: #310042 !important;
    /* Darker purple on hover */
    box-shadow: 0 4px 10px rgba(77, 0, 103, 0.3) !important;
    transform: scale(1.03) !important;
    /* Subtle zoom on hover */
}

/* Search Icon Sizing */
a.pkp_search.pkp_search_desktop .fa-search {
    font-size: 13px !important;
}