/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for GeneratePress
 Author: Prateek Asthana
 Template: generatepress
 Version: 1.0.0
 Text Domain: generatepress-child
*/


/* ======================================================
   FORCE LAYOUT (ListingHive Override)
====================================================== */

/* .hp-expert-single
{
    background: #f8f9fa;
    padding: 50px 0;
} 
*/

/*    FONT ONLY FOR PAGE  */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/*    GLOBAL FONT VARIABLES */
:root {
    --font-serif: "Playfair Display", serif !important;
    --font-sans: Inter, system-ui, -apple-system, sans-serif !important;
}

/*    ALL HEADINGS */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.wp-block-post-title {
    font-family: var(--font-serif) !important;
    font-style: normal;
}

/*    ITALIC SUPPORT */
em,
i {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}


#primary .hp-row {
    display: flex !important;
    align-items: flex-start;
    gap: 22px;
}

#primary .hp-col-sm-8,
#primary .hp-col-sm-4 
{
    float: none !important;
    max-width: none !important;
}

@media (min-width: 992px) 
{
    #primary .hp-col-sm-8 
    {
        width: 68%;
    }
    #primary .hp-col-sm-4 
    {
        width: 32%;
    }
    .wp-embed-responsive .wp-has-aspect-ratio iframe 
    {
    	height: 100vh;
	}
}
@media (max-width: 992px) 
{
	.hp-post-content
	{
    	height: 50vh;
    }
    .wp-embed-responsive .wp-has-aspect-ratio iframe 
    {
    	height: 50vh;
	}
}
/* ======================================================
   EXPERT SIDEBAR – FINAL DESIGN MATCH
====================================================== */

#primary .hp-expert-card 
{
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    position: sticky;
    top: 30px;
    isolation: isolate;
}

/* HEADER */
#primary .hp-expert-card__header 
{
    background: linear-gradient(135deg, #f6f2ea, #e4dccf);
    padding: 32px 0 56px;
    text-align: center;
}

/* EXPERT AVATAR – SQUARE VERSION */
#primary .hp-expert-card__avatar 
{
    width: 300px;
    height: 250px;
    border-radius: 12px; /* square with soft corners */
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #ffffff;
    background: #ffffff;
}

#primary .hp-expert-card__avatar img 
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* inner rounding for polish */
}


/* BODY */
#primary .hp-expert-card__body 
{
    padding: 60px 26px 28px;
    text-align: center;
}

/* NAME */
#primary .hp-expert-card__name 
{
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

/* COMPANY */
#primary .hp-expert-card__company {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5b6cff;
    margin-bottom: 14px;
}

/* BIO */
#primary .hp-expert-card__bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 22px;
}

/* CTA */
#primary .hp-button 
{
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b6cf6, #7a4cc9);
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

#primary .hp-button:hover 
{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(107,108,246,0.35);
}

/* SPONSOR */
#primary .hp-expert-card__sponsor 
{
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    margin-bottom: 25%;
}

#primary .hp-expert-card__sponsor small 
{
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

#primary .hp-expert-card__sponsor strong 
{
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: #111827;
}

/* ======================================================
   FINAL FIX: FORCE 2-COLUMN LAYOUT IN LISTINGHIVE
====================================================== */

/* Make ListingHive article allow flex children */
#primary #main > article 
{
    display: block !important;
    width: 100% !important;
}

/* Force our layout to be respected */
#primary .hp-expert-single 
{
    width: 100% !important;
}

/* THIS is the critical line */
#primary .hp-expert-single > .hp-container > .hp-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
}

/* Columns */
#primary .hp-col-sm-8 
{
    flex: 0 0 68% !important;
    max-width: 68% !important;
}

#primary .hp-col-sm-4 
{
    flex: 0 0 32% !important;
    max-width: 30% !important;
}

/* Mobile fallback */
@media (max-width: 991px) {
    #primary .hp-expert-single > .hp-container > .hp-row {
        flex-wrap: wrap !important;
    }

    #primary .hp-col-sm-8,
    #primary .hp-col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
/* ======================================================
   FINAL CENTERING FIX – EXPERT PAGES (CSS ONLY)
====================================================== */

@media (min-width: 1400px) 
{

  .container
	{
/*     	margin-left: 2rem; */
  	}
  
}

@media(min-width: 1600px)
{
    p
	{
    	font-size: larger;
  	}
}