/*
Theme Name: Owl Tutors AI theme
Author: Mike Davies
Description: Owl Tutors AI theme. (All styles in assets)
Version: 0.1
Tags:
*/
:root{
	--brand-navy: #1A2641;
	--brand-blue: #36A2DB;
	--brand-gold: #FDCB5B;
	--brand-grey: #F0F0F2;
	--brand-white: #ffffff;
	--brand-text: #333333;
	--radius: 0.5rem; /* 8px core border radius */
}
/* ==========================
Global resets & typography
========================== */
:root{
  /* Set body font for Bootstrap + your theme */
  --bs-body-font-family: "Inter", Arial, sans-serif;
}
body {
  font-family: var(--bs-body-font-family); /* optional, but keeps things explicit */
}
body {
	font-family: var(--bs-body-font-family);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--brand-text);
	background-color: var(--brand-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family:"Georgia", "Times New Roman", serif;
	color: var(--brand-navy);
	font-weight: 700;
	line-height: 1.2;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

p {
	font-family: var(--bs-body-font-family);
	margin-bottom: 1rem;
}

a {
color: var(--brand-blue);
text-decoration: none;
}
a:hover, a:focus {
color: #208fc4; /* darker blue */
text-decoration: underline;
}

/* ==========================
Containers
========================== */
.container-custom {
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	margin-left: auto;
	margin-right: auto;
    h1 {
        margin-top: 0;
    }
}
@media (min-width: 768px) {
	.container-custom {
        max-width: 1200px;
	}
}

/* ==========================
Navbar
========================== */
.navbar-premium {
	background-color: #ffffff;
	border-bottom: 1px solid #E9ECF2; /* subtle divider */
	padding: 0.5rem 0; /* vertical padding */
	margin-bottom: 0 !important;
}

.navbar-premium .container-custom {
display: flex;
align-items: center;      /* vertical centering */
justify-content: space-between; /* logo left, menu right */
}

/* Ensure nav collapses neatly */
.navbar-premium .navbar-collapse {
flex-grow: 0; /* prevents nav from forcing new line */
}

/* Brand + links on white */
.navbar-premium .navbar-brand,
.navbar-premium .nav-link {
	color: var(--brand-navy);
	/* font-size: 1.0625rem; ~17px */
	font-size: 1.1625rem; /* ~17px */
	padding: .75rem 0.9rem; /* keeps ~44px height for tap targets */
	&.logo-link {
		padding-left: 0;
	}
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link:focus {
color: var(--brand-blue);
}

/* Active state: thin gold underline */
.navbar-premium .nav-link.active {
position: relative;
}
.navbar-premium .nav-link.active::after {
content: "";
position: absolute;
left: .5rem; right: .5rem; bottom: .35rem;
height: 2px;
background: var(--brand-gold);
border-radius: 2px;
}

/* Dropdown */
.navbar-premium .dropdown-menu {
background: #ffffff;
border-radius: var(--radius);
border: 1px solid rgba(0,0,0,.08);
box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.navbar-premium .dropdown-item {
color: var(--brand-navy);
}
.navbar-premium .dropdown-item:hover,
.navbar-premium .dropdown-item:focus {
background: rgba(54,162,219,.08); /* faint blue tint */
color: var(--brand-navy);
}

/* Toggler (visible on white) */
.navbar-premium .navbar-toggler {
border-color: rgba(0,0,0,.25);
}
.navbar-premium .navbar-toggler:focus {
box-shadow: 0 0 0 .2rem rgba(54,162,219,.25);
}


/* Map WP current classes to premium active underline */
.navbar-premium .current-menu-item > .nav-link,
.navbar-premium .current_page_item > .nav-link,
.navbar-premium .current-menu-ancestor > .nav-link,
.navbar-premium .current-menu-parent > .nav-link {
  position: relative;
}

.navbar-premium .current-menu-item > .nav-link::after,
.navbar-premium .current_page_item > .nav-link::after,
.navbar-premium .current-menu-ancestor > .nav-link::after,
.navbar-premium .current-menu-parent > .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem; right: .5rem; bottom: .35rem;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
}

/* ==========================
Buttons
========================== */
.cta,
.btn-brand-primary {
	background: var(--brand-navy);
	color: var(--brand-white);
	border: 0;
	border-radius: var(--radius);
	padding: 0.65rem 1.1rem;
	font-weight: 600;
    p {
        margin-bottom: 0;
    }
}
.btn-brand-primary:hover {
	background: #111a2e;
	color: var(--brand-white);
}
.btn-brand-gold {
	background: var(--brand-gold);
	color: var(--brand-navy) !important;
	border: 0;
	border-radius: var(--radius);
	padding: 0.65rem 1.1rem;
	font-weight: 600;
}
.btn-brand-gold:hover {
	background: #e6b94a;
	color: var(--brand-navy);
}
.btn-outline-gold {
	background: var(--brand-white);
	color: var(--brand-text) !important;
	border: 2px solid var(--brand-gold);
	border-radius: var(--radius);
	padding: 0.6rem 1rem;
	font-weight: 600;
}
.btn-outline-gold:hover {
	background: #fff7d8;
}

/* ==========================
Forms
========================== */
input, select, textarea, .form-control, .form-select {
	border-radius: var(--radius) !important;
	border: 1px solid #ccc;
}
input:focus, select:focus, textarea:focus, .form-control:focus {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 0.2rem rgba(54,162,219,.25);
}

/* ==========================
Cards & Callouts
========================== */
.card, .callout, .author-card {
	border-radius: var(--radius);
}

.callout {
	background: var(--brand-grey);
	border-left: 6px solid var(--brand-gold);
	padding: 1.25rem 1.25rem 1.25rem 1rem;
}

.author-card {
	background: var(--brand-grey);
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	padding: 1rem 1.25rem;
}

/* ==========================
Utility helpers
========================== */
.bg-navy { background: var(--brand-navy) !important; }
.bg-grey { background: var(--brand-grey) !important; }
.text-gold { color: var(--brand-gold) !important; }
.rounded-8 { border-radius: var(--radius) !important; }
.section-pad {
padding-top: 2rem;
padding-bottom: 2rem;
}
@media (min-width: 768px) {
	.section-pad {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
}

/* ==========================
Sections
========================== */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
	color: var(--brand-white);
}
.featured {
	img {
		width: 100%;
	}
}
.post ul {
  padding-left: 1.15rem !important;
}
.post ul li {
  list-style: disc !important;
}
.post ul li::marker{
  color:var(--brand-blue) !important;
}

/* ==========================
Trust strip
========================== */
/* Trust strip */
.trust-strip {
  background: var(--brand-grey);
  border-top: 1px solid #E9ECF2;
  border-bottom: 1px solid #E9ECF2;
  padding: .65rem 0; /* slim, elegant */
}

.trust-strip .trust-text {
  color: var(--brand-navy);
  font-size: 1rem; /* keep calm; could go 1.0625rem if desired */
}

.trust-strip .trust-stars {
  color: var(--brand-gold);
  line-height: 0;
}
.trust-strip .trust-stars .star { display: inline-block; }

.trust-strip .link-read-reviews {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}
.trust-strip .link-read-reviews:hover,
.trust-strip .link-read-reviews:focus {
  text-decoration: underline;
}


/* ==========================
TO DELETE / REBUILD
========================== */

.bg-navy .link-light { text-decoration: none; }
.bg-navy .link-light:hover { text-decoration: underline; }

/* Newsletter layout (already in your CSS; these just refine) */
.newsletter-minimal { display:grid; gap:.75rem; grid-template-columns:1fr; }
@media (min-width:768px){
  .newsletter-minimal { grid-template-columns: 1fr auto; align-items:center; }
}

/* Input + button equal height in flex layout */
.newsletter-form .form-control { height: calc(2.5rem + 8px); } /* matches Bootstrap default */

@media (min-width: 768px) {
  .newsletter-form .form-control {
    min-width: 320px;
  }
}

/* Tiny refinements on top of your existing tokens */
.author-card .availability-pill {
  white-space: nowrap;
}
.author-card .img-holder {
    width: 120px;
}

/* Make tutor avatar nicely cropped even if no image ratio util */
.object-fit-cover { object-fit: cover; }

/* Actions on mobile: keep buttons thumb-friendly */
@media (max-width: 575.98px) {
  .author-card .btn { min-height: 44px; }
}
.post ul.credentials{
  padding-left:0;
}
.credentials .chip{
  background:#fff; border:1px solid #E9ECF2; border-radius:var(--radius);
  padding:.3rem .5rem; font-size:.875rem; color:var(--brand-navy);
  line-height:1.2;
}
@media (min-width: 767.98px){
	.author-actions { width: clamp(260px, 28vw, 240px); }
}
@media (max-width: 767.98px){
  .author-actions .btn { flex: 1 1 0; } /* side-by-side, equal width on mobile */
}

/* =========================
   Main nav – refined spacing
   ========================= */

/* Reduce big custom margins and rely on a small, consistent gap */
#mainNav {
  margin: 8px 0;
  padding-right: 0;
}
#mainNav .navbar-nav > li { margin-right: 0 !important; }
#mainNav .navbar-nav { column-gap: .5rem; }                  /* base gap */
@media (min-width: 992px) { #mainNav .navbar-nav { column-gap: .75rem; } }

/* Make links inline-flex (not full-width blocks), soften typography */
#mainNav .navbar-nav > li > a {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  padding: .5rem .7rem;                                      /* compact pads */
  font-family: var(--bs-body-font-family);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: -0.005em;                                  /* micro-tracking */
  line-height: 1.2;
  color: var(--brand-navy);
  text-decoration: none;
}
#mainNav .navbar-nav > li > a.btn-brand-gold {
	font-weight: 500;	
}

