/*
 * html - base font-size
 * body - font-family, border-top that will go underneath header.
 * h1, h2, h3 p  - text-align, font-size,
 *
 *
 * section - 100% width, background color or image. -- each section could be independently idenfied with id - No content except a secbody div. No margins. No padding.
 * 		secbody - the actual body, may apply padding as needed and limit width when combined with lmtwdth
 * 			h1, h2, h3
 * 			secrow | gridltoc - flex model with flex-flow:row,   
 * 				secitem - if secrow 
 *
 *
 *
 * Pixel 3a : 352 x 644 approx
 * iPhone6: 375 x 667 aprox
 * breakpoints wisdom from website:
 * 480 736 980 1280 1680
 * phone 480, tablet 768, laptop 1024, desktop 1200:f
 *
 *
 * One site suggested using these breakpoints
 * (default is below 640?)
 *
 * @media (min-width: 640px) {
 *
 * }
 *
 * @media (min-width: 768px) {
 *
 * }
 *
 * @media (min-width: 1024px) {
 *
 * }
 *
 * @media (min-width: 1280px) {
 *
 * }
 *
 */

:root {
    --pageheader-fg: #000;
    --pageheader-hfg: #fff; /* hover color */
    --pageheader-bg: #eef7ff;
    --pageheader-hbg: #559;  /* hover bg */
    
    --pageheader-height: 60px;
    --navitemsperator: #a8c4dd;

    --primary-color: #1a365d; /* Prussian Blue */
    --accent-color: #c02121;  /* Burnt Orange */
    --text-color:#242424;
    --bg-color: #ffffff;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --banner-text: #ffffff;
}


html { 
	font-size: 16px;
    scroll-padding-top: var(--pageheader-height);
    scroll-behavior: smooth; /* Optional: adds a smooth slide effect */
}

* {
	box-sizing: border-box;
}

body {
    font-family: Serif, Georgia, Noto Serif, PT Serif, Tinos, Lato, Roboto, 'Open Sans';
	border-top:  var(--pageheader-height) solid var(--pageheader-bg);
	font-weight: normal;
	background-color:#fff;
	color: #000;
	margin: 0 auto;
	padding:0; 
}

hr {
    width:35%; 
    border: 1px solid; 
    margin: 3em 0 0 0;; 
}


.lmtwdth {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

input {
    border-width: 1px;
}

.indent {
	padding-left:3rem;
}

select {
	font-family:inherit;
}

h1, h2, h3 {
	margin: 1em 0 0.5em 0;
	padding: 0;
	font-weight:normal;
	text-transform: capitalize;
}

hfirst {
	margin-top:0;
}

h1.hfirst, h2.hfirst, h3.hfirst {
	margin: 0 0 0.5em 0;
	padding: 0;
	font-weight:normal;
}


h1 {
	font-size:2.8rem;
	line-height:1.2em;
}

h2 {
	font-size: 2rem;
	line-height: 1.2em;
	margin-bottom: 0.2em;
}

h3 {
	font-size: 1.3rem;
	line-height: 1.3em;
	font-style: italic;
}

p, li {
    color: var(--text-color);
	font-size: 115%;
	text-align: left;
}

p {
	line-height: 1.6;
}

li {
   	margin: 0 0 0.5em 0;
	line-height: 1.3em;
}


a, a.visited {
	text-decoration:none;
}


table {
    border-collapse: collapse;
}


td, th {
    border: 1px solid #00000036;
    text-align: left;
    padding: 3px 8px;
	line-height: 1.3em;
}

th {
    background-color:#eef;
	color:#222;
}


.progressbox {
    width:100%;
}


.darkbg {
	background-color:#000;
	color:#fff;
}


/* --- Fixed page header --- */
#pageheader {
    width:100%;
    height: var(--pageheader-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
	position:fixed;
	z-index:100;
	top:0;
	margin:0;
	background-color: var(--pageheader-bg);
    border-bottom: 1px solid #286aa5;
}

#pageheader .logo {
    color: black;
    font-size: 2rem;
    text-decoration: none;
}
  
#pageheader .logo img {
	vertical-align:middle;
	max-height:40px;
}

  /* --- Hidden Checkbox placeholder for hamburger --- */
#hamburger {
    display: none;
}

