/*
Theme Name: NBSCA Theme
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.02
Author: Benjamin Ray
Author URI: http://www.benjaminray.com
Template: enfold
*/

/*Add your own styles here:*/

/* Colours :
Highlight:  #005eb8 (Pantone 300, official Scottish flag colour)


*/

/* NOTE FROM BEN: Changes to this file aren't merged into the Enfold CSS bundle until you hit "Save all Changes" in the 
NBSCA Theme (Enfold) options screen unless "CSS file compression and merging" is disabled (under Performance). Disable 
this during development & testing so changes here are automatically displayed in the browser. Re-enable it when the site
is in production. */

/* Page title font (built-in title) */
#main .title_container .main-title.entry-title {
  font-size: 32px;
  line-height: 1.5em;
  font-family: "Kurale", serif;
  margin-top: 10px;
  margin-bottom: 0px;
}
/* For some reason, Enfold is loading the alternate color for the default page titles, so I have to override that */
#main .title_container.alternate_color h1.main-title.entry-title a {
  color: #222222;
}

/* Hide the default Enfold title for a single post (e.g. when looking at a news item) */
#top.single-post #main .title_container {
  display: none;
}
/* main body on wp-members plugin is blue for some reason, so cancel that out */
#main {
  background-color: #ffffff;
}

/* Member section dialog for users not logged in (dialog set in wp-members settings) */
#member-section-login-redirect {
  padding-top: 20px;
  padding-bottom: 180px;
}

#wpmem_restricted_msg {
  padding-left: 40px;
}
#wpmem_login {
  padding-left: 40px;
  padding-bottom: 80px;
  max-width: 500px;
}

/* Page title font (custom one added to member section pages) */
.template-page .entry-content-wrapper h1.custom-title {
  position: relative;
  line-height: 2.5em;
  font-size: 32px;
  font-weight: 400;
  font-family: "Kurale", serif;
  text-transform: none;
  margin-top: 10px;
  margin-bottom: 0px;
}
#main .template-page.content {
  padding-top: 0px;
}

/* Space down arrows out so we have one on each side - go back to single arrow when dancer image is replaced one day */
#top #slider-arrow-overlay-1,
#top #slider-arrow-overlay-2 {
  position: static;
  height: 0px;
  min-height: 0px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
#top #slider-arrow-overlay-1 .scroll-down-link,
#top #slider-arrow-overlay-2 .scroll-down-link {
  top: -60px;
}
#top #slider-arrow-overlay-1 .scroll-down-link {
  margin-left: -300px;
}
#top #slider-arrow-overlay-2 .scroll-down-link {
  margin-left: 223px;
}
@media only screen and (max-width: 767px) {
  #top #slider-arrow-overlay-1 .scroll-down-link {
    margin-left: -170px;
  }
  #top #slider-arrow-overlay-2 .scroll-down-link {
    margin-left: 90px;
  }
}

/* Unclickable nav items */
.nav-unclickable > a:hover {
  cursor: default;
}
.container_wrap {
  border-top: none;
}

/* Add down arrow on menu items with children */
.menu li > a:after {
  content: "▾";
}
.menu li > a:only-child:after {
  content: "";
}

/* Colour behind title */
#main .title_container {
  background-color: #ffffff;
  border-bottom: 0;
}

/* Custom button font size on home page */
#main .avia-button-wrap.home-join-button .avia-button {
  font-size: 18px;
}
#main .avia-button-wrap.home-join-button .avia-button .avia_button_icon {
  /* Increase spacing between icon & button text */
  left: -0.6em;
}

/* Thicken border on highlighted nav items */
.av-main-nav > li > ul {
  border-top-width: 3px;
}
.av-main-nav ul {
  margin-top: -2px;
}
.avia-menu-fx {
  height: 3px;
}

/* Underline links */
#main p a,
#main #journal-list li a {
  text-decoration: none;
  border-bottom: 1px solid #005eb8;
}

#main p a:hover,
#main p a:active,
#main #journal-list li a:hover,
#main #journal-list li a:active {
  /* This color should always be same as Highlight color in theme settings */
  border-bottom: 1px solid #0071da;
}
#main #journal-list .flex_column {
  padding-top: 1em;
  border: 1px solid #ddeeff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin-bottom: 2em !important;
}
#main #journal-list .flex_column h2 {
  padding-bottom: 0.6em;
  padding-top: 0em;
  border-bottom: 1px solid #ddeeff;
}
#main #journal-list section.av_textblock_section {
  text-align: center;
}

#main #journal-list li.new-2026::after {
  /* color: #b10143aa; */
  color: #ffffaa;
  font-style: normal;
  font-size: 13px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  /* border: 1px solid #b10143aa; */
  border: 1px solid #386444;
  /* background-color: #fff5fa; */
  background-color: #386444;
  content: "✦ Added 2026!";
  margin-left: 0.5em;
  padding: 0.1em 0.35em;
}

/* Allow removing underline (e.g. linking of images) */
#main p a.no-underline {
  text-decoration: none;
  border-bottom: 0;
}

.main_color .pricing-table li.avia-pricing-row {
  border-top: 1px solid #67a5d7;
}

