/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* =====================================Mastroke Blog Listing Page======================================== */
.elementor.elementor-32978 {
    background-color: #FCFCFC!important;
    background-image: url(https://www.mastroke.com/wp-content/uploads/2025/10/mastroke-main-bg.svg);
    background-size: cover;
    background-position: center -150px;
}
.img-overlay-text h2.title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*==============First Section CSS (Always Stay in The Know)==================*/
.mastroke-blog-listing-page-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.mastroke-blog-listing-page-featured {
  overflow: hidden;
  position: relative; /* For absolute positioning of read button */
}

.mastroke-blog-listing-page-featured img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mastroke-blog-listing-page-featured-img {
    min-height: 300px;
    object-fit: cover;
    height: auto;
}

.mastroke-blog-listing-page-meta {
  margin-top: 15px;
  font-size: 14px;
  color: #6b6b6b;
  font-family: Poppins;
}

.mastroke-blog-listing-page-title {
  color: #161B24 !important;
  font-family: Poppins !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}

.mastroke-blog-listing-page-title a:hover {
  color: #00B3AD !important;
}

.mastroke-blog-listing-page-excerpt {
    color: #495263;
    font-size: 16px;
    font-family: Poppins;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 20px;  
}

/* Featured post author + date container */
.mastroke-blog-listing-page-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  position: relative; /* for read button absolute */
  padding-right: 120px; /* space for the read button */
}

/* Author image */
.mastroke-blog-listing-page-author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* Author text + date container */
.mastroke-blog-listing-page-author > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 14px;
  color: #6b6b6b;
  margin-top: 8px; /* slight downward shift */
}
.mastroke-blog-listing-page-author .right-side-author{
    color: #161B24;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
}
.mastroke-blog-listing-page-author .right-side-date{
    color: #495263;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}


/* Read blog button for featured post, right aligned and vertically centered */
.mastroke-blog-listing-page-featured .mastroke-blog-listing-page-read {
  position: absolute;
  right: 20px; /* match padding */
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #1ab29d;
  text-decoration: none;
  white-space: nowrap;
}

.mastroke-blog-listing-page-read:hover {
  text-decoration: underline;
}

/* Right side blog items */
.mastroke-blog-listing-page-item {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
  position: relative; /* required for right alignment */
}

.mastroke-blog-listing-page-item-title {
  color: #161B24;
  font-family: Poppins;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mastroke-blog-listing-page-item-title a:hover {
    color: #00B3AD !important;
}

/* AUTHOR + DATE → stacked + shifted downward */
.mastroke-blog-listing-page-item-meta {
  font-family: poppins;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  margin-top: 8px; /* shifted downward */
}
.mastroke-blog-listing-page-item-meta .right-side-author{
    color: #161B24;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
}
.mastroke-blog-listing-page-item-meta .right-side-date{
    color: #495263;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

/* Read Blog → aligned to right */
.mastroke-blog-listing-page-item .mastroke-blog-listing-page-read {
  position: absolute;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #1ab29d;
  text-decoration: none;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .mastroke-blog-listing-page-section {
    grid-template-columns: 1fr;
  }

  .mastroke-blog-listing-page-item .mastroke-blog-listing-page-read,
  .mastroke-blog-listing-page-featured .mastroke-blog-listing-page-read {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 10px;
    right: auto;
  }

  .mastroke-blog-listing-page-author {
    padding-right: 0;
  }
}
/*==============First Section CSS (Always Stay in The Know) END==================*/

/*=====================Our Recent Blogs (Second Section)==============================*/
.mastroke-latest-post-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* smaller min-width for 4 cards in a row */
    gap: 30px;
}

.mastroke-latest-post-listing-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 20px 40px 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 30, 30, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mastroke-latest-post-listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.mastroke-latest-post-listing-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.mastroke-latest-post-listing-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mastroke-latest-post-listing-meta {
    font-family: Poppins;
    font-size: 14px;
    color: #495263;
    font-weight: 400;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.mastroke-latest-post-listing-title {
    margin-bottom: 28px;
    color: #161B24;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0;
}

.mastroke-latest-post-listing-title a {
    font-size: 14px;
    font-family: Poppins;
    font-weight: 500;
    color: #161B24;
    line-height: 1.2em !important;
    margin: 0 0 12px;
    text-decoration: none !important;
    color: #222;
    transition: color 0.3s ease;
}

.mastroke-latest-post-listing-title a:hover {
    color: #00B3AD;
}

.mastroke-latest-post-listing-read-more {
    display: inline-flex;
    font-family: Poppins !important;
    font-size: 15px !important;
    color: #2AC5BA !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500 !important;
    transition: color 0.3s ease;
    margin-top: auto;
    text-decoration: none !important;
}
a.mastroke-latest-post-listing-read-more {
    color: #2AC5BA !important;
}
.mastroke-latest-post-listing-read-more span {
    font-size: 18px;
}

.mastroke-latest-post-listing-read-more:hover {
    color: #007a75;
}

.mastroke-latest-post-listing-meta svg {
    margin-right: 4px;
    flex-shrink: 0;
}

.mastroke-latest-post-listing-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mastroke-latest-post-listing-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important; /* smaller gap between date & author */
}

.mastroke-latest-post-listing-author {
    display: block !important;     /* Forces author to new line */
    margin-top: 4px !important;    /* Optional spacing */
}
/*=====================Our Recent Blogs (Second Section) END==============================*/


/*======================Category Box Css (Third, Fifth, Sixed Section)========================*/
.msk-cat-post-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* EXACT 2 columns */
    gap: 30px;
}

.msk-cat-post-box-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px 30px !important;
    border: 1px solid rgba(30, 30, 30, 0.25);
    transition: 0.3s ease;
}

