body {
   font-family:'Montserrat', Arial, sans-serif;
}

@media (min-width: 1400px) {
   .container {
        max-width: 1400px;
      }
    }


h1 {
    color:#393939;
    font-weight:bold;
}

h2 {
    color:#464646;
    font-weight:bold;
    margin-top:40px;
    margin-bottom:50px;
    line-height:1.5;
}

h3 {
   color:#464646;
   font-weight:bold;
   margin-top:40px;
   margin-bottom:50px;
   line-height:1.5;
}

h4 {
    color:#464646;
    font-size:14px;
    font-weight:400;
    text-transform:uppercase;
}

p {
    color:#464646;
    font-size:16px;
    font-weight:400;
    line-height:40px;
}

a {
   color:#e2001a;
   text-decoration:none;
}

a, a * {
   cursor: pointer !important;
 }

.wp-block-list {
  margin-top:2em;
	margin-bottom:2em;
}

.wp-block-list li {
  margin-bottom: 0.7em;
}

button {
   color:#e2001a;
   background:none;
   border:none;
   font-weight:bold;
   font-size:14px;
   text-transform:uppercase;
}

header {
    background:#f6f6f6;
    width:100%;
    height:85px;
    position:sticky;
    top:0;
    z-index:1000
}


.top-bar {
    list-style-type:none;
    margin:0;
    padding:0;
    display:flex;
}


header .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:100%;
}

.site-logo {
   margin-top:115px;
   z-index:10000;
}

.site-logo img {
   height: 112px;
   width: auto;
}

.menu-toggle {
   display: none;
   font-size: 2rem;
   background: none;
   border: none;
   cursor: pointer;
 }

.top-bar li a {
    padding:.25rem 1rem;
    color:#464646;
    text-decoration:none;
    text-transform: uppercase;
    font-weight:bold;
    font-size:12px;
 }


 .top-bar li a:hover {
   color:#e2001a;
}


 .top-bar .current-menu-item > a {
   color: #e2001a;
 }


 .top-bar li {
    position:relative;
 }

.sub-menu {
    position:fixed;
    z-index:1008;
    top:0;
    right:0px;
    background:#f6f6f6;
    margin:0;
    padding:0;
    padding-top:85px;
    list-style-type:none;
    width:550px;
    height:100vh;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

.top-bar .sub-menu li {
   padding:10px;
}

.top-bar .sub-menu li a {
   font-size:15px;
   font-weight:500;
}

.sub-menu.open {
   display: flex;
   flex-direction: column;
   text-align:left;
   transform: translateX(0);
}

.sub-menu.open li:hover {
   background:rgb(242, 242, 242);
}


.sub-menu .close-btn {
   position: absolute;
   top: 20px;
   right: 30px;
   font-size: 36px;
   font-weight: bold;
   cursor: pointer;
   list-style: none;
   z-index:1010;
}

.sub-menu.open .close-btn:hover {
   background:none;
}

.submenu-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0,0,0,0); /* dim effect */
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s, ease;
   z-index: 997;
   visibility: hidden;
 }
 
 .submenu-overlay.active {
   background: rgba(0, 0, 0, 0.5);
   opacity: 1;
   pointer-events: auto;
   visibility: visible;
 }

 /*
 body.no-scroll {
   overflow: hidden;
}
*/

 footer {
   width:100%; 
   background:#505050;
 }

 .footer-menus {
   display:flex;
   justify-content:space-between;
   max-width:1400px;
   margin:0 auto;
   padding-top:30px;
   padding-bottom:20px;
   padding-left:20px;
   padding-right:20px;
 }

.footer-column {
   position: relative;
   padding-top: 20px;
}

.footer-column::before {
   content: "";
   display: block;
   width: 45px;          
   height: 2px;          
   background-color: #fff;  
   margin-bottom: 15px;
 }

 .footer-column ul {
   list-style-type:none;
   padding-left:0px;
   padding-right:0px;
   line-height: 30px;
 }

 .footer-menus li a {
   color:#fff;
   text-decoration:none;
   text-transform: uppercase;
   font-weight:bold;
   font-size:12px;
}

 .page-wrap {
    margin-top:120px;
 }

 .container-title {
    width:100%;
    margin:0 auto;
    text-align:center;
    color:#8b8b8b;
    font-size:2em;
    line-height:40px;
 }

 .page-wrap .post-section {
    background:#f6f6f6;
    margin-top:50px;
    padding-top:50px;
    padding-bottom:50px;
    text-align:center;
 }

 .page-wrap .post-section .container {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(445px, 1fr));
    gap:20px;
    row-gap:60px;
 }

