/*!
Theme Name: microcerts
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: microcerts
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

microcerts is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

:root {
	--accent-color: 56, 62, 222;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

p, li, a {
	font-family: Inter, Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5 {
	font-family: DM Serif Display;
	line-height: 1.2;
}

h2 {
	font-size: 3rem;
}

.site-info {
	display: none;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	background: #fafafa !important;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2rem;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
    margin-top: 1rem;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.125rem;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 0;
}

ul {
	list-style: none;
}

ol {
	list-style: decimal;
}

li {
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

#site-navigation {
	float: right;
	max-width: 600px;
	margin-top: 1.6rem;
	margin-right: 3rem;
}

.site-branding {
	float: left;
}

#primary-menu {
    display: flex;
    justify-content: flex-end;
}

#primary-menu ul {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex; 
}

#primary-menu li {
    margin-left: 1.5rem;
	border-radius: 4px;
}

.nav-menu li a {
	color: white;
	margin-top: 0.5rem;
}

#menu-item-19 a, .menu-item-login a {
	border-radius: 4px;
	border: 1px solid white;
	padding: 0.5rem 1rem !important;
	margin: 0 !important;
}

.nav-menu li a:hover {
	color: #e0e0ff;
}

#menu-item-19 a:hover, .menu-item-login a:hover {
	color: white;
	background-color: rgba(0,0,0,0.1);
}

.menu-item-profile {
	background-color: white;
    border: 2px solid white;
}

.menu-item-profile a {
	margin: 0 !important;
	padding: 0.5rem 1rem !important;
	color: black !important;
}

.menu-item-profile:hover {
	background-color: #f2f2fc !important;
}

.site-title {
	margin-top: 1.4rem;
	margin-left: 3rem;
}

.site-title a {
	font-family: DM Serif Display;
	font-weight: 700;
	text-decoration: none;
	font-size: 2rem;
	color: white;
}

header {
	height: 6rem;
	background-color: rgb(var(--accent-color));
}

.page-header, .entry-header {
	display: none;
}

.category-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 6px;
	padding-left: 3rem;
	padding-top: 10px;
	background-color: white;
}

.category-label {
    display: flex;
    align-items: center;
	position: relative;
    padding-bottom: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 8px;
    cursor: pointer;
    transition: color 0.25s ease;
}

.category-item:hover {
    color: #3f47f4;
}

.category-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 5px;
    width: 0;
    background: #3f47f4;
    transition: width 0.3s ease;
}

.category-item.active {
    color: #3f47f4;
    font-weight: 600;
}

.category-item.active .category-underline {
    width: 100%;
}

#selected-category {
	font-size: 42px;
    margin-bottom: 15px;
    min-height: 1em;
}

/* Course animation */
.course-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-item.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
}

#courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 316px);
    gap: 24px;
    justify-content: start;
}

.course-card {
    width: 316px;
    height: 400px;
    background: white;
    border: 1px solid #a3a3a3;
    display: flex;
    flex-direction: column;
    padding: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-image {
    width: 300px;
    height: 200px;
    margin: 0 auto 12px auto;
}

.course-image img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0.25rem;
}

.course-category {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 4px;
}

.course-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.course-description {
    font-size: 14px;
    margin-bottom: 8px;
    flex-grow: 1;
}

.course-tags {
    font-size: 14px;
    color: #999;
}

.course-admin-form {
    max-width: 700px;
}

.form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.course-admin-form input[type="text"],
.course-admin-form select,
.course-admin-form textarea,
.course-admin-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}

.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.tag-option {
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submit-button {
    background: #3f47f4;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
}

.auth-panel {
    max-width: 800px;
    margin: 80px auto;
    background: #fff;
    border: 1px solid #a3a3a3;
    padding: 40px;
}

.auth-form .form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}

.auth-form button {
    background: #3f47f4;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    width: fit-content;
}

.auth-switch {
    margin-top: 25px;
    font-size: 14px;
}

.auth-switch a {
    color: #3f47f4;
    text-decoration: none;
}

#password-match-message {
    font-size: 13px;
    margin-top: 4px;
}

.match {
    color: green;
}

.no-match {
    color: red;
}

.content-container {
	max-width: 1400px;
	margin: 5rem auto;
}

/* --- Homepage Hero Section --- */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; 
}

.home-hero-left {
  position: relative;
  flex: 1 1 400px; 
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  display: inline-block;
}

