.country-card-uk-bg {
    background-image: url('/Images/countries/unitedKingdom.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-us-bg {
    background-image: url('/Images/countries/study_usa_edd5b56931.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-canada-bg {
    background-image: url('/Images/countries/study_canada_8683ea418d.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-australia-bg {
    background-image: url('/Images/countries/study_australia_73fa9ee95d.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-china-bg {
    background-image: url('/Images/countries/china.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-france-bg {
    background-image: url('/Images/countries/study_france_90846e3dbb.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-italy-bg {
    background-image: url('/Images/countries/study_italy_6a83f37f20.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-finland-bg {
    background-image: url('/Images/countries/study_finland_68150dbcc4.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-uae-bg {
    background-image: url('/Images/countries/study_uae_9de2ef7ba3.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-kazakhstan-bg {
    background-image: url('/Images/MBBS/mbbs-in-kazakhstan.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-kyrgyzstan-bg {
    background-image: url('/Images/MBBS/mbbs-in-krygystan.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-ireland-bg {
    background-image: url('/Images/countries/study_ireland_1d755b5927.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-turkey-bg {
    background-image: url('/Images/countries/study_turkey_d95a97cc70.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-netherland-bg {
    background-image: url('/Images/countries/study_netherland_8ab2716c3c.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-newzealand-bg {
    background-image: url('/Images/countries/study_newzealand_bef1a3b338.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-denmark-bg {
    background-image: url('/Images/countries/study_denmark_06df14d597.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.country-card-germany-bg {
    background-image: url('/Images/countries/study_germany_c5c7504144.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Country Card Hover Animation Styles */
.country-card {
    position: relative;
}

/* Scholarship tag styling for country cards */
.scholarship-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background:
        linear-gradient(135deg, rgba(255, 248, 221, 0.98) 0%, rgba(255, 231, 164, 0.98) 46%, rgba(255, 193, 92, 0.98) 100%);
    color: #5f3400;
    z-index: 10;
    box-shadow: 0 16px 34px rgba(113, 63, 18, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scholarship-tag__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, #ed2057 0%, #ff7a59 100%);
    box-shadow: 0 8px 18px rgba(237, 32, 87, 0.28);
}

.scholarship-tag__icon i {
    font-size: 15px;
}

.scholarship-tag__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.scholarship-tag__eyebrow {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(95, 52, 0, 0.76);
}

.scholarship-tag__text {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    color: #4a2900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for scholarship tag */
@media (max-width: 768px) {
    .scholarship-tag {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        gap: 8px;
        padding: 8px 12px 8px 10px;
    }

    .scholarship-tag__icon {
        width: 30px;
        height: 30px;
    }

    .scholarship-tag__text {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .scholarship-tag__eyebrow {
        font-size: 9px;
    }

    .scholarship-tag__text {
        white-space: normal;
    }
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.6;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.country-card:hover::before {
    opacity: 0.8;
}

.country-info {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.country-info h6 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0 !important;
    transform: translateY(10px);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-info p {
    font-size: 14px !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    transform: translateY(30px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.country-card:hover .country-info h6 {
    transform: translateY(0);
    margin-bottom: 8px !important;
}

.country-card:hover .country-info p {
    transform: translateY(0);
    opacity: 1;
    max-height: 100px;
    margin-top: 8px !important;
}

.country-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.country-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Homepage Study Destinations Carousel Styles */
.study-destinations-carousel-section {
    background: #f8f9fa;
/*    padding: 100px 0;*/
}

.destinations-carousel-wrapper {
    position: relative;
    margin-top: 50px;
}

.destinations-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.destinations-carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
    margin: 0 -12px; /* Negative margin to offset column padding */
}

.country-card-item {
    flex: 0 0 25%;
    min-width: 0;
    padding: 0 12px; /* Bootstrap g-4 equivalent (1.5rem / 2 = 12px) */
    margin-bottom: 0; /* Remove any default margin */
}

/* Tablet: Show 2 cards */
@media (max-width: 991px) {
    .country-card-item {
        flex: 0 0 50%;
    }
}

/* Mobile: Show 1 card */
@media (max-width: 767px) {
    .country-card-item {
        flex: 0 0 100%;
        padding: 0 8px; /* Slightly less padding on mobile */
    }
    
    .destinations-carousel-track {
        margin: 0 -8px; /* Adjust negative margin for mobile */
    }
}

/* Ensure cards maintain their original styling and spacing */
.destinations-carousel-track .country-card-item .home-country-card {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Ensure card links take full height */
.destinations-carousel-track .country-card-item .home-country-card-link {
    height: 100%;
    display: block;
}

/* Legacy slide-based styles (kept for backward compatibility) */
.destinations-slide {
    display: none;
}

.destinations-slide.active {
    display: block;
}

/* Home Country Card Styles */
.home-country-card {
    position: relative;
    min-height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.destinations-empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.08) 100%);
    color: #5b6474;
    padding: 32px 24px;
}

.destinations-empty-state p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.home-country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.home-country-info {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.home-country-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.home-country-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Home Country Card Background Images */
.home-country-card-uk-bg {
    background-image: url('/Images/countries/unitedKingdom.png') !important;
}

.home-country-card-us-bg {
    background-image: url('/Images/countries/study_usa_edd5b56931.png') !important;
}

.home-country-card-canada-bg {
    background-image: url('/Images/countries/study_canada_8683ea418d.png') !important;
}

.home-country-card-australia-bg {
    background-image: url('/Images/countries/study_australia_73fa9ee95d.png') !important;
}

.home-country-card-germany-bg {
    background-image: url('/Images/countries/study_germany_c5c7504144.png') !important;
}

.home-country-card-china-bg {
    background-image: url('/Images/countries/china.jpg') !important;
}

.home-country-card-france-bg {
    background-image: url('/Images/countries/study_france_90846e3dbb.png') !important;
}

.home-country-card-italy-bg {
    background-image: url('/Images/countries/study_italy_6a83f37f20.png') !important;
}

.home-country-card-netherland-bg {
    background-image: url('/Images/countries/study_netherland_8ab2716c3c.png') !important;
}

/* Carousel Navigation */
.destinations-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.destinations-nav-btn {
    background: #ED2057;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.destinations-nav-btn:hover {
    background: #C41A47;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(237, 32, 87, 0.3);
}

.destinations-nav-btn:active {
    transform: scale(0.95);
}

.destinations-carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.destinations-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.destinations-dot.active {
    background: #ED2057;
    width: 30px;
    border-radius: 6px;
}

.destinations-dot:hover {
    background: #ED2057;
    transform: scale(1.2);
}

/* Additional responsive adjustments for carousel container */
@media (max-width: 991px) {
    .destinations-carousel-section {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .destinations-carousel-container {
        border-radius: 15px;
    }
    
    .destinations-carousel-section {
        padding: 60px 0;
    }
    
    .destinations-carousel-wrapper {
        margin-top: 30px;
    }
    
    .home-country-card {
        min-height: 350px; /* Slightly smaller on mobile */
    }
    
    .home-country-info {
        padding: 20px;
    }
    
    /* Make navigation buttons more touch-friendly on mobile */
    .destinations-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Adjust dots container for mobile */
    .destinations-carousel-dots {
        gap: 6px;
    }
    
    .destinations-dot {
        width: 8px;
        height: 8px;
    }
    
    .destinations-dot.active {
        width: 24px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .home-country-card {
        min-height: 350px;
    }
    
    .home-country-info {
        padding: 20px;
    }

    .destinations-carousel-nav {
        gap: 20px;
    }
    
    .destinations-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Study Abroad Steps Section Styles */
.study-abroad-steps-section {
    background: #fff;
/*    padding: 100px 0;*/
}

.steps-container {
    margin-top: 60px;
}

.study-step-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.study-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ED2057 0%, #F24A7A 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-step-card:hover::before {
    transform: scaleY(1);
}

.study-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(237, 32, 87, 0.15);
    border-color: #ED2057;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: #ED2057;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(237, 32, 87, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.study-step-card:hover .step-number {
    background: #ED2057;
    color: white;
    transform: scale(1.05);
}

.step-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.study-step-card:hover .step-content h4 {
    color: #ED2057;
}

.step-content p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.study-step-card:hover .step-content p {
    color: #495057;
}

/* Responsive Styles for Steps */
@media (max-width: 992px) {
    .study-step-card {
        padding: 30px 25px;
    }
    
    .step-content h4 {
        font-size: 20px;
    }
    
    .step-content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .study-abroad-steps-section {
        padding: 80px 0;
    }
    
    .steps-container {
        margin-top: 40px;
    }
    
    .study-step-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .step-content h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .step-content p {
        font-size: 14px;
    }
}

/* Blogs Section Styles */
.blogs-section {
    background: #f8f9fa;
/*    padding: 100px 0;*/
}

.blogs-container {
    margin-top: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-category {
    background: rgba(237, 32, 87, 0.1);
    color: #ED2057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: #6c757d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-date i {
    font-size: 11px;
}

.blog-title {
    margin-bottom: 15px;
    flex: 1;
}

.blog-title a {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: block;
}

.blog-title a:hover {
    color: #ED2057;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.blog-read-more {
    color: #ED2057;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #C41A47;
    gap: 12px;
}

.blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

.blog-views {
    color: #6c757d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-views i {
    font-size: 11px;
}

/* Responsive Styles for Blogs */
@media (max-width: 992px) {
    .blog-image-link {
        height: 220px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title a {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .blogs-section {
        padding: 80px 0;
    }
    
    .blogs-container {
        margin-top: 40px;
    }
    
    .blog-image-link {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title a {
        font-size: 16px;
    }
    
    .blog-excerpt {
        font-size: 13px;
    }
    
    .blog-meta {
        gap: 10px;
    }
    
    .blog-category {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .blog-date {
        font-size: 12px;
    }
}

            html {
                font-size: 14px;
            }

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(237, 32, 87, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

/* Custom Primary Color Variables */
:root {
  --primary-color: #ED2057;
  --primary-dark: #C41A47;
  --primary-light: #F24A7A;
  --primary-rgb: 237, 32, 87;
}

/* Override Bootstrap Primary Color */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Form Controls */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Links */
a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

/* Navigation */
.nav-link {
  color: var(--primary-color);
}

.nav-link:hover {
  color: var(--primary-dark);
}

/* Dropdown */
.dropdown-item:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* Pagination */
.page-link {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-link:hover {
  color: var(--primary-dark);
  background-color: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Progress */
.progress-bar {
  background-color: var(--primary-color);
}

/* Badge */
.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Alert */
.alert-primary {
  --bs-alert-color: #721c24;
  --bs-alert-bg: #f8d7da;
  --bs-alert-border-color: #f5c6cb;
}

/* Card */
.card-header.bg-primary {
  background-color: var(--primary-color) !important;
}

body {
/*  margin-bottom: 60px;*/
}

/* Header logo alignment override */
.header-3 .container-fluid {
    padding-left: 0px;
    padding-right: 1px;
}

/* Keep top nav in one line at common desktop widths */
.header-3 .mega-menu-wrapper .header-main .header-left .main-menu ul li a {
  font-size: 16px;
}
.header-3 .mega-menu-wrapper .header-main .header-right .header-button .theme-btn { padding: 12px 22px; }
.header-3 .mega-menu-wrapper .header-main .header-right .header-button .theme-btn span { font-size: 13px; }
.header-3 .mega-menu-wrapper .header-main .header-right .header-button .theme-btn i { margin-left: 6px; }
.header-3 .mega-menu-wrapper .header-main { gap: 16px; }
.header-3 .mega-menu-wrapper .header-main .header-right { 
  gap: 16px; 
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
}

/* Ensure user dropdown and hamburger menu are always in same row when logged in */
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  position: relative !important; /* Ensure proper positioning context */
}

.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .btn {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

/* Ensure dropdown menu is properly positioned and visible */
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  z-index: 1050 !important;
  min-width: 160px !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  background-color: #fff !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175) !important;
  transform: none !important; /* Override Popper.js transform */
  inset: auto !important; /* Override Popper.js inset */
}

.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu.show {
  display: block !important;
}

/* Ensure dropdown items are properly styled and clickable */
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item {
  display: block !important;
  width: 100% !important;
  padding: 0.25rem 1rem !important;
  clear: both !important;
  font-weight: 400 !important;
  color: #212529 !important;
  text-align: inherit !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background-color: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
}

.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item:hover,
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item:focus {
  color: #1e2125 !important;
  background-color: #e9ecef !important;
  text-decoration: none !important;
}

.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item:active {
  color: #fff !important;
  background-color: #0d6efd !important;
}

.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-divider {
  height: 0 !important;
  margin: 0.5rem 0 !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(0,0,0,.15) !important;
}

/* Force override any Popper.js positioning */
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu[style*="transform"],
.header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu[style*="inset"] {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
/*  inset: auto !important;*/
  margin: 0 !important;
}

/* Ensure auth buttons and hamburger menu are always in same row when not logged in */
.header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
}

.header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

@media (min-width: 1400px) {
  .header-3 .container-fluid { padding: 0 20px; }
}

/* Ensure proper layout for all screen sizes when logged in and not logged in */
@media (min-width: 768px) {
  .header-3 .mega-menu-wrapper .header-main .header-right {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 16px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile header improvements */
/* Base styles for hero slider buttons - ensure proper positioning on all devices */
.hero-3 .slider-button {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  /* Height will be set dynamically via JavaScript to match slide-bg */
  /* Fallback height to prevent collapse - will be overridden by JS with !important */
  height: 600px;
  min-height: 600px;
  pointer-events: none !important;
  z-index: 10 !important;
}

.hero-3 .slider-button .hero-nav-prev,
.hero-3 .slider-button .hero-nav-next {
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  .header-3 .mega-menu-wrapper .header-main {
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 70px;
  }
  
  /* Show hero navigation arrows on mobile */
  .hero-3 .slider-button {
    display: block !important;
  }
  
  .hero-3 .slider-button .hero-nav-prev,
  .hero-3 .slider-button .hero-nav-next {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 20px !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
  }
  
  .hero-3 .slider-button .hero-nav-prev {
    left: 1% !important;
  }
  
  .hero-3 .slider-button .hero-nav-next {
    right: 1% !important;
  }
  
  /* Ensure arrows are touch-friendly on mobile */
  .hero-3 .slider-button .hero-nav-prev:hover,
  .hero-3 .slider-button .hero-nav-next:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
  }
  
  /* Add touch feedback for mobile */
  .hero-3 .slider-button .hero-nav-prev:active,
  .hero-3 .slider-button .hero-nav-next:active {
    transform: translateY(-50%) scale(0.95) !important;
  }
}

/* Additional mobile styles for very small screens */
@media (max-width: 480px) {
  .hero-3 .slider-button .hero-nav-prev,
  .hero-3 .slider-button .hero-nav-next {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    font-size: 18px !important;
  }
  
  .hero-3 .slider-button .hero-nav-prev {
    left: 0.5% !important;
  }
  
  .hero-3 .slider-button .hero-nav-next {
    right: 0.5% !important;
  }
}

/* Mobile header improvements continued */
/* Changed from 767px to 991px to match meanmenu configuration (meanScreenWidth: "991") */
/* This ensures desktop menu hides and mobile menu (meanmenu) takes over for all tablets and mobile devices */
@media (max-width: 991px) {
  .header-3 .mega-menu-wrapper .header-main .logo {
    flex-shrink: 0;
    order: 1;
  }

    .header-3 .mega-menu-wrapper .header-main .logo img {
        max-height: 50px !important;
        width: 8rem;
        height: auto;
        margin-left: 0.8rem;
    }
  
  .header-3 .mega-menu-wrapper .header-main .header-left {
    display: none !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right {
    flex-shrink: 0;
    order: 2;
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-direction: row !important; /* Ensure horizontal layout */
  }
  
  /* Ensure user dropdown and hamburger menu are in same row when logged in */
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown {
    display: flex !important;
    align-items: center !important;
    margin-right: 8px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger {
    display: flex !important;
    align-items: center !important;
    margin-left: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: 8px !important;
    margin-left: 0 !important; /* Remove negative margin */
    margin-top: 0 !important; /* Remove vertical offset */
    flex-shrink: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    min-width: auto !important;
    height: auto !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn i {
    margin-right: 2px !important;
    font-size: 9px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger {
    order: 3;
    margin-left: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle {
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle .header-bar {
    width: 25px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle .header-bar span {
    height: 2px;
    background: var(--header);
    width: 100%;
    margin: 1px 0;
  }
}

@media (max-width: 575px) {
  .header-3 .mega-menu-wrapper .header-main {
    gap: 8px;
    padding: 8px 0;
    min-height: 65px;
  }
  
  .header-3 .mega-menu-wrapper .header-main .logo img {
    max-height: 45px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right {
    gap: 8px;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons {
    gap: 6px !important;
    margin-left: 0 !important; /* Remove negative margin */
    margin-top: 0 !important; /* Remove vertical offset */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn {
    padding: 2px 5px !important;
    font-size: 8px !important;
    height: auto !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn span {
    display: inline !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn i {
    margin-right: 1px !important;
    font-size: 7px !important;
  }
}

@media (max-width: 480px) {
  .header-3 .mega-menu-wrapper .header-main {
    padding: 6px 0;
    min-height: 60px;
  }
  
  .header-3 .mega-menu-wrapper .header-main .logo img {
    max-height: 40px !important;
  }

    .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons
   {
        margin-left: 0 !important; /* Remove negative margin */
        margin-bottom: 0 !important; /* Remove negative margin */
        margin-top: 0 !important; /* Remove vertical offset */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        height: auto !important;
    }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn {
    padding: 1px 4px !important;
    font-size: 7px !important;
    height: auto !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn span {
    display: inline !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn i {
    margin-right: 1px !important;
    font-size: 7px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle .header-bar {
    width: 22px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle .header-bar span {
    width: 100%;
    margin: 1px 0;
  }
}

/* Additional mobile header improvements */
@media (max-width: 767px) {
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .btn {
    padding: 6px 10px;
    font-size: 11px;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .btn i {
    margin-right: 3px;
    font-size: 10px;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .btn span {
    font-size: 10px;
  }
  
  /* Fix dropdown menu visibility on mobile */
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1050 !important;
    display: none !important;
    min-width: 160px !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175) !important;
    transform: none !important; /* Override Popper.js transform */
    inset: auto !important; /* Override Popper.js inset */
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu.show {
    display: block !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.25rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item:hover,
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .dropdown .dropdown-menu .dropdown-divider {
    height: 0 !important;
    margin: 0.5rem 0 !important;
    overflow: hidden !important;
    border-top: 1px solid rgba(0,0,0,.15) !important;
  }
}

/* Fix for meanmenu icons - ensure proper display without rotation */
.mean-expand i {
  transform: none !important;
  transition: none !important;
  font-style: normal !important;
  display: inline-block !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
}

.mean-expand i.fa-plus,
.mean-expand i.fa-minus {
  transform: none !important;
  transition: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Meanmenu expand button alignment */
.mean-expand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 1 !important;
  vertical-align: top !important;
  margin-top: 0.45rem !important;
}

/* Fix for meanmenu expanded dropdown background - maintain dark theme */
.mean-container .mean-nav ul li ul {
  background: #070337 !important; /* Dark background for expanded items */
}

.mean-container .mean-nav ul li ul li a {
  background: #070337 !important; /* Dark background for sub-menu items */
  color: #fff !important; /* White text for sub-menu items */
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle border */
}

.mean-container .mean-nav ul li ul li a:hover {
  background: rgba(255, 255, 255, 0.1) !important; /* Light hover effect */
  color: #fff !important;
}

/* Business Card Identity - Center Alignment */
.business-card__identity {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.ceo-profile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
}

.ceo-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

.ceo-image img {
  border-radius: 50% !important;
  border: 3px solid #ED2057 !important;
  width: 150px !important;
  height: 150px !important;
  object-fit: cover !important;
}

.ceo-details {
  text-align: center !important;
  width: 100% !important;
}

.business-card__name {
  text-align: center !important;
  margin-bottom: 10px !important;
}

.business-card__role {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.business-card__title {
  text-align: center !important;
  margin-bottom: 5px !important;
}

.business-card__title-underline {
  width: 60px !important;
  height: 2px !important;
  background-color: #ED2057 !important;
  margin: 0 auto !important;
}

/* Business Card Address - Left Align */
.business-card__address,
.business-card__contact-info,
.business-card__contact-item,
.business-card p,
.business-card .address,
.business-card .contact-details {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.business-card__contact-item {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.business-card__contact-item i {
  margin-right: 10px !important;
  margin-top: 2px !important;
}

.business-card__contact-item span,
.business-card__contact-item a {
  text-align: left !important;
  display: block !important;
}

/* Contact Form Icon Alignment */
.contact-section .input-group {
  display: flex !important;
  align-items: flex-start !important;
}

.contact-section .input-group .input-group-text {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 12px !important;
  background-color: #f8f9fa !important;
  border: 1px solid #ced4da !important;
  border-right: none !important;
}

.contact-section .input-group .form-control {
  text-align: left !important;
  border-left: none !important;
}

.contact-section .input-group textarea.form-control {
  resize: vertical !important;
  min-height: 120px !important;
}

/* Specific fix for textarea icon alignment */
.contact-section .input-group:has(textarea) .input-group-text {
  align-items: flex-start !important;
  padding-top: 15px !important;
}

/* Ensure proper touch targets for mobile - removed min-height/min-width to allow smaller buttons */
@media (max-width: 767px) {
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn,
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .header-3 .mega-menu-wrapper .header-main {
    padding: 4px 0;
    min-height: 55px;
  }
  
  .header-3 .mega-menu-wrapper .header-main .logo img {
    max-height: 35px !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons {
    margin-top: 0 !important; /* Remove vertical offset */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .auth-buttons .btn {
    padding: 2px 4px !important;
    font-size: 8px !important;
    height: auto !important;
  }
  
  .header-3 .mega-menu-wrapper .header-main .header-right .header__hamburger .sidebar__toggle .header-bar {
    width: 20px;
    height: 12px;
  }
}

/* Counter Section Centering - Override Bootstrap defaults */
.counter-section .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 15px !important;
}

.counter-section .row {
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.counter-section .col-xl-3,
.counter-section .col-sm-6,
.counter-section .col-md-6,
.counter-section .col-lg-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  padding: 0 15px !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

.counter-section .single-counter {
  max-width: 280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.counter-section .counter-icon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 20px auto !important;
}

.counter-section .counter-content {
  text-align: center !important;
  width: 100% !important;
}

/* Mobile-specific centering for iPhone and other devices */
@media (max-width: 1199px) {
  .counter-section .col-xl-3,
  .counter-section .col-sm-6,
  .counter-section .col-md-6,
  .counter-section .col-lg-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

@media (max-width: 767px) {
  .counter-section .container {
    padding: 0 10px !important;
  }
  
  .counter-section .col-xl-3,
  .counter-section .col-sm-6,
  .counter-section .col-md-6,
  .counter-section .col-lg-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  .counter-section .single-counter {
    max-width: 320px !important;
    width: 100% !important;
  }
}

/* iPhone 14 Pro Max and similar large phones */
@media (max-width: 430px) {
  .counter-section .container {
    padding: 0 5px !important;
  }
  
  .counter-section .col-xl-3,
  .counter-section .col-sm-6,
  .counter-section .col-md-6,
  .counter-section .col-lg-3 {
    padding: 0 5px !important;
  }
  
  .counter-section .single-counter {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

/* Force center alignment for all mobile devices */
@media (max-width: 768px) {
  .counter-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .counter-section .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .counter-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .counter-section .col-xl-3,
  .counter-section .col-sm-6,
  .counter-section .col-md-6,
  .counter-section .col-lg-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Testimonial Image Centering for Mobile */
@media (max-width: 768px) {
  .testimonial-section-new .testimonial-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .testimonial-section-new .author-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    position: relative;
  }
  
  .testimonial-section-new .author-image img {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .testimonial-section-new .star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    width: 100%;
  }
  
  .testimonial-section-new .testimonial-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .testimonial-section-new .testimonial-right {
    width: 100%;
    text-align: center;
  }
}

/* Footer Mobile Improvements */
@media (max-width: 768px) {
  .footer-new .footer-main .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  
  .footer-new .footer-main .col-xl-3,
  .footer-new .footer-main .col-lg-6,
  .footer-new .footer-main .col-md-6 {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 30px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  
  .footer-new .footer-main .footer-widget {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-new .footer-main .footer-widget h3 {
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .footer-widget p {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-new .footer-main .footer-links li {
    margin: 0 auto 10px auto;
    width: 100%;
    text-align: center;
  }
  
  .footer-new .footer-main .footer-links li a {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
  }
  
  /* Newsletter form mobile styling with proper height matching */
  .footer-new .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 300px;
  }
  
  .footer-new .newsletter-input {
    width: 100%;
    height: 50px; /* Match button height */
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .footer-new .newsletter-input::placeholder {
    color: #999;
    text-align: center;
  }
  
  .footer-new .newsletter-btn {
    width: 100%;
    height: 50px; /* Match input height */
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background-color: #dc3545;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .footer-new .newsletter-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
  }
  
  .footer-new .privacy-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Specific widget centering with perfect alignment */
  .footer-new .footer-main .services-widget {
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .footer-new .footer-main .services-widget h3 {
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .services-widget .footer-links {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-new .footer-main .services-widget .footer-links li {
    margin: 0 auto 10px auto;
    width: 100%;
    text-align: center;
  }
  
  .footer-new .footer-main .services-widget .footer-links li a {
    margin: 0 auto;
    display: inline-block;
    text-align: center;
    font-size: 12px;
  }
  
  .footer-new .footer-main .locations-widget {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-new .footer-main .locations-widget h3 {
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }

  .footer-new .footer-main .footer-widget h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-new .footer-main .locations-widget .address {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .contact-widget {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-new .footer-main .contact-widget h3 {
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .contact-widget .contact-email,
  .footer-new .footer-main .contact-widget .contact-phone {
    margin: 0 auto 10px auto;
    text-align: center;
    width: 100%;
  }
  
  .footer-new .footer-main .contact-widget .contact-email a,
  .footer-new .footer-main .contact-widget .contact-phone a {
    margin: 0 auto;
    display: inline-block;
    text-align: center;
  }
  
  /* Force perfect centering for all footer content */
  .footer-new .footer-main {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  .footer-new .footer-main .container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  /* Override any Bootstrap or other CSS that might be causing alignment issues */
  .footer-new .footer-main .services-widget,
  .footer-new .footer-main .locations-widget,
  .footer-new .footer-main .contact-widget {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
  }
}

/* CTA Section Centering for About Page */
.cta-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-section .row {
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-section .cta-content {
  text-align: center;
  margin-bottom: 30px;
}

.cta-section .cta-button {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-section .cta-content h2 {
  margin-bottom: 20px;
}

.cta-section .cta-content p {
  margin-bottom: 0;
}

/* Mobile responsive centering for CTA section */
@media (max-width: 768px) {
  .cta-section .row {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-section .col-xl-8,
  .cta-section .col-lg-8 {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .cta-section .col-xl-4,
  .cta-section .col-lg-4 {
    width: 100%;
    text-align: center;
  }
  
  .cta-section .cta-content {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .cta-section .cta-button {
    text-align: center;
    justify-content: center;
  }
}

/* Contact Section Centering for Mobile */
@media (max-width: 768px) {
  .contact-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contact-section .row {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
  
  .contact-section .col-lg-6 {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contact-section .business-card {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
  }
  
  .contact-section .contact-form-wrapper {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  
  .contact-section .contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .contact-section .contact-form-wrapper .form-note {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .contact-section .contact-form {
    margin: 0 auto;
    max-width: 100%;
  }
  
  .contact-section .form-group {
    margin-bottom: 20px;
  }
  
  .contact-section .input-group {
    width: 100%;
  }
  
  .contact-section .form-control {
    text-align: center;
  }
  
  .contact-section .submit-btn {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Countries Page - Get Started Button Centering for Mobile */
@media (max-width: 768px) {
  .country-detail-section .theme-btn.theme-btn-2 {
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
    width: fit-content;
    max-width: 200px;
  }
  
  .country-detail-section .col-xl-6 {
    text-align: center;
  }
  
  .country-detail-section .country-content {
    text-align: center;
  }
  
  .country-detail-section .country-features {
    text-align: center;
  }
  
  .country-detail-section .country-features h4 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .country-detail-section .country-features ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }
  
  /* CTA Section on Countries page */
  .cta-section .cta-button {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cta-section .theme-btn.theme-btn-2 {
    margin: 0 auto;
    display: block;
    width: fit-content;
    max-width: 250px;
  }
}

/* Offcanvas Area - Contact Us Button and Social Icons Centering for Mobile */
@media (max-width: 768px) {
  .offcanvas__wrapper .offcanvas__content .offcanvas__contact .header-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .offcanvas__wrapper .offcanvas__content .offcanvas__contact .header-button .theme-btn {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
    max-width: 200px;
    padding: 15px 30px;
  }
  
  .offcanvas__wrapper .offcanvas__content .offcanvas__contact .header-button .theme-btn span {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  /* Social Icons Centering */
  .offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 30px auto 0 auto !important;
    gap: 15px !important;
  }
  
  .offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
  }
}

/* Services section layout tighten */
.service-wrapper-3 { flex-wrap: wrap; gap: 20px; }
.service-wrapper-3 .service-box-items { flex: 1 1 22%; max-width: 23%; }
.service-wrapper-3 .service-box-items.style-2 { padding: 28px 16px; }
.service-wrapper-3 .service-box-items.style-2 .icon { font-size: 48px; }

@media (max-width: 1199px) {
  .service-wrapper-3 .service-box-items { flex: 1 1 30%; max-width: 31%; }
}
@media (max-width: 767px) {
  .service-wrapper-3 .service-box-items { flex: 1 1 46%; max-width: 48%; }
}
@media (max-width: 575px) {
  .service-wrapper-3 .service-box-items { flex: 1 1 100%; max-width: 100%; }
}

/* Services Overview Section Improvements */
.services-overview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-overview-section::before {
    content: '';
/*    position: absolute;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ED2057" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ED2057" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ED2057" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ED2057" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23ED2057" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 1;
}

.services-overview-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure equal height for service cards */
.services-overview-section .row {
    display: flex;
    flex-wrap: wrap;
}

.services-overview-section .col-xl-4,
.services-overview-section .col-lg-4,
.services-overview-section .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.services-overview-section .service-item {
    width: 100%;
}

/* Service Cards Styling for Services Page */
.service-item {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ED2057, #F24A7A, #ED2057);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(237, 32, 87, 0.15);
}

.service-icon {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.service-icon i {
    font-size: 60px;
    color: #ED2057;
    transition: all 0.4s ease;
    display: inline-block;
}

.service-item:hover .service-icon i {
    transform: scale(1.1);
    color: #ED2057;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    font-size: 24px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    transition: color 0.4s ease;
}

.service-item:hover .service-content h4 {
    color: #ED2057;
}

.service-content p {
    color: #1a1e21;
    line-height: 1.6;
    /*    margin-bottom: 20px;*/
    text-align: center;
    flex: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

    .service-features li {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        color: #1a1e21;
        font-size: 14px;
    }

.service-features li i {
    color: #ED2057;
    margin-right: 10px;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ED2057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    margin-top: auto;
    padding: 12px 20px;
    border: 2px solid #ED2057;
    border-radius: 25px;
    background: transparent;
}

.service-link:hover {
    background: #ED2057;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 32, 87, 0.3);
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.4s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments for service cards */
@media (max-width: 1199px) {
    .service-item {
        padding: 35px 25px;
    }
    
    .service-icon i {
        font-size: 50px;
    }
    
    .service-content h4 {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .service-item {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .service-icon i {
        font-size: 45px;
    }
    
    .service-content h4 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .service-item {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 40px;
    }
    
    .service-content h4 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 14px;
    }
}

/* Process Cards Styling for Our Process Section */
.process-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid transparent;
}

.process-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 32, 87, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.process-item:hover::before {
    opacity: 1;
}

.process-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(237, 32, 87, 0.15);
    border-color: #ED2057;
}

.process-icon {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.process-icon i {
    font-size: 64px;
    color: #ED2057;
    transition: all 0.4s ease;
    display: inline-block;
}

.process-item:hover .process-icon i {
    transform: scale(1.1) rotate(5deg);
    color: #ED2057;
}

.process-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}

.process-item:hover h4 {
    color: #ED2057;
}

.process-item p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 15px;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Process section background improvements */
.service-process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.service-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="process-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ED2057" opacity="0.03"/><circle cx="80" cy="80" r="1" fill="%23ED2057" opacity="0.03"/><circle cx="40" cy="60" r="0.5" fill="%23ED2057" opacity="0.02"/><circle cx="60" cy="40" r="0.5" fill="%23ED2057" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23process-grain)"/></svg>');
    z-index: 1;
}

.service-process-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure equal height for process cards */
.service-process-section .row {
    display: flex;
    flex-wrap: wrap;
}

.service-process-section .col-xl-3,
.service-process-section .col-lg-3,
.service-process-section .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.service-process-section .process-item {
    width: 100%;
}

/* Responsive adjustments for process cards */
@media (max-width: 1199px) {
    .process-item {
        padding: 35px 25px;
    }
    
    .process-icon i {
        font-size: 45px;
    }
    
    .process-item h4 {
        font-size: 20px;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .process-item {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .process-icon i {
        font-size: 40px;
    }
    
    .process-item h4 {
        font-size: 18px;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: -12px;
        right: 15px;
    }
}

@media (max-width: 767px) {
    .process-item {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .process-icon i {
        font-size: 35px;
    }
    
    .process-item h4 {
        font-size: 16px;
    }
    
    .process-item p {
        font-size: 14px;
    }
    
    .process-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
        top: 25px;
        right: 10px;
    }
}

/* Service Features Section Styling */
.service-features-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.service-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="features-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="%23ED2057" opacity="0.04"/><circle cx="70" cy="70" r="1" fill="%23ED2057" opacity="0.04"/><circle cx="50" cy="20" r="0.5" fill="%23ED2057" opacity="0.02"/><circle cx="20" cy="80" r="0.5" fill="%23ED2057" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23features-grain)"/></svg>');
    z-index: 1;
}

.service-features-section .container {
    position: relative;
    z-index: 2;
}

.features-content {
    position: relative;
    z-index: 2;
}

.features-content .section-title h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.features-content .section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ED2057, #F24A7A);
    border-radius: 2px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 32, 87, 0.02) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(237, 32, 87, 0.15);
    border-color: #ED2057;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ED2057, #F24A7A);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(237, 32, 87, 0.3);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(237, 32, 87, 0.4);
}

.feature-icon i {
    color: white;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.feature-text h5 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-text h5 {
    color: #ED2057;
    transform: translateX(5px);
}

.feature-text p {
    color: white;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-text p {
    color: #495057;
}

.features-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.features-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.features-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for feature items */
@media (max-width: 1199px) {
    .features-content .section-title h3 {
        font-size: 28px;
    }
    
    .feature-item {
        padding: 20px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 20px;
    }
    
    .feature-text h5 {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .features-content .section-title h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .feature-item {
        padding: 18px;
        gap: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 18px;
    }
    
    .feature-text h5 {
        font-size: 16px;
    }
    
    .feature-text p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .features-content .section-title h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .feature-item {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .feature-icon i {
        font-size: 20px;
    }
    
    .feature-text h5 {
        font-size: 16px;
        text-align: center;
    }
    
    .feature-text p {
        font-size: 14px;
        text-align: center;
    }
    
    .feature-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 575px) {
    .features-content .section-title h3 {
        font-size: 20px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 16px;
    }
    
    .feature-text h5 {
        font-size: 15px;
    }
    
    .feature-text p {
        font-size: 13px;
    }
}


/* Enhanced CEO Card Styles for Team Page */
.ceo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #ED2057 !important;
    border-radius: 25px !important;
    padding: 0 !important;
    margin-bottom: 50px !important;
    box-shadow: 0 15px 40px rgba(237, 32, 87, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
    position: relative !important;
}

.ceo-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #ED2057, #F24A7A, #ED2057) !important;
    animation: gradientShift 3s ease-in-out infinite !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ceo-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 60px rgba(237, 32, 87, 0.25) !important;
    border-color: #C41A47 !important;
}

.ceo-card-content {
    display: flex !important;
    padding: 40px !important;
    gap: 40px !important;
}

.ceo-left-section {
    flex: 0 0 300px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.ceo-profile-section {
    text-align: center !important;
    animation: slideInLeft 0.8s ease-out !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ceo-image-wrapper {
    position: relative !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 25px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 5px solid #ED2057 !important;
    box-shadow: 0 10px 30px rgba(237, 32, 87, 0.3) !important;
    transition: all 0.3s ease !important;
}

.ceo-image-wrapper:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(237, 32, 87, 0.4) !important;
}

.ceo-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.ceo-image-wrapper:hover img {
    transform: scale(1.1) !important;
}

.ceo-image-overlay {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
}

.ceo-status {
    background: rgba(40, 167, 69, 0.9) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(10px) !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-dot {
    width: 8px !important;
    height: 8px !important;
    background: #fff !important;
    border-radius: 50% !important;
    animation: blink 1.5s infinite !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.ceo-info {
    animation: fadeInUp 0.8s ease-out 0.2s both !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ceo-name {
    font-size: 32px !important;
    color: #ED2057 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    font-family: 'Playfair Display', serif !important;
    text-shadow: 0 2px 4px rgba(237, 32, 87, 0.1) !important;
}

.ceo-title {
    font-size: 18px !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.ceo-experience, .ceo-location {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    color: #495057 !important;
    font-size: 14px !important;
}

.ceo-experience i, .ceo-location i {
    color: #ED2057 !important;
    font-size: 16px !important;
}

.ceo-right-section {
    flex: 1 !important;
    animation: slideInRight 0.8s ease-out 0.4s both !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ceo-description h5 {
    color: #2c3e50 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

.ceo-description h5::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #ED2057, #F24A7A) !important;
    border-radius: 2px !important;
}

.ceo-description p {
    color: #2c3e50 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
    font-weight: 500 !important;
}

.ceo-description ul {
    list-style: none !important;
    list-style-image: none !important;
    padding-left: 0 !important;
    margin: 0 0 25px 0 !important;
}

.ceo-description ul li::marker {
    content: none !important;
    display: none !important;
}

.ceo-description ul li {
    position: relative !important;
/*    padding-left: 2.25em !important;*/
    margin-bottom: 12px !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.ceo-description ul li::before {
/*    content: '\f00c' !important;*/
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.15em !important;
    width: 1.35em !important;
    height: 1.35em !important;
    background: #28a745 !important;
    color: #fff !important;
    font-size: 0.75em !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide duplicate checkmark icons from CMS/content so only ::before (solid green tick) shows */
.ceo-description ul li .fa-check,
.ceo-description ul li i.fa-check,
.ceo-description ul li i[class*="fa-check"] {
    display: none !important;
}

/* Same single checkmark for lists in Full Biography section */
.bio-content ul {
    list-style: none !important;
    list-style-image: none !important;
    padding-left: 0 !important;
    margin: 0 0 1rem 0 !important;
}
.bio-content ul li {
    position: relative !important;
/*    padding-left: 2.25em !important;*/
    margin-bottom: 0.5rem !important;
}
.bio-content ul li::before {
/*    content: '\f00c' !important;*/
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.15em !important;
    width: 1.35em !important;
    height: 1.35em !important;
    background: #28a745 !important;
    color: #fff !important;
    font-size: 0.75em !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.bio-content ul li .fa-check,
.bio-content ul li i.fa-check,
.bio-content ul li i[class*="fa-check"] {
    display: none !important;
}

.ceo-expertise h6 {
    color: #2c3e50 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.expertise-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
}

.tag {
    background: linear-gradient(135deg, #ED2057, #F24A7A) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.tag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(237, 32, 87, 0.3) !important;
}

.ceo-contact-info h6, .ceo-social h6 {
    color: #2c3e50 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(237, 32, 87, 0.1) !important;
}

.contact-item:hover {
    background: rgba(237, 32, 87, 0.1) !important;
    transform: translateX(5px) !important;
}

.contact-item i {
    color: #ED2057 !important;
    font-size: 16px !important;
    width: 20px !important;
}

.contact-item a, .contact-item span {
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
    font-weight: 500 !important;
}

.contact-item a:hover {
    color: #ED2057 !important;
}

.ceo-social {
    margin-top: 25px !important;
}

.social-links {
    display: flex !important;
    gap: 15px !important;
}

.social-link {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.social-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #ED2057, #F24A7A) !important;
    transition: all 0.3s ease !important;
    z-index: -1 !important;
}

.social-link:hover::before {
    transform: scale(1.1) !important;
}

.social-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(237, 32, 87, 0.3) !important;
}

.social-link.linkedin::before { background: linear-gradient(135deg, #0077b5, #00a0dc) !important; }
.social-link.twitter::before { background: linear-gradient(135deg, #1da1f2, #0d8bd9) !important; }
.social-link.facebook::before { background: linear-gradient(135deg, #1877f2, #0d6efd) !important; }
.social-link.instagram::before { background: linear-gradient(135deg, #e4405f, #f77737) !important; }



/* Responsive adjustments for enhanced CEO card */
@media (max-width: 1200px) {
    .ceo-card-content {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 30px !important;
    }
    
    .ceo-left-section {
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .ceo-card {
        padding: 0 !important;
        margin-bottom: 30px !important;
    }
    
    .ceo-card:hover {
        transform: none !important;
    }
    
    .ceo-card-content {
        padding: 25px 20px !important;
        gap: 25px !important;
    }
    
    .ceo-left-section {
        width: 100% !important;
    }
    
    .ceo-right-section {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .ceo-description {
        margin-bottom: 1.25rem !important;
    }
    
    .ceo-description p {
        margin-bottom: 1rem !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    .ceo-description p:last-of-type {
        margin-bottom: 1.25rem !important;
    }
    
    .ceo-description ul {
        margin-bottom: 1.25rem !important;
    }
    
    .ceo-description ul li {
        padding-left: 2.25em !important;
        margin-bottom: 10px !important;
        font-size: 15px !important;
        display: block !important;
    }
    
    .ceo-description ul li::before {
        display: flex !important;
    }
    
    .ceo-expertise {
        margin-bottom: 1.25rem !important;
    }
    
    .ceo-expertise h6 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .ceo-contact-info {
        margin-bottom: 1.25rem !important;
    }
    
    .ceo-contact-info h6, .ceo-social h6 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .contact-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
        padding: 10px 12px !important;
    }
    
    .contact-item i {
        flex-shrink: 0 !important;
        font-size: 14px !important;
    }
    
    .ceo-name {
        font-size: 28px !important;
    }
    
    .ceo-image-wrapper {
        width: 150px !important;
        height: 150px !important;
    }
    
    .expertise-tags {
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    
    .social-links {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .ceo-card-content {
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    
    .ceo-name {
        font-size: 24px !important;
    }
    
    .ceo-image-wrapper {
        width: 120px !important;
        height: 120px !important;
    }
    
    .ceo-description h5 {
        font-size: 20px !important;
    }
    
    .ceo-description p {
        font-size: 14px !important;
        margin-bottom: 0.875rem !important;
    }
    
    .ceo-description ul li {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .contact-item {
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
    }
    
    .contact-item i {
        font-size: 13px !important;
    }
    
    .expertise-tags {
        gap: 6px !important;
    }
    
    .tag {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add padding to sections to account for fixed header */
#china-section,
#kazakhstan-section,
#kyrgyzstan-section {
    scroll-margin-top: 120px; /* Adjust based on your header height */
    position: relative;
}

/* Ensure sections are visible and properly spaced */
.country-detail-section {
    min-height: 600px;
    padding: 100px 0 80px 0;
}

/* MBBS Page Specific Styles */
.mbbs-overview-section {
    padding: 80px 0;
}

.why-mbbs-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.why-mbbs-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.why-mbbs-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-mbbs-card .card-icon {
    position: relative;
    margin-bottom: 25px;
}

.why-mbbs-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ED2057, #F24A7A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-mbbs-card .icon-wrapper i {
    font-size: 32px;
    color: #fff;
}

.why-mbbs-card .icon-bg {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: rgba(237, 32, 87, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.why-mbbs-card .card-content h4 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-mbbs-card .card-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.why-mbbs-card .card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-mbbs-card .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.why-mbbs-card .feature-item i {
    color: #ED2057;
    font-size: 12px;
}

.mbbs-process-section {
    padding: 80px 0;
}

.process-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ED2057, #F24A7A);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.process-card:last-child::before {
    display: none;
}

.process-content h4 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.process-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mbbs-comparison-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.comparison-table-custom {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table-custom thead th {
    background: linear-gradient(135deg, #ED2057, #F24A7A);
    color: #fff;
    border: none;
    padding: 20px 15px;
    font-weight: 600;
    text-align: center;
}

.comparison-table-custom thead th i {
    margin-right: 8px;
    font-size: 16px;
}

.comparison-table-custom tbody td {
    padding: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

.country-info-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.country-flag-small {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

.country-name {
    font-weight: 600;
    color: #333;
}

.recognition-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cost-cell {
    font-weight: 600;
    color: #ED2057;
}

.duration-cell {
    font-weight: 600;
    color: #333;
}

.language-cell {
    font-weight: 500;
    color: #28a745;
}

/* Responsive adjustments for MBBS page */
@media (max-width: 768px) {
    .why-mbbs-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .process-card::before {
        display: none;
    }
    
    .comparison-table-custom {
        font-size: 14px;
    }
    
    .comparison-table-custom thead th {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .comparison-table-custom tbody td {
        padding: 12px 8px;
    }
    
    .country-info-cell {
        flex-direction: column;
        gap: 5px;
    }
    
    .country-flag-small {
        width: 20px;
        height: 15px;
    }
}
