/* ====== GLOBAL ====== */
body {
  font-family: 'PT Sans', sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ====== NAVIGATION ====== */
.site-header {
  background: #f9f9f9;

}

/* ====== FINAL NAVIGATION FIX (CLEAN SINGLE ROW) ====== */

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-left ul,
.menu-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-right li,
.menu-left ul li {
  list-style: none;
}

.menu-right li a,
.menu-left ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: block;
  white-space: nowrap;
}

.menu-right li a:hover,
.menu-left ul li a:hover {
  color: #cc0074;
}

/* Cart icon spacing fix */
.menu-cart a,
.menu-cart button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Optional: shrink spacing on smaller screens */
@media screen and (max-width: 1024px) {
  .nav-wrapper {
    flex-wrap: wrap;
  }

  .menu-left,
  .menu-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ====== HERO SECTION ====== */

.buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.primary {
  background: #C90084;
  color: #fff;
}

.secondary {
  /*border: 2px solid #6c63ff;*/
  background: #ffffff;
  color: #3A3A3A;
}

/* ====== PAGE TITLE ====== */
.page-title {
  background-color: #f3f3f3;
  padding: 3rem 0;
  text-align: center;
}

.page-title h1 {
  font-size: 2rem;
  margin: 0;
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

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

/* ====== ARTICLES PAGE ====== */
.page-heading {
  font-size: 2rem;
  margin: 1rem 0;
}

.latest-articles,
.popular-articles {
  margin-bottom: 3rem;
}

.latest-articles h2,
.popular-articles h2 {
  margin-bottom: 1rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.article-card {
  display: flex;
  gap: 1rem;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
}

.article-card.vertical {
  flex-direction: column;
  align-items: flex-start;
}

.article-card.horizontal {
  flex-direction: row;
  align-items: flex-start;
}

.thumb-placeholder {
  width: 100px;
  height: 100px;
  background-color: #ccc;
  border-radius: 4px;
  flex-shrink: 0;
}

.article-info h3 {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.article-info small {
  color: #777;
  font-size: 0.85rem;
}

/* ====== ABOUT/CONTACT LAYOUT ====== */
.about-contact-content {
  background-color: #fff;
}

.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.column-left {
  flex: 2;
  min-width: 300px;
}

.column-right {
  flex: 1;
  min-width: 280px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

/* ====== VIDEO PLACEHOLDER ====== */
.video-placeholder {
  background-color: #ddd;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  margin: 1.5rem 0;
}

/* ====== FORM STYLES ====== */
.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact-box .btn-submit {
  background-color: #222;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-box .btn-submit:hover {
  background-color: #444;
}

.consent-note {
  font-size: 0.85rem;
  color: #666;
}

/* ====== CERTIFICATION GRID ====== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-box {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
}

/* ====== AUTHOR SECTION (JOHN DOE) ====== */
.about-section {
  background: #2c5c66;
  color: #fff;
  padding: 2rem 0;
}

.about {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.profile-pic {
  width: 25%;
  background: #ccc;
  border-radius: 6px;
}

.profile-text {
  flex: 1;
}
section.author.about-section {
    background: linear-gradient(191deg,#16181a 0%, rgba(58, 62, 102, 1) 100%);
    position: relative;
    
}
section.author.about-section:before {
    content:"";
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    background-image: url(/wp-content/uploads/2026/02/pattern.png);
    opacity:.25;
    filter:invert brightness(2);
}
section.author.about-section>div{
    position: relative;
}
/* ====== HOW IT WORKS ====== */

@media only screen and (max-width: 600px) {
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;

}
.main-nav{
    overflow:hidden;
}

section.author.about-section>div {
    gap: 0;
    display: block;
}

section.author.about-section>div>div {
    display: block;
    width: 100%;
    margin-bottom: 2rem;
    
}


.profile-pic>img {
  width: 100%; /* Can be responsive (e.g., 25% for a grid) */
  aspect-ratio: 1 / 1; /* Forces the height to equal the width */
  object-fit: cover; /* Ensures the image fills the space without distortion */
  object-position: top;
}



    
}
@media only screen and (min-width: 600px) {
.cert-grid, .four-col-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.4rem;
}
   .two-col-desktop {
       display: grid;
       grid-template-columns: 1fr 3fr;
       gap: 1.4rem;
   } 
    
.cert-grid, .two-col-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}
   .two-col {
       display: grid;
       grid-template-columns: 1fr 3fr;
       gap: 1.4rem;
   } 
}



   .two-col {
       display: grid;
       grid-template-columns: 1fr 3fr;
       gap: 1.4rem;
   } 
}


/* ====== TRUSTED COMPANIES ====== */
.trusted {
  text-align: center;
}

.trusted h2 {
  margin-bottom: 1.5rem;
}

.trusted-logos {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.logo-box {
  width: 100px;
  height: 60px;
  background: #ddd;
  border-radius: 4px;
}

/* ====== TESTIMONIALS ====== */
.testimonials blockquote {
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 2rem;
}

.testimonials .author {
  text-align: center;
  color: #555;
}

/* ====== CTA SECTION ====== */
.cta-section {
  background-color: #f3f3f3;
  padding: 2rem 0;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-row p {
  font-weight: 600;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
}

.btn-primary {
  background-color: #cc0a7a;
  color: white;
}

.btn-primary:hover {
  background-color: #cc0a7a;
}

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

.btn-secondary:hover {
  background-color: #6c63ff;
  color: white;
}

/* ====== MODULES & CERTIFICATION PAGE ====== */
.filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.featured-card .module-thumb {
  width: 100%;
  height: 180px;
  background: #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.featured-card .module-content h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: #f8f8f8;
  border-radius: 6px;
  overflow: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.module-card .module-thumb {
  width: 100%;
  height: 120px;
  background-color: #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.module-content h4 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.module-content small {
  font-size: 0.75rem;
  color: #777;
}

.module-code {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  margin-top: 1rem;
  color: #999;
}

.hero {
    background: url(https://steelconstructionlearning.com/wp-content/uploads/2026/03/steel-detail-hero-1.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero:before {
    content: " ";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(
256deg, rgba(204, 10, 122, .6) 0%, rgb(18 22 57) 59%);
    position: absolute;
}

.hero>div {
    position: relative;
}