.custom-card {
   background:#fff;
   width:100%;
   height:600px;
   position:relative;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-card .category-tag {
  display:flex;
  height:39px;
  background:#e2201a;
  position:absolute;
  align-items:center;
  right:25px;
  top:-20px;
}

.custom-card .category-tag h3 {
  color:#fff;
  font-size:14px;
  font-weight:bold;
  text-transform:uppercase;
  padding:15px;
  margin:0;
}

.custom-card .post-thumbnail {
   width: 100%;
   height: 243px;      
   overflow: hidden;   
}

.custom-card .post-thumbnail img {
   width: 100%;
   height: 100%;
   object-fit: cover;   
}

.custom-card .card-text {
   padding:15px;
   text-align:left;
}

.custom-card .card-text h2 {
  margin-top:25px;
  margin-bottom:25px;
  font-size:22px;
  font-weight:bold;
  text-decoration:none;
  color:#464646;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-card .card-text p {
  line-height:35px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp:4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.load-more-btn {
   margin:30px;
   margin-top:50px;
   margin-bottom:0px;
   color:#e2001a;
 }

 .no-more-posts {
   margin-top:50px;
   margin-bottom:0px;
 }

.page-wrap-post .post-banner img {
   width: 100%;
   height: auto;
   max-height:800px;
   max-width:1920px;
   display:block;
}

.page-wrap-post .grey-background {
   display:block;
   background:#f6f6f6;
   text-align:center;
   position:relative;
   padding-bottom:50px;
}

.white-background {
   background:#ffffff;
   padding:40px;
   max-width:900px;
   display:inline-block;
   text-align:left;
   margin-top:-200px;
   position:relative;
   z-index:2;
}

.white-background .category-tag {
   display:flex;
   height:39px;
   background:#e2201a;
   position:absolute;
   align-items:center;
   right:40px;
   top:-20px;
}

.white-background .category-tag h3 {
   color:#fff;
   font-size:14px;
   font-weight:bold;
   text-transform:uppercase;
   padding:15px;
   margin:0;
}

.white-background h1 {
   line-height:60px;
   text-align:center;
   margin-bottom:50px;
}

.date-author-section {
   background:#e7e7e7;
   position:absolute;
   top:350px;
   right:-240px;
   padding:15px;
   width:260px;
   border-top-right-radius: 20px;
}

.date-author-section h4 {
   font-weight:bold;
   margin-bottom:0;
   line-height:25px;
}

.date-author-section .author-name {
   margin-top:15px;
 }

.date-author-section .author-bio {
   margin-top:20px;
 }

.date-author-section p {
  margin-bottom:0;
  line-height:25px;
  font-size:14px;
}

.page-wrap-post .grey-background .related-posts {
   text-align:left;
   max-width:1400px;
   margin:0 auto;
   padding:12px;
   margin-top:30px;
}

.page-wrap-post .grey-background .container {
   display:grid;
   grid-template-columns:repeat(auto-fit, minmax(445px, 1fr));
   gap:20px;
   row-gap:60px;
}

.post-main {
   position:relative;
   display:block;
   
}

.share-bar {
   position:sticky;
   top:400px;
   left:14%;
   margin-top:30px;
   float:left;
}

.share-bar ul {
   list-style-type:none;
   line-height: 55px;
   padding:0;
   margin:0;
}

.share-bar ul li img {
   transition: transform 0.2s ease-in-out;
}


.share-bar ul li img:hover {
   transform: scale(1.2);
}

.share-bar ul li h4 {
   font-weight:bold;
   margin-top:10px;
}

#share-mobile {
   display: none;
}

#progress-bar {
   position: fixed;
   left: 0;
   height: 3px;
   width: 0%;
   background:#e2001a;
   z-index: 1001;
   transition: width 0.2s ease-out, opacity 0.6s ease-out;
   opacity: 0;
   pointer-events: none;
 }
 
 #progress-bar.visible {
   opacity: 1;
 }