/* --- Hamburger Toggle Button --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

/* each  of  the three lines of  the hamburger */
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
}

/* --- Container for the nav links  the ul element --- */
.navbar {
    font-family: sans-serif;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    text-transform:uppercase;
}

/* --- container for nav link, including submenu if there is one --- */
.navitem {
    position: relative;
    display: flex;
    align-items: center;
}

.navitem > a {
    color: var(--pageheader-fg);
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    transition: background 0.2s;
    font-size: 1rem;
}

.navitem:hover > a {
    background-color: var(--pageheader-hbg);
    color: var(--pageheader-hfg);
}

/* --- sub menu container (Desktop View) -- the ul element --- */
.navsub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--pageheader-bg);
    min-width: 180px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.navsub a {
    padding: 8px 10px;
    font-size: 1rem; text-decoration: none;
    display: block;
    transition: background 0.2s, color 0.2s;
    color: var(--pageheader-fg);
}

.navsub a:hover {
    background-color: var(--pageheader-hbg);
    color: var(--pageheader-hfg);
}
  
.navbar li {
    margin:0;
    line-height:1.2em; 
}
  

/* Show navsub on Hover (Desktop Screen View) */
@media (min-width: 769px) {
    .navitem:hover .navsub {
      display: block;
    }
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 768px) {
    .hamburger {
      display: flex;
    }

    /* Transform main menu list into hidden mobile drawer */
    .navbar {
      display: none;
      flex-direction: column;
      position: absolute;
      top: var(--pageheader-height);
      left: 0;
      width: 100%;
      height: auto;
      box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
      z-index: 9;
      background-color: var(--pageheader-bg);
    }

    /* PURE CSS MAGIC: Show menu drawer when invisible checkbox is checked */
    #hamburger:checked ~ .navbar {
      display: flex;
    }

    /* Change hamburger icon lines into an X shape when checked */
    #hamburger:checked ~ .hamburger span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    #hamburger:checked ~ .hamburger span:nth-child(2) {
      opacity: 0;
    }
    #hamburger:checked ~ .hamburger span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    .navitem {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }

    .navitem > a {
      width: 100%;
      box-sizing: border-box;
      padding: 8px 10px;
      border-bottom: 1px solid var(--navitemsperator);
    }

    /* Accordion Style Sub-menus */
    .navsub {
      position: relative;
      top: 0;
      width: 100%;
      box-shadow: none;
      background-color: var(--pageheader-bg);
    }
    

    /* Show submenus on hover or inside active elements for mobile */
    .navitem:hover .navsub,
    .navitem:focus-within .navsub {
      display: block;
    }

    .navsub a {
      padding-left: 40px;
      border-bottom: 1px solid var(--navitemsperator);
    }
}


#flashboard {
	background-size: cover;
	background-position: center center;
	text-align:center;
	font-weight:normal;
}


#flashboard h1, #flashboard h2, #flashboard h3 {
	/* custom for the channel site */
}




