/* HOMEPAGE STYLES
************************************************************/

.mainContent section	{
	border-bottom: 1px solid var(--color-row-border);
}

section.bannerImage {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    position: relative; 
}

section.bannerImage .container	{
	max-width: 92%;
}

section.bannerImage	{ /* see https://www.ghro.com/ */
	min-height: 80vh;
	background-position: center right;	
	background-image: url('/wp-content/themes/hwd_wilson/images/oncology-site-banner-images/2227856-blue.jpg');	
	background-image: url('/wp-content/themes/hwd_wilson/images/oncology-site-banner-images/couple-0919-a.jpg');
	background-image: url('/wp-content/themes/hwd_wilson/images/oncology-site-banner-images/couple-0919-b.jpg');
	/*background-image: url('/wp-content/themes/hwd_wilson/images/oncology-site-banner-images/couple-0919-c.jpg');*/
	background-image: url('/wp-content/themes/hwd_wilson/images/oncology-site-banner-images/couple-0920-a.jpg');
	background-image: url('/wp-content/themes/hwd_wilson/images/banner-02.jpg');
	background-image: url('/wp-content/themes/hwd_wilson/images/banner-03.jpg');				
	
}

section.bannerImage .heroStatement {
    position: absolute;
    bottom: 8%; 
    left: 5%; 
    width: 500px;
    max-width: 90%; 
}

section.bannerImage .heroStatement h2 {
    font-size: 4rem;
    font-size: clamp(3rem, 3rem + .6vw, 4rem);
    font-weight: 600;
}

@media (max-width: 768px) {
    section.bannerImage .heroStatement {
        bottom: 5svh; 
        left: 5%; 
        width: 85%; 
    }
}

section.bannerImage .heroStatement h2 {
    text-shadow: 0 0 0px rgba(184, 165, 160, 0), 0 0 0px rgba(251, 250, 244, 0);
    text-shadow: 0 0 1px rgba(184, 165, 160, 0.2), 0 0 2px rgba(251, 250, 244, 0.1);
    transition: text-shadow 0.5s ease;
}

@media (max-width: 1400px) {
    section.bannerImage .heroStatement h2 {
        text-shadow: 0 0 1px rgba(184, 165, 160, 0.2), 0 0 10px rgba(251, 250, 244, 0.2);
    }
}

@media (max-width: 1300px) {
    section.bannerImage .heroStatement h2 {
        text-shadow: 0 0 3px rgba(184, 165, 160, 0.4), 0 0 20px rgba(251, 250, 244, 0.4);
    }
}

@media (max-width: 1200px) {
    section.bannerImage .heroStatement h2 {
        text-shadow: 0 0 4px rgba(184, 165, 160, 0.6), 0 0 30px rgba(251, 250, 244, 0.6);
    }
}

@media (max-width: 1100px) {
    section.bannerImage .heroStatement h2 {
        text-shadow: 0 0 5px rgba(184, 165, 160, 1), 0 0 40px rgba(251, 250, 244, 1);
    }
}

.sectionTitle	{
	text-align: center;
}

/*section.heroStatement .container	{
	max-width: 52rem;
}

section.heroStatement	{	
	text-align: center;
}

section.heroStatement h2	{	
	margin-top: 1em;
	font-size: 2em;
	font-style: italic;
	font-family: var(--font-quote);
}
*/

li.current_page_item	{
	display: none;
}

.sectionInner {
    padding: 5rem 0;
}