.newsletter-section {
   padding:50px 0px;
}

.newsletter-header h2 {
   margin-bottom:0;
 }

.newsletter-header p {
   color:#8b8b8b;
   font-size:25px;
   line-height:30px;
 }

 .newsletter-form {
   margin-top:40px;
 }

 .newsletter-form input {
   padding:5px 15px;
   width:100%;
   max-width:500px;
   color:#464646;
 }

 .mc-field-group {
   margin:20px 0px;
 }

 .newsletter-form button,
 .wp-block-button__link {
   background-color: #e2001a; 
   border:none; 
   color:white; 
   padding: 10px 20px; 
   font-size: 13px; 
   cursor: pointer;
   margin:20px 0px;
   font-weight:bold;
   border-radius:0;
   text-transform:uppercase;
 }

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e2001a;
    outline-offset: 1px;
}

.mce_inline_error {
   color:#e2001a;
}

#mce-success-response {
   margin-bottom:10px;
   font-weight: bold;

}

::placeholder {
   color: #8b8b8b;
 }

#error-404-container {
   text-align: center;
}
 
.error-404 {
   font-size: 10em;
 }



/* MOBILE */
 @media (max-width: 768px) {
   p {
      line-height:35px;
   }
   
   .site-logo {
      margin-top:0;
      height:60px;
      width:auto;
   }

   .site-logo img {
      height:60px;
      width:auto;
   }
   
   .menu-toggle {
     display: block;
   }
 
   .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 85px;
      right: 0;
      background: #fff;
      width: 100%;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      align-items:center;
      z-index:1005;
    }

   .menu.open {
     display: flex;
   }

   .sub-menu {
      width:100%;
   }

   .submenu-overlay.active {
      visibility: hidden;
    }

   .top-bar {
      display:block;
   }

   .top-bar li {
      padding: 10px;
   }

   .footer-menus {
      display:block;
      padding:15px;
      text-align: center;
   }

   .footer-column::before {
      margin:0 auto;
      margin-bottom:15px;
    }

    .container-title {
      font-size:1.2em;
      line-height:25px;
   }

   .page-wrap {
      margin-top:30px;
   }

   .white-background {
      padding:20px;
      padding-top:50px;
   }

   .white-background h1 {
      line-height:45px;
   }

   
   .page-wrap .post-section .container {
      grid-template-columns: 1fr;
   }

   .page-wrap-post .grey-background .container {
      grid-template-columns: 1fr;
   }

 }



 /* TABLET */
 @media (max-width: 1400px) {
   .white-background {
      margin-top:0;
   }

   .date-author-section {
      display:block;
      position:relative;
      top:auto;
      right:auto;
      border-bottom-right-radius:20px;
      border-top-right-radius:0px;
      width:100%;
      background:#f6f6f6;

   }

   .share-bar {
      display: block;
      position:relative;
      float:none;
      top:auto;
      left:auto;
      margin:0;
   }

   .share-bar ul {
      display: flex;
      justify-content: center;
   }

   .share-bar ul li {
      padding:5px;
   }

   #share {
      display: none;
   }

   #share-mobile {
      display:block;
      font-weight:bold;
      margin-top:30px;
   }

 }

  /* DESKTOP */
  @media (min-width: 1401px) {
   .page-wrap .post-section .container:has(.custom-card:only-child) {
      grid-template-columns: repeat(3, 1fr);
    }
   
   .page-wrap .post-section .container:has(.custom-card:first-child:nth-last-child(2)) {
      grid-template-columns: repeat(3, 1fr);
    }

   .page-wrap-post .grey-background .container:has(.custom-card:only-child) {
      grid-template-columns: repeat(3, 1fr);
    }
   
   .page-wrap-post .grey-background .container:has(.custom-card:first-child:nth-last-child(2)) {
      grid-template-columns: repeat(3, 1fr);
    }
 }