.msk-cat-post-box-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Meta info */
.msk-cat-post-box-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px !important;
    font-size: 14px;
    color: #495263;
}

.msk-cat-post-box-title {
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines to show */
    -webkit-box-orient: vertical;

}
.msk-cat-post-box-title a {
    font-size: 14px;
    font-family: Poppins;
    font-weight: 500;
    color: #161B24;
    text-decoration: none !important;
}
.msk-cat-post-box-title a:hover {
    color: #00B3AD;
}

/* Read More Link */
.msk-cat-post-box-readmore {
    display: inline-block;
    margin-top: 15px;
    font-family: Poppins;
    font-size: 15px;    
    font-weight: 500;
}
a.msk-cat-post-box-readmore {
    color: #2AC5BA;
    text-decoration: none !important;
}


.msk-cat-post-box-readmore:hover {
    color: #007a75;
}
.msk-cat-post-box-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.msk-cat-post-box-meta .msk-cat-post-box-date{
    color: #495263;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}
.msk-cat-post-box-meta .msk-cat-post-box-author{
    color: #495263;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 17.4px;
}


.msk-cat-post-box-meta svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .msk-cat-post-box-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
/*======================Category Box Css (Third, Fifth, Sixed Section) END========================*/



div#is-ajax-search-result-33197 {
    z-index: 100000000000 !important;
}

.header-search-popup .ays_content_box {
    margin: 0;
    height: 100vh;
    justify-content: center;
    align-items: center;
}



.mastroke-latest-post-listing-image img {
    min-height: 121px;
}
.left-icon-box .elementor-icon-box-wrapper {
    border: 1px solid #DDE1E7;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
}
.img-overlay-text .infobox-content {
    border-radius: 16px;
}
.mastroke-blog-category-list * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

.mastroke-blog-category-list .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 15px;
}

.mastroke-blog-category-list .category-item {
    display: flex;
    align-items: center;
    background: #f9fcf8;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 180, 150, 0.1);
    cursor: pointer;
    font-size: 15px;
    color: #111;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.mastroke-blog-category-list .category-item:hover {
    background: #0DA398;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 196, 180, 0.4);
}

