/* =========================================
   JTCT COMPLETE VISUAL IDENTITY CSS
   Colors: Midnight Green (#0B4550), Lemon Lime (#E6FF2A), Taupe Grey (#898A8E)
   Fonts: Montserrat (EN) & Cairo (AR)
   ========================================= */

/* --- 1. FONTS & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Montserrat:wght@400;700;900&display=swap');

body, p, span, div, li, input, textarea {
    font-family: 'Montserrat', 'Cairo', sans-serif !important;
}

/* New Soft Canvas Background */
body, .pkp_structure_page {
    background-color: #F4F7F8 !important; 
}

/* Add this to Section 1 (FONTS & TYPOGRAPHY) right under your body font rule */
h1, h2, h3, h4, h5, h6, .pkp_site_name {
    font-family: 'Montserrat', 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    color: #0B4550 !important;
}

/* --- 2. HEADER & LOGO AREA --- */
.pkp_structure_head {
    background-color: #0B4550 !important;
    border-bottom: 4px solid #E6FF2A !important;
}

.is_img img {
    max-height: 100px !important;
    width: auto !important;
}

/* --- 3. GENERAL LINKS --- */
a {
    color: #0B4550 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #898A8E !important;
    text-decoration: underline !important;
    text-decoration-color: #E6FF2A !important;
}

/* --- 4. BUTTONS --- */
.cmp_button, .pkp_button, button, input[type="submit"] {
    background-color: #0B4550 !important; 
    color: #FFFFFF !important;
    border: 2px solid #0B4550 !important;
    border-radius: 0px !important;
    padding: 10px 24px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.cmp_button:hover, .pkp_button:hover, button:hover, input[type="submit"]:hover {
    background-color: #E6FF2A !important; 
    color: #000000 !important;
    border-color: #E6FF2A !important;
}

/* --- 5. MENU & DROPDOWN OVERRIDES --- */
/* Forces the main navigation bar background to Midnight Green */
.pkp_navigation_primary_wrapper, 
.pkp_navigation_primary_row,
.pkp_structure_head nav {
    background-color: #0B4550 !important;
}

.pkp_structure_head .pkp_navigation_primary > li > a,
.pkp_structure_head .pkp_navigation_user > li > a {
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important; /* Smooth color transition */
}

/* Top-level links turn Lemon Lime on hover */
.pkp_structure_head .pkp_navigation_primary > li > a:hover,
.pkp_structure_head .pkp_navigation_user > li > a:hover {
    color: #E6FF2A !important;
    background-color: transparent !important;
}

.pkp_navigation_primary ul, 
.pkp_navigation_user ul,
.pkp_structure_head nav ul li ul {
    background-color: #0B4550 !important;
    border-top: 3px solid #E6FF2A !important;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5) !important;
}

.pkp_navigation_primary ul li a, 
.pkp_navigation_user ul li a,
.pkp_structure_head nav ul li ul li a {
    color: #FFFFFF !important;
    background-color: transparent !important; 
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 400 !important;
}

.pkp_navigation_primary ul li a:hover, 
.pkp_navigation_user ul li a:hover,
.pkp_structure_head nav ul li ul li a:hover {
    background-color: #E6FF2A !important;
    color: #0B4550 !important;
    font-weight: 700 !important;
}

/* --- 6. ACTIVE MENU ITEM FIX --- */
/* Removes solid background block, changes text to lime, adds underline indicator */
.pkp_structure_head .pkp_navigation_primary > li[aria-current="page"] > a,
.pkp_structure_head .pkp_navigation_primary > li.current > a,
.pkp_structure_head .pkp_navigation_primary > li.active > a,
.pkp_structure_head .pkp_navigation_user > li[aria-current="page"] > a,
.pkp_structure_head .pkp_navigation_user > li.current > a {
    background-color: transparent !important; 
    color: #E6FF2A !important;                
    font-weight: 900 !important;
    border-bottom: 3px solid #E6FF2A !important; 
}

/* --- 7. FOOTER REDESIGN --- */
.pkp_structure_footer_wrapper {
    background-color: #0B4550 !important; 
    border-top: 4px solid #E6FF2A !important;
    width: 100% !important;
    margin: 0 !important;
}

.pkp_structure_footer {
    max-width: 1200px !important; /* Keeps your text aligned with the rest of the site */
    margin: 0 auto !important; /* Centers the content */
    padding: 40px 20px !important; 
    background-color: transparent !important; 
    color: #FFFFFF !important;
}

.pkp_structure_footer p, 
.pkp_structure_footer span, 
.pkp_structure_footer div {
    color: #FFFFFF !important; 
    font-family: 'Montserrat', 'Cairo', sans-serif !important;
}

.pkp_structure_footer a {
    color: #E6FF2A !important; 
    text-decoration: none !important;
    font-weight: 700 !important;
}

.pkp_structure_footer a:hover {
    color: #FFFFFF !important; 
    text-decoration: underline !important;
}

.pkp_brand_footer {
    display: none !important; /* Hides the OJS Logo */
}

/* Footer Grid Layout Styling */
.jtct-footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    text-align: left; 
    width: 100%;
}

.jtct-footer-col {
    flex: 1;
    min-width: 250px; 
}

.jtct-footer-col h4 {
    color: #E6FF2A !important; 
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* --- 8. SIDEBAR & MAIN BODY ENHANCEMENTS --- */

/* 1. Fix the "Make a Submission" Sidebar Button */
.block_make_submission .block_make_submission_link,
a.block_make_submission_link {
    background-color: #0B4550 !important; 
    color: #FFFFFF !important;
    border: 2px solid #0B4550 !important;
    padding: 12px 20px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    display: block !important; /* Forces it to look like a button, not text */
    text-align: center;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    margin-top: 10px;
}

.block_make_submission .block_make_submission_link:hover,
a.block_make_submission_link:hover {
    background-color: #E6FF2A !important; 
    color: #000000 !important; /* Dark text for contrast on lime */
    border-color: #E6FF2A !important;
}

/* 2. Sidebar Block Titles (Browse, Information, etc.) */
.pkp_block .title {
    color: #0B4550 !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #E6FF2A !important; /* Brand line under titles */
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* 3. Journal Cover Image Enhancement */
/* Adds a subtle shadow so it lifts off the white page */
.obj_issue_toc .cover img,
.issue_cover img,
.homepage_image img {
    border: 1px solid #e0e0e0;
    box-shadow: 0px 6px 12px rgba(11, 69, 80, 0.15); /* Soft Midnight Green shadow */
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom effect when a user hovers over the cover */
.obj_issue_toc .cover img:hover,
.issue_cover img:hover,
.homepage_image img:hover {
    transform: translateY(-5px); 
    box-shadow: 0px 10px 20px rgba(11, 69, 80, 0.25);
}

/* 4. Sidebar List Links (Categories, For Readers, etc.) */
.pkp_block ul li {
    list-style-type: none !important; /* Ensures no default bullet points clash with your clean look */
    margin-bottom: 10px;
}

.pkp_block ul li a {
    color: #0B4550 !important; /* Your Midnight Green */
    transition: transform 0.3s ease, color 0.3s ease !important;
    display: inline-block; /* Necessary for the slide effect to work */
}

.pkp_block ul li a:hover {
    color: #898A8E !important; /* Turns your Taupe Grey */
    transform: translateX(6px); /* Gently slides to the right to show it's clickable */
    text-decoration: none !important; /* Keeps the sidebar looking uncluttered */
}