@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');

/* Blog Container */
.m360-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .m360-container {
        max-width: 1200px; /* Adjust width for desktops */
        margin: 15px;
        padding: 15px;
    }
}
@media (max-width: 768px) {
    .m360-container {
        max-width: 100%; /* Adjust width for desktops */
    }
}

.m360-container h1.m360-blog-head {
   font-family: 'Roboto Condensed', sans-serif;
   font-size: 34px;
   text-align: left;
   margin: 0px 0px 25px 0px;
   padding: 0px 0px 5px 0px;
   border-bottom: solid 1px #e3e3e3;
}
.m360-blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
/* Blog Post Styles */
.m360-blog-post {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}
.m360-blog-post:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.m360-blog-details h4{
   font-size: 22px;
   font-weight: 700;
   margin: 20px 0px 10px 0px;
   padding: 0px;
   text-align: left;
   line-height: 28px;
}
.m360-blog-details p{
   font-size: 16px;
   margin: 15px 0px 0px 0px;
   padding: 0px;
   text-align: left;
   line-height: 28px;
}
.m360-blog-details ul.blist{
   display: flex;
   flex-direction: column!important;
   list-style-type: disc;
   font-size: 16px;
   padding: 10px 0px 10px 20px;
   margin: 0px;
   text-align: left;
   line-height: 28px;
}
.m360-blog-post-index .m360-post-meta ul,
.m360-blog-content .m360-post-meta ul,
.m360-blog-details .m360-post-meta ul {
    padding: 0 3px 10px 0;
    margin: 30px 0px 0px;
}
.m360-blog-post-index ul.m360-post-meta,
.m360-blog-content ul.m360-post-meta,
.m360-blog-details ul.m360-post-meta { 
  //float: left;
  display: flex;
  flex-wrap: wrap!important;
  list-style: none;
  padding: 5px 0 5px;
  margin: 15px 0 15px 0;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
}
.m360-blog-content ul.m360-post-meta li,
.m360-blog-details ul.m360-post-meta li {
  //float: left;
  display: inline-block;
  list-style: none;
  margin-right: 20px;
  font-size: 13px;
  vertical-align: middle;
  line-height: 28px;
}
.m360-blog-post-index ul.m360-post-meta li{
  //float: left;
  display: inline-block;
  list-style: none;
  margin-right: 20px;
  font-size: 15px;
  font-weight: 600;
  vertical-align: middle;
  line-height: 28px;
}
.m360-blog-post-index ul.m360-post-meta li a,
.m360-blog-content ul.m360-post-meta li a,
.m360-blog-details ul.m360-post-meta li a {
  color: #737373;
}
.m360-blog-content ul.m360-post-meta li i,
.m360-blog-details ul.m360-post-meta li i {
  float: left;
  margin-top: 7px;
  padding-right: 7px;
}
.m360-blog-post-index ul.m360-post-meta li i{
  float: left;
  font-size: 14px;
  margin-top: 0px;
  padding-right: 7px;
}

/* Blog Image */
.m360-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.m360-blog-video iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* Ensures the video is always 16:9 */
    display: block;
    border: none;
}

/* Blog Content */
.m360-blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}
.m360-blog-content h2 {
    font-size: 1.5rem;
    margin: 5px 0px;
    color: #333;
    line-height: 28px;
}
.m360-blog-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
    text-align: left;
}
.m360-blog-content a {
    display: inline-block;
    width: fit-content;
    background: #201b41;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.m360-blog-content a:hover {
    background: #01456d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .m360-blog-post {
        grid-template-columns: 1fr;
    }
}




/* Blog Details Section */

.m360-blog-detail-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
}
.m360-blog-details {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.m360-blog-details h1.m360-blog-details-head {
  font-size: 2rem;
  line-height: 44px;
  font-weight: 700;
  text-align: left;
  margin: 10px 0px 20px;
}
@media (max-width: 480px) {
 .m360-blog-details h1.m360-blog-details-head {
   font-size: 1.7rem;
   line-height: 28px;
   font-weight: 700;
   text-align: left;
   margin: 10px 0px 20px;
  }
}
.m360-blog-details h2{
   font-family: 'Roboto Condensed', sans-serif;
   font-size: 20px!important;
   font-weight: 600;
   text-align: left;
   margin: 20px 0px 10px 0px;
}
.m360-blog-details .blog-details-blockquote{
    background-color: #e6e6e6;
    border-left: 5px solid #787878;
    padding: 25px 35px;
    margin: 25px 0 25px 0;
    font-size: 18px;
    font-style: italic;
}
.m360-blog-details ul{
   margin: 10px 0px 10px 20px;
   padding: 0;
}
.m360-blog-details ul li{
   margin: 0px 0px 0px;
   padding: 0px 0px 0px;
   line-height: 28px;
}



/* Blog Image Floating */
.m360-blog-details-image {
    position: relative;
    float: left; /* Float the image to the left */
    margin: 0 25px 5px 0; /* Add some space around the image */
    max-width: 40%; /* Image width as a percentage of its container */
}
.m360-blog-details-image img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 680px) {
 .m360-blog-details-image {
    position: relative;
    float: none;
    margin: 15 0px 15px 0; /* Add some space around the image */
    width: 100%; /* Image width as a percentage of its container */
    max-width: 100%; /* Image width as a percentage of its container */
  }
 .m360-blog-details-image img{
    position: relative;
    margin: 15 0px 15px 0; /* Add some space around the image */
    width: 100%; /* Image width as a percentage of its container */
  }
}

.m360-blog-details-video iframe{
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 20px;
}
.m360-post-keywords h4{font-family: 'Roboto Condensed', sans-serif;color: #dd8645;font-size: 16px;font-weight: 600;line-height: 25px;padding: 0px 0 1px 25px;margin: 16px 0 3px 0;display: block;letter-spacing:.5px;position:relative;text-transform:capitalize;}
.m360-post-keywords h4:before{position:absolute;font-size: 18px;top: 0px;left: -3px;font-family: "Font Awesome 5 Free";content: "\f0a4";font-weight: 900;}
.m360-post-keywords ul {margin-left:0px;margin-bottom:22px}
.m360-post-keywords ul li{list-style-type: none;position: relative;padding-top:5px;}
.m360-post-keywords ul li:before{padding-right:10px;vertical-align:middle;font-size: 9px;font-family: "Font Awesome 5 Free";content:"\f061";font-weight:900;color:#dd8645;}


/* Recent Posts Sidebar */
.m360-recent-posts {
    position: sticky;
    top: 20px; /* Keeps sidebar fixed during scroll */
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.m360-recent-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #333;
    border-bottom: solid 1px #cdcdcd;
    line-height: 32px;
}

.m360-recent-posts ul {
    list-style: none;
    padding: 0;
}

.m360-recent-posts ul li {
    margin-bottom: 15px;
}

.m360-recent-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.m360-recent-post-item img {
    width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.m360-recent-post-item .m360-video-thumbnail iframe {
    width: 150px;
    height: 100px;
    border-radius: 5px;
}
.m360-post-info {
    display: flex;
    flex-direction: column;
}
.m360-recent-post-item .m360-post-info a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.m360-recent-post-item .m360-post-info a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .m360-blog-detail-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .m360-recent-posts {
        position: static; /* Removes sticky behavior for small screens */
        max-height: none;
    }
}


.m360-post-info .m360-post-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}


.m360-blog-post-index {
    display: block;
    margin: 0 auto;   
    justify-content: center;
    text-align: center;
}
.m360-blog-post-index .all_btns {
    padding: 7px 25px;
    height: 40px;
}