/* Slightly larger on xl screens only */
@media (min-width: 1200px) {
  #mainNav .navbar-nav > li > a { font-size: 1.2rem; padding: .55rem .75rem; }
}

/* Hide the old angle icon; we’ll use a subtle caret */
#mainNav .navbar-nav > li > a .fa-angle-down { display: none !important; }

/* Simple caret that doesn’t add bulk */
#mainNav .navbar-nav > .menu-item-has-children > a::after {
  content: "";
  margin-left: .35rem;
  border-top: .33em solid currentColor;
  border-right: .33em solid transparent;
  border-left: .33em solid transparent;
  transform: translateY(1px);
}

/* Active/ancestor indicator — slimmer, more restrained */
#mainNav .navbar-nav > .current-menu-item > a::after,
#mainNav .navbar-nav > .current-menu-ancestor > a::after,
#mainNav .navbar-nav > li > a[aria-current="page"]::after {
  position: absolute;
  left: .6rem; right: .6rem; bottom: .25rem;
  height: 2px; content: "";
  background: var(--brand-gold);
  border-radius: 2px;
}

/* Focus styles: crisp, not chunky */
#mainNav .navbar-nav > li > a:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--brand-gold);
}

/* Dropdowns — tighter list rhythm */
#mainNav .dropdown-menu {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;                 /* IMPORTANT: clip children to rounded corners */
  padding: .5rem;                   /* inner breathing room */
  box-shadow:
    0 12px 24px rgba(26,38,65,.08),
    0  2px  8px rgba(26,38,65,.06);
}