.custom-video {
  width: 90%;
  height: auto;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  z-index: 2;
  position: relative;
  display: block;
  border-radius: 4px;
}

.video-offset-shadow {
  position: absolute;
  top: 20px;   
  left: 20px;  
  width: 90%;
  height: 100%;
  background-color: rgb(var(--accent-color));
  z-index: 1;
  border-radius: 4px; 
  transform: rotate(-1deg); 
}

/* Right side text */
.home-hero-right {
  flex: 1 1 300px;
  max-width: 50%;
}

.home-hero-right h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

span.highlight {
	font-style: italic;
	color: rgb(var(--accent-color));
}

.home-hero-right span.highlight {

	font-weight: 800;
}

.home-hero-right p {
  font-size:  0.9375rem;
  color: #6B6B6B;
  border-left: 2px solid rgb(var(--accent-color));
  padding-left: 1rem;
}

ul {
	padding: 0;
}

.home-hero ul > li::before {
  content: "";
  display: inline-block;
  height: 20px; 
  width: 20px;  
  background-image: url("https://foleywebstaging.com/wp-content/uploads/check.png");
  background-size: cover; 
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: rgb(var(--accent-color));
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  color: white !important;
  background-color: #464cdb;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/*About Us/Contact Us*/

div.about-us, div.contact-us {
	max-width: 800px;
}

.about-us p, .contact-us p {
	font-size:  0.9375rem;
	color: #6B6B6B;
	border-left: 2px solid rgb(var(--accent-color));
	padding-left: 1rem;
}

.about-us img {
	box-shadow: 0.3rem 0.5rem rgba(var(--accent-color));
	border-radius: 0.25rem;
}

.about-us ul > li::before {
  content: "";
  display: inline-block;
  height: 20px; 
  width: 20px;  
  background-image: url("https://foleywebstaging.com/wp-content/uploads/check.png");
  background-size: cover; 
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
}

label {
    color: #909090;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input, textarea {
	margin-bottom: 1rem;
	border: 1px solid rgb(var(--accent-color)) !important;
	padding: 0.5rem !important;
	border-radius: 0.25rem !important;
}

input:focus, textarea:focus {
	outline: 2px solid rgb(var(--accent-color)) !important;
  	outline-offset: 0px;
}

button[type="submit"] {
	cursor: pointer;
}

.form-status--success {
  color: #2E7D32 !important;
}

.form-status--error {
  color: #C62828 !important;
}

/* Edit courses */
.edit-container {
	max-width: 1600px;
	margin: 5rem auto;
	display: flex;
	justify-content: space-between;
}

.edit-left-half {
	width: 35%;
}

.edit-right-half {
	width: 60%;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c8c8c8;
}

.courses-table th {
    font-size: 0.8rem;
    font-weight: 400;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.courses-table th,
.courses-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid #c8c8c8;
}

.courses-table td {
	font-size: 0.875rem;
}

.courses-table thead tr {
    background: #ffffff;
}

.courses-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.courses-table tbody tr:nth-child(even) {
    background: #ededfc;
}

.courses-table td.status-disabled {
    color: #C62828;
    font-weight: 500;
}

.btn-delete, .btn-disable, .btn-enable {
	font-size: 0.75rem;
}

.courses-table .btn-delete {
    background: #C62828;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.courses-table .btn-delete:hover {
    background: #9B1C1C;
}

.courses-table .btn-disable {
    background: #ffffff;
    color: #C62828;
    border: 1px solid #C62828;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.courses-table .btn-disable:hover {
    background: #f5f5f5;
}

.courses-table .btn-enable {
    background: #ffffff;
    color: #2E7D32;
    border: 1px solid #2E7D32;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.courses-table .btn-enable:hover {
    background: #f5f5f5;
}


/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .home-hero-left,
  .home-hero-right {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .home-hero {
    padding: 2rem 1rem;
  }
  .home-hero-right h1 {
    font-size: 2rem;
  }
  .home-hero-right p {
    font-size: 1rem;
  }

  /* Reset the offset shadow tilt on mobile for alignment */
  .video-offset-shadow {
    top: 15px;
    left: 15px;
    transform: rotate(0deg);
  }
}

/* Hide controls when video starts playing */
.custom-video::-webkit-media-controls {
  display: none !important;
}

/* -------------------------------------------------------
   Course card CTA button (add to existing .course-card styles)
------------------------------------------------------- */

.course-card {
    height: auto;
    min-height: 400px;
    justify-content: space-between;
    border-radius: 0.25rem;
}

.course-card-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 0.6rem 1rem;
    background-color: rgb(var(--accent-color));
    color: white !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.course-card-cta:hover {
    background-color: #464cdb;
    color: white !important;
    transform: translateY(-1px);
}

.course-card-cta:visited {
    color: white !important;
}

/* -------------------------------------------------------
   Single course page
------------------------------------------------------- */

.single-course-container {
    max-width: 1400px;
    margin: 4rem auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: rgb(var(--accent-color));
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    color: rgb(var(--accent-color));
}

.back-link:visited {
    color: rgb(var(--accent-color));
}

.single-course-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar */
.single-course-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 2rem;
}

