/* 
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.1.10
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 */
/*Generic*/
body {
	font-family: "Montserrat", Sans-serif;
}
h1 {
    font-size: 36px;
    font-weight: 800;
    text-decoration: underline;
    line-height: 1.3em;
}
a {
color: #1f1f1f;
}
/***Misc. Styles ***/
.support-btn svg {
    fill: #000
}

/**Utility Classes**/
.no-margin p {
margin-bottom: 0;
}
.middle-container-auto {
margin: 0 auto !important
}
/**** Misc ****/
.beraking-news-section img,
.beraking-news-section .tpg-post-holder:hover img{
	border-radius: 25px;
}
.beraking-news-section .four-cols img,
.beraking-news-section .four-cols .tpg-post-holder:hover img{
border-radius: 10px !important
}
.post-wrapper a {
text-decoration:underline !important;
}
/** Resets**/
.category-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
.post-tags > strong{
	display: none;
}
/**Blog Listing**/
.category-header {
    padding-bottom:8px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
}
.category-title {
	text-transform: capitalize;
	text-decoration: none;
    margin-bottom: 28px;
    margin-top: 58px;
}
.content-split {
	display: flex;
	gap: 40px;
}

.post-tags a,
.post-category a{
	display: inline-block;
    
    color: #1E1E1E;
    background: var(--e-global-color-accent);
    padding: 4px 8px;
    text-transform: capitalize;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin-right: 12px;
    margin-bottom: 12px;
}
.post-grid {
display: flex;
flex-direction: column;
gap: 32px;
}
.post-grid .post-card {
	display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #ddd;
}
.post-grid .post-card:first-child {
    flex-direction: column;
}
.post-grid .post-card:first-child .post-image {
flex: 0 0 100%
}
.post-grid .post-card:first-child .post-image img {width: 100%}
.post-grid .post-image {
    flex: 0 0 31%;
}
.post-grid .post-card img {
	border-radius: 40px;
}
.post-grid .post-card .post-title {
	font-size: 24px;
	font-weight: 700;
	text-decoration: underline;
    color: #1f1f1f;
	max-width: 700px
}
/**Sidebar**/
.sidebar {
	flex: 0 0 24% !important;
}
.sidebar ol {
padding: 0 0 0 24px;
margin: 0;

}
.sidebar ol li {
padding: 0 16px 16px 6px;
}
.sidebar ol li a {
	font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
}
.sidebar ol li a:hover {
text-decoration: none;
}
/**Pagincation**/
.nav-links {
display: flex; 
gap: 10px;
}
.nav-links> * {
    padding: 8px;
    background: #f7f7f7;
    border-radius: 4px;
    min-width: 34px;
    text-align: center;
    color: #333;
}
.nav-links .page-numbers.current {
    background: var(--e-global-color-accent);
}
/**Blog Details page**/
.post-layout {
padding: 0 20px;
}
.single .post-meta {
    margin-bottom: 15px;
}
.single img {
	border-radius: 20px;
	margin-bottom: 10px;
}
.single .post-content p,
.single .post-content ul,
.single .post-content ol,
.single .post-content a {
    font-size: 18px;
}
/**Search Page**/
.search-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-box {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ccc;
}

.search-submit {
    padding: 0 20px;
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-heading {
    color: #e40046;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 20px;
}

.search-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.result-text {
    flex: 1;
}

.result-category {
    font-weight: bold;
    color: #e40046;
    text-transform: uppercase;
}

.result-date {
    margin-left: 10px;
    color: #777;
}

.result-title a {
    font-size: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-decoration: underline;
}

.result-author {
    font-size: 14px;
    color: #555;
}

.result-thumb img {
    border-radius: 8px;
    width: 220px;
    height: auto;
    object-fit: cover;
}
.search-results .pagination {
	justify-content: center;
    margin-bottom: 60px;
}
.related-posts {
	max-width: 1024px;
    margin: 0 auto 60px;
    padding: 20px 20px;
}
.related-posts-grid > div {
    flex: 0 0 31.43%;
}
.related-posts h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
}
.related-post h4 {
    font-size: 16px;
    color: #333;
}
.related-post a {
    text-decoration: none;
}
.related-post a:hover h4 {
    text-decoration: underline;
}
.single-post .sidebar h3 {margin-bottom: 20px; line-height: 1.3}
.search-submit .dashicons-search {line-height: 1.8}

/******************Homepage Blogs Customisation***********************/