.avia_pricing_default .pricing-table li.avia-pricing-row small,
.avia_pricing_default .pricing-table li.avia-pricing-row .currency-symbol {
  opacity: 0.5;
}

/* Override some form styling */
#top .input-text,
#top input[type="text"],
#top input[type="input"],
#top input[type="password"],
#top input[type="email"],
#top input[type="number"],
#top input[type="url"],
#top input[type="tel"],
#top input[type="search"],
#top textarea,
#top select {
  padding: 12px 8px;
  border-radius: 4px;
  font-size: 110%;
}
#top .entry-content-wrapper select {
  border-radius: 4px;
}

/* Re-add color to contact form errors (was being overridden) */

#top form.wpcf7-form span.wpcf7-not-valid-tip {
  color: #ff0000;
}

/* Custom styling of contact form output messages */

#top form.wpcf7-form div.wpcf7-response-output {
  font-size: 22px;
  padding: 20px;
  border-radius: 4px;
  margin-left: 0;
  text-align: center;
}

#top form.wpcf7-form div.wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 1px solid #a3d6ff;
  background-color: #d5ecff;
  color: #222230;
}

/* Custom grid system */

.row {
  display: flex;
  flex-direction: row;
  margin: 0 -10px;
}

.col {
  flex: 1;
  margin: 0 10px;
}

@media (max-width: 767px) {
  .row {
    display: block;
  }
}

.align-right-non-mobile {
  text-align: right;
}

/* Govern table styling */

table.govern-table {
  max-width: 400px;
}

table.govern-table tr {
  background-color: #ffffff;
}

table.govern-table tr td:first-child {
  width: 50%;
}

@media only screen and (max-width: 767px) {
  /* Override ridiculous-looking Enfold table stuff on mobile */
  #top .avia-data-table-wrap .avia-data-table.govern-table tbody,
  #top .avia-data-table-wrap .avia-data-table.member-contacts tbody,
  #top .avia-data-table-wrap .avia-data-table.links tbody {
    display: table-row-group;
  }
  #top .avia-data-table-wrap .avia-data-table.govern-table tr,
  #top .avia-data-table-wrap .avia-data-table.member-contacts tr,
  #top .avia-data-table-wrap .avia-data-table.links tr {
    display: table-row;
  }
  #top .avia-data-table-wrap .avia-data-table.govern-table th,
  #top .avia-data-table-wrap .avia-data-table.govern-table td,
  #top .avia-data-table-wrap .avia-data-table.links th,
  #top .avia-data-table-wrap .avia-data-table.links td {
    display: table-cell;
    text-align: left;
  }
  #top .avia-data-table-wrap .avia-data-table.member-contacts th,
  #top .avia-data-table-wrap .avia-data-table.member-contacts td,
  #top .avia-data-table-wrap .avia-data-table.links th,
  #top .avia-data-table-wrap .avia-data-table.links td {
    display: table-cell;
  }
  .responsive div .avia_responsive_table .avia-data-table.member-contacts th,
  .responsive div .avia_responsive_table .avia-data-table.member-contacts td {
    text-align: left;
  }
  .responsive div .avia_responsive_table .avia-data-table.member-contacts th:first-child,
  .responsive div .avia_responsive_table .avia-data-table.member-contacts td:first-child {
    text-align: right;
  }

  /* Hide the copy of the table heading that is inserted before contents of each TD */
  .responsive .avia_responsive_table .avia-data-table.govern-table td:before,
  .responsive .avia_responsive_table .avia-data-table.member-contacts td:before,
  .responsive .avia_responsive_table .avia-data-table.links td:before {
    display: none;
    font-style: italic;
    font-size: 11px;
  }

  .align-right-non-mobile {
    text-align: inherit;
  }
}

.membership-table ul.pricing-table li:nth-child(3) {
  font-size: 12px;
  color: #222222;
}

/* Paypal payment forms */
.join-form {
  max-width: 400px;
}
.paypal-note {
  font-size: 15px;
}
/* Spacing between popup titles & body */
.popmake-content {
  margin-top: 20px;
}

/* Member Contacts Table */
.avia-data-table.member-contacts {
  table-layout: auto;
}
.avia-data-table.member-contacts tr th,
.avia-data-table.member-contacts tr td {
  text-align: left;
}
.avia-data-table.member-contacts tr th:first-child,
.avia-data-table.member-contacts tr td:first-child {
  text-align: right;
}

/* Journal Page */

#journal-list .content {
  padding-top: 0;
}

#journal-list ul {
  list-style-type: none;
  margin-left: 0;
}

#journal-list ul li {
  margin-left: 0;
}
#journal-list .journal-note {
  color: #666666;
  font-size: 85%;
}
#journal-list .flex_column {
  margin-bottom: 25px;
}

/* Links Page */
/* Some link stuff also mixed in with member-contacts and govern-table table classes */
#top .avia-data-table-wrap .avia-data-table.links tr th,
#top .avia-data-table-wrap .avia-data-table.links tr td {
  text-align: center;
}

#top .avia-data-table-wrap .avia-data-table tr th {
  color: #00458a;
  font-size: 16px;
  text-transform: none;
}
#top .avia-data-table-wrap .avia-data-table tr td {
  font-size: 15px;
}
