/*
Theme Name: Apex Theme
Description: Blog theme
Author: Masood
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    max-width: 1300px;
    width: 100%;
    margin: auto;
}
*{
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;
}
*:not(input):not(textarea) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* ==================== HEADER ==================== */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
}

.site-branding .custom-logo-link,
.site-branding img.custom-logo {
    max-height: 90px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-right: 25px;
    color: black; /* base color for SVGs */
}

.social-icon {
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon svg {
    width: 20px; /* set size */
    height: 20px;
    fill: black; /* ensures SVG path uses parent color */
    transition: transform 0.2s, fill 0.2s;
}

.social-icon:hover svg {
    transform: scale(1.15);
}

/* Optional: brand colors on hover */
.social-icon.facebook:hover {
    color: #1877f2; /* Facebook blue */
}

.social-icon.x:hover {
    color: #1da1f2; /* X/Twitter blue */
}
/* Search */
.search-form {
    position: relative;
    width: 280px;
}
.m-social-icons{
    margin-top: 30px;
}
.search-field {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #f8f8f8;
    font-size: 12px;
    line-height: 24px;
    color: #000000;
}

.search-field:focus {
    outline: none;
    border-color: #fa6975;
    box-shadow: 0 0 0 3px rgba(126, 58, 242, 0.1);
}

.search-field::placeholder {
    color: #9ca3af;
}

.search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
}

.search-submit svg {
    stroke: #6b7280;
}

/* ==================== NAVIGATION ==================== */
.main-navigation {
    background: #ffffff;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.primary-menu li {
    position: relative;
    border-right: 1px solid #e6e6e6;
}

.primary-menu li:first-child {
    border-left: 1px solid #e6e6e6;
}

.primary-menu li a {
    display: block;
    padding: 14px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

/* Hover underline */
.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #ea6464;
    transition: width 0.3s ease;
}

.primary-menu > li:hover > a::after {
    width: 100%;
}

.primary-menu li.menu-item-has-children {
    padding-right: 25px;
}

.primary-menu li.menu-item-has-children .submenu-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
    pointer-events: none;
    fill: #333;
}

.primary-menu li.menu-item-has-children:hover .submenu-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.primary-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
    z-index: 999;
}

.primary-menu li:hover > ul {
    display: block;
}

.primary-menu li ul li {
    border: none;
}

.primary-menu li ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
}

.primary-menu li ul li a:hover {
    border-left: solid #E76363 4px;
    color: #E76363;
}
/*menu phone start*/
/* MOBILE HEADER */
.mobile-left,
.mobile-search-icon {
    display:none;
}

/* MOBILE MENU PANEL */
.mobile-menu-panel{
    position:fixed;
    top:80px;                 /* header height */
    left:-100%;
    width:100%;
    height:calc(100vh - 80px);
    background:#fff;
    z-index:9998;
    transition:left 0.35s ease;
    padding:20px;
    overflow-y:auto;
}
.mobile-search-form{
    flex:1;
    width:100%;
    display:flex;
    gap:8px;
    align-items:center;
}
.mobile-menu-panel.active{
    left:0;
}

.mobile-menu-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.mobile-search-form input{
    flex:1;
    padding:12px 14px;
    border:1px solid #ddd;
    border-radius:4px;
    box-sizing:border-box;
}

/* Mobile search wrapper */
/* Mobile search wrapper */
.mobile-search-wrapper {
    position: relative;
    width: 100%;
}

