/**
 * JRTDD Custom Stylesheet (Journal for ReAttach Therapy and Developmental Diversities)
 * ISSN: 2589-7799
 * Based exactly on scholastic academic reference design
 */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* --- Reset & Global Baseline --- */
body, html {
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #334155;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Container Wrapper */
.jrtdd_container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hide default PKP header elements if rendered outside */
.pkp_site_nav_wrapper, 
.pkp_head_wrapper .pkp_navigation_user_wrapper {
  margin: 0;
}

/* ==========================================================================
   1. TOP AMBIENT USER / SEARCH BAR
   ========================================================================== */
.jrtdd_top_bar {
  background-color: #1e2227;
  color: #e2e8f0;
  font-size: 12.5px;
  border-bottom: 1px solid #111417;
  padding: 6px 0;
}
.jrtdd_top_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.jrtdd_top_left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.jrtdd_lang_select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2b3036;
  border: 1px solid #3f4750;
  padding: 3px 8px;
  border-radius: 3px;
  color: #cbd5e1;
  font-size: 11.5px;
  cursor: pointer;
  user-select: none;
}
.jrtdd_lang_select:hover {
  background: #373e46;
  color: #ffffff;
}
.jrtdd_top_right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.jrtdd_top_search_form {
  display: flex;
  align-items: center;
  margin: 0;
}
.jrtdd_top_search_input {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  font-size: 12px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  outline: none;
  width: 170px;
  height: 28px;
}
.jrtdd_top_search_input:focus {
  border-color: #0284c7;
}
.jrtdd_top_search_btn {
  background: #475569;
  color: #ffffff;
  border: 1px solid #475569;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  height: 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jrtdd_top_search_btn:hover {
  background: #0284c7;
  border-color: #0284c7;
}

/* User Account Links in Top Bar */
.jrtdd_top_user_links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jrtdd_top_user_links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}
.jrtdd_top_user_links li a:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. HEADER MASTHEAD
   ========================================================================== */
.jrtdd_masthead_wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}
.jrtdd_masthead_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.jrtdd_masthead_left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.jrtdd_logo_badge {
  max-width: 145px;
  height: auto;
  display: block;
}
.jrtdd_masthead_center {
  flex: 1 1 auto;
  text-align: center;
  padding: 0 10px;
}
.jrtdd_journal_title_link {
  text-decoration: none;
  display: inline-block;
}
.jrtdd_journal_title_serif {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  color: #1e2022;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.3px;
  text-transform: none;
}
.jrtdd_masthead_right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.jrtdd_oa_badge {
  max-width: 165px;
  height: auto;
  display: block;
}