/* Default: single-column dropdowns = fixed, tidy width */
#mainNav .navbar-nav > li.dropdown > .dropdown-menu {
  width: 320px;
}


/* Fallback for browsers without :has — target your Resources item by ID or add a 'mega' class */
#mainNav #menu-item-154105 > .dropdown-menu {
  width: 720px;
}

/* Mega grid: remove the row's negative gutters & any paint */
#mainNav .dropdown-menu .row {
  background: transparent;          /* don't repaint */
  margin-left: 0;                   /* neutralise negative margins */
  margin-right: 0;
  --bs-gutter-x: 1rem;              /* set a tidy gutter */
  --bs-gutter-y: .25rem;
  padding: .25rem .25rem .5rem;     /* space around columns */
}

/* Columns get their own padding so gutters still exist */
#mainNav .dropdown-menu .row > [class^="col-"],
#mainNav .dropdown-menu .row > [class*=" col-"] {
  padding-left: .5rem;
  padding-right: .5rem;
}
#mainNav .dropdown-menu i {
	width: 30px;
}
#mainNav .dropdown-menu .row {
	width: 700px;
}

/* Dropdown items: compact, aligned icons */
#mainNav .dropdown-menu a,
#mainNav .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  font-size: 1.0625rem;
  gap: .45rem;
  padding: .45rem .55rem;
  color: var(--brand-navy);
  white-space: normal;
}
#mainNav .dropdown-menu i[class^="fa"] { width: 1.15em; text-align: center; opacity: .85; }
#mainNav .dropdown-menu a:hover,
#mainNav .dropdown-menu .dropdown-item:hover {
  background: var(--brand-grey);
  color: var(--brand-navy);
  border-radius: calc(var(--radius) - 2px);
}

