/*
Theme Name: Beautiful Malta
Theme URI: https://www.linkedin.com/in/ajeet-singh-b5a75a12a/
Author: Ajeet Singh
Author URI: https://www.linkedin.com/in/ajeet-singh-b5a75a12a/
Description: The general theme for WordPress is used for Managing Content sharing features 
and Blog listing website in extensive layout.
License: GNU General Public License v2 or later 
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Bootstrap, content-sharing, black, white, blue, one-column, two-columns, 
right-sidebar, flexible-width, custom-header, custom-menu, editor-style, 
featured-images, microformats, post-formats, rtl-language-support, sticky-post,
translation-ready
Text Domain: wstheme 
*/
/*
--------------------WordPress Core--------------------
*/
.alignnone{margin:5px 20px 20px 0}
.aligncenter,div.aligncenter{display:block;margin:5px auto}
.alignright{float:right;margin:5px 0 20px 20px}
.alignleft{float:left;margin:5px 20px 20px 0}
a img.alignright{float:right;margin:5px 0 20px 20px}
a img.alignleft,a img.alignnone{margin:5px 20px 20px 0}
a img.alignleft{float:left}
a img.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{background:#fff;border:1px solid #f0f0f0;max-width:96%;padding:5px 3px 10px;text-align:center}
.wp-caption.alignleft,.wp-caption.alignnone{margin:5px 20px 20px 0}
.wp-caption.alignright{margin:5px 0 20px 20px}
.wp-caption img{border:0;height:auto;margin:0;max-width:98.5%;padding:0;width:auto}
.wp-caption p.wp-caption-text{font-size:11px;line-height:17px;margin:0;padding:0 4px 5px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background-color:#eee;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}

.pagination-wrap {
    clear: both;
    display: block;
    overflow: hidden;
    text-align: center;
    padding: 15px 0px 0px 100px;
}
.pagination-wrap .page-numbers {
    margin-bottom: 0;
    margin-top: 0;
}
.pagination-wrap .page-numbers > li:first-child > a, 
.pagination-wrap .page-numbers > li:first-child > span {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    display: table;
}
.pagination-wrap .page-numbers > li:last-child > a, 
.pagination-wrap .page-numbers > li:last-child > span {
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}
.pagination-wrap .page-numbers > li > a,
.pagination-wrap .page-numbers > li > span {
    background-color: #f96331;
    border: 1px solid #ffb313;
    padding: 10px 15px;
    font-weight: bold;
    color: #FFFFFF;
    display: table;
    float: left;
}
.pagination-wrap .page-numbers > li > a:hover, 
.pagination-wrap .page-numbers > li > span:hover, 
.pagination-wrap .page-numbers > li > a:focus, 
.pagination-wrap .page-numbers > li > span:focus {
    background-color: #ffb313;
    border-color: #f96331;
}
.pagination-wrap .page-numbers .current {
    background-color: #ffb313;
    border-color: #f96331;
}
.pagination-wrap .page-numbers .current:hover,
.pagination-wrap .page-numbers .current span:hover {
    background-color: #ffb313;
    border-color: #f96331;
}



/* Layout for heading with premium toggle */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 25px;
}

.section-header h2 {
  margin: 0;
  flex: 1 1 auto;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.section-header .heading-excerpt,
.section-header .heading-full {
  flex: 1 1 100%;
  margin-top: 10px;
}

.toggle-heading {
  flex: 0 0 auto;
  margin-left: 15px;
}


/* Premium See More Toggle */
.section-header .heading-excerpt,
.section-header .heading-full {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #526071;
  transition: opacity 0.3s ease;
}
.section-header .heading-full {
  opacity: 0;
}
.section-header .heading-full.show {
  opacity: 1;
}
.toggle-heading {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}
.toggle-heading:hover {
  background: linear-gradient(135deg, #feb47b, #ff7e5f);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .section-header .heading-top {
    gap: 10px !important;
  }
  .section-header h2 {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }
  .toggle-heading {
    display: none !important;
  }
}

/* Page Content Image Responsiveness & Copied Content Fixes */
.page-content img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-content .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.page-content .flex > div {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 200px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
}

.page-content .flex > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-content .flex {
        flex-direction: column;
        gap: 10px;
    }
    .page-content .flex > div {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Sidebar Related Posts Slider on Mobile */
.sidebar-related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .sidebar-related-posts-grid {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }
    .sidebar-related-posts-grid .related-post-card {
        flex: 0 0 80%; /* Show 80% of card, hinting at next card */
        scroll-snap-align: center;
    }
    /* Hide scrollbar for a cleaner look */
    .sidebar-related-posts-grid::-webkit-scrollbar {
        display: none;
    }
    .sidebar-related-posts-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}