/* Mobile Toggle Bar */
.jrtdd_mobile_toggle_btn {
  display: none;
  background: #1d2124;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin: 10px auto;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   3. MAIN NAVIGATION BAR
   ========================================================================== */
.jrtdd_nav_bar {
  background-color: #1d2124;
  border-bottom: 2px solid #0f1214;
  position: relative;
  z-index: 900;
}
.jrtdd_nav_menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.jrtdd_nav_item {
  position: relative;
  display: flex;
  align-items: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.jrtdd_nav_item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.jrtdd_nav_link {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.jrtdd_nav_link:hover,
.jrtdd_nav_item.active .jrtdd_nav_link {
  background-color: #2c3238;
  color: #ffffff;
}

/* Nav Dropdowns (if present) */
.jrtdd_nav_dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #1d2124;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 1000;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.jrtdd_nav_item:hover .jrtdd_nav_dropdown {
  display: block;
}
.jrtdd_nav_dropdown li a {
  display: block;
  padding: 9px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.jrtdd_nav_dropdown li a:hover {
  background-color: #0284c7;
  color: #ffffff;
  padding-left: 20px;
}

/* ==========================================================================
   4. THREE-COLUMN HOMEPAGE LAYOUT
   ========================================================================== */
.jrtdd_main_layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 0 40px 0;
}

/* --- Left Column (~250px) --- */
.jrtdd_col_left {
  flex: 0 0 250px;
  width: 250px;
}

/* --- Center Column (flex fill) --- */
.jrtdd_col_center {
  flex: 1 1 auto;
  min-width: 0;
}

/* --- Right Column (~260px) --- */
.jrtdd_col_right {
  flex: 0 0 260px;
  width: 260px;
}

/* ==========================================================================
   5. LEFT SIDEBAR: WIDGET CARDS
   ========================================================================== */
.jrtdd_sidebar_card {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  overflow: hidden;
}
.jrtdd_sidebar_card_title {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 14px;
  margin: 0;
  letter-spacing: -0.1px;
}
.jrtdd_sidebar_list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.jrtdd_sidebar_list li {
  margin: 0;
  padding: 0;
}
.jrtdd_sidebar_link {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #0284c7;
  text-decoration: none;
  transition: all 0.15s ease;
}
.jrtdd_sidebar_link .arrow {
  color: #0284c7;
  font-size: 8px;
  margin-top: 3px;
  flex-shrink: 0;
}
.jrtdd_sidebar_link:hover {
  color: #0369a1;
  background-color: #f8fafc;
  padding-left: 17px;
}
.jrtdd_sidebar_data_box {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
}
.jrtdd_sidebar_data_box p {
  margin: 0 0 6px 0;
}
.jrtdd_sidebar_data_box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   6. CENTER CONTENT: OVERVIEW BOX & CURRENT ISSUE
   ========================================================================== */
.jrtdd_overview_card {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
}
.jrtdd_meta_row {
  margin-bottom: 8px;
}
.jrtdd_meta_label {
  font-weight: 700;
  color: #0f172a;
}
.jrtdd_overview_card a {
  color: #0284c7;
  text-decoration: none;
}
.jrtdd_overview_card a:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* Current Issue Container */
.jrtdd_issue_section {
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.jrtdd_issue_main_title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 6px;
  display: inline-block;
}
.jrtdd_issue_vol {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}
.jrtdd_issue_pub_date {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px 0;
}
.jrtdd_articles_heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin: 20px 0 14px 0;
}
.jrtdd_article_card {
  padding: 14px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.jrtdd_article_card:last-child {
  border-bottom: none;
}
.jrtdd_article_title {
  font-size: 15px;
  font-weight: 600;
  color: #0284c7;
  line-height: 1.45;
  margin: 0 0 6px 0;
}
.jrtdd_article_title a {
  color: #0284c7;
  text-decoration: none;
}
.jrtdd_article_title a:hover {
  color: #0369a1;
  text-decoration: underline;
}
.jrtdd_article_authors {
  font-size: 13px;
  color: #475569;
  margin: 0 0 4px 0;
}
.jrtdd_article_pages {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 10px 0;
}
.jrtdd_btn_pdf {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.jrtdd_btn_pdf:hover {
  background-color: #0369a1;
}
.jrtdd_btn_view_all {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none !important;
  margin-top: 20px;
  transition: background-color 0.15s ease;
}
.jrtdd_btn_view_all:hover {
  background-color: #0369a1;
}

/* ==========================================================================
   7. RIGHT SIDEBAR
   ========================================================================== */
/* Announcements Widget */
.jrtdd_announcement_box {
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.jrtdd_announcement_header {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.jrtdd_announcement_body {
  background-color: #ffffff;
  padding: 14px;
}
.jrtdd_announcement_title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 6px 0;
}
.jrtdd_announcement_title a {
  color: #0284c7;
  text-decoration: none;
}
.jrtdd_announcement_title a:hover {
  color: #0369a1;
  text-decoration: underline;
}
.jrtdd_announcement_date {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Submissions Widget */
.jrtdd_submissions_box {
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.jrtdd_submissions_header {
  background-color: #2b3035;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  margin: 0;
}
.jrtdd_submissions_body {
  background-color: #ffffff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jrtdd_btn_submission_cta {
  display: block;
  background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 12px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(230, 57, 70, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jrtdd_btn_submission_cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230, 57, 70, 0.35);
  color: #ffffff !important;
}

/* Cover Image Card */
.jrtdd_cover_card {
  background-color: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.jrtdd_cover_img {
  width: 100%;
  max-width: 230px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Indexing Badges Stack */
.jrtdd_badge_card {
  background-color: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 4px;
  text-align: center;
  transition: all 0.18s ease;
}
.jrtdd_badge_card:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}
.jrtdd_badge_img {
  width: 100%;
  max-width: 230px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.jrtdd_footer_wrapper {
  background-color: #14213d;
  color: #cbd5e1;
  padding: 44px 0 20px 0;
  border-top: 3px solid #0284c7;
  font-size: 13px;
  line-height: 1.6;
}
.jrtdd_footer_grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 30px;
}
.jrtdd_footer_col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
  position: relative;
}
.jrtdd_footer_col p {
  margin: 0 0 10px 0;
  color: #94a3b8;
}
.jrtdd_footer_title_serif {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}
.jrtdd_footer_links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jrtdd_footer_links li {
  margin-bottom: 7px;
}
.jrtdd_footer_links li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}
.jrtdd_footer_links li a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

/* Social Icon (Instagram) */
.jrtdd_social_btn_instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff !important;
  font-size: 20px;
  text-decoration: none !important;
  margin-top: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.jrtdd_social_btn_instagram:hover {
  transform: scale(1.1);
}

/* CC License Section */
.jrtdd_footer_license {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94a3b8;
}
.jrtdd_cc_badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 11px;
}

/* Bottom Copyright Bar */
.jrtdd_footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Floating WhatsApp Button */
.jrtdd_whatsapp_float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-size: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jrtdd_whatsapp_float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .jrtdd_main_layout {
    flex-wrap: wrap;
  }
  .jrtdd_col_left {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .jrtdd_col_center {
    flex: 1 1 60%;
  }
  .jrtdd_col_right {
    flex: 1 1 35%;
  }
  .jrtdd_footer_grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .jrtdd_masthead_inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .jrtdd_journal_title_serif {
    font-size: 22px;
  }
  .jrtdd_mobile_toggle_btn {
    display: inline-flex;
  }
  .jrtdd_nav_menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .jrtdd_nav_menu.is-active {
    display: flex;
  }
  .jrtdd_nav_item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .jrtdd_col_left,
  .jrtdd_col_center,
  .jrtdd_col_right {
    flex: 0 0 100%;
    width: 100%;
  }
  .jrtdd_footer_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