.mobile-search-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 14px; /* space for button */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.mobile-search-wrapper button.mobile-search-submit {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.mobile-search-wrapper button svg {
    width: 18px;   /* smaller icon */
    height: 18px;
    fill: none;    /* using stroke only */
}
.mobile-close{
    font-size:24px;
    background:none;
    border:none;
}

.mobile-menu-list{
    list-style:none;
    padding:0;
    
}

.menu-item-has-children>a{
    border-bottom:1px solid #272727;
}

.mobile-menu-list li a{
    font-family: 'roboto', sans-serif;
    display:block;
    padding:14px 0;
    font-size:16px;
    text-decoration:none;
    color:#282828;
    line-height: 24px;
}

.mobile-menu-list ul{
    padding-left:20px;
    font-size:14px;
    list-style:none;
    font-weight: 700;
    font-family:'roboto', sans-serif; 
    line-height:21px;   
    color:rgb(40,40,40);
}
.mobile-menu-list ul a{
color:rgb(40,40,40);
}


/* PHONE LAYOUT */
@media (max-width:768px){

.header-right{
    display:none;
}

.main-navigation{
    display:none;
}

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.mobile-left{
    display:block;
}

.mobile-search-icon{
    display:block;
}

.mobile-toggle{
    font-size:24px;
    background:none;
    border:none;
}


.header-top{
    display:flex;
    align-items:center;
}

.mobile-left,
.mobile-search-icon{
    width:40px;
}

.site-branding{
    flex:1;
    text-align:center;
}

.site-branding .custom-logo-link,
.site-branding img.custom-logo {
    max-height: 50px;
    width: 100%;
}

}

.mobile-toggle{
    width:28px;
    height:22px;
    position:relative;
    border:none;
    background:none;
    cursor:pointer;
}

.mobile-toggle span{
    position:absolute;
    width:100%;
    height:3px;
    background:#000;
    left:0;
    transition:0.3s;
}

.mobile-toggle span:nth-child(1){ top:0; background-color: #555555; border-radius: 5px; height: 2px;}
.mobile-toggle span:nth-child(2){ top:8px; background-color: #555555; border-radius: 5px; height: 2px;}
.mobile-toggle span:nth-child(3){ top:16px; background-color: #555555; border-radius: 5px; height: 2px;}

/* transform to X */

.mobile-toggle.active span:nth-child(1){
    transform:rotate(45deg);
    top:9px;
}

.mobile-toggle.active span:nth-child(2){
    opacity:0;
}

.mobile-toggle.active span:nth-child(3){
    transform:rotate(-45deg);
    top:9px;
}



/* Remove default dropdown arrows in mobile */
.mobile-menu-list .menu-item-has-children > a::after{
    display:none !important;
}
/* ==================== MAIN CONTENT LAYOUT ==================== */
.blog-layout {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    overflow-x: hidden;           /* safety net */
}

/* Safety: prevent any child from breaking out */
.blog-layout,
.blog-layout * {
    max-width: 100%;
}

/* Sections */
.left-section {
    width: 20%;
    flex-shrink: 0;
}

.middle-section {
    width: 60%;
    flex-shrink: 0;
}

.right-section {
    width: 20%;
    flex-shrink: 0;
}

/* Headings */
.main-heading {
    position: relative;
    display: inline-block;
    color: #000;
    width: 100%;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.main-heading::before,
.main-heading::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    background: #000;
}

.main-heading::before {
    height: 0.25em;
    bottom: -0.4em;
}

.main-heading::after {
    height: 0.12em;
    bottom: -0.1em;
}

/* Left cards */
.left-card {
    background: #ffffff;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.left-card .category-label {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
    position: relative;
}

.left-card .category-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}
.hr-hr{
    margin-top: 10px;
    border: none;
    height: 1px;
    background-color: rgb(201, 201, 201);
}
.left-card .post-title {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 5px;
}

.left-card .post-title a {
    color: #000;
    text-decoration: none;
}

.left-card .post-time {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #666;
}

/* Middle - Featured */
.middle-big-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}

.middle-big-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.middle-big-card:hover img {
    transform: scale(1.05);
}

.middle-big-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.middle-big-card .category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-decoration: none;
    line-height: 24px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
    align-self: flex-start;
}

.middle-big-card .category-label::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fc5d5d;
    display: inline-block;
}

.middle-big-card .post-title a {
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    display: block;
}

.middle-big-card .post-meta {
    font-family: 'Roboto', sans-serif;
    line-height: 19px;
    font-size: 12px;
    color: #ddd;
}

.middle-big-card .post-meta .author {
    margin-right: 10px;
}

/* Small posts grid */
.small-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 15px;
    margin-top: 20px;
}

.middle-small-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.small-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.small-card-thumb img {
    height: 90px;
    width: 140px;
    margin-left: 5px;
    object-fit: cover;
}

.small-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.small-card-content .category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.small-card-content .category-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fc5d5d;
    display: inline-block;
}

.small-card-content .post-title {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 23px;
    color: #000000;
    text-decoration: underline transparent;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.5s ease;
}

.small-card-content .post-title:hover {
    text-decoration-color: #000000;
    cursor:pointer;
}

