﻿body { background: url('/images/pattern1.png') repeat; }

/* Blog layout */
#blogleft {
  width: 71%;
  float: left;
}
@media screen and (max-width: 1336px) {
  #blogleft { margin-left: 1%; }
}
@media screen and (max-width: 1260px) {
  #blogleft { width: 68%; margin-left: 2%; }
}
@media screen and (max-width: 1012px) {
  #blogleft { float: none; width: 100%; max-width: 500px; margin: 0 auto; }
}

#content { display: block; left: 0; float: none; width: 100%; margin: 0 auto; position: relative; padding-bottom: 0; }
#primary { border-right: 0 solid #ebebeb; }
#main { padding: 30px 0 60px 0; margin-top: 0; width: 100%; min-width: 100%; }
@media screen and (max-width: 1650px) { #main { padding: 30px 0 50px 0; } }
@media screen and (max-width: 1260px) { #main { padding: 30px 0 40px 0; } }
@media screen and (max-width: 1012px) { #main { padding: 50px 0 20px 0; } }

/* Sidebar */
#sidebar {
  margin: 15px 0 0 0;
  padding: 0;
  position: relative !important;
  float: right;
  margin-right: 0;
  width: 254px;
  background: none;
  text-align: left;
  top: 0 !important;
}
#sidebar a { display: block; line-height: 26px; color: #f7232b; text-decoration: underline; font-weight: normal; }
#sidebar a:hover { text-decoration: underline; }
.widget { padding: 0 0 200px 0 !important; width: 100%; margin-bottom: 0; position: relative; }
.widget-title { color: #000 !important; font-family: "Oswald", sans-serif; margin: 0 0 0 0; background: none; width: 100%; text-align: left; text-transform: none; line-height: 50px; font-size: 24px; letter-spacing: 0; }
.widget { line-height: 22px; }
.widget ul { width: 90%; }
.widget li { padding: 0; margin-left: 0; margin-bottom: 7px; list-style-type: none; color: #f7232b; border: 0; }
.widget li a { font-size: 14px; text-decoration: none !important; line-height: 18px !important; position: relative; z-index: 10; display: block; }
.widget li a:hover { color: #005f9c !important; }
@media screen and (max-width: 1260px) {
  #sidebar { margin-right: 2%; width: 224px; }
}
@media screen and (max-width: 1012px) {
  .sitewidthblogbody { display: flex; flex-direction: column; }
  #blogleft { order: 1; }
  #sidebar { order: 0; padding: 0; position: relative !important; margin: 0 auto; width: 100%; margin-right: 0; }
  #secondary { padding: 0; background: none; margin-top: 10px !important; }
  .widget { padding: 0 0 20px 0 !important; margin-bottom: 30px; text-align: left; }
  .widget-title { margin: 0 0 14px 0; text-align: left; }
  .widget ul { width: 100%; }
  .widget li { list-style-type: none; }
}

/* Subscribe widget */
#s2_form_widget-2 br, label[for="s2email"] { display: none; }
#s2_form_widget-2 .search, #s2_form_widget-2 .s2_message { font-size: 14px !important; line-height: 20px; }
#s2_form_widget-2 form p { margin: 0; padding: 0; }
#s2_form_widget-2 input[type="email"] { border: 1px solid #ddd; background: #fafafa; width: 100%; box-sizing: border-box; padding: 9px; box-shadow: 0 0 3px rgba(0,0,0,0.1); line-height: normal; margin-top: 20px; font-size: 16px !important; }
#s2_form_widget-2 input[type="submit"] { display: block; background: #d9272e; width: 140px; height: 55px; font-size: 25px; line-height: 53px; font-family: "Oswald", sans-serif; color: #fff !important; font-weight: normal; text-decoration: none !important; padding: 0; text-align: center; border-radius: 2px; float: right; margin: 10px 0 20px 0; text-transform: capitalize; cursor: pointer; border: none; }
#s2_form_widget-2 input[type="submit"]:hover { background: #f83c43 !important; }

/* Post listing */
.category-title { font-family: "Oswald", Georgia, serif; font-size: 36px; font-weight: 400; color: #999; text-align: center; margin: 0 0 30px 0; padding: 0; }
@media screen and (max-width: 768px) { .category-title { font-size: 26px; margin-bottom: 20px; } }
.homeposts { width: 100%; height: 400px; display: block; margin: 0 0 29px 0; position: relative; overflow: hidden; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); clear: both; }
.homeposts .post { border: 0; box-shadow: none; width: 100%; height: 100%; position: relative; background: #fff; padding: 0 !important; margin: 0 !important; display: block; }
.homeposts .bgpostleft { width: 35%; height: 100%; display: block; float: left; background-repeat: no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.homeposts .bgpostright { width: 65%; height: 100%; text-align: left; position: relative; display: block; float: right; }
.homeposts .bgpostleft:hover { opacity: .94; }
.homeposts .brightpad { padding: 35px 8% 0 8%; }
.homeposts .post a.bgposttitle { display: block; z-index: 2; color: #d9272e !important; font-size: 24px; line-height: 30px; font-family: "Oswald", sans-serif; text-decoration: none !important; font-weight: 400; padding-bottom: 0; margin-bottom: 0; }
.homeposts .post a.bgposttitle:hover { color: #005f9c !important; }
.homeposts .post span.adate { display: block; font-size: 14px; color: #000; line-height: 17px; }
.homeposts .post span.adate a { font-size: 14px !important; color: #000 !important; text-decoration: none !important; font-weight: normal; }
.homeposts .post span.adate a:hover { color: #d9272e !important; }
.homeposts .post span.adate span { padding-left: 6px; padding-right: 6px; }
.homeposts .post span.aexcerpt { display: block; font-size: 16px; line-height: 23px; color: #000; font-weight: 400; position: relative; padding-top: 15px; clear: both; }
.homeposts .bgpostread { display: inline-block; line-height: 40px; height: 40px; text-decoration: none !important; font-family: "Oswald", sans-serif; color: #fff !important; text-align: center; width: 100px; font-size: 15px; font-weight: 400; margin-top: 18px; z-index: 21; position: relative; background: #d9272e; }
.homeposts .bgpostread:hover { background: #f83c43; color: #fff !important; }
.homeposts .post span.abottom { display: block; position: absolute; bottom: 0; height: 56px; width: 100%; background: #f2f2f2; text-align: center; line-height: 56px; z-index: 20; color: #000; font-size: 14px; }
.homeposts .post span.abottom span { padding: 0 8%; }
.homeposts .post span.abottom span a { font-size: 14px; text-decoration: none; font-weight: normal; }
.homeposts .post span.abottom span a:hover { text-decoration: underline !important; }

@media screen and (max-width: 1260px) {
  .homeposts { height: 420px; }
}
@media screen and (max-width: 1012px) {
  .homeposts { height: auto; margin: 0 0 35px 0; }
  .homeposts .bgpostleft { width: 100%; float: none; height: 240px; }
  .homeposts .bgpostright { width: 100%; float: none; height: auto; }
  .homeposts .brightpad { padding: 25px 8% 0 8%; }
  .homeposts .post a.bgposttitle { font-size: 28px; line-height: 28px; padding-bottom: 5px; }
  .homeposts .post span.aexcerpt { font-size: 16px; line-height: 21px; padding-top: 15px; }
  .homeposts .post span.abottom { position: relative; bottom: inherit; margin-top: 25px; line-height: 16px; height: auto; padding-top: 16px; padding-bottom: 16px; }
}
@media screen and (max-width: 767px) {
  .homeposts .bgpostleft { height: 140px; }
  .homeposts .post a.bgposttitle { font-size: 24px; line-height: 28px; }
}

/* Share buttons */
.bgsocial { display: flex; align-items: center; margin-top: 8px; clear: both; }
.bgsocial > span { font-size: 14px; margin-right: 6px; color: #555; line-height: 20px; flex-shrink: 0; }
.bgsocial .shareaholic-share-buttons-heading { display: none !important; }
.bgsocial .shareaholic-canvas { line-height: 0; }
.bgsocial .shareaholic-share-buttons-wrapper { line-height: 0; }
@media screen and (max-width: 1012px) {
  .bgsocial { margin-top: 6px; }
  .homeposts .post span.aexcerpt { clear: none; }
}

/* Pagination */
.pagination { text-align: right; margin-top: 10px; margin-bottom: 20px; cursor: default; }
.pagination h2 { display: none; }
.page-numbers { display: inline-block; padding: 5px 10px !important; margin: 0 2px 0 0 !important; background: #f7232b; color: #fff !important; border: 1px solid #df0810 !important; font-size: 20px; line-height: 20px; text-decoration: none !important; font-weight: 400 !important; font-family: "Oswald", sans-serif; transition: 0.1s; }
.page-numbers.dots { background: none; border: 0 !important; color: #f7232b !important; padding: 0 !important; font-weight: 700 !important; }
.page-numbers.current { background: #fff !important; color: #f7232b !important; cursor: default; }
a.page-numbers:hover { background: #f84a51; color: #fff !important; }
@media screen and (max-width: 1012px) { .pagination { margin-bottom: 40px; } }
@media screen and (max-width: 767px) { .pagination { text-align: center; } }

/* Hero box1 */
#homecontainer #box1 {
  background: url(/learn/wp-content/themes/diy-img/images/headerbg.png);
  background-position: center top;
  height: 446px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 100% auto;
  position: relative;
}
#homecontainer #box1 .sitewidth { width: 400px; }
#homecontainer #box1 h1 { font-family: "Oswald", sans-serif; text-transform: uppercase; color: #000; font-size: 85px; line-height: 85px; font-weight: 700; text-align: center; padding-top: 280px; letter-spacing: 0; padding-bottom: 6px; }
#homecontainer #box1 p { font-family: "Lato", sans-serif; font-size: 17px; text-align: center; color: #000; line-height: 24px; }
@media screen and (max-width: 1890px) { #homecontainer #box1 { background-position: center 20px; height: 410px; } #homecontainer #box1 h1 { padding-top: 260px; } }
@media screen and (max-width: 1650px) { #homecontainer #box1 { height: 372px; } #homecontainer #box1 h1 { padding-top: 230px; } }
@media screen and (max-width: 1260px) { #homecontainer #box1 { background-position: center 50px; height: 352px; } #homecontainer #box1 h1 { padding-top: 210px; } }
@media screen and (max-width: 1012px) {
  #homecontainer #box1 { height: auto; padding-top: 90px; padding-bottom: 20px; background: url(/images/bg1.jpg) center center no-repeat; background-size: cover; position: relative; }
  #homecontainer #box1:before { content: ''; display: block; background: rgba(0,95,156,0.85); position: absolute; height: 100%; width: 100%; top: 0; left: 0; }
  #homecontainer #box1 .sitewidth { position: relative; z-index: 1; }
  #homecontainer #box1 h1 { font-size: 50px; line-height: 55px; padding-left: 5%; padding-right: 5%; padding-bottom: 8px; color: #fff; text-shadow: 1px 1px 6px rgba(0,0,0,0.1); padding-top: 0; }
  #homecontainer #box1 p { padding-left: 5%; padding-right: 5%; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
}
@media screen and (max-width: 767px) {
  #homecontainer #box1 .sitewidth { width: 90%; max-width: 400px; }
}

/* Sidebar burger menu — mobile only */
.sidebar-toggle { display: none; }

@media screen and (max-width: 1012px) {
  .sidebar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 28px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
    margin: 12px 0 0 auto;
    padding: 0;
    flex-shrink: 0;
  }
  .sidebar-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  #sidebar #secondary { display: none; }
  #sidebar.sidebar-open #secondary { display: block; }
  #sidebar.sidebar-open .sidebar-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  #sidebar.sidebar-open .sidebar-toggle-bar:nth-child(2) { opacity: 0; }
  #sidebar.sidebar-open .sidebar-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ============================================================
   Single Post Content Area
============================================================ */

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

/* Responsive WP images */
img[class*="wp-image-"] {
  height: auto;
  max-width: 100%;
  display: block;
}

/* Figure spacing */
#singlepost figure {
  margin: 0 0 1.5em;
}

/* Entry content */
#singlepost .entry-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Headings inside post content */
#singlepost .entry-content h1,
#singlepost .entry-content h2,
#singlepost .entry-content h3,
#singlepost .entry-content h4,
#singlepost .entry-content h5,
#singlepost .entry-content h6 {
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}
#singlepost .entry-content h1 { font-size: 30px; }
#singlepost .entry-content h2 { font-size: 26px; }
#singlepost .entry-content h3 { font-size: 20px; }
#singlepost .entry-content h4 { font-size: 17px; }

/* Lists inside post content */
#singlepost .entry-content ul,
#singlepost .entry-content ol,
#singlepost .wp-block-list {
  list-style: disc;
  margin: 0 0 1.6em 1.5em;
  padding: 0;
}
#singlepost .entry-content ol,
#singlepost .wp-block-list[type] {
  list-style: decimal;
}
#singlepost .entry-content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

/* Comparison table */
#singlepost .wp-block-table {
  margin: 0 0 1.6em;
  overflow-x: auto;
  display: block;
}
#singlepost .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 100%;
  font-size: 15px;
  line-height: 1.5;
}
#singlepost .wp-block-table td,
#singlepost .wp-block-table th {
  border: 1px solid rgba(51, 51, 51, 0.25);
  padding: 0.5em 0.9em;
  text-align: left;
  vertical-align: top;
}
#singlepost .wp-block-table tr:first-child td {
  background: #f5f5f5;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
}

/* WP block image */
#singlepost .wp-block-image img {
  height: auto;
  max-width: 100%;
  display: block;
}

/* Post navigation */
.post-navigation {
  border-top: 4px solid #f2f2f2;
  margin-top: 10px;
  overflow: hidden;
}
.post-navigation .nav-links {
  display: flex;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}
.post-navigation a {
  display: block;
  padding: 2.5em 7%;
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  min-height: 180px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  font-weight: 400;
  border-bottom: none !important;
}
.post-navigation a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
}
.post-navigation .meta-nav,
.post-navigation .post-title {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff !important;
}
.post-navigation .meta-nav {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5em;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}
.post-navigation .post-title {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
}
@media screen and (max-width: 767px) {
  .post-navigation .nav-links { flex-direction: column; }
  .post-navigation a { min-height: 130px; padding: 2em 5%; }
  .post-navigation .post-title { font-size: 18px; }
}