@media (max-width: 600px) {
    .mastroke-blog-category-list .category-item {
        font-size: 14px;
        padding: 8px 16px;
    }
}





/*=======================================Single Detail Post CSS===============*/
.elementor.elementor-33474 {
    background-color: #FCFCFC!important;
    background-image: url(https://www.mastroke.com/wp-content/uploads/2025/10/mastroke-main-bg.svg);
    background-size: cover;
    background-position: center -150px;
}
.hfe-breadcrumbs.hfe-breadcrumbs-show-home {
    margin: 0 !important;
}

.elementor.elementor-33474 a {
    color: #0DA398;
}

.elementor.elementor-33474 h2 {
    color: #161B24;
    font-weight: 700;
    font-family: 'Poppins';
    line-height: 1.4em;
    font-size: 30px;
    margin-top: 30px;
}
.elementor.elementor-33474 h3 {
    color: #161B24;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins';
    margin-top: 30px;
}
.elementor.elementor-33474 h4 {
    color: #161B24;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins';
    margin-top: 30px;
}
.elementor.elementor-33474 h5 {
    color: #161B24;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins';
    margin-top: 30px;
}
.elementor.elementor-33474 p {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Poppins';
    /*padding-bottom: 20px;*/
}
.elementor.elementor-33474 ul {
    margin-bottom: 20px;
}
.elementor.elementor-33474 li {
    line-height: 32px;
}
.split-title {
    font-size: 39px;  /* customize */
    font-weight: 700;
    font-family: 'Poppins';
    text-align: center;
}

.split-title .title-green {
    color: #0DA398; /* green */
}

.split-title .title-black {
    color: #000; /* black */
}

/* Name & Email on same line */
.comment-form-author,
.comment-form-email {
    width: 49%;
    display: inline-block;
    vertical-align: top;
}

/* Spacing between fields */
.comment-form-author {
    margin-right: 1%;
}

/* Mobile: stack fields */
@media (max-width: 767px) {
    .comment-form-author,
    .comment-form-email {
        width: 100%;
        margin-right: 0;
    }
}



/*-----=======================Category Listing page CSS================================-----*/
.elementor.elementor-33081.elementor-location-archive {
    background-color: #FCFCFC!important;
    background-image: url(https://www.mastroke.com/wp-content/uploads/2025/10/mastroke-main-bg.svg);
    background-size: cover;
    background-position: center -150px;
}

.mst-category-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 39px; /* adjust as needed */
    text-align: center;
    margin-bottom: 10px;
}

.mst-category-title .first-word {
    color: #0DA398; /* teal/green */
}

.mst-category-title .rest-words {
    color: #1A1A1A; /* black */
}
.mst-category-description {
    text-align: center;
    font-size: 16px;
    font-family: 'Poppins';
}


.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
}

/* Ensure only the FEATURED IMAGE gets full width */
.post-thumb img {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-bottom: 12px;
    min-height: 180px;
    object-fit: cover;
}

/* Meta icon styling */
.meta-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    display: inline-block;
}

.post-date,
.post-author {
    font-size: 14px;
    font-family: 'Poppins';
    color: #555;
    margin: 6px 0;
    display: flex;
    align-items: center;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-family: 'Poppins';
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 18px;
    font-family: 'Poppins';
    margin: 20px 0 8px 0;
}

.post-title a {
    text-decoration: none;
    color: #111;
    font-family: 'Poppins';
}


#load-more-posts-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: #111;
    color: #fff;
    font-family: 'Poppins';
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.mastroke-category-post-count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
}
.mastroke-category-post-count img {
    width: 22px;
    height: 22px;
}


@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .post-card img {
        min-height: 160px;
    }
   .meta-icon {
        min-height: 18px !important;
    }
}

/* Mobile — 1 Column */
@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-card {
        padding: 14px;
    }

    .post-card img {
        min-height: 150px;
    }

    .post-title {
        font-size: 16px;
    }

    #load-more-posts-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    .meta-icon {
        min-height: 18px !important;
    }
}