/* Right section */
/* Right section card */
.right-card{
    padding-right:30px;
    background:#fff;
    margin-bottom:20px;
}

/* featured image */
.right-thumb img{
    width:100%;
    height:150px;
    display:block;
    object-fit: cover;
}

/* content area */
.right-content{
    padding:12px 10px;
}

/* category label */
.right-card .category-label{
    font-size:10px;
    font-family: 'roboto',sans-serif;
    font-weight:700;
    text-transform:uppercase;
    text-decoration:none;
    color:#000000;
    position:relative;
    line-height: 10px;
    padding-left:12px;
    display:inline-block;
    margin-bottom:6px;
}
/* red dot */
.right-card .category-label::before{
    content:"";
    width:7px;
    height:7px;
    background:#fc5d5d;
    border-radius:50%;
    position:absolute;
    left:0;
    top:0px;
}

/* title */
.right-card .post-title{
    font-size:18px;
    line-height:26px;
    font-family:'roboto', sans-serif;
    font-weight:500;
    margin:6px 0 10px 0;
}

.right-card .post-title a{
    color:#000;
    text-decoration:none;
}

.right-card .post-title a:hover{
    text-decoration:underline;
}

/* time */
.right-card .post-time{
    font-size:12px;
    line-height: 19px;
    font-family:'roboto',sans-serif;
    color:#666;
}
/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 1024px) {
    .blog-layout {
        flex-direction: row;
        flex-wrap: wrap;          /* allow better behavior if needed */
        padding: 15px;
        gap: 20px;
    }

    .left-section {
        display: none;
    }

    .middle-section {
        width: 65%;
        flex-shrink: 1;           /* let it grow if right is small */
    }

    .right-section {
        width: 35%;
        flex-shrink: 0;
    }

    /* Make small grid safe */
    .small-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Mobile – full width stack + better spacing */
@media screen and (max-width: 768px) {   /* wider mobile breakpoint often feels better */
    .blog-layout {
        flex-direction: column;
        padding: 12px;
        gap: 24px;
    }

    .middle-section,
    .right-section {
        width: 100%;
    }

    /* Stack small cards in one column on small phones */
    .small-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Reduce heights/paddings for better mobile feel */
    .middle-big-card {
        height: 320px;           /* smaller hero on mobile */
    }

    .right-card {
        padding: 12px 15px;      /* consistent padding */
    }
}

/* Very small phones – extra breathing room */
@media screen and (max-width: 480px) {
    .header-top {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-form {
        width: 100%;             /* search takes full width */
    }
}

/* Extra safety for images and long content */
img, video, iframe, table, pre {
    max-width: 100%;
    height: auto;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}
/*______________________________________________________*/
/* Entertainment Section */
.entertainment-section {
    margin: 40px 30px;
}

.entertainment-grid > .entertainment-card:first-child {
    background-color: black;
    color: white !important;  /* optional, to make text readable */
}
.entertainment-grid > .entertainment-card:first-child,
.entertainment-grid > .entertainment-card:first-child .post-title a,
.entertainment-grid > .entertainment-card:first-child .category-label,
.entertainment-grid > .entertainment-card:first-child .post-meta,
.entertainment-grid > .entertainment-card:first-child .post-meta .author .author-name{
    background-color: black;
    color: white !important;  /* optional, to make text readable */
}
.entertainment-grid > .entertainment-card:first-child .post-title a{
    font-size: 22px;
    font-weight: 400;
    font-family:'roboto', sans-serif;
    margin: 6px 0;
    line-height: 29px;
}
.entertainment-section .section-header {
    display: flex;
    font-family:'roboto',sans-serif;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight:700;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
}

.entertainment-section .section-header h2 {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.entertainment-section .section-header .view-all {
    font-size: 16px;
    font-family:'poppins',sans-serif;
    text-decoration: none;
    font-weight:500;
    color: #000;
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.entertainment-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

.entertainment-thumb img {
    width: 100%;
    max-height: 200px;
    display: block;
    object-fit: cover;
    height: auto;
}

.entertainment-content {
    padding: 10px 8px;
}

.entertainment-content .category-label {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
    position: relative;
}
.entertainment-content .category-label:hover{
    text-decoration: underline;
}
.entertainment-content .category-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}
.entertainment-content .post-title {
    font-size: 20px;
    font-weight: 500;
    font-family:'roboto', sans-serif;
    margin: 6px 0;
    line-height: 26px;
}

.entertainment-content .post-title a {
    text-decoration: none;
    color: #000;
}
.author-name{
    font-family: 'montserrat', sans-serif;
    font-size:11px;
    color:#666;
    text-transform: capitalize;
    font-weight:600;
}

.entertainment-content .post-meta {
    font-size: 11px;
    font-family:'roboto', sans-serif;
    line-height:19px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .entertainment-section {
    margin: 40px 15px;
}
    .entertainment-grid {
        grid-template-columns: 1fr;
    }
}

/* Default: show all cards */
.entertainment-card {
    display: block;
}

/* Mobile: show only first card */
@media (max-width: 768px) {
    .entertainment-grid > .entertainment-card {
        display: none; /* hide all cards */
    }
    .entertainment-grid > .entertainment-card:first-child {
        display: block; /* show only the first card */
    }
}

/*_____________________________________*/
/* NEWS SECTION STYLES */
.news-section {
    margin: 40px 0;
    background-color: #000; 
    padding:40px 40px;
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.news-section .section-header h2 {
    font-size: 24px;
    color:white;
    font-family:'roboto', sans-serif;
    font-weight: 700;
}

.news-section .section-header .view-all {
    font-size: 14px;
    text-decoration: none;
    font-weight:500;
        font-family:'poppins', sans-serif;
    color: #ffffff;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
}

.news-card {
    display: flex;
    gap: 20px;
/* black background */
    color: #fff;
    align-items: center;
    border-radius: 6px;
}

.news-card .news-thumb img {
    width: auto;
    height: 300px;
    object-fit: cover;
}

.news-card .news-content {
    flex: 1;
}

.news-card .category-label {
    display: inline-flex;
    cursor: pointer;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 5px;
    position: relative;
}
.news-card.category-label:hover{
    text-decoration: underline;
}
.news-card .category-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}
.news-card .post-title {
    font-size: 36px;
    font-weight: 400;
    font-family:'roboto',sans-serif;
    line-height: 45px;
    margin: 0 0 10px 0;
}

.news-card .post-title a {
    color: #fff;
    text-decoration: none;
}
.news-card .post-title:hover {
    text-decoration: underline;
}

.news-card .post-excerpt {
    font-family: 'merriweather', sans-serif;

    font-size: 17px;
    line-height: 29px;
    font-weight: 400;
    margin-bottom: 12px;
}

.news-card .post-meta {
    font-size: 11px;
    line-height: 19px;
    color: #aaa;
    font-family: 'roboto',sans-serif;
    margin-bottom: 12px;
}
.author-name-1{
    font-family:'montserrat', sans-serif;
    text-transform: capitalize;
    color: white;
    font-weight: 600;
}

.news-card .post-meta span {
    margin-right: 15px;
}

.news-card .read-more {
    display: inline-block;
    padding: 6px 14px;

    color: #fff;
    border: solid #ff6363 1px;
    font-size: 13px;
    font-family:'montserrat',sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}
.news-card .read-more:hover{
    background-color: #ff6363;
    box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.6);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-section {
    padding:20px 20px;
}
    .news-card {
        flex-direction: column;
    }
    .news-card .news-thumb img {
        width: 100%;
        margin-bottom: 15px;
    }
    .news-card .news-thumb img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.news-card .post-excerpt{
    display:none;
}
.news-card .post-title{
    font-size:25px;
    line-height: 32px;
}

}
/*____________________________________________*/
/* ================= LATEST POSTS ================= */

.latest-posts-section{
    margin:40px 30px;
}

.latest-posts-section .section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000000;
    padding-bottom: 5px;
}


.latest-posts-section  .section-header h2 {
    font-size: 24px;
    color:rgb(0, 0, 0);
    font-family:'roboto', sans-serif;
    font-weight: 700;
}

.latest-posts-section  .section-header .view-all {
    font-size: 14px;
    text-decoration: none;
    font-weight:500;
        font-family:'poppins', sans-serif;
    color: #000000;
}

.latest-posts-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.latest-card{
    background:#fff;
    overflow:hidden;
}

.latest-thumb img{
    width:100%;
    height:170px;
    object-fit:cover;
    display:block;
}


.latest-card .category-label {
    display: inline-flex;
    text-decoration: none;
    margin-top: 20px;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
    position: relative;
}

.latest-card .category-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}

