/* =========================================================
   OJS 3.5 — Bootstrap 3 Base Theme
   MSPRJ — Marketing Science & Practice Journal
   Clean BBR-like Layout Using MSPRJ Colors
   Colors:
     Primary  : #1f4d3a
     Secondary: #f4f6f7
     Accent   : #2A9D8F
     Highlight: #E9C46A
   ========================================================= */


/* ---------- 0) Base ---------- */
html, body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px !important;
  color: #1f2937;
  background: #f4f6f7 !important;
}

a{ color: #2A9D8F; }
a:hover{ color: #1f4d3a; }

/* Container */
@media (min-width: 1200px){
  .container{
    width: 1240px !important;
    max-width: 1240px !important;
  }
}

/* White page canvas */
.pkp_structure_main .page,
.page{
  background: #fff !important;
  border: 1px solid rgba(31,77,58,0.15) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05) !important;
  padding: 18px !important;
}

/* Reading comfort */
.pkp_structure_main p,
.pkp_structure_main li{
  line-height: 1.75;
  text-align: justify;
}

/* ---------- 1) Navbar ---------- */
.navbar,
.navbar-default{
  background: #1f4d3a !important;
  border: 0 !important;
  border-bottom: 5px solid #2A9D8F !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* Brand */
.navbar-default .navbar-brand{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 24px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 18px !important;
}

/* Force correct journal name */
.navbar-default .navbar-brand:after{
  content: "Marketing Science & Practice Journal" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

/* Logo size */
.navbar-default .navbar-brand img{
  width: 70px !important;
  height: auto !important;
}

/* Nav links */
.navbar-default .navbar-nav > li > a{
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 13px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a{
  background: transparent !important;
  color: #E9C46A !important;
  box-shadow: inset 0 -3px 0 #E9C46A !important;
}

/* ---------- 2) Search (Pill style) ---------- */
.navbar-form{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

.navbar-form .form-control{
  height: 40px !important;
  width: 260px !important;
  border-radius: 999px !important;
  border: 2px solid #2A9D8F !important;
  background: #fff !important;
  padding-left: 16px !important;
}

.navbar-form .form-control:focus{
  box-shadow: 0 0 0 4px rgba(42,157,143,0.2) !important;
}

.navbar-form .btn{
  height: 40px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  background: #2A9D8F !important;
  border: 2px solid #2A9D8F !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.navbar-form .btn:hover{
  background: #E76F51 !important;
  border-color: #E76F51 !important;
}

/* ---------- 3) Layout ---------- */
@media (min-width: 992px){
  .pkp_structure_sidebar{
    float: left !important;
    width: 26% !important;
    padding-right: 18px !important;
    margin-top: 22px !important;
  }

  .pkp_structure_main{
    float: right !important;
    width: 74% !important;
    margin-top: 22px !important;
  }
}

@media (max-width: 991px){
  .pkp_structure_sidebar,
  .pkp_structure_main{
    float: none !important;
    width: 100% !important;
  }
}

/* ---------- 4) Sidebar ---------- */
.pkp_structure_sidebar:before{
  content: "JOURNAL CONTENT";
  display: block;
  background: #2A9D8F;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.pkp_block .title{
  background: #1f4d3a !important;
  border: 1px solid #2A9D8F !important;
  color: #fff !important;
  font-weight: 900 !important;
  padding: 14px !important;
  border-radius: 4px !important;
}

.pkp_block .content{
  background: #fff !important;
  border: 1px solid rgba(31,77,58,0.15) !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
}

.pkp_block ul li{
  border-bottom: 1px solid rgba(31,77,58,0.15) !important;
}

.pkp_block ul li a{
  color: #1f4d3a !important;
}

.pkp_block ul li a:hover{
  background: #f4f6f7 !important;
}

/* ---------- 5) Buttons ---------- */
.btn-primary,
.pkp_button,
.cmp_button,
input[type="submit"]{
  background: #2A9D8F !important;
  border: none !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.btn-primary:hover{
  background: #E76F51 !important;
}

/* ---------- 6) Footer ---------- */
.pkp_structure_footer_wrapper{
  background: #1f4d3a !important;
  color: #fff !important;
  border-top: 3px solid #2A9D8F !important;
  padding: 18px 0 !important;
}

.pkp_structure_footer_wrapper a{
  color: #E9C46A !important;
}






/* ===== FORCE FIX LOGO DISTORTION ===== */

.navbar-default .navbar-brand img{
  width: auto !important;
  height: auto !important;
  max-height: 70px !important;   /* غيّر الرقم إذا بدك أكبر */
  max-width: 100% !important;
  object-fit: contain !important;
  display: inline-block !important;
}





/* =========================================
   FORCE TWO-ROW HEADER LAYOUT
========================================= */

/* خلي الهيدر عمودي بدل أفقي */
@media (min-width: 768px){

  .navbar-default .container{
    display: flex !important;
    flex-direction: column !important;   /* أهم سطر */
    align-items: flex-start !important;
  }

  /* السطر الأول: اسم المجلة */
  .navbar-default .navbar-header{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
  }

  /* السطر الثاني: القائمة */
  .navbar-default .navbar-collapse{
    width: 100% !important;
  }

  /* خلي القائمة تبدأ من اليسار */
  .navbar-default .navbar-nav{
    margin: 0 !important;
  }

  /* البحث على اليمين في السطر الثاني */
  .navbar-form{
    margin-left: auto !important;
  }
}