.single-course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 1.5rem;
}

.single-course-meta {
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.single-course-meta-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.875rem;
}

.single-course-meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #909090;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.875rem;
    color: #333;
    font-weight: 500;
}

.course-tags-inline {
    font-weight: 400;
    color: #666;
}

/* CTA box */
.single-course-cta-box {
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 1.25rem;
    text-align: center;
}

.cta-purchase,
.cta-login-prompt {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.cta-purchase[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cta-purchase[disabled]:hover {
    background-color: rgb(var(--accent-color));
    transform: none;
    box-shadow: none;
}

.cta-note {
    font-size: 0.75rem;
    color: #909090;
    margin-top: 0.75rem;
    margin-bottom: 0;
    border: none;
    padding: 0;
}

/* Main content area */
.single-course-main {
    flex: 1;
    min-width: 0;
}

.single-course-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.single-course-description p {
    border-left: 2px solid rgb(var(--accent-color));
    font-size: 0.9375rem;
    color: #6b6b6b;
    line-height: 1.7;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Not found */
.single-course-not-found {
    margin: 5rem auto;
    max-width: 500px;
    text-align: center;
}

.single-course-not-found p {
    color: #6b6b6b;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .single-course-layout {
        flex-direction: column;
    }

    .single-course-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .single-course-title {
        font-size: 1.75rem;
    }
}

/* -------------------------------------------------------
   Add to style.css — CTA owned state + video embed
------------------------------------------------------- */
 
/* "You have access" confirmation state in the CTA box */
.cta-owned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f0faf1;
    border: 1px solid #2E7D32;
    border-radius: 4px;
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.9375rem;
}
 
.cta-owned-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #2E7D32;
}
 
/* Purchase form inside cta-box — remove default form margins */
.single-course-cta-box form {
    margin: 0;
    padding: 0;
}
 
.single-course-cta-box .cta-purchase {
    width: 100%;
    display: block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    margin: 0;
}
 
/* Video embed section */
.single-course-video {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}
 
.single-course-video-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
 
/* 16:9 responsive iframe wrapper */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
 
.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-container {
    max-width: 900px;
}
 
.profile-heading {
    margin-bottom: 0.25rem;
}
 
.profile-username {
    font-size: 0.9375rem;
    color: #6b6b6b;
    margin-bottom: 2.5rem;
    border-left: 2px solid rgb(var(--accent-color));
    padding-left: 0.75rem;
}
 
.profile-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
 
.profile-section {
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 1.5rem;
}
 
.profile-section--full {
    grid-column: 1 / -1;
}
 
.profile-section-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}
 
.profile-current-value {
    font-size: 0.875rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
}
 
.profile-form .form-field {
    margin-bottom: 1rem;
}
 
.profile-form .cta-button {
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    padding: 0.6rem 1.25rem;
}
 
.profile-no-courses {
    font-size: 0.9375rem;
    color: #6b6b6b;
}
 
.profile-no-courses a {
    color: rgb(var(--accent-color));
}
 