.latest-content{
    padding:10px 5px;
}

.latest-title{
    font-size:22px;
    font-family:'roboto',sans-serif;
    line-height:28px;
    font-weight:400;
    margin-bottom:6px;
}

.latest-title a{
    text-decoration:none;
    color:#000;
}

.latest-title a:hover{
    text-decoration:underline;
}

.latest-excerpt{
    font-family: 'merriweather', sans-serif;
    font-size:16px;
    line-height:27px;
    color:#555;
    margin-bottom:8px;
}

.latest-meta{
    padding:10px 0px;
    font-size:12px;
    color:#777;
    font-family:'roboto',sans-serif;
    display:flex;
    justify-content:space-between;
}

.latest-view-all-wrapper{
    text-align:center;
    margin-top:20px;
}

.latest-view-all-btn{
    display:inline-block;
    padding:8px 18px;
    border:1px solid #000;
    text-decoration:none;
    color:#000;
    font-family:'roboto',sans-serif;
}

.latest-view-all-btn:hover{
    background:#000;
    color:#fff;
}

/* Tablet */
@media (max-width:1024px){

.latest-posts-grid{
    grid-template-columns:repeat(2,1fr);
}

}

/* Small Tablet / Large Phone */
@media (max-width:768px){

.latest-posts-grid{
    grid-template-columns:1fr;
}

.latest-posts-section{
    margin:40px 15px;
}

}
/*______________________________*/

