/*
Theme Name: SCL Custom Theme
Theme URI: https://steelconstructionlearning.com/
Author: Lou Lutero
Description: A custom theme based on the SCL steel learning website
Version: 1.0
*/

/* =========================
   BASE
   ========================= */

body {
  font-family: "PT Sans", sans-serif!important;
  margin: 0;
  padding: 0;
  color: #111;
  background: #fff;
}

a {
  color: inherit;
}

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

/* =========================
   HEADER / MAIN NAV (Top bar)
   ========================= */

.site-header {
  background: #fff;

  position: relative;
  z-index: 100;
}

/* your wrapper from header.php */
.nav-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 0;
  display: block; /* fallback */
}

/* Use floats for max compatibility (no flex needed) */
.logo {
  float: left;
}

.logo a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* menu container */
.main-nav {
  text-align: center;
}

/* clear floats so header height is correct */
.nav-wrapper:after {
  content: "";
  display: block;
  clear: both;
}

/* WP menu ul */
.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block; /* allows center alignment */
}

/* menu items in a row */
.main-menu > li {
  display: inline-block;
  position: relative;
  margin: 0 8px; /* replaces gap */
  padding: 0;
  vertical-align: middle;
}

.main-menu > li > a {
  display: inline-block;
  text-decoration: none;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 6px;
}

/* hover text */
.main-menu > li:hover > a {
  color: #cc0a7a;
}

/* Active/current item text */
.main-menu > li.current-menu-item > a,
.main-menu > li.current_page_item > a,
.main-menu > li.current-menu-ancestor > a {
  color: #cc0a7a;
}

/* Pink block indicator - active */
.main-menu > li.current-menu-item:after,
.main-menu > li.current_page_item:after,
.main-menu > li.current-menu-ancestor:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: #cc0a7a;
}

/* Pink block indicator - hover */
.main-menu > li:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 10px;
  background: #cc0a7a;
}

/* =========================
   HERO (basic styling)
   ========================= */

.hero {
  padding: 70px 28px 90px;
  text-align: left;
  background: #0f1b26;
  color: #fff;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 300;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
	margin-right: 20px;
}
.btn-primary:last-child,
.btn-secondary:last-child {
margin-right: 0px;
}

.btn-primary {
	background: #cc0a7a;
	color: #fff;
	border: 2px solid #cc0a7a;
}


.btn-secondary {
  background: transparent;
  border: 2px solid #cc0a7a;
  color: #6d5dfc;
}

/* =========================
   MODULES & CERTIFICATIONS LANDING
   (modules-certification-landing.php)
   ========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.page-heading {
  margin: 10px 0 22px;
  font-size: 40px;
  font-weight: 500;
}

.section-heading {
  margin: 35px 0 16px;
  font-size: 20px;
  font-weight: 600;
}

/* Featured Intro Card */
.featured-module {
  margin-top: 10px;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Make featured look like reference: image left, content right */
.featured-card:after {
  content: "";
  display: block;
  clear: both;
}

.featured-card .module-thumb {
  float: left;
  width: 62%;
  text-decoration: none;
}

.featured-card .module-content {
  float: left;
  width: 38%;
  padding: 18px 20px 20px;
  box-sizing: border-box;
}

.thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

.thumb-fallback {
  width: 100%;
  height: 260px;
  background: #eee;
}

/* Text blocks */
.module-meta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 8px;
}

.module-title {
  margin: 0 0 10px;
  font-weight: 600;
}

.module-title a {
  color: #111;
  text-decoration: none;
}

.module-title a:hover {
  color: #cc0a7a;
}

.module-excerpt {
  margin: 0 0 14px;
  color: #444;
  line-height: 1.6;
}

/* Footer row */
.module-footer {
  margin-top: 10px;
}

.module-code {
  display: inline-block;
  font-size: 12px;
  color: #666;
  margin-right: 10px;
}

.module-cta {
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  color: #cc0a7a;
  font-weight: 600;
}

/* Grid */
.module-grid {
  margin-top: 18px;
}

/* float grid */
.module-grid:after {
  content: "";
  display: block;
  clear: both;
}

.module-card {
  float: left;
  width: 31.3%;
  margin-right: 3%;
  margin-bottom: 18px;

  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.module-card:nth-child(3n) {
  margin-right: 0;
}

.module-card .module-thumb {
  display: block;
  text-decoration: none;
}

.module-card .thumb-fallback {
  height: 180px;
}

.module-card .module-content {
  padding: 14px 16px 16px;
  box-sizing: border-box;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  /* nav */
  .logo {
    float: none;
    text-align: center;
    margin-bottom: 10px;
  }

  .main-menu > li {
    margin: 6px 12px;
  }

  .main-menu > li.current-menu-item:after,
  .main-menu > li.current_page_item:after,
  .main-menu > li.current-menu-ancestor:after,
  .main-menu > li:hover:after {
    bottom: -10px;
    height: 8px;
  }

  /* featured card stacks */
  .featured-card .module-thumb,
  .featured-card .module-content {
    float: none;
    width: 100%;
  }

  .thumb-fallback {
    height: 200px;
  }

  /* grid -> single column */
  .module-card {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .page-heading {
    font-size: 30px;
  }
}

/*************media queries for columns**************/
@media screen and (min-width: 600px) {
.d-grid-1 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

}
@media (min-width: 1024px) {
.d-grid-desktop-2 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}
	
.d-grid-desktop-2-6-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 2fr 1fr;
}	
	
.d-grid-desktop-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

	
.d-grid-desktop-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
}
}

/*************media queries for columns**************/









/***************FONTS*************************/
.pt-sans-regular {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-bold {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.pt-sans-regular-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.pt-sans-bold-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}








@media screen and (min-width: 600px) {
html {
    font-size: 32px;
}
}

@media (min-width: 1024px) {
html {
    font-size: 16px;
}
}



h1 {
    font-size: 3rem;
	margin-top: .5rem;
	margin-bottom: .5rem;
	line-height: 1.1;
}
h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    font-weight: normal;
}
h3 {
    font-size: 1.5rem;
	margin-top: .25rem;
	margin-bottom: .25rem;
	line-height: 1.3;
}
h4 {
	font-size: 1rem;
	margin-top: .25rem;
	margin-bottom: .25rem;
	line-height: 1.4;
}

body{
    font-size: 1rem;
	line-height: 1.4;
} 











/************menu only**************************/
@media screen and (max-width: 700px) {
.menu-button:checked+nav.main-nav {
    display: block!important;
    position: fixed;
    top: 76px;
    z-index: 3300;
    background: white;
    width: 80%;
    right: 10px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px #000000;
}

.main-nav li {
    display: block!important;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 8px 0;
}

.nav-wrapper {
    padding: 0 1rem;
}

.menu-left, .menu-right {
    width: 100%;
    display: block;
}

.main-menu {
    width: 100%;
    display: block!important;
}

.main-menu > li.current-menu-item:after, .main-menu > li.current_page_item:after {
    display: none;
}

.menu-button {
    width: 60px;
    height: 70px;
    background: red;
    right: 0;
    position: fixed;
    top: 0;
    outline: none;
    border: none;
    margin: 0;
    appearance: none;
    z-index: 2000;
}

.nav-wrapper {
    position: fixed;
    z-index: 2000;
    background: white;
    width: 100%;
    height: 70px;
    padding-top: 14px;
    top: 0;
}
	nav.main-nav {
    display: none;
}
}


/*********************************************/