/* =========================
   AW Professionals (Awp)
   ========================= */

:root {
    --awp-red: #D5272D;
    --awp-text: #000;
    --awp-muted: rgba(0, 0, 0, .55);
    --awp-backdrop: rgba(0, 0, 0, .55);
}

/* ---------- Grid (no awp-cols-* anymore) ---------- */
.awp-grid {
   display: flex;
   flex-wrap: wrap;
}

/* ---------- Card ---------- */
.awp-card {
    text-align: left;
    width: 25%;
    padding-inline: 10px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.awp-img {
    max-height: 280px;
}

.awp-img img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
	object-position: top center;
    display: block;
}

.awp-name {
    margin-top: 30px;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--awp-text);
}

.awp-role {
    margin-bottom: 15px;
    color: var(--awp-muted);
    font-weight: 300;
    line-height: 1.2;
}

#about-page-pro .awp-role {
	margin-bottom: 20px;
}
/* ---------- CTA Bar (always) ---------- */

.awp-bar {
    margin-top: auto;
    background: var(--awp-red);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
	box-shadow:rgb(0 0 0 / 25%) 0 0 11px 0;
}

/* the text link inside the bar */
.awp-open-text {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
	line-height:1.2;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

/* ---------- Plus Button ---------- */
.awp-plus {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: visible;
    isolation: isolate;
}

/* infinite outlined ring ping (WHITE makes sense on red bar) */
.awp-plus::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 0px solid rgba(0, 0, 0, .75);
    opacity: .9;
    transform: scale(.65);
    z-index: -1;
    pointer-events: none;
    animation: awp-ping 1.4s ease-out infinite;
}

@keyframes awp-ping {
    0% {
        transform: scale(.65);
        opacity: .85;
        border-width: 0;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
        border-width: 8px;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
        border-width: 0;
    }
}

.awp-plus:hover::after {
    animation-duration: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
    .awp-plus::after {
        animation: none;
    }
}

/* ---------- Icons row (always under bar) ---------- */
/* Hidden in about page */
#about-page-pro .awp-icons{
	display:none;
}
.awp-icons {
    margin-top:0;
    display: flex;
    align-items: center;
    gap: 10px;
	margin-bottom:15px;
}

/* Icons (shared card + modal) */
.awp-ic {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--awp-red);
    text-decoration: none;
    position: relative;
}

.awp-ic::before{
  font-family: "ETmodules";
  speak: none;
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* temporary glyphs */
.awp-fb::before{
  content: "\e093";
}

.awp-li::before{
  content: "\e0cb";
}

.awp-em::before{
  content: "\e076";
}

.awp-web::before{
  content: "\e02c";
}

/* ---------- Modal ---------- */
.awp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.awp-modal[aria-hidden="false"] {
    display: block;
}

.awp-backdrop {
    position: fixed;
    inset: 0;
    background: var(--awp-backdrop);
    z-index: 99998;
}

/* IMPORTANT: ensure panel fits on mobile */
.awp-modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 50px);
    max-width: 900px;
    height: calc(100vh - 50px);
    max-height: 500px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 99999;
}

/* close button visibility */
.awp-close {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: var(--awp-text);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.3s ease-in-out;
}

.awp-close:hover {
    background: var(--awp-red);
}

.awp-modal-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    height: 100%;
}


.awp-modal-left img {
    width: 100%;
    height: 100% !important;
    max-height: 480px;
    object-fit: cover;
	object-position: top center;
    display: block;
    border-radius: 3px;
}

.awp-modal-right {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.awp-modal_header {
    flex: 0 0 auto;
    padding: 10px 25px;
    background: #fff;
    z-index: 2;
}

.awp-modal-title {
    font-weight: 600;
    text-transform: uppercase;
    color: #222;
    font-size: 32px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.awp-modal-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* scrollable description */
.awp-modal-bio {
    font-size: 15px;
    font-weight: 400;
    color: var(--awp-text);
    flex: 1 1 auto;
    overflow: auto;
    padding: 0 25px;
    -webkit-overflow-scrolling: touch;
}
/* Laptop and Desktop Device */
@media (max-width: 1400px) {

	.awp-card {width: 33.33%;}
}

/* tablet Device */
@media (max-width: 980px) {

        .awp-card {width: 50%}
}
/* mobile Device */
@media (max-width: 767px) {
	.awp-grid{
		flex-direction:column;
	}
    .awp-card {
		width: 100%;
		text-align:center;
	}


    .awp-modal-panel {
        top: 25px;
        left: 25px;
        transform: none;
        height: calc(100vh - 50px);
        max-height: 740px;
    }

    .awp-modal-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .awp-modal-left img {
        max-height: 280px;
    }

    .awp-modal-title {
        font-size: 24px;
    }


    .awp-modal-left img {
        height: auto;
    }

    .awp-modal_header {
        padding: 10px 10px;
    }

    .awp-modal-bio {
        padding: 0 15px 0px;
    }
	.awp-icons {
		justify-content:center;
	}
	

}


/* prevent background scroll when modal open */
html.awp-modal-open,
html.awp-modal-open body {
    overflow: hidden !important;
}