.custom-sidebar{
    padding:20px;
}
/* SEARCH */

/* sidebar search wrapper */
.sidebar-search-wrapper{
    position:relative;
    width:100%;
}

/* input field */
.sidebar-search-wrapper input{
    width:100%;
    padding:10px 40px 10px 14px;
    border:1px solid #ddd;
    border-radius:4px;
    box-sizing:border-box;
    font-size:14px;
}

/* search button */
.sidebar-search-submit{
    position:absolute;
    top:50%;
    right:10px;
    transform:translateY(-50%);
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
}

/* icon */
.sidebar-search-submit svg{
    width:18px;
    height:18px;
    stroke:#555;
    fill:none;
}
/* TITLE */
.sidebar-title{
    font-size:22px;
    font-weight: 22px;
    font-family: 'roboto',sans-serif;
    font-weight:600;
    margin:25px 0 15px;
}


/* LATEST POSTS */
.latest-item{
    display:flex;
    gap:12px;
    margin-bottom:18px;
}

.latest-thumb-side{
    width:55px;
    height:55px;
    flex-shrink:0;
    border-radius:50%;
    overflow:hidden;
}

.latest-thumb-side img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.latest-title-side{
    font-size:15px;
    font-family: 'roboto',sans-serif;
    font-weight:500;
    color:#111;
    text-decoration:none;
    line-height:23px;
}

.latest-title-side:hover{
    color:#e74c3c;
}
.latest-excerpt-side{
    font-family: 'merriweather', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color:#666;
}

.latest-meta-side{
    font-size:12px;
    color:#777;
    margin-top:4px;
}
.sidebar-categories{
    padding-top:30px;
}

/* CATEGORIES */
.sidebar-categories ul{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-categories li{
    margin-bottom:10px;
}

.sidebar-categories a{
    text-decoration:none;
    color:#111;
    font-family: 'roboto', sans-serif;
    font-weight: 600;

    font-size:16px;
    line-height: 27px;
}

.sidebar-categories a:hover{
    color:#e74c3c;
}
/*______________________________*/
.apex-blog-wrapper{
max-width:1200px;
margin:auto;
padding:40px 20px;
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
}

.apex-blog-posts{
display:flex;
flex-direction:column;
gap:35px;
}

.apex-blog-card{
display:grid;
grid-template-columns:1.4fr 1fr;
gap:20px;
padding-bottom:25px;
align-items:center;
}

.apex-blog-content{
display:flex;
flex-direction:column;
gap:10px;
}

.apex-blog-category a {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
    position: relative;
}

.apex-blog-category a::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}
.apex-blog-title{
font-size:22px;
margin:0;
font-family: 'roboto',sans-serif;
line-height:29px;
font-weight:400;
}

