/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* ------------ sticky header */
.site-header {
	top: 0;
	position: sticky;
	width: 100%!important;
    box-shadow: 3px 3px 9px #00000026;
}


/* Removing default Astra padding to single article */
.cpt-diy-single.cpt-diy-minimal-template.ast-article-single {
    padding: 0;
}

.cpt-diy-archive-item.ast-article-post.remove-featured-img-padding {
    padding: 0;
}

/* Change mouse cursor hovering the home gallery */
.carousel-to-gallery{
	cursor:pointer;
}



/*=====================================
 * Template-Quadri CPT
 * ===================================*/

.cpt-diy-single {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
}

.cpt-diy-template-quadri{
	margin-top: 6%;
}
.cpt-diy-title{
	color: #b89d4f;
}

.cpt-diy-header {
	padding: 0 30px 20px 0;
	border-bottom: 1px solid #b89d4f;
}

.cpt-diy-info-list {
	margin-top: 15%;
}

.cpt-diy-template-quadri .cpt-diy-layout-wrapper {
    display: flex;
    gap: 5%;
}

.cpt-diy-template-quadri .cpt-diy-image-column {
    flex: 1;
    max-width: 60%;
}

.cpt-diy-template-quadri .cpt-diy-content-column {
    flex: 2;
    max-width: 40%;
    padding: 30px;
}

.cpt-diy-field-item {
  margin: 6% 0;
}

.cpt-diy-template-quadri .cpt-diy-featured-image img,
.cpt-diy-template-quadri .cpt-diy-field-image {
    width: 100%;
    height: auto;
    display: block;
	border-radius: 0px;
}

.cpt-diy-back-link-box {
	padding-top: 15%;
}

.cpt-diy-back-button {
    background: #B89D4F;
    transition: background-color 0.3s ease; /* smooth transition on background-color */
}

.cpt-diy-back-button:hover {
    background: #776530;
}



/* ==========================================================================
   Archive Quadri - Alternating Layout
   ========================================================================== */

.cpt-diy-archive-quadri {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cpt-diy-archive-quadri .cpt-diy-archive-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    /*border-bottom: 2px solid #e0e0e0;*/
}

.cpt-diy-archive-header{
	border-bottom: 0px;
}

.cpt-diy-archive-quadri .cpt-diy-archive-title {
    font-size: 3em;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--ast-global-color-2);
    margin: 0;
}

.cpt-diy-quadri-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.cpt-diy-quadri-item {
    position: relative;
}

.cpt-diy-quadri-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Odd items: Image left, Content right */
.cpt-diy-quadri-odd .cpt-diy-quadri-wrapper {
    grid-template-areas: "image content";
}

.cpt-diy-quadri-odd .cpt-diy-quadri-image {
    grid-area: image;
    justify-self: end;
}

.cpt-diy-quadri-odd .cpt-diy-quadri-content {
    grid-area: content;
    justify-self: start;
}

/* Even items: Content left, Image right */
.cpt-diy-quadri-even .cpt-diy-quadri-wrapper {
    grid-template-areas: "content image";
}

.cpt-diy-quadri-even .cpt-diy-quadri-image {
    grid-area: image;
    justify-self: start;
}

.cpt-diy-quadri-even .cpt-diy-quadri-content {
    grid-area: content;
    justify-self: end;
    text-align: right;
}

/* Image styling */
.cpt-diy-quadri-image {
    max-width: 300px;
    width: 100%;
}

.cpt-diy-quadri-image a {
    display: block;
    position: relative;
    overflow: hidden;
    /* border-radius: 4px; */
    box-shadow: 1.25rem 1.375rem 4.75rem 0rem rgba(0, 0, 0, 0.42);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cpt-diy-featured-image{
	margin-bottom: 0px;	
}

.cpt-diy-quadri-image a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cpt-diy-quadri-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
	border: 3px solid black;
}

.cpt-diy-quadri-image a:hover img {
    transform: scale(1.05);
}

/* Content styling */
.cpt-diy-quadri-content {
    max-width: 450px;
}

.cpt-diy-quadri-date {
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c9a961;
    margin-bottom: 15px;
}

.cpt-diy-quadri-title {
    font-size: 3em;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 20px;
	color: #b89d4f;
	padding-bottom:20px;
	border-bottom: 1px solid #b89d4f;
}

.cpt-diy-quadri-title a {
   /* color: #333;*/
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpt-diy-quadri-title a:hover {
    color: #766430;
}

.cpt-diy-quadri-text {
	color: #555555;
	font-size: 1.3em;
	font-weight: 600;
	padding: 10px 0 10px 0;
}

.cpt-diy-quadri-number {
	color: #555555;
	font-size: 1.1em;
	font-weight: 600;
	padding: 10px 0 10px 0;
}

.cpt-diy-quadri-textarea {
		font-size: 0.95em;
	padding: 10px 0 10px 0;
}

.cpt-diy-quadri-excerpt {
    font-size: 0.95em;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* All pagination buttons at the bottom of Quadri page */
.cpt-diy-pagination-item .page-numbers {
  /*display: inline-block;
  border-radius: 4px;
  padding: 6px 10px; */
  background-color: #b89d4f;       /* default background */
  color: #fff;

}

/* Current page button */
.cpt-diy-pagination-item .page-numbers.current {
  background-color: #b89d4f;       /* current page background */
  color: #fff;
}

/* Hover on other page numbers */
.cpt-diy-pagination-item a.page-numbers:hover {
  background-color: #dbbe69;
  color: #fff;
}

/* Next / Prev buttons specifically (optional) */
.cpt-diy-pagination-item a.next.page-numbers {
  background-color: #b89d4f;
  color: #fff;
}

/* Hover on other page numbers */
.cpt-diy-pagination-item a.next.page-numbers:hover {
  background-color: #dbbe69;
  color: #fff;
}




/* Responsive */
@media (max-width: 768px) {
    .cpt-diy-quadri-list {
        gap: 50px;
    }
    
    .cpt-diy-quadri-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-areas: "image" "content" !important;
        gap: 30px;
    }
    
    .cpt-diy-quadri-odd .cpt-diy-quadri-image,
    .cpt-diy-quadri-even .cpt-diy-quadri-image {
        justify-self: center;
        max-width: 100%;
    }
    
    .cpt-diy-quadri-odd .cpt-diy-quadri-content,
    .cpt-diy-quadri-even .cpt-diy-quadri-content {
        justify-self: center;
        text-align: left;
        max-width: 100%;
    }
    
    .cpt-diy-quadri-title {
        font-size: 1.6em;
    }
    
    .cpt-diy-archive-quadri .cpt-diy-archive-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
  .cpt-diy-template-quadri .cpt-diy-layout-wrapper {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .cpt-diy-template-quadri .cpt-diy-image-column,
  .cpt-diy-template-quadri .cpt-diy-content-column {
    width: 100% !important;
    max-width: 100%;
  }
  
  .cpt-diy-template-quadri .cpt-diy-featured-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
  }
  
  .cpt-diy-template-quadri .cpt-diy-title {
    font-size: 1.5rem;
  }
  
  .cpt-diy-template-quadri .cpt-diy-info-list {
    font-size: 0.9rem;
    margin: 0;
  }
  
  .cpt-diy-template-quadri .cpt-diy-back-button {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
}


