/* ==========================================================
   PERFECT 50/50 LAYOUT RULES
   ========================================================== */

.contact-body-inner {
    display: flex;
    align-items: stretch; 
    justify-content: space-between;
    gap: 40px; 
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-form-col,
.contact-info-col {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.contact-vert-divider {
    flex: 0 0 1px;
    width: 1px;
    background-color: #ddd;
    align-self: stretch; 
}

@media (max-width: 992px) {
    .contact-body-inner {
        flex-direction: column;
    }
    .contact-form-col,
    .contact-info-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .contact-vert-divider {
        width: 100%;
        height: 1px;
        margin: 40px 0;
    }
    .am-slideshow {
        width: 100% !important;
        height: 500px !important;
    }
    .am-image {
        height: 400px !important;
    }
}

/* ==========================================================
   SLIDESHOW CSS 
   ========================================================== */

.am-slideshow {
    position: relative;
    width: 80%;
    height: 680px;
    margin: auto;
    overflow: hidden; /* Hide slides that are outside the 100% box */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.am-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translateZ(0);
}

.am-slide {
    flex: 0 0 100%; /* Force each slide to be EXACTLY 100% of the box width */
    width: 100%;
    height: 100%;
    display: flex !important; 
    flex-direction: column;
    position: relative;
}

/* Image fills the top half perfectly */
.am-image {
    width: 100%;
    height: 630px; 
    object-fit: cover; /* Keeps image full without white bars */
    display: block;
    border-radius: 8px 8px 0 0;
}

.am-caption {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    padding: 0 20px;
    background-color: #fff;
}

/* Navigation Arrows */
.am-prev, .am-next {
    cursor: pointer;
    position: absolute;
    top: 275px; 
    transform: translateY(-50%);
    width: auto;
    padding: 12px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    z-index: 10;
}

.am-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.am-prev:hover, .am-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Pagination Dots */
.am-dots {
    position: absolute;
    bottom: 115px; /* Safely sitting on top of the image */
    width: 100%;
    text-align: center;
    z-index: 10;
}

.am-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.am-dot.active, .am-dot:hover {
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}