.apex-blog-title a{
text-decoration:none;
color:#000;
}

.apex-blog-title a:hover{
color:#7c6df6;
}

.apex-blog-excerpt{
font-size:14px;
font-family:'merriweather',sans-serif;
line-height: 24px;
color:#666;
line-height:24px;
}

.apex-blog-meta{
font-size:11px;
font-family: 'roboto',sans-serif;
line-height: 19px;

color:#666;
display:flex;
gap:10px;
}
.apex-blog-meta .apex-blog-author{
    font-size:11px;
    line-height: 19px;
    font-weight:600;
    font-family:'montserrat',sans-serif;
    text-transform: capitalize;
}

.apex-blog-readmore{
font-size:12px;
font-family:'montserrat',sans-serif;
font-weight:600;
line-height: 12px;

display:inline-flex; /* keep flex but behave like inline */

align-items:center;
justify-content:center;
gap:6px;

text-transform:capitalize;
border:1px solid #ff5b76;
padding:6px 12px;
text-decoration:none;
color:#000;
margin-top:6px;
width: 160px;
transition:0.2s;
}

.apex-blog-readmore svg{
height:1rem;
stroke:black;
display:block;
transition:0.2s;
}


.apex-blog-readmore:hover{
    background-color: #ff6363;
    box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.6);
    color:white;

}
.apex-blog-readmore:hover svg{
stroke:white;
}
.apex-blog-thumb img{
width:400px;
height:200px;
object-fit: cover;
display:block;
}

.apex-blog-pagination{
    align-self: center;
    font-family: 'montserrat',sans-serif;
    font-weight: 600;
    font-size:11px;
margin-top:30px;
}

.apex-blog-pagination .page-numbers{
border:1px solid #ddd;
padding:6px 10px;
margin-right:8px;
text-decoration:none;
color:#000000;
}

.apex-blog-pagination .page-numbers:hover{
    background-color: #ff4545;
    color:white;
    box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.336);
}

.apex-blog-pagination .current{
background:#ff4545;
color:#fff;
}

.apex-blog-sidebar {
  position: relative; /* base position */
}

.apex-sidebar-inner {
  position: absolute; /* will be controlled by JS */
  top: 0;
}

@media (max-width:1024px){

.apex-blog-wrapper{
grid-template-columns:1fr;
}

.apex-blog-card{
grid-template-columns:1fr 1fr;
}

}


@media (max-width:600px){

.apex-blog-card{
grid-template-columns:1fr;
}

.apex-blog-thumb img{
width:100%;
height:200px;
object-fit: cover;
display:block;
}

.apex-blog-thumb{
order:-1;
}

.apex-blog-title{
font-size:18px;
}

}

/* Base styles - works everywhere */
.apex-blog-wrapper {
  display: flex;
  flex-wrap: wrap;          /* allows stacking on small screens */
  gap: 20px;                /* space between content & sidebar – adjust as needed */
}

/* Sidebar takes full width by default (mobile-first thinking) */
.apex-sidebar-inner {
  width: 100%;
  /* your normal sidebar styles: background, padding, etc. */
}

/* Desktop: side-by-side + sticky sidebar */
@media (min-width: 1025px) {
  .apex-blog-wrapper {
    flex-wrap: nowrap;      /* force side-by-side */
  }

  /* Main content takes remaining space */
  .apex-blog-wrapper > *:first-child {   /* assuming main content is first child */
    flex: 1;                        /* grows to fill available space */
    min-width: 0;                   /* helps with long words/images */
  }

  .apex-sidebar-inner {
    width: 320px;                   /* ← change to your actual sidebar width */
    flex: 0 0 320px;                /* fixed width, don't grow/shrink */

    position: sticky;
    top: 20px;                      /* your offset from top */
    align-self: flex-start;         /* ← crucial: prevents sidebar from stretching full height */
  }
}

/* Optional: cleaner mobile experience (removes any leftover sticky/fixed) */
@media (max-width: 1024px) {
  .apex-sidebar-inner {
    position: static !important;    /* override anything trying to stick */
    top: auto !important;
    align-self: auto;
  }
}
/*__________________*/
.category-header-1{
    background-color: #fff; /* fallback */
    background-image: radial-gradient(#d9d9d9 1px, transparent 1px); /* example dot color */
    background-size: 15px 15px; /* spacing between dots */
}
/* Full-width title + description */
.category-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 30px 20px; /* make it taller so dots show */
    
}

