.img-fluid {
    max-width: 100%;
    height: 370px;
}
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #007bff !important;
}
.navbar-nav .nav-link.active {
    color: #007bff !important;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dropdown-toggle.no-click {
    pointer-events: none;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.page-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 90%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 233px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 138, 0.7);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background: transparent;
    justify-content: center;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #f8f9fa;
}
.home-hero {
    padding: 50px 0 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(57, 83, 146, 0.8);
}
.home-hero h1 {
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 138, 0.7);
}
.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.country-box {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 227px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.country-box:hover {
    transform: translateY(-10px);
}

.country-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.country-box:hover .country-image {
    transform: scale(1.1);
}

.country-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.country-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: white;
}

.country-overlay span {
    font-size: 14px;
    opacity: 0.9;
}

.top-info li {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.top-info li a {
    color: white;
    text-decoration: none;
}

.top-info li a:hover {
    color: var(--secondary-color);
}

.top-social {
    display: inline-flex;
    align-items: center;
}

.top-social li {
    margin-left: 10px;
}

.top-social li a {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-social li a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 991px) and (min-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }
    .country-box {
        max-width: 100%;
    }
    .top-bar .row {
        display: grid;
        grid-template-columns: 80% 20%;
        align-items: center;
    }
    .top-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .top-info li {
        margin-bottom: 5px;
    }
    .top-social {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (min-width: 1201px) {
    .form-container {
        margin-bottom: 100px;
    }
}
@media (min-width: 2000px) {
    .form-container {
        margin-bottom: 200px;
    }
}
@media (max-width: 1000px) and (min-width: 768px) {
    .university-card {
        height: 520px;
    }
}



/* Add to custom.css */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#heroCarousel .carousel-control-prev {
    left: -50px;
}

#heroCarousel .carousel-control-next {
    right: -50px;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Add to style.css or custom.css */
.home-hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: slideBackground 20s linear infinite;
}

@keyframes slideBackground {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(0);
    }
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Add to style.css or custom.css */
.home-hero {
    position: relative;
    overflow: hidden;
    height: 450px;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    height: 450px;
    transition: opacity 0.5s ease-in-out;
}

.hero-wave {
    z-index: 2;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#heroCarousel .carousel-control-prev {
    left: 10px;
}

#heroCarousel .carousel-control-next {
    right: 10px;
}

/* Ensure text readability */
.home-hero h1,
.home-hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Adjust form and text spacing */
.home-hero .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.home-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-btns .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.form-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.form-container .form-control,
.form-container .form-select {
    font-size: 0.9rem;
    padding: 8px;
}

.form-container .btn {
    padding: 8px;
    font-size: 0.9rem;
}

/* Add to style.css or custom.css */
.home-hero {
    position: relative;
    overflow: hidden;
    height: 600px; /* Default height for larger screens */
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    height: 100%;
    min-height: 600px;
    transition: opacity 0.5s ease-in-out;
}

.hero-wave {
    z-index: 2;
    pointer-events: none; /* Prevents wave from intercepting clicks */
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#heroCarousel .carousel-control-prev {
    left: 10px;
}

#heroCarousel .carousel-control-next {
    right: 10px;
}

/* Ensure text readability */
.home-hero h1,
.home-hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Adjust form and text spacing */
.home-hero .container {
    padding-top: 30px;
    padding-bottom: 30px;
}

.home-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-btns .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.form-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.form-container .form-control,
.form-container .form-select {
    font-size: 0.9rem;
    padding: 8px;
}

.form-container .btn {
    padding: 8px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .home-hero {
        height: 800px; /* Increased height for tablets to fit content */
    }
    .carousel-item {
        min-height: 800px;
    }
    .home-hero .row {
        flex-direction: column;
        text-align: center;
    }
    .home-hero .col-lg-6 {
        margin-bottom: 20px;
    }
    .hero-btns {
        justify-content: center;
        display: flex;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        height: 730px; /* Further increased height for mobile devices */
    }
    .carousel-item {
        min-height: 900px;
    }
    .home-hero h1 {
        font-size: 1.5rem;
    }
    .home-hero p {
        font-size: 0.9rem;
    }
    .form-container {
        padding: 10px;
    }
    .form-container h3 {
        font-size: 1rem;
    }
    .form-container .form-control,
    .form-container .form-select {
        font-size: 0.8rem;
        padding: 6px;
    }
    .form-container .btn {
        font-size: 0.8rem;
        padding: 6px;
    }
}

@media (min-width: 1200px) {
    .home-hero {
        position: relative;
        overflow: hidden;
        height: 700px;
    }
}


/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 24rem;
    margin: 0 auto;
    transition: var(--transition);
}

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

.testimonial-image {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.625;
    font-size: 1rem;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    width: 1.5rem;
    height: 1.5rem;
}

.star.filled {
    color: var(--secondary-color);
    fill: var(--secondary-color);
}

.star.empty {
    color: #d1d5db;
    fill: #d1d5db;
}


/* --- CSS Fix for Horizontal Overflow (White Space Issue) --- */

/* 1. Force all elements to fit within the screen width */
html, body {
    width: 100% !important;
    overflow-x: hidden !important;
}

/* 2. Apply a better box model to all elements */
* {
    box-sizing: border-box !important;
}

/* 3. Ensure images and videos scale down correctly */
img, video {
    max-width: 100% !important;
    height: auto !important;
}
