/* Sitewide Transparent Header in Desktop and Tablet */
@media only screen and (min-width: 768px) {
    .siteInnerWrapper .headerAndNavContainer {
        position: absolute;
        background-color: transparent;
        background-image: none;
        z-index: 99;
    }
}

/* Equalize Simple List Blocks - Affiliations Homepage */

/* Change item class here */
.items_add9e939dea24fa98b74c70a3b41c922 { 
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	min-height: 100%;
}

/* Change item class here */
.items_add9e939dea24fa98b74c70a3b41c922 > .item {
	display: flex;
	flex-direction: column;
}

/* Full Width Gallery Images in Mobile */

@media only screen and (max-width: 767px) {
    .blockContent.cols2 .imgGridItem {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}

@media only screen and (max-width: 767px) {
    .blockContent.cols4 .imgGridItem {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}

@media only screen and (max-width: 767px) {
    .blockContent.cols3 .imgGridItem {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}

/* Equalize Simple List Blocks - Residential Roofing Page */

/* Change item class here */
.items_bf32bdc5245b47baa5c77041ab0fc48c { 
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	min-height: 100%;
}

/* Change item class here */
.items_bf32bdc5245b47baa5c77041ab0fc48c > .item {
	display: flex;
	flex-direction: column;
}


/* Equalize Simple List Blocks - Commercial Roofing Page */

/* Change item class here */
.items_d785c57b14f440a391b00c8d705594be { 
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	min-height: 100%;
}

/* Change item class here */
.items_d785c57b14f440a391b00c8d705594be > .item {
	display: flex;
	flex-direction: column;
}

/* 2 Column Maps */
@media only screen and (min-width: 768px) {
    #madFormContainer,
    #madHeroContent {
        width: 50%;
        float: left;
    }

    div#madHero {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
    }
}

.madTitle {
    font-size: 30px; 
    color: #fff;
}

.madContent {
    font-size: 18px; 
    color: #fff;
}

/* 2 Column Maps */
@media only screen and (min-width: 768px) {
    #madFormContainer2,
    #madHeroContent2 {
        width: 50%;
        float: right;
    }

    div#madHero2 {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
    }
}

/*Custom CTA Styles*/
.cta-container {
    font-family: Georgia, sans;
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
    margin: 50px auto;
    max-width: 1800px;
}


/* Individual CTA Item (the <a> link tag) */
.cta-item {
    /* Flex item sizing: grow, shrink, with a base width of 300px */
    flex: 1 1 300px;

    /* This creates the 1:1 square aspect ratio */
    aspect-ratio: 1 / 1;

    /* Background image properties */
    background-size: cover;
    background-position: center;

    /* Positioning context for the overlay and text */
    position: relative;

    /* Flexbox to center the text content within the CTA */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Aesthetics */
    overflow: hidden; /* Ensures the overlay respects the border-radius */
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-container > .cta-item{
    flex-basis: 17%;
}

/* Add a nice hover effect */
.cta-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* The semi-transparent overlay using a pseudo-element */
.cta-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay with 50% opacity */
    z-index: 1; /* Places the overlay below the text */
    transition: all 0.3s ease;
}

/* Lighten the overlay on hover to reveal more of the image */
.cta-item:hover::before {
    background-color: rgba(0, 0, 0, 0.7);
}

.cta-item:hover h2{
    font-size: 2.0rem;    
    
}

/* Container for the text content */
.cta-text {
    position: relative; /* Ensures text is above the pseudo-element overlay */
    z-index: 2;
    padding: 20px;
    transition: all .3s ease;
}

.cta-item:hover .cta-text {
    padding: 10px;
}

.cta-text h2 {
    /*font-size: 2rem;*/
    font-size: calc(1vw + 1vh);
    color: white;
    margin: 0 0 10px 0;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.cta-text img {
    max-width: 100%;
}


/* On smaller screens, stack the CTAs vertically */
@media (max-width: 768px) {
    .cta-container {
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .cta-container > .cta-item {
        flex-basis: 45%;
    }

    .cta-item {
        width: 90%; /* Make CTAs wider on mobile */
        max-width: 400px;
        flex-basis: auto; /* Reset flex-basis for vertical layout */
    }

    .cta-text h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 450px){
    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
}

/*Team Pages*/
/* Main card container */
.team-member-card {
    display: flex;
    max-width: 950px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

/* Left column for the image */
.image-container {
    flex: 0 0 40%; /* Sets the width of the image column to 40% */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
}

/* Right column for the text content */
.info-container {
    flex: 0 0 60%; /* Sets the width of the info column to 60% */
    padding: 40px;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    box-sizing: border-box;
}

/* Name heading */
.info-container h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-family: Georgia, sans;
}

/* Description paragraph */
.info-container p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes the email bar to the bottom */
}

/* Container for button and social icons */
.actions {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* "READ MORE" button */
.read-more-btn {
    border: 1px solid #5E5A58;
    padding: 10px 20px;
    text-decoration: none;
    color: #b9a97d;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #5E5A58;
    color: #fff;
}


.actions a.zocial {
    color: white;
    font-size: 28px;
    margin: 0 8px;
    padding: 0 8px;
    height: 44px;
    background: #5E5A58;
    border-radius: 20px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .team-member-card {
        flex-direction: column; /* Stacks columns vertically */
    }

    .info-container {
        padding: 30px;
    }
}