.category-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 43px;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
}

.category-header p {
    font-size: 16px;
    font-family:'merriweather',sans-serif;
    line-height: 27px;
    color: #000000;
    margin-bottom: 25px;
}

/* Content + Sidebar grid */
.apex-blog-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* content + sidebar */
    gap: 40px;
}

/* Keep existing sidebar styles */
.apex-blog-sidebar {
    position: relative;
}

.apex-sidebar-inner {
    position: sticky;
    top: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .apex-blog-wrapper {
        grid-template-columns: 1fr; /* stack content + sidebar */
    }

    .apex-sidebar-inner {
        position: static;
        top: auto;
    }
}
/*__________________________*/
/* ==========================================================================
   Single Post Layout – Base & Mobile First
   ========================================================================== */

.single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.single-container .post-category a{
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 5px;
    position: relative;
}

.single-container .post-category:hover {
    text-decoration: underline;
}

.single-container .post-category::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}

.single-container .post-title {
    font-size: 42px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    line-height: 50px;
    margin-bottom: 10px;
}

.single-container .post-meta {
    color: #666;
    font-family:'roboto',sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 25px;
}

.single-container .post-meta .admin-author{
        color: #666;
    font-family:'montserrat',sans-serif;
    font-size: 13px;
    text-transform: capitalize;
    line-height: 22px;
    margin-bottom: 25px;
    font-weight:600;
}

.single-container .post-layout {
    display: flex;
    flex-wrap: wrap;          /* allows stacking on mobile */
    gap: 40px;
}

.single-container .post-content {
    flex: 1 1 0%;             /* takes available space – better than fixed % */
    min-width: 0;             /* prevents overflow issues with long words/images */
}

.single-container .sidebar {
    width: 100%;              /* full width on mobile */
}

/* Featured image & content styling (unchanged + small improvements) */
.single-container .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
}

.single-container .content {
    font-family:'merriweather',sans-serif;
    line-height: 27px;
    color:#000;
    font-size: 16px;
    font-weight: 400;
}

/* ==========================================================================
   Desktop – Side by side + Sticky Sidebar
   ========================================================================== */

@media (min-width: 1025px) {
    .single-container .post-layout {
        flex-wrap: nowrap;          /* force side-by-side */
    }

    .single-container .post-content {
        flex: 1 1 auto;             /* grow to fill space */
    }

    .single-container .sidebar {
        width: 320px;               /* ← change this to match your design (280–340px common) */
        flex: 0 0 320px;            /* fixed width */

        position: sticky;
        top: 20px;                  /* your desired top offset */
        align-self: flex-start;     /* ← very important – prevents sidebar stretching full height */
    }
}

/* ==========================================================================
   Extra safety: kill any stickiness on mobile/tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .single-container .sidebar {
        position: static !important;
        top: auto !important;
        align-self: auto;
    }
}


.content-area{
    display:flex;
    align-items:flex-start;
    gap:25px;
}

.article-row{
    display:flex;
    align-items:flex-start;
    gap:25px;
}

.share-bar{
    position:sticky;
    top:120px;
    width:40px;
    display:flex;
    flex-direction:column;
    gap:30px;
}

.content{
    flex:1;
}



@media (max-width: 1024px) {
    .share-bar{
    display: none;
}
}
/*___________________________*/

/* Hide on desktop, show only on tablet/mobile */
.mobile-share{
    display:none;
    gap:12px;
    margin:10px 0;
}

.mobile-share a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:4px;
    background:#f2f2f2;
}

.mobile-share svg{
    width:18px;
    height:18px;
    fill:#000;
}

/* show only on tablet + mobile */
@media (max-width:1024px){
    .mobile-share{
        display:flex;
    }
    .share-bar{
        display:none; /* hide desktop sticky share */
    }
}


.share-bar .share-btn:hover svg{
    fill:rgb(255, 88, 88);
}

/* Heading styles inside post content */
.single-container .content h1,
.single-container .content h2,
.single-container .content h3,
.single-container .content h4,
.single-container .content h5,
.single-container .content h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #000;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