/* ABOUT SECTION
*****************/
section.about	{	
	background: linear-gradient(130.82deg, #c2c2ca 15%, #fdfbfb 64.18%, #fdfbfb 142.12%);
	border-bottom: 1px solid #f6eef1;
	.text	{
		font-size:1.2em;
		line-height: 1.7em;
	}  
}

h3 {
	text-transform: uppercase;
}

section.about .image {
	padding-right: 2vw;
	padding-bottom: 20px;
	@media (max-width: 769px) {padding-right: 0;}
}

/* animation in conjunction with script on homepage */
.about .wrapper { 
    opacity: 0;
    transform: translateY(50px); /* Start from below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about .wrapper.visible {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}


/* CONDITIONS */
section.conditions h2.sectionTitle {
    padding-top: 7rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for larger screens */
    grid-gap: 0; /* Adjust space between grid items */
}



.grid-item.condition {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Title, flexible content, and button aligned */
    background-color: #f6f5f1;
    padding: 3vw; 
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.4s ease, border 0.4s ease;
    height: 100%; /* Ensures all items have the same height */
}

.grid-item.condition:nth-child(2),
.grid-item.condition:nth-child(4) {
	background-color: #f0f0f0;
}

@media (max-width: 1300px) {
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns for medium screens */
        .grid-item.condition:nth-child(3) {background-color: #f0f0f0;}
        .grid-item.condition:nth-child(4) {background-color: #f6f5f1;}
    }
}

@media (max-width: 768px) {
    .conditions-grid {
        grid-template-columns: 1fr; /* Stack items in one column for small screens */
        .grid-item.condition:nth-child(2),
	.grid-item.condition:nth-child(4) {background-color: #f0f0f0;}
	.grid-item.condition:nth-child(3) {background-color: #f6f5f1;}
    }
}

.grid-item.condition:hover {
    background-color: white;
    border: 1px solid #f6eef1;
}

.grid-item .title {
    text-align: center;
    min-height: 5.5rem; /* Adjust this to match the height needed for the longest title */
    display: flex;
    align-items: center; /* Vertically center titles inside the min-height box */
    justify-content: center;
}

.grid-item .excerpt {
    display: flex;
    align-items: flex-start; /* Ensures all excerpts start at the same height */
}

.grid-item .readMore {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns the "Read more" button to the bottom */
}

/* Optional: Adjust image styling to fit within the grid nicely */
.grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image fills the space nicely without distortion */
}

/* VIDEO
*****************/
section.video {
	background: var(--color-accent1);
	.container,	
}

section.video h2	{
	color: var(--color-accent4);
	text-align: center;
	margin-bottom: 60px;
}

/* TREATMENTS
*****************/


.treatments .flex-row {
    display: flex;
    align-items: flex-start; /* Align the image and content to the top */
    margin-bottom: 2rem;
}

.treatments .image-left .image {order: 1;}
.treatments .image-left .content {order: 2;}
.treatments .image-right .image {order: 2;}
.treatments .image-right .content {order: 1;}

@media (max-width: 991px) {
	.treatments .image-right .image {order: 1;}
	.treatments .image-right .content {order: 2;}
}

.treatments .image {
    flex: 1 1 40%;
    margin: 0 auto 30px;
}

.treatments .content {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure the title stays at the top of the content column */
}

@media (max-width: 991px) {
    .treatments .flex-row {
        flex-direction: column;
    }

    .treatments .image {
    	max-width: 600px;
    	margin: 0 auto 30px;
    }
    .treatments .content {
        width: 100%;
        padding: 0;        
    }
    .treatments .image-left:first-child .content,
    .treatments .image-right .content {
    	border-bottom: 1px solid var(--color-accent2);
    	padding-bottom: 50px;
    	margin-bottom: 50px;
	}
}
@media (min-width:992px)	{
.treatments h3, .treatments p {margin-left:0;}
.treatments .image-left .content {padding: 0 0 30px 5rem;}
.treatments .image-right .content {padding: 0 5rem 30px 0;}
}

/* General styling for the icon div */
.conditions-grid .grid-item.condition .icon {
    width: 33.33%; /* 1/3 of the parent div's width */
    height: 0;
    padding-bottom: 33.33%; /* Keep it square */
    margin: 10px auto; /* Center the icon */
    background-size: cover;
    background-position: center;
}


/* Assign different background images based on post ID */
.post-id-23 .icon {
    background-image: url('/wp-content/themes/hwd_wilson/images/icons/lung-cancer.png'); /* Replace with correct image path */
}

.post-id-25 .icon {
    background-image: url('/wp-content/themes/hwd_wilson/images/icons/skin-cancer.png'); /* Replace with correct image path */
}

.post-id-27 .icon {
    background-image: url('/wp-content/themes/hwd_wilson/images/icons/melanoma.png'); /* Replace with correct image path */
}

.post-id-56 .icon {
    background-image: url('/wp-content/themes/hwd_wilson/images/icons/oligometastic-disease.png'); /* Replace with correct image path */
}

@media (max-width: 768px) {
    .conditions-grid .grid-item.condition .icon {
        width: 40%; /* Adjust for smaller screens */
        padding-bottom: 40%;
    }
}

@media (max-width: 480px) {
    .conditions-grid .grid-item.condition .icon {
        width: 50%; /* Further adjustment for very small screens */
        padding-bottom: 50%;
        margin-bottom: 30px;
    }
}

.benefitsOfPrivate .one-col.img img	{
	text-align: center;
	margin: 0 auto 50px;
}