/* ============================================
   LEADERSHIP & VISION SECTION
   ============================================ */

.leadership-vision-section {
    padding: 0;
    margin: 80px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.leadership-vision-section .row {
    margin: 0;
}

.leadership-vision-section .container-fluid {
    padding: 0;
    overflow-x: hidden;
}

/* ============================================
   INFO CARD CONTAINER
   ============================================ */

.info-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

/* Background Image */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Overlay for readability */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Hover effect - zoom background */
.info-card:hover .card-background {
    transform: scale(1.08);
}

/* ============================================
   CARD IMAGE (Top feature image)
   ============================================ */

.card-image {
    position: absolute;
    top: 40px;
    left: 60px;
    width: 280px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: all 0.4s ease;
    max-width: calc(100% - 120px); /* Prevent overflow */
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.info-card:hover .card-image {
    transform: translateY(-10px);
}

.info-card:hover .feature-image {
    transform: scale(1.1);
}

/* ============================================
   CARD CONTENT
   ============================================ */

.card-content {
    position: relative;
    z-index: 4;
    color: #ffffff;
    max-width: 600px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Badge with icon */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    flex-wrap: wrap;
}

.card-badge i {
    color: #c62828;
    font-size: 10px;
    flex-shrink: 0;
}

.card-description {
    font-size: 16px;
    line-height: 1.8;
    color: #f5f5f5;
    margin-bottom: 30px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   READ MORE BUTTON
   ============================================ */

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.read-more-btn:hover {
    color: #ffd700;
    gap: 15px;
}

.read-more-btn:hover::after {
    width: 100%;
}

.read-more-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   CARD SPECIFIC STYLES
   ============================================ */

/* Leadership Card - Left side */
.leadership-card .card-background {
    filter: brightness(0.85);
}

.leadership-card .card-badge i {
    color: #c62828;
}

/* Vision Card - Right side */
.vision-card .card-background {
    filter: brightness(0.9);
}

.vision-card .card-badge i {
    color: #c62828;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .leadership-vision-section {
        margin: 50px 0;
    }

    .info-card {
        height: 500px;
        padding: 40px 30px;
        margin-bottom: 0;
    }

    .card-image {
        top: 30px;
        left: 30px;
        width: 220px;
        height: 160px;
        max-width: calc(100% - 60px);
    }

    .card-title {
        font-size: 36px;
    }

    .card-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .leadership-vision-section {
        margin: 40px 0;
    }

    .info-card {
        height: auto;
        min-height: 550px;
        padding: 30px 20px;
    }

    .card-image {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 300px;
        height: 200px;
        margin: 0 auto 30px;
    }

    .card-content {
        text-align: center;
        max-width: 100%;
    }

    .card-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .card-badge {
        justify-content: center;
        margin-bottom: 20px;
    }

    .card-description {
        text-align: left;
        margin-bottom: 25px;
        font-size: 15px;
    }

    .read-more-btn {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    /* Disable hover effects on mobile */
    .info-card:hover .card-background {
        transform: scale(1.02);
    }

    .info-card:hover .card-image {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .leadership-vision-section {
        margin: 30px 0;
    }

    .info-card {
        height: auto;
        min-height: 500px;
        padding: 25px 15px;
    }

    .card-image {
        max-width: 100%;
        height: 180px;
        margin-bottom: 25px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .card-badge {
        font-size: 13px;
        gap: 8px;
        margin-bottom: 15px;
    }

    .card-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .read-more-btn {
        font-size: 14px;
    }

    .card-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 20px 12px;
        min-height: 450px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .card-image {
        height: 160px;
    }
}

/* ============================================
   ANIMATION ON SCROLL (Optional)
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card.aos-animate .card-content {
    animation: fadeInUp 0.8s ease;
}
