/* Fix for Contact Section and Map */

/* Fix for contact card and general layout */
.contact-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px 15px 30px 15px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix for the contact card icon position */
.contact-card-header {
    position: relative;
    padding-top: 10px;
    display: flex;
    align-items: center;
}

/* Improved contact item styling */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.contact-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #002147, #003a7a);
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 10px;
}

.contact-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.contact-card-icon {
    position: relative;
    top: 0;
    right: auto;
    width: 60px;
    height: 60px;
    margin-left: 20px;
    margin-bottom: 0;
}

.title-default-left.title-bar-high {
    margin-bottom: 0;
}

/* Fix for the contact item icons */
.contact-icon-wrapper {
    width: 55px;
    height: 55px;
    min-width: 55px;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--secondary-color), #008eff);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.15);
    position: relative;
    margin-left: 5px;
}

.contact-item .contact-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: rgba(232, 176, 18, 0.2);
    z-index: -1;
}

.contact-item {
    padding: 20px 20px 20px 10px;
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 33, 71, 0.05);
    margin-left: -10px;
}

.contact-item:hover {
    transform: translateX(10px);
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.08);
}

#contact-us .contact-us-info2 ul li i {
    font-size: 24px;
    color: white !important;
    transition: all 0.3s ease;
}

.contact-item:hover #contact-us .contact-us-info2 ul li i {
    transform: scale(1.2);
}

.contact-text {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #002147;
    padding-top: 5px;
}

/* Fix for the map */
.google-map-area {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 350px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 33, 71, 0.1);
    background: white;
    margin-bottom: 0;
}

.map-card-header {
    margin-bottom: 0;
    padding: 20px;
    background: linear-gradient(135deg, #002147, #003366);
    border-radius: 20px 20px 0 0;
}

.google-map-area iframe {
    width: 100%;
    height: 100%;
    min-height: 420px; /* Increased height to match contact panel */
    display: block;
    border: none;
    border-radius: 0 0 20px 20px;
}

/* Contact card and map height equalization */
.contact-row {
    display: flex;
    align-items: stretch;
}

.contact-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Adjust contact-us-info2 to fill available space */
.contact-us-info2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-us-info2 ul {
    flex: 1;
    padding-left: 10px !important;
}

/* Fix map height to match contact panel height */
.google-map-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure iframe takes full height */
.map-card {
    display: flex;
    flex-direction: column;
}

/* Row height equalization */
.row.contact-row [class*="col-"] {
    margin-bottom: 0;
}

/* Adjust contact text alignment */
.contact-text {
    padding-top: 5px;
}

/* Fix for contact circles position */
.contact-item .contact-icon-wrapper::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
}

/* Add media query for responsive design */
@media (max-width: 991px) {
    .contact-card {
        margin-bottom: 30px;
    }

    .contact-card-header {
        padding-top: 10px;
    }

    .google-map-area iframe {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-left: 15px;
    }

    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .google-map-area iframe {
        height: 250px;
        min-height: 250px;
    }
    
    .contact-card {
        margin-bottom: 30px;
        height: auto;
    }
    
    .row.contact-row {
        margin-bottom: 20px;
    }
}

/* Final height adjustments for contact section */
@media (min-width: 992px) {
    .contact-row {
        min-height: 500px;
    }
    
    .contact-card, 
    .map-card {
        height: 100%;
    }
    
    .google-map-area {
        min-height: 430px;
    }
    
    .contact-us-info2 ul {
        min-height: 350px;
    }
}

/* Contact card social icons positioning */
.social-media-icons {
    margin-top: auto;
    padding-top: 20px;
}

/* Improve contact item appearance */
.contact-item {
    margin-bottom: 15px;
    padding: 15px 15px 15px 5px;
}

/* Override for larger screens to ensure proper alignment */
@media (min-width: 1200px) {
    .contact-row > div {
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-icon-wrapper {
        margin-left: 10px;
    }
}