article           { display: block; }
article .gridltoc { column-gap:4%;}
article h2        { color:#019; text-align:left; font-family: Arial, SANS-SERIF; font-weight: bold;}
article .gridltoc h2 { margin-top:18px; }
article p, article li  { color: #127; }




.pgtitle { 
    font-size:3rem;
    margin: -1rem 0 1rem 0;
    border-bottom: 1px solid;
}


.section {
	width:100%;
	margin:0 auto; /* auto is useful, in case width is modified by another class or id */
}



.secbody {
	width:100%;
	margin:0 auto; /* auto is useful, in case width is modified by another class or id */
	padding:3% 3rem;
}


.secrow {
	display:flex;
	flex-flow: row wrap;
	justify-content:space-between;
	padding:0; 
}


.secitem {
	padding:0;
	margin:1.5rem;
	text-align:center;
/*	flex:1 1 0%; /* grow, shrink, start with 0 size */
}

/* to flag a form  field as error */
.flag {
	border-bottom: solid 2px #f00;
}

.grid3x3 {
	display:grid;
	grid-template-rows: auto auto auto; 
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 40px;
	row-gap: 15px;
	grid-auto-flow: column;
}

.grid3x4 {
	display:grid;
	grid-template-rows: auto auto auto auto; 
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 40px;
	row-gap: 15px;
	grid-auto-flow: column;
}

.grid3x4 h1,
.grid3x3 h1 {
	margin-top: 0;
}


@media screen and (max-width: 768px) {
    
    p {line-height:1.5em;}
        
    article .gridltoc h2  { text-align:left;}
    
    .grid3x4, .grid3x3 { display:block; }
    
    .grid3x3>:nth-child(3n + 1) { margin-top:3rem; }
    
    .grid3x4>:nth-child(4n + 1) { margin-top:5rem; }
}

.gridrtoc,
.gridltoc {
	display: grid;
	column-gap: 5%;
	row-gap: 30px;
}

.gridrtoc {
	grid-template-columns: 60% 35%;
	grid-template-areas: "content aside";
}

.gridltoc {
	grid-template-columns: 35% 60%;
	grid-template-areas: "aside content";
}


.grid3x4x {
	grid-template-columns: 3fr 4fr;
}

.grid4x3x {
	grid-template-columns: 4fr 3fr;
}

.grid3x4x,
.grid4x3x {
	display: grid;
	column-gap: 30px;
	row-gap: 10px;
}

.acard {
	padding:1rem 1.1rem 1rem 1.4rem;
	background-color:#fafafa;
	border-left:2rem solid hsl(179,61%,27%); 
	box-shadow: 4px 4px 6px rgba(0,10,30, 0.2);
	height:fit-content;
	margin-bottom:2.5rem;
}

.acard h1 {
	margin-top: 0;
}

.acard h1, .acard h2, .acard h3 {
	text-align: left;
}


.acard  h2 {
	margin: 0;
	padding: 1.4rem 0;
}


.acard ul {
    padding: 0 0 0 1.89em;
}

.book h1 {
	text-align:left;
}

#frmsearch {
	display: flex;
	flex-flow:row nowrap;
	justify-content: space-between;
	margin: 0 0 2rem 0;
}

#feedbacksubmit {
	color:#fff;
	padding:15px ;
	background-color:#254674;
	text-align:left;
	text-decoration:none;
	cursor: pointer;
	max-width:200px;
	font-size:1.2rem;
	font-weight:bold;
}



#searchbox {
	background: #eee;
	padding:10px;
	border-radius:20px;
	margin: 0 6px 0 0;
	flex: 1 0;
}

#searchbtn {
	background-color:#254674;
	color: white;
	padding: 10px 20px;
	border: 0 none;
	font-weight: bold;
	cursor: pointer;
	border-radius:50%;
	flex: 0 0 60px; 
}
 

.qalist {
	display:block;
	font-size:1.2rem;
	margin: 0.5em 0;
	text-decoration: none;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
}

.qalist:hover {
	text-decoration: underline;
	overflow: visible;
}

#qaquestion {
	font-size:1.8rem;
	line-height:1.5em;
}

#qaanswer h1 {
	font-size:2.5em;
}


#qaanswer h2 {
	font-size:2rem;
}

#qaanswer h3 {
	font-size:1.5rem;
}




#qaanswer {
	margin: 3rem 0 0 0;
	font-size:1rem;
	line-height:1.8em;
	padding-bottom:3rem;
}

.pageindex {
	margin: 2rem 0 0 0;
	font-weight:bold;
}




ul.feedbacks {
	list-style-type:none;
	padding: 0;
}

ul.feedbacks li {
	width:100%;
}

.feedback {
	display:flex;
	flex-flow: row nowrap;
	padding: 15px 0;
}

.feedbackpic {
	flex: 0 0 auto;
	
}

.feedbackpic  img {
	width:100px;
	padding: 0 10px 0 0;
}

.feedbackfull-pic {
	float:left;
}


.feedbackfull-pic  img {
	max-width:200px;
	border:1px solid #202; 
	margin: 6px 14px 6px 0;
}



.feedbackauthor {
	display:block;
	font-size:1.5rem;
}

.feedbackfull-author {
	display:block;
	font-size:1.8rem;
	font-weight:bold;	
	margin:30px 0;
	text-align:left;
}


.feedbackevent {
	margin:30px 0;
}

.feedbackdate {
	margin:30px 0;
	display:none;
}

.feedbackcontact {
	margin:50px 0;
}



.feedbacktext {
	line-height: 1.5em;
	margin:5px 0px 0px 0px;
	padding: 0px;
	text-align: left ;
}