.fixes .custom-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.fixes .custom-post-card {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  width: calc(25% - 15px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}
.fixes .custom-post-card:hover {
  transform: translateY(-5px);
}

.fixes .custom-post-top {
    display: flex;
    align-items: start;
    gap: 15px;
}

.fixes .custom-post-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.fixes .custom-post-title {
  font-size: 16px;
  margin: 0;
}

.fixes .custom-post-divider {
  margin: 10px 0;
}

.fixes .custom-post-excerpt {
  font-size: 14px;
  color: #333;
}

.fixes .custom-post-author {
  display: flex;
  align-items: center;
  margin-top: 15px;
}
.fixes .custom-post-author img {
    border-radius: 50%;
}
.fixes .custom-post-author-name {
  margin-left: 10px;
  font-weight: bold;
}
/*****************Handhelds********************/
.six-posts .horizontal-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
}

.six-posts .horizontal-post-card {
  width: calc(33.33% - 13.33px);
  display: block;
  background: transparent;
  text-decoration: none;
  color: #000;
}

.six-posts .custom-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.six-posts .horizontal-post-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  max-width: 65%;
  text-decoration: underline;
}

.six-posts .horizontal-post-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.six-posts .horizontal-divider {
  width: 100%;
  border: 1px solid #000;
  margin: 20px 0;
}
/*******CSS for section in grid Mode ***********/
.grid-mode .custom-post-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.grid-mode .custom-post-card:first-child {
    flex: 2;
}
.grid-mode .custom-post-card {
  flex: 1;
  text-decoration: none;
  color: #000;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.grid-mode .custom-post-card:hover {
  transform: scale(1.02);
}

.grid-mode .card-image img {
  width: 100%;
  height: auto;
  border-radius: 25px;
  object-fit: cover;
}

.grid-mode .card-meta {
  margin-top: 10px;
}

.grid-mode .card-tag {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: bold;
  font-style: italic;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: uppercase;
}

.grid-mode .card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0 5px;
  text-decoration: underline;
}

.grid-mode .card-author {
  font-size: 14px;
  color: #333;
  margin: 0;
}
/************ Homepage Featured Eyewear ****************/
.featured-section .three-latest-posts-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.featured-section .post-large {
  width: 65%;
  text-decoration: none;
  color: #000;
  overflow: hidden;
  display: block;
}

.featured-section .post-large img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.featured-section .post-small-wrapper {
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-section .post-small {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #000;
  overflow: hidden;
}

.featured-section .post-small img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.featured-section .post-meta {
  margin-top: 10px;
}

.featured-section .post-cat {
  background: #000;
  color: #fff;
  font-weight: bold;
  font-style: italic;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  text-transform: uppercase;
}

.featured-section .post-large h2,
.featured-section .post-small h3 {
  font-weight: bold;
  margin: 10px 0 5px;
  text-decoration: underline;
}
.featured-section .post-small h3 {
    font-size: 20px
}
.featured-section .post-author {
  font-size: 14px;
  color: #333;
  margin-bottom: 0;
}
/**Responsive**/
@media screen and (max-width: 1024px) {
    .fixes .custom-post-card{
        width: calc(50% - 15px);
    }
    .six-posts .horizontal-post-card{
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
.category-title {margin-top: 0}
.category-header {padding-bottom: 0px; margin-bottom: 30px;}
.content-split, .search-result-card, .single-post .post-layout  {flex-direction: column; gap: 20px;}
.sidebar {margin-bottom: 40px;}
.post-grid .post-card .post-title {font-size: 20px;}
.result-title a {font-size: 18px;}
.related-posts-grid > div {flex: 0 0 100%;}
.search-page-wrapper {padding: 0 16px;}
.fixes .custom-post-card {width: 100%;}
.six-posts .horizontal-post-grid {padding: 0;}
.six-posts .horizontal-post-card{width: 100%}
.six-posts .horizontal-divider {display: none}
.grid-mode .custom-post-card-grid {flex-direction: column}
.featured-section .post-large, .featured-section .post-small-wrapper {width: 100%}
.featured-section .post-small-wrapper {flex-direction: row;}
}
@media screen and (max-width: 560px) {
.post-grid .post-card {flex-direction: column;}
.post-grid .post-card img {width: 100%}
.nav-links {flex-wrap: wrap; justify-content: center;}
.search .hfe-input-focus .hfe-search-icon-toggle input[type=search]{ width: 180px !important; z-index: 999}
.search .hfe-input-focus .hfe-search-icon-toggle i.fas.fa-search {z-index: 99999}
}