/* Specific sizes per heading level */
.single-container .content h1 {
    font-size: 32px;
    line-height: 40px;
}

.single-container .content h2 {
    font-size: 32px;
    line-height: 40px;
}

.single-container .content h3 {
    font-size: 22px;
    line-height: 29px;
}

.single-container .content h4 {
    font-size: 20px;
    line-height: 26px;
}

.single-container .content h5 {
    font-size: 18px;
    line-height: 24px;
}

.single-container .content h6 {
    font-size: 16px;
    line-height: 22px;
}
/*_______________________*/
.apex-footer{
background:#000;
color:#fff;
padding:60px 0 20px;
font-family:Arial;
}

.footer-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:2fr 1fr 2fr;
gap:40px;
padding:0 20px;
}

.footer-logo img{
max-width:100%;
margin-bottom:20px;
object-fit: contain;
}

.footer-desc{
    font-family:'merriweather',sans-serif;
    font-size: 15px;
    line-height: 26px;
color:#ffffff;
margin-bottom:20px;
}

.footer-contact p{
        font-family:'merriweather',sans-serif;
    font-size: 16px;
    line-height: 27px;
color:#ffffff;
margin-bottom:20px;
margin-bottom:12px;
}

.footer-menu h3,
.footer-posts h3{
margin-bottom:20px;
font-size:18px;
font-weight: 600;
font-family:'roboto',sans-serif;
}

.footer-links{
    font-family:'roboto',sans-serif;
    margin-bottom:20px;
font-size:16px;
font-weight: 600;
line-height: 27px;
font-family:'roboto',sans-serif;
list-style:none;
padding:0;
}

.footer-links li{
margin-bottom:12px;
}

.footer-links a{
color:#fff;
text-decoration:none;
}

.footer-links a:hover{
color:#ff616e;
}

.footer-post{
display:flex;
gap:12px;
margin-bottom:18px;
}

.footer-post-thumb img{
width:55px;
height:55px;
border-radius:50%;
object-fit:cover;
}

.footer-post-info a{
color:#fff;
font-size:14px;
text-decoration:none;
line-height:1.4;
display:block;
}

.footer-post-info a:hover{
color:#ff6060;
}

.footer-post-cat {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    line-height: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 5px;
    position: relative;
}

.footer-post-cat::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea6464;
    display: inline-block;
}

.footer-bottom{
border-top:1px solid #222;
margin-top:30px;
padding-top:15px;
text-align:center;
font-size:14px;
color:#aaa;
}

/* Responsive */

@media(max-width:900px){

.footer-container{
grid-template-columns:1fr;
gap:40px;
text-align:left;
}

.footer-post{
align-items:center;
}

}
/*________________*/
.apex-page-wrapper{
max-width:1200px;
margin:auto;
padding:40px 20px;
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
}

/* Title */

.apex-page-title{
font-family:'Roboto', sans-serif;
font-weight:400;
font-size:42px;
line-height:50px;
color:#000;
margin-bottom:25px;
}

/* Featured Image */

.apex-page-thumb img{
width:100%;
height:auto;
display:block;
margin-bottom:25px;
}

/* Content */

.apex-page-text{
font-family:'Merriweather', sans-serif;
font-size:16px;
line-height:27px;
color:#000;
}

/* Sidebar */

.apex-page-sidebar{
position:relative;
}

.apex-sidebar-inner{
position:sticky;
top:20px;
}

/* Responsive */

@media(max-width:1024px){

.apex-page-wrapper{
grid-template-columns:1fr;
}

.apex-sidebar-inner{
position:static;
}

}

/* Headings inside page content */

.apex-page-text h1{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:40px;
line-height:48px;
color:#000;
margin:25px 0 15px;
}

.apex-page-text h2{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:35px;
line-height:46px;
color:#000;
margin:25px 0 15px;
}

.apex-page-text h3{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:32px;
line-height:42px;
color:#000;
margin:25px 0 15px;
}

.apex-page-text h4{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:28px;
line-height:38px;
color:#000;
margin:22px 0 12px;
}

.apex-page-text h5{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:24px;
line-height:34px;
color:#000;
margin:20px 0 10px;
}

.apex-page-text h6{
font-family:'Roboto', sans-serif;
font-weight:500;
font-size:20px;
line-height:30px;
color:#000;
margin:18px 0 8px;
}