.feedbackmore {
	padding: 10px 0 0 0 ;
}



ul.eventposts {
	list-style-type:none;
	padding: 0;
}

ul.eventposts li {
	width:100%;
}


.eventpostpic {
	float:left;
	margin-top:1rem;
}

.eventpostpic  img {
	width:100%;
}

.eventpostfull-pic {
	float:left;
}


.eventpostfull-pic  img {
	max-width:400px;
	border:1px solid #202; 
	margin: 6px 14px 6px 0;
}

.eventposttitle {
	display:block;
	font-size:1.5rem;
	margin: 1rem 0 ;
}

.eventpostfull-title {
	display:block;
	font-size:1.5rem;
	margin: 1rem 0 ;
}


.eventpostauthor {
	display:none;
	font-size:0.9rem;
}

.eventpostfull-author {
	display:none;
	font-size:.9rem;
	margin:30px 0;
	text-align:left;
}


.eventpostevent {
	margin:30px 0;
}

.eventpostdate {
	margin:30px 0;
	display:none;
}

.eventpostcontact {
	margin:50px 0;
}



.eventposttext {
	line-height: 1.5em;
	color:#444;
	margin:5px 0px 0px 0px;
	padding: 0px;
	text-align: left ;
}


.eventpostmore {
	padding: 10px 0 0 0 ;
}


.backlink {
	font-weight:bold;
	text-decoration:underline;
}


ul.checklist li { background: none; padding-left: 0; }

/* CSS for checklists */
ul.checklist {
	border: 0px solid #ccc;
	list-style: none;
	overflow: auto;
	display: inline;
	padding: 0px 0px 0px 0px;
}
ul.checklist, ul.checklist li { 
	display:inline; 
	margin-left: 0; 
}


.actbutton {
	font-size:1.2rem;
	background-color:#fff;
	white-space:nowrap;
	border-radius:5px;
	color:#333;
	padding:0.4rem 1rem;
	width:fit-content;
	margin: 1rem auto;
 	cursor:pointer;
}


.actbutton:hover {
	background-color:#a1a;
}

.actbutton p {
	font-size:1.5rem;
	margin: 0;
	text-align:center;
}

#references .h2 {
	font-size:2.0rem;
	font-weight:normal;
	font-style:normal;
	margin: 1em 0 0.5em 0;
}


.floatr {
    float:right;
}

.floatl {
    float:left;
}


#references .h3 {
	font-size:1.0rem;
	font-weight:normal;
	font-style:normal;
	margin: 1em 0 0.5em 0;
}

#references .h4 {
	font-size:0.9rem;
	font-weight:normal;
	font-style:italic;
	margin: 0.5em 2em;
}

#references .hfirst {
	margin-top:0;
}


#references a {
	display:block;
	font-size:0.9rem;
	margin: 0;
	padding: 0 0 0 2em;
	line-height: 1.1em;
	text-decoration:none;
}


#pagefooter {
	background-color:#224;
	padding: 0;
	text-align:center;
	font-weight:bold;
	color:#fff;
}


/* The Modal (background) */
.modalbox {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 10000; /* Sit on top */
	left: 0;
	top: 0;
	margin:15%;
	width: 80%;
	height: 60%;
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modalcontent {
	background-color: #fefefe;
	margin: auto;
	padding: 3rem;
	border: 1px solid #888;
}

/* The Close Button */
.modelclose {
	color: #999;
	margin: 1rem;
	font-size: 28px;
 	cursor: pointer;
	font-weight: bold;
}

.modelclose:hover,
.modelclose:focus {
	color: #000;
	text-decoration: none;
}

.modalbox h1 {
	font-size:2.5rem;
}



@media screen and (max-width: 768px) {

html {
	font-size: 80%;
}


#header {
	align-items:center;
}

#flashboard {
	padding:4em 0 1em 0;
}

#flashboard h1 {
	font-size:4rem; 
}

.secbody {
	padding:3rem 2%;
}

.grid3x4x,
.grid4x3x,
.gridltoc,
.gridrtoc,
.secrow {
	display:block;
	margin:1rem;
}

.secitem {
	display: block;
	width:98%;
	margin: 0 auto;
	padding:0;
}

.article {
	column-count:1;
}

}