/* "View Course" link styled as a small button */
.btn-view-course {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgb(var(--accent-color));
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
 
.btn-view-course:hover {
    background: #464cdb;
    color: #ffffff !important;
}
 
.course-unavailable {
    font-size: 0.75rem;
    color: #909090;
}
 
/* Responsive */
@media (max-width: 680px) {
    .profile-sections {
        grid-template-columns: 1fr;
    }
 
    .profile-section--full {
        grid-column: 1;
    }
}

.form-mode-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
 
.form-mode-header h2 {
    margin: 0;
}
 
.cancel-edit-link {
    font-size: 0.8125rem;
    color: rgb(var(--accent-color));
    text-decoration: none;
    white-space: nowrap;
}
 
.cancel-edit-link:hover {
    text-decoration: underline;
}
 
/* Row highlighted while being edited */
.courses-table tbody tr.row-editing {
    outline: 2px solid rgb(var(--accent-color));
    outline-offset: -2px;
}
 
/* Edit button */
.courses-table .btn-edit {
    background: #ffffff;
    color: rgb(var(--accent-color));
    border: 1px solid rgb(var(--accent-color));
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
}
 
.courses-table .btn-edit:hover {
    background: #f0f0fe;
}
 
/* Current image preview in edit mode */
.current-image-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
 
.current-image-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
    border: none !important;
}
 
.current-image-note {
    font-size: 0.75rem;
    color: #909090;
    line-height: 1.4;
}
 
.label-optional {
    font-weight: 400;
    color: #909090;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

#form-heading {
    margin: 28px 0;
}

.content-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
 
@media (min-width: 900px) {
    .content-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
 
/* ---------------------------------------------------------------
   Global: h2 scale-down
--------------------------------------------------------------- */
@media (max-width: 600px) {
    h2 {
        font-size: 2rem;
    }
}
 
/* ---------------------------------------------------------------
   Header / navigation
--------------------------------------------------------------- */
@media (max-width: 600px) {
    header {
        height: auto;
        padding: 0.75rem 0;
    }
 
    .site-title {
        margin-top: 0.5rem;
        margin-left: 1rem;
        margin-bottom: 0.25rem;
    }
 
    .site-title a {
        font-size: 1.5rem;
    }
 
    #site-navigation {
        float: none;
        margin: 0.25rem 1rem 0.5rem 1rem;
        max-width: 100%;
    }
 
    /* When the hamburger is toggled, stack items vertically */
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
 
    .main-navigation.toggled ul li {
        margin-left: 0;
    }
 
    /* Keep the login/profile pill readable when stacked */
    #menu-item-19 a,
    .menu-item-login a,
    .menu-item-profile a {
        display: inline-block;
    }
}
 
/* ---------------------------------------------------------------
   Category row — allow horizontal scroll on very small screens
   and reduce the left indent.
--------------------------------------------------------------- */
@media (max-width: 768px) {
    .category-row {
        padding-left: 1rem;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Prevent the scrollbar from eating layout space */
        scrollbar-width: none;
    }
 
    .category-row::-webkit-scrollbar {
        display: none;
    }
}
 
/* ---------------------------------------------------------------
   Courses grid + cards
--------------------------------------------------------------- */
 
/* Below 900px: allow the grid to shrink cards to fill the space */
@media (max-width: 900px) {
    #courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
 
    .course-card {
        width: 100%;
    }
 
    .course-image,
    .course-image img {
        width: 100%;
    }
}
 
/* Below 600px: single column, full-width cards */
@media (max-width: 600px) {
    #courses-grid {
        grid-template-columns: 1fr;
    }
 
    .course-card {
        width: 100%;
    }
 
    .course-image,
    .course-image img {
        width: 100%;
        height: 180px;
    }
 
    #selected-category {
        font-size: 1.75rem;
    }
}
 
/* ---------------------------------------------------------------
   Auth panel (log-in / sign-up pages)
--------------------------------------------------------------- */
@media (max-width: 600px) {
    .auth-panel {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}
 
/* ---------------------------------------------------------------
   Edit courses — stack form and table vertically on medium screens
--------------------------------------------------------------- */
@media (max-width: 900px) {
    .edit-container {
        flex-direction: column;
        margin: 2rem 1rem;
    }
 
    .edit-left-half,
    .edit-right-half {
        width: 100%;
    }
 
    /* Give the table horizontal scroll rather than overflowing */
    .edit-right-half {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
 
/* ---------------------------------------------------------------
   Profile page — already has a 680px breakpoint for the grid,
   but needs side breathing room and table scroll on small screens.
--------------------------------------------------------------- */
@media (max-width: 600px) {
    .profile-container {
        padding-left: 0;
        padding-right: 0;
    }
 
    .profile-courses-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
 
/* ---------------------------------------------------------------
   Single course page — supplement the existing 768px breakpoint
--------------------------------------------------------------- */
@media (max-width: 600px) {
    .single-course-title {
        font-size: 1.5rem;
    }
 
    .single-course-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.single-course-long-description p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #404040;
}