/* ============================================================
   1. GLOBAL, HIDE ELEMENTS & ADA (WAVE) FIXES
   ============================================================ */
.footer2,
#triggerButton.t4-offcanvas-toggle {
    display: none !important;
}

/* FIX WAVE "EMPTY LINK" ERROR: Back to Top Button */
#back-to-top::after {
    content: "Back to Top";
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#back-to-top {
    background: #CC9966 !important;
    color: #3a0515 !important;
    border: 1px solid #ffffff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   2. FEATURE CARDS & TENANT STYLING
   ============================================================ */
.ks-feature-card h4.ks-gold-text {
    font: 800 1.65rem/1 sans-serif !important;
    text-transform: uppercase;
    color: #CC9966 !important;
    margin: 0 !important;
}

.ks-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(204, 153, 102, 0.3);
    border-radius: 10px;
}

.tenant-card h3.h5 {
    font: 800 1.45rem/1.2 sans-serif !important;
    color: #3a0515 !important;
    margin-top: 12px !important;
}

.section-title-wrap .sub-heading.h5 {
    color: #222222 !important;
    font-size: 1.3rem !important;
}

/* ============================================================
   3. CONTACT PAGE & TEAM CARD ALIGNMENT
   ============================================================ */
.contact-wrap {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.contact-details-panel {
    background: #3a0515 !important;
    padding: 40px !important;
    border-radius: 15px 0 0 15px;
}

.contact-visual-panel {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 0 15px 15px 0;
}

/* ============================================================
   MANAGEMENT TEAM: RESPONSIVE BUBBLE FIX
   ============================================================ */
/* Force the card to be a flexible column that centers everything */
.team-card {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    padding-bottom: 20px !important;
    border-radius: 15px !important;
    margin-bottom: 20px !important;
}

/* The Bubble Container */
.team-img-wrap {
    width: 200px !important;
    /* Slightly smaller for better mobile fit */
    height: 200px !important;
    margin: 25px auto 15px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    border: 3px solid #CC9966 !important;
    background-color: #fff !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    /* Prevents the circle from becoming an oval */
}

/* The Headshot Image */
.team-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    /* Keeps heads visible */
}

/* Adjustments for Mobile (Under 768px) */
@media (max-width: 767px) {
    .team-img-wrap {
        width: 160px !important;
        /* Smaller bubbles for small screens */
        height: 160px !important;
    }

    .team-card .card-body h3 {
        font-size: 1.25rem !important;
    }
}

/* Ensure card text is centered */
.team-card .card-body {
    text-align: center !important;
    width: 100% !important;
    padding: 0 15px !important;
}

/* ============================================================
   4. FOOTER & ADA COMPLIANCE
   ============================================================ */
#t4-footnav,
.ks-footer-unified,
.mod-footer {
    background: #000000 !important;
}

.ks-footer-header {
    color: #CC9966 !important;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    font-weight: 800;
}

.ks-footer-menu li a {
    color: #ffffff !important;
    font: 500 1.2rem sans-serif !important;
    margin-bottom: 10px;
    display: inline-block;
}

.ks-footer-text,
.ks-address-footer,
.ks-phone-footer a,
.footer1 {
    color: #ffffff !important;
    opacity: 1 !important;
}

.t4-palette-secondary {
    color: #000000 !important;
    font: 600 1.25rem sans-serif !important;
}

/* ============================================================
   5. SLIDESHOW & VISIBILITY
   ============================================================ */
#djslider187,
.dj-imageslider {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#djslider187 .slide-title {
    display: none !important;
}

#djslider187 .slide-desc {
    position: absolute !important;
    top: 55% !important;
    transform: translateY(-50%) !important;
    left: 8% !important;
    width: 45% !important;
    padding: 35px !important;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%) !important;
    border-left: 6px solid #CC9966 !important;
    z-index: 50 !important;
}

#djslider187 .hero-title,
#djslider187 [style*="color:#212c64"] {
    color: #CC9966 !important;
    font: 800 3rem sans-serif !important;
}

#djslider187 .hero-subtitle,
#djslider187 .slide-desc p {
    color: #ffffff !important;
    font-size: 1.5rem !important;
}

/* Slider Navigation */
#navigation187.navigation-container {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 98% !important;
    left: 1% !important;
    z-index: 100 !important;
}

.dj-imageslider .prev-button,
.dj-imageslider .next-button {
    background: rgba(58, 5, 21, 0.8) !important;
    border: 1px solid #CC9966 !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
}

/* ============================================================
   6. RELATIONSHIPS & TESTIMONIALS
   ============================================================ */
#t4-section-10 .display-4 {
    font: 800 3.5rem/1.1 sans-serif !important;
    color: #ffffff !important;
}

.ks-description-large {
    font-size: 1.5rem !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.ks-quote-text {
    font: 500 1.55rem/1.6 italic sans-serif !important;
    color: #222222 !important;
}

#testimonialSlider .text-left h4 {
    font: 800 1.35rem sans-serif !important;
    color: #3a0515 !important;
}

.avatar-circle-lg {
    background: #3a0515 !important;
    color: #ffffff !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font: 800 1.4rem sans-serif !important;
    border-radius: 50%;
    border: 2px solid #CC9966;
}

/* ============================================================
   WAVE "EMPTY LINK" PERMANENT FIX
   ============================================================ */
/* This targets both the ID and Class versions of the 'Back to Top' button */
#back-to-top::after,
.back-to-top::after,
#t4-back-to-top::after {
    content: "Back to Top";
    display: block !important;
    text-indent: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    font-size: 1px !important;
    color: transparent !important;
}

/* Ensure the button itself is visible to the browser engine */
#back-to-top,
.back-to-top {
    speak: never;
    /* Tells screen readers to use our ::after text instead */
}
