/* Partners Section Styles */
#partners {
    padding: 20px 0 100px;
    position: relative;
    background: transparent;
}

/* Section Title Styling */
.partners-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0 0 60px 0;
    text-align: center;
}

.partners-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Partner Box Styling - Matching Management Box */
.partner-box {
    width: 350px;
    height: 100%;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.partner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Partner Images */
.ghost-image,
.pink-ribbon-image,
.united-convoys-image {
    height: 200px;
    position: relative;
    display: block;
    background-size: cover !important;
    background-position: center !important;
    overflow: hidden;
}

.ghost-image {
    background: url('/img/Partners/ghost-express.jpg');
}

.pink-ribbon-image {
    background: url('/img/Partners/prtruck.jpg');
}

.united-convoys-image {
    background: url('/img/Partners/uctruck.png');
}

/* Dark Overlay */
.ghost-image::before,
.pink-ribbon-image::before,
.united-convoys-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.partner-box:hover [class*="-image"]::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Partner Logo in Image */
.partner-logo-overlay {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10;
    width: 40px !important;
    height: auto !important;
    max-width: 40px !important;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.partner-box:hover .partner-logo-overlay {
    transform: scale(1.1);
}

/* Content */
.partner-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partner-name {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-motto {
    font-size: 16px;
    line-height: 1.6;
    color: #d0d0d0;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
}

/* Buttons */
.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-btn {
    display: block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-btn:hover {
    background: #16724B;
    border-color: #16724B;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(22, 114, 75, 0.4);
}

/* 
   FIX FOR MOBILE LOGO 
   Overrides potentially conflicting generic styles from style.css
*/
@media (max-width: 770px) {
    /* Ensure the overlay logo on mobile keeps its correct size and shape 
       even if style.css tries to make all .partners-container img 20% width and circular */
    .partners-container img.partner-logo-overlay {
        width: 40px !important;
        max-width: 40px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        background: none !important;
        display: block !important;
        right: 10px !important;
        top: 10px !important;
        padding-top: 0 !important; /* Fix for style.css padding interference */
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

