/*
Theme Name: WP Bootstrap Oval
Theme URI: 
Author: Nige
Author URI: 
Description: A minimal WordPress theme built with Bootstrap 4, Font Awesome 5, and Google Font Montserrat. Compatible with CloudBetBot.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wp-bootstrap-oval
Requires at least: 5.0
Requires PHP: 7.4
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, full-width-template
*/

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body {
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  clear: both;
  color: #24292e;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 15px;
}
h1 {
  font-size: 32px;
  padding-bottom: 10px;
}
h2 {
  font-size: 24px;
  padding-bottom: 0.3em;
  line-height: 1.25;
}
h3 {
  font-size: 18px;
  line-height: 25px;
}
h4 {
  font-size: 16px;
  line-height: 20px;
}
h5 {
  font-size: 14px;
  line-height: 17.5px;
}

p {
  margin-bottom: 1.5em;
}
h1.entry-title {
  font-size: 1.31rem;
  border-bottom: 1px solid #eaecef;
}
h2.entry-title {
  border-bottom: 1px solid #eaecef;
}
h3.widget-title {
  font-size: 1.2rem;
}
a{
  text-decoration: none;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

td,
th {
  padding: 0;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
html,
body {
  min-height: 100%;
}

#page.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content.site-content {
  flex: 1 0 auto;
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.site-footer {
  flex-shrink: 0;
}

/* Full Width template: keep the header, drop the grey boxed canvas. */
body.page-template-fullwidth #main,
body.page-template-fullwidth #content.site-content-full {
  background: #fff;
}

body.page-template-fullwidth #content.site-content-full {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

body.page-template-fullwidth #content.site-content-full > .container-fluid {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.page-template-fullwidth .entry-content {
  margin-bottom: 0;
}

/* CloudBetBot: plugin header only, no theme chrome. */
body.cloudbot-page,
body.cloudbot-page #page.site {
  margin: 0;
  padding: 0;
  background: #fff;
}

body.cloudbot-page #primary,
body.cloudbot-page #main,
body.cloudbot-page #main > .container,
body.cloudbot-page article,
body.cloudbot-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Keep the plugin header on the same centered width as the bot page. */
body.cloudbot-page #masthead > .container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

body.cloudbot-page .site-content,
body.cloudbot-page .site-footer,
body.cloudbot-page .entry-header,
body.cloudbot-page .entry-footer {
  display: none;
}

/* Admin screens stay content-sized. The standard bot fills the viewport below. */
body.cloudbot-page:not(.cloudbot-skin-standard) #page.site {
  display: block;
  height: auto;
  min-height: 100%;
}

body.cloudbot-page:not(.cloudbot-skin-standard) #app {
  flex: none;
  height: auto;
  max-width: 1600px;
  width: 100%;
  margin: 12px auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Standard bot: fill the viewport under the plugin header. */
html:has(body.cloudbot-skin-standard),
body.cloudbot-skin-standard {
  height: 100%;
  overflow: hidden;
}

body.cloudbot-skin-standard #page.site {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.admin-bar.cloudbot-skin-standard #page.site {
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.cloudbot-skin-standard #page.site {
    height: calc(100dvh - 46px);
    max-height: calc(100dvh - 46px);
  }
}

body.cloudbot-skin-standard #primary,
body.cloudbot-skin-standard #main,
body.cloudbot-skin-standard #main .container,
body.cloudbot-skin-standard article,
body.cloudbot-skin-standard .entry-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

body.cloudbot-skin-standard #masthead {
  flex: 0 0 auto;
}

body.cloudbot-skin-standard #app {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow: hidden;
  gap: 4px 8px;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
body.cloudbot-page .site-content {
  padding: 0;
}

/*--------------------------------------------------------------
# Posts and Pages
--------------------------------------------------------------*/
.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  margin-bottom: 0.5rem;
}

.entry-content {
  margin-bottom: 1.5rem;
}

.entry-meta {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.entry-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.875rem;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
header#masthead {
  margin-bottom: 0;
  background-color: #2C3E50 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .1);
  padding: 0.45rem 0;
  font-family: 'Montserrat', sans-serif;
}

header#masthead.bg-primary {
  background-color: #2C3E50 !important;
}

.navbar-brand {
  height: auto;
  margin-right: 1rem;
  margin-top: -6px;
}

.navbar-brand > a,
.navbar-brand .site-title,
.navbar-dark .navbar-brand,
.navbar-dark .site-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar-brand > a:hover,
.navbar-dark .site-title:hover {
  color: #fff;
  text-decoration: none;
}

/* Tagline stays in its own case under the service name. */
#masthead .navbar-brand div {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 2px;
  text-transform: none;
}

#masthead nav {
  padding-left: 0;
  padding-right: 0;
}

#masthead .navbar-nav > li > a,
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Montserrat', sans-serif;
  /* font-size: 0.8rem; */
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px;
  text-transform: uppercase;
}

#masthead .navbar-nav > li > a:hover,
#masthead .navbar-nav > li.current_page_item > a,
#masthead .navbar-nav > li.active > a,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  #masthead .navbar-nav > li > a {
    padding-bottom: 0.938rem;
    padding-top: 0.938rem;
  }
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: #2C3E50;
  padding: 1.25rem 0;
  margin-top: 0;
  color: #fff;
}

.site-footer .site-info,
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-info {
  text-align: center;
  font-size: 0.875rem;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
  text-decoration: none;
}