/* Mega “Resources” grid — smaller gutters for a lighter feel */
@media (min-width: 992px) {
  	#mainNav #menu-item-154105 > .dropdown-menu { 
		right: 0;
		left: -405px;
	}
	#mainNav #menu-item-154105 > .dropdown-menu .row {
		background-color: var(--brand-white);
	}
}

/* Mobile keeps things simple (stacked, no shadows) */
@media (max-width: 991px) {
  #mainNav .navbar-nav { column-gap: 0 !important; }
  #mainNav .navbar-nav > li > a { padding: .85rem .25rem; width: 100% !important; }
  #mainNav .dropdown-menu { position: static; float: none; box-shadow: none; border: 0; padding: .25rem 0; min-width: 100%; }
}

/* Make the navbar’s inner wrapper behave like a real Bootstrap container */
.navbar .container-custom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile: full-width collapsed area, list fills the line */
@media (max-width: 991px) {
  #mainNav.navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    padding-left: 0;
    margin: 0;
  }

  /* undo the right alignment from ms-auto and let items stack */
  #mainNav .navbar-nav {
    margin-left: 0 !important;
    width: 100%;
    column-gap: 0 !important;
  }
  #mainNav .navbar-nav > li { width: 100%; }
  #mainNav .navbar-nav > li > a {
    display: flex !important;
    width: 100% !important;
    padding: .9rem 0;
    font-weight: 500;
  }

  /* Dropdowns in the collapsed state: inline, full width, no card chrome */
  #mainNav .navbar-nav > li.dropdown > .dropdown-menu {
    position: static;
    float: none;
    width: 100% !important;     /* override the desktop 320px */
    max-width: 100%;
    padding: .25rem 0 .5rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* Mega menu columns flatten */
  #mainNav .dropdown-menu .row {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: block;
  }

  /* CTA button spans the width neatly */
  #mainNav .menu-item.contact-us > a.btn {
    width: 100%;
    justify-content: center;
    margin: .5rem 0 0;
  }
}

/* ==========
COOKIES
=========== */
#ot_local_storage_notice {
    display: none;
    position: fixed;
    bottom: 0;
    &.on_privacy_policy {
        position: relative;
        display: block;
        margin-bottom: 20px;
        a {
            display: none;
        }
    }
    width: 100%;
    background-color: var(--brand-navy);
    a,
    p {
        color: var(--brand-white);
    }
    padding: 10px;
    text-align: center;
    z-index: 1000;
    .consent-notice button {
        margin: 5px;
    }    
    button {
        color: var(--brand-navy);
        &.selected {
            background-color: var(--brand-gold);
        }
    }

}