.second-accordion .col-md-6 {
    display: flex;
}

.second-accordion .card {
    width: 100%;
}

.part-col {
    padding: 15px 15px;
}
/* Center the map and country blocks */
#choose-country .row {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Country block styling */
.choose-country-block {
    position: relative;
    height: 150px;  /* Increase height */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.choose-country-block:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Overlay for text visibility */
.choose-country-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay color */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centered text */
.choose-country-heading {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: color 0.3s ease;
}

.choose-country-block:hover .choose-country-heading {
    color: #ffcc00; /* Optional hover color */
}

/* Adjust the column sizes for centering */
#country-map {
    max-width: 100%; /* Ensure the map container does not exceed its column */
    margin: 0 auto;
}

     /* Custom CSS for responsiveness */
 #visa-consultation .card-header button {
     white-space: normal; /* Allows text to wrap onto a new line */
     overflow-wrap: break-word; /* Breaks long words onto the next line if needed */
     text-align: left; /* Aligns the text to the left for readability */
     font-size: 1rem;
 }

#visa-consultation .card-body p {
    font-size: 0.95rem;
}

/* For smaller devices (tablets, mobiles) */
@media (max-width: 768px) {
    #visa-consultation .section-heading {
        font-size: 1.5rem;
    }
    #visa-consultation .card-header button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    #visa-consultation .card-body p {
        font-size: 0.9rem;
    }
}
#home-slider .home-item {
    height: 85vh; /* Adjust to desired height */
    display: flex;
    align-items: center; /* Center content vertically */
    background-size: cover;
    background-position: center;
    position: relative;
}

#home-slider .slider-dtl {
    text-align: left; /* Align text to the left */
    margin-left: auto; /* Align content block within the center */
    margin-right: auto;
    max-width: 700px;
    color: white;
    padding: 0 20px; /* Add padding for spacing */
}

.overlay-bg {
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.search-field .d-flex {
    align-items: center;
}

.search-icon i {
    font-size: 1.5rem;
}

.search-field h5 {
    font-size: 1rem;
    margin: 0;
}

.search-field input.form-control {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .search-field .d-flex {
        flex-direction: column;
        text-align: center;
    }
    .search-icon i {
        font-size: 1.5rem;
    }
}

.search-field h5 {
    font-size: 1rem;
    margin: 0;
}

.search-field input.form-control {
    margin-top: 0.5rem;
}

#top-ranked-partners {
    background-color: #f9f9f9;
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.section-title span {
    color: #e74c3c;
    text-decoration: underline;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.partner-logo {
    padding: 1rem;
    margin: 0.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
}

.home-slider-bg {
    display: flex;
    align-items: center;
    min-height: 81vh; /* Full viewport height */
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust overlay color and opacity as needed */
}

.slider-dtl {
    position: relative;
    z-index: 1;
    text-align: left; /* Adjust as needed */
    max-width: 600px; /* Limit width for better readability */
    margin: auto; /* Center the text container horizontally */
}

.section-heading {
    text-align: center; /* Center the heading text */
}

/* Basic alignment and styling for select fields */
.search-section .search-field {
    text-align: center;
}
.search-section select.form-control,
.search-section input.form-control {
    width: 100%;
    text-align: center;
}

/* Positioning for the course dropdown */
.position-relative {
    position: relative;
}

#course-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none; /* Initially hidden */
    z-index: 1000;
    padding: 0;
    list-style: none;
    margin-top: 5px;
}

#course-dropdown li {
    padding: 10px;
    cursor: pointer;
}

#course-dropdown li:hover {
    background-color: #f0f0f0;
}

/* Display dropdown on input focus */
#course-input:focus + #course-dropdown {
    display: block;
}

/* Overall Styling for Fields */
.search-section .search-field {
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
.search-section .search-field:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Styling for Select and Input Fields */
.search-section select.form-control,
.search-section input.form-control {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

/* Center Align Text and Icons */
.search-section .search-icon {
    font-size: 18px;
    color: #0651a7;
    margin-right: 5px;
}

/* Adjust Heading and Spacing */
.search-section h5 {
    font-size: 16px;
    color: #0651a7;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Adjust Button Style */
.search-section .btn-primary {
    background-color: #ffcc00;
    border: none;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.search-section .btn-primary:hover {
    background-color: #e6b800;
}

.text-search {
    color: #0651a7;
}

/* Define a custom form control class */
.custom-form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
    box-sizing: border-box;
}

/* Style for focus effect */
.custom-form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Add a subtle hover effect for both */
.custom-form-control:hover {
    border-color: #86b7fe;
}

/* Adjust the appearance for select elements */
.custom-form-control select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23999' d='M2 0L0 2h4zM2 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2rem;
}

/* Optional: specific style for larger screens */
@media (min-width: 768px) {
    .custom-form-control {
        font-size: 1.125rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Style for the dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Position below the input field */
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 200px; /* Optional: limit height if you have many items */
    overflow-y: auto;
    z-index: 1000;
}

/* Style each dropdown item */
.dropdown-menu li {
    padding: 0.5rem 1rem;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.15s;
}

/* Hover effect for dropdown items */
.dropdown-menu li:hover {
    background-color: #f8f9fa;
}

.form-group {
    position: relative;
    width: 100%;
}

/* Container adjustments */
.coaching-main-block-two .container {
    max-width: 100%;
    padding: 15px;
}

/* Ensure the test cards have consistent dimensions and responsive images */
.coaching-two {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.coaching-two:hover {
    transform: translateY(-5px);
}

.coaching-img {
    width: 100%;
    overflow: hidden;
}
.coaching-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coaching-dtl {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.coaching-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}
.coaching-dtl p {
    font-size: 14px;
    color: #666;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .coaching-two {
        margin-bottom: 15px;
    }
    .coaching-heading {
        font-size: 16px;
    }
}

/* Form and Contact section styling */
.country-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}
.country-form .form-group {
    margin-bottom: 15px;
}
.custom-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.request-button-two .btn {
    width: 100%;
    margin-top: 10px;
}

/* Contact info styling */
.country-contact-two {
    margin-top: 20px;
    position: relative;
}
.service-contact-img {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    height: 200px;
    position: relative;
}
.overlay-bg {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
}
.service-contact-dtl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.service-contact-dtl ul {
    list-style: none;
    padding: 0;
    color: #fff;
}
.service-contact-dtl ul li {
    font-size: 14px;
    margin: 5px 0;
}
.service-contact-dtl .text {
    color: #fff;
    text-decoration: underline;
}

/* Blog Card Styling */
.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img img {
    width: 100%;
    height: 200px; /* Adjust height to ensure uniformity */
    object-fit: cover;
}

.blog-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-sub-heading a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.blog-heading a {
    font-size: 1.2rem;
    color: #0066ff;
    text-decoration: none;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: #0066ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #0055cc;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* General section styling */
.map-location {
    padding: 20px;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1; /* Ensures the map section stays above other elements */
}

/* Container for maps */
.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Individual map styling */
.map {
    flex: 1 1 45%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 20px; /* Adds space between maps and footer */
}

.map h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.map .address {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Iframe styling */
.map iframe {
    width: 100%;
    height: 280px;
    border-radius: 5px;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .map {
        flex: 1 1 100%;
    }

    /* Additional bottom margin for map location to avoid overlap with footer */
    .map-location {
        margin-bottom: 60px; /* Adds space between map section and footer in mobile view */
    }
}
