/*
Theme Name: June25 CFC
Theme URI: None
Author: Jamie Sinclair
Author URI: https://www.jamiesinclair.com
Description: A custom WordPress theme for June25 CFC, styled for WordPress 6.8.1.
Version: 1.0.0
Requires at least: 6.8.1
Tested up to: 6.8.1
License: No re-use
Text Domain: june25-cfc
*/

:root {
  --darkGray: #222;
  --lightGray: #f5f5f5;
  --brightOrange: #ff6600;
}

html,body {
    margin: 0 0;
    padding: 0 0;
    background-color: yellow;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size:18px;
}

body {
  padding-top:2.4rem; /* .site-header */
}

.container {
  max-width:1000px;
  margin:0 auto;
}

h1,h2,h3,h4 {
  font-family:Helvetica,Arial, sans-serif;
}

/*--------------------------------------------------------------
Header
--------------------------------------------------------------*/

.site-header {
  width: 100%;
  padding: 0;
  height:2.4rem;
  /* height: 4rem; */
  background-color: var(--darkGray);
  font-family:Helvetica,Arial, sans-serif;
  position:fixed;
  top:0;
  z-index: 10;
  font-size:1rem;
}

.site-header .container {
  height: 100%;
  background-color: inherit;
  /* background-color: var(--lightGray); */

  /* margin: 0 auto; */
  position: relative;
  /* max-width:1000px; */
}

 .main_menu {
  margin: 0;
  padding: .3rem 0 0;
  list-style: none;
  justify-content: flex-start;
  display: flex;
  transition:none;
  /* height:100%; */
}

.main_menu > li {
  display: flex;
  position: relative;
}

.main_menu li {padding: .3rem .8rem;}

.main_menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--lightGray);
  padding: .2rem .4rem;
  position: relative;
  font-weight: normal;
  /* transition: color 0.2s; */
  /* overflow: visible; */
}

.main_menu a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: yellow;
  border-radius: 2px;
  transition: width .4s cubic-bezier(.4,0,.2,1), left 1s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}

.main_menu a:hover::after,
.main_menu a:focus::after {
  width: 100%;
  left:0;
}


.main_menu li > .outer {
  position: absolute;
  top: 2rem;
  padding:.5rem 0 0 0;
  left: 0;
  /* width: auto; */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
  /* background: var(--darkGray); */
}

/* Submenu width modifiers */
.outer--2col { width: 400px; }
.outer--3col { width: 700px; }

.main_menu > li:hover > .outer,
.main_menu > li:focus-within > .outer {
  opacity: 1;
  pointer-events: auto;
}

.main_menu li ul {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  background: var(--darkGray);
  border-radius: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
}

/* Grid column modifiers */
.menu-2col {
  grid-template-columns: repeat(2, 1fr);
}
.menu-3col {
  grid-template-columns: repeat(3, 1fr);
}

.main_menu li ul li a {
  color: var(--lightGray);
  background: none;
  transition: color 0.2s;
}

.main_menu li ul li a:hover,
.main_menu li ul li a:focus {
  color: var(--lightGray); /* keep submenu text color lightGray on hover */
  background: none;
}

header .open_menu,
header .close_menu {
  display: none;
  position: absolute;
  top: .2rem;
  right: 0;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brightOrange);
}

header .open_menu.active, header .close_menu.active {
  display: none;
}

/* .main_menu.no-transition,
.main_menu li > .outer.no-transition {
  transition: none !important;
} */


/*--------------------------------------------------------------
Mobile menu
--------------------------------------------------------------*/

@media (max-width: 1000px) {

  header .open_menu.active, header .close_menu.active {
    display: block;
  }

  .main_menu a:hover::after,
.main_menu a:focus::after {
  width: 0;
  left:100%;
}

  /* html, body {
    font-size: 20px;
  }
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.6em;
  }
  h3 {
    font-size: 1.3em;
  }
  p, li, a, button, input, textarea {
    font-size: 1.1em;
  } */


  header .main_menu {
    display: none;
  }

  /* .site-header .open_menu {
    display: block;
  } */

  .site-header .main_menu {
    background-color: var(--darkGray);

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    text-align: right;
    padding: 2.4rem 1rem 0 0;
    margin: 0;
    opacity:0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    max-height:100dvh;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .site-header .main_menu.active {
    opacity:1;
    pointer-events:auto;
  }

  .site-header .main_menu > li {
    width: auto;
    display:block;
    margin:0 0 0 auto;
    justify-content: flex-end;
  }

  .site-header .main_menu a {
    /* width: 100%; */
    text-align: right;
  }

  .site-header .main_menu li > .outer {
    position: static;
    opacity: 1;
    width: 100% !important;
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
  }

  .site-header .main_menu li ul {
    display: block;
    border-radius: 0;
    grid-auto-flow: row;
    grid-template-columns: none;
    padding: 0;
    margin: 0;
    text-align: right;
  }

  .site-header .main_menu li ul li {
    width: 100%;
    text-align: right;
  }

  /* First level submenu links: bold, larger, right-aligned */
  .site-header .main_menu a {
    font-weight: bold;
    font-size: 2rem;
    color:yellow;
    text-align: right;
    display: block;
  }

  /* Second level submenu links: normal, smaller, right-aligned */
  .site-header .main_menu li ul > li > a {
    font-weight: normal;
    font-size: 1.5rem;
    color:var(--lightGray);
    text-align: right;
    display: block;
    padding-right: 1.5rem;
  }
}











/*--------------------------------------------------------------
Body
--------------------------------------------------------------*/


.body_container {
  max-width:1200px;
  margin:0 auto;
}





/*--------------------------------------------------------------
Sidebar
--------------------------------------------------------------*/



/* Sidebar Layout */
.main-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.main-content {
  flex: 1 1 0%;
  min-width: 0;
}
.sidebar {
  width: 300px;
  background: var(--lightGray);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 1rem;
}
.sidebar h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: var(--darkGray);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  margin-bottom: 0.5em;
}
.sidebar-list a {
  color: var(--darkGray);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-list a:hover {
  color: var(--brightOrange);
}
.sidebar-list .current {
  font-weight: bold;
  color: var(--brightOrange);
  text-decoration: underline;
}
.sidebar-events {
  margin-top: 2em;
  border-top: 1px solid #ddd;
  padding-top: 1em;
}
.sidebar-events .event-date {
  display: block;
  font-size: 0.95em;
  color: #666;
  margin-left: 1em;
}

/* @media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding: 1rem 0.5rem;
  }
} */
@media (max-width: 1000px) {
  .main-with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 2rem;
    box-shadow: none;
    border-radius: 0;
  }
}
