/* Global Styles */
:root {
    --primary-color: #2C3E50;  /* Deep elegant blue-gray */
    --secondary-color: #E67E22;  /* Warm orange */
    --accent-color: #95A5A6;  /* Subtle gray */
    --text-color: #2C3E50;  /* Dark blue-gray for text */
    --light-gray: #FFFFFF;  /* Changed to white */
    --dark-gray: #2C3E50;  /* Dark blue-gray */
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);  /* Elegant dark gradient */
    --gradient-secondary: linear-gradient(135deg, #E67E22 0%, #D35400 100%);  /* Warm orange gradient */
    --box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);  /* Softer shadow */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text justification */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin: 0;
    background-color: var(--white) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.navbar.scrolled .whatsapp-link {
    font-size: 0.95rem;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    transition: var(--transition);
    height: 70px;
    width: auto;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: var(--primary-color) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem !important;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    display: none;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: var(--transition);
}

.dropdown-toggle:hover::after {
    border-top-color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.whatsapp-link {
    color: var(--secondary-color) !important;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.2) 100%);
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-link:hover {
    color: #E55C00 !important;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.3) 100%);
    transform: translateY(-2px);
}

/* Hero Sections - Common Styles */
.about-hero,
.study-hero,
.visa-hero,
.visainuk-hero,
.contact-hero,
.travel-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.about-hero .hero-content,
.study-hero .hero-content,
.visa-hero .hero-content,
.visainuk-hero .hero-content,
.contact-hero .hero-content,
.travel-hero .hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 0 15px;
}

.about-hero .hero-content h1,
.study-hero .hero-content h1,
.visa-hero .hero-content h1,
.visainuk-hero .hero-content h1,
.contact-hero .hero-content h1,
.travel-hero .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero .hero-content p,
.study-hero .hero-content p,
.visa-hero .hero-content p,
.visainuk-hero .hero-content p,
.contact-hero .hero-content p,
.travel-hero .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Index Page Hero Slider - Specific Styles */
.hero-slider {
    position: relative;
    height: 60vh;
    margin-top: 70px;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-slider .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
    width: 100%;
    padding: 0 15px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-item.active .hero-content {
    opacity: 1;
}

.hero-slider .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-hero,
    .study-hero,
    .visa-hero,
    .visainuk-hero,
    .contact-hero,
    .travel-hero {
        height: 50vh;
    }

    .about-hero .hero-content h1,
    .study-hero .hero-content h1,
    .visa-hero .hero-content h1,
    .visainuk-hero .hero-content h1,
    .contact-hero .hero-content h1,
    .travel-hero .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-hero .hero-content p,
    .study-hero .hero-content p,
    .visa-hero .hero-content p,
    .visainuk-hero .hero-content p,
    .contact-hero .hero-content p,
    .travel-hero .hero-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    /* Hero Sections - Common Styles */
    .about-hero,
    .study-hero,
    .visa-hero,
    .visainuk-hero,
    .contact-hero,
    .travel-hero {
        height: 50vh !important;
    }

    /* Override all hero section text styles for mobile */
    body .about-hero .hero-content h1,
    body .study-hero .hero-content h1,
    body .visa-hero .hero-content h1,
    body .visainuk-hero .hero-content h1,
    body .contact-hero .hero-content h1,
    body .travel-hero .hero-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }

    body .about-hero .hero-content p,
    body .study-hero .hero-content p,
    body .visa-hero .hero-content p,
    body .visainuk-hero .hero-content p,
    body .contact-hero .hero-content p,
    body .travel-hero .hero-content p {
        font-size: 1.3rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.4 !important;
    }

    /* Specific overrides for study pages */
    body .study-hero .hero-content h1,
    body .studyinuk-hero .hero-content h1 {
        font-size: 2.5rem !important;
    }

    body .study-hero .hero-content p,
    body .studyinuk-hero .hero-content p {
        font-size: 1.3rem !important;
    }

    /* Specific override for contact page */
    body .contact-hero .hero-content h1 {
        font-size: 2.5rem !important;
    }

    body .contact-hero .hero-content p {
        font-size: 1.3rem !important;
    }

    .carousel-item {
        height: 40vh;
    }

    .about-hero .hero-content h1,
    .study-hero .hero-content h1,
    .visa-hero .hero-content h1,
    .visainuk-hero .hero-content h1,
    .contact-hero .hero-content h1,
    .travel-hero .hero-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

    .about-hero .hero-content p,
    .study-hero .hero-content p,
    .visa-hero .hero-content p,
    .visainuk-hero .hero-content p,
    .contact-hero .hero-content p,
    .travel-hero .hero-content p {
        font-size: 1.3rem !important;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.75rem 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .navbar-brand img {
        height: 50px;
    }
}

/* Enhanced Button Styles */
.btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

/* Services Section Styles */
.service-card {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(44, 62, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(27, 75, 143, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Features Section Styles */
.feature-item {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-color);
}

.feature-item:hover::before {
    opacity: 0.05;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.feature-item:hover i {
    color: var(--secondary-color);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

/* Update button styles for features section with higher specificity */
.features-section .btn,
.features-section .btn-primary,
.features-section .feature-item .btn,
.features-section .feature-item .btn-primary,
.features-section .mission-content .btn,
.features-section .mission-content .btn-primary {
    background: var(--white) !important;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
}

.features-section .btn:hover,
.features-section .btn-primary:hover,
.features-section .feature-item .btn:hover,
.features-section .feature-item .btn-primary:hover,
.features-section .mission-content .btn:hover,
.features-section .mission-content .btn-primary:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3) !important;
    text-decoration: none !important;
}

/* Consultation Section */
.consultation-section {
    background-color: #FFFFFF !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.consultation-content {
    color: var(--white);
    padding: 50px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.consultation-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.consultation-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.consultation-content:hover::before {
    width: 100%;
}

.consultation-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.consultation-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.consultation-btn {
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--secondary-color);
}

.consultation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--white);
    color: #E55C00;
}

@media (max-width: 991.98px) {
    .consultation-section {
        padding: 60px 0;
    }
    
    .consultation-content {
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    .consultation-section {
        padding: 60px 0;
    }
    
    .consultation-content h2 {
        font-size: 2rem;
    }
    
    .consultation-content .lead {
        font-size: 1.1rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-link {
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--white);
    display: inline-block;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-slider {
        height: 50vh;
    }
    
    .carousel-item {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .navbar-brand img {
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    /* Hero Slider */
    .hero-slider {
        height: 45vh;
    }
    
    .carousel-item {
        height: 45vh;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    /* Study Hero */
    .study-hero {
        height: 50vh;
    }
    
    .study-hero .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .study-hero .hero-content p {
        font-size: 1rem !important;
    }
    
    /* About Hero */
    .about-hero {
        height: 50vh;
    }
    
    .about-hero .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .about-hero .hero-content p {
        font-size: 1rem !important;
    }
    
    /* Contact Hero */
    .contact-hero {
        height: 50vh;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .contact-hero .hero-content p {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.75rem 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 3px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Section Headings */
.services-section h2,
.features-section h2,
.testimonials-section h2,
.about-content h2,
.mission-content h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
}

.services-section h2::after,
.features-section h2::after,
.testimonials-section h2::after,
.about-content h2::after,
.mission-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    white-space: normal;
    padding: 0 15px;
}

.about-content .highlight,
.about-content .highlight-dot,
.mission-content .highlight,
.mission-content .highlight-dot {
    color: var(--secondary-color);
    font-weight: 700;
}

.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story-text {
    max-height: none;
    overflow-y: visible;
    padding-right: 20px;
    width: 100%;
}

.story-text p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.story-text p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 0;
}

.about-image-wrapper img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .about-content {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .about-image-wrapper {
        margin-bottom: 30px;
    }
    
    .about-image-wrapper img {
        height: 600px;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .story-text p {
        font-size: 1rem;
    }
    
    .about-image-wrapper img {
        height: 400px;
    }
}

/* Update container padding for reviews section */
.reviews-section .container {
    padding-bottom: 0;
}

/* Update carousel styles */
#reviewsCarousel {
    margin-bottom: 0;
}

#reviewsCarousel .carousel-inner {
    margin-bottom: 0;
}

#reviewsCarousel .carousel-item {
    padding-bottom: 0;
}

/* Update section backgrounds */
.features-section {
    background-color: var(--white) !important;
}

.reviews-section {
    background-color: var(--white);
}

.feature-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    max-width: 100%;
    height: 500px; /* Increased height */
}

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

.feature-image-wrapper:hover img {
    transform: scale(1.05);
}

.feature-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7));
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.feature-image-wrapper:hover .feature-image-overlay {
    transform: translateY(0);
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--white);
}

/* About Page Styles */
.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/Hero-aboutus.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.about-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.about-hero p strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    will-change: transform, opacity;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

/* About Page Specific Animations */
.about-content.animate__animated,
.mission-content.animate__animated,
.about-image-wrapper.animate__animated,
.mission-image-wrapper.animate__animated {
    position: relative;
    z-index: 1;
}

/* Prevent layout shifts */
.about-section,
.mission-section {
    position: relative;
    overflow: hidden;
}

.about-content,
.mission-content,
.about-image-wrapper,
.mission-image-wrapper {
    position: relative;
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-hero h1,
    .study-hero h1,
    .visa-hero h1,
    .visainuk-hero h1,
    .contact-hero h1,
    .travel-hero h1 {
        font-size: 2.8rem;
    }

    .about-hero p,
    .study-hero p,
    .visa-hero p,
    .visainuk-hero p,
    .contact-hero p,
    .travel-hero p {
        font-size: 1.3rem;
    }

    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .story-text {
        max-height: none;
        overflow-y: visible;
    }
    
    .about-image-wrapper {
        margin-bottom: 30px;
    }
    
    .consultation-section {
        padding: 60px 0;
    }
    
    .consultation-content {
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    .about-hero {
        height: 50vh;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .consultation-content h2 {
        font-size: 2rem;
    }
    
    .consultation-content .lead {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .story-text p {
        font-size: 1rem;
    }
    
    .about-image-wrapper img {
        height: 400px;
    }
}

.mission-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mission-image-wrapper {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 0;
}

.mission-image-wrapper img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .mission-content {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .mission-image-wrapper {
        margin-bottom: 30px;
    }
    
    .mission-image-wrapper img {
        height: 600px;
    }
}

@media (max-width: 767.98px) {
    .mission-image-wrapper img {
        height: 500px;
    }
}

/* Study Page Styles */
.study-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/study-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.study-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.study-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.study-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Countries Section Styles */
.countries-section {
    background-color: var(--white);
    padding: 80px 0;
}

.countries-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
}

.countries-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.country-card {
    position: relative;
    margin-bottom: 30px;
    height: 300px;
}

.country-flag {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border: 4px solid var(--white);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.country-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
}

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

.country-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding-top: 40px; /* Add padding to prevent overlap with flag */
}

.country-card:hover .country-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    padding-top: 20px; /* Add padding to ensure space below flag */
}

.overlay-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 0.9;
}

.overlay-content .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    transition: var(--transition);
}

.overlay-content .btn:hover {
    background: var(--white);
    color: var(--secondary-color);
}

@media (max-width: 991px) {
    .study-hero h1 {
        font-size: 2.5rem;
    }
    
    .study-hero p {
        font-size: 1.2rem;
    }
    
    .country-card {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .study-hero {
        height: 50vh;
    }
    
    .study-hero h1 {
        font-size: 2rem;
    }
    
    .study-hero p {
        font-size: 1rem;
    }
    
    .countries-section h2 {
        font-size: 2rem;
    }
    
    .country-card {
        height: 200px;
    }
    
    /* Special styling for UK card in mobile view */
    .col-12 .country-card {
        height: 345px; /* Increased from 300px by 15% */
    }
    
    .col-12 .country-overlay {
        padding-top: 40px;
    }
    
    .col-12 .overlay-content {
        padding: 15px;
    }
    
    .col-12 .overlay-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .col-12 .overlay-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .country-flag {
        width: 60px;
        height: 60px;
        top: -15px;
    }
    
    .country-overlay {
        padding-top: 30px;
    }
    
    .overlay-content h3 {
        font-size: 1.2rem;
        padding-top: 15px;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    border-radius: 10px;
    transition: .5s;
    opacity: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--white) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        transform: none;
        visibility: visible;
        opacity: 1;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
    }
}

.footer-logo {
    text-align: left;
    margin-top: 0.75rem;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .footer-logo {
        margin-top: 0.5rem;
    }
    
    .footer-logo-img {
        height: 75px;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.feature-list li i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    .feature-list li {
        font-size: 1rem;
    }
}

/* Training Cards Section */
.training-section {
    background-color: var(--light-gray);
}

.training-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
}

.training-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.training-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 400px;
    background: var(--white);
}

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

.card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.training-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.overlay-content .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    transition: var(--transition);
    margin-top: auto;
}

.overlay-content .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.training-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.training-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .training-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .training-card h3 {
        font-size: 1.3rem;
    }
}

/* Contact Page Styles */
.contact-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.contact-info {
    background: var(--primary-color) !important;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.contact-info::before {
    display: none;
}

.contact-info h2 {
    color: var(--white) !important;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-item h5 {
    color: var(--white) !important;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--white) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.contact-item a:hover {
    color: var(--secondary-color) !important;
    opacity: 1;
    text-decoration: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-info .social-links {
    position: relative;
    z-index: 2;
}

.contact-info .social-links a {
    color: var(--white) !important;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.contact-info .social-links a:hover {
    color: var(--secondary-color) !important;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.form-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.form-description.highlight-text {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: var(--gradient-secondary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
    margin-top: 70px;
    position: relative;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.contact-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {
    .contact-hero {
        height: 50vh;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }
}

/* Map Section Styles */
.map-section {
    background-color: var(--white);
    padding: 60px 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: var(--white);
    padding: 100px 0;
}

.testimonial-carousel {
    position: relative;
}

.testimonial-item {
    padding: 0 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem !important;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-content .stars-container {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.testimonial-content .fa-star {
    color: #FFD700 !important;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.testimonial-item .text-center {
    margin-top: auto;
}

.testimonial-item h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #000000;
}

.testimonial-item p.mb-0 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #000000;
    margin: 0;
}

.testimonial-content .fa-star {
    color: #FFD700 !important; /* Gold color for stars */
}

/* Owl Carousel Custom Styles */
.owl-nav {
    position: absolute;
    top: -80px;
    right: 0;
    display: flex;
    gap: 1rem;
}

.owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.owl-nav button i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.owl-nav button:hover {
    background: var(--secondary-color) !important;
}

.owl-nav button:hover i {
    color: #fff !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonial-content {
        min-height: 220px;
        padding: 1.3rem 1.2rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 767.98px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-content {
        min-height: 200px;
        padding: 1.2rem 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem !important;
    }
    
    .owl-nav {
        position: relative;
        top: 0;
        justify-content: center;
        margin-top: 2rem;
    }
}

/* Owl Carousel Custom Styles */
.owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-item {
    display: flex;
    height: auto;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

.owl-carousel .owl-stage-outer {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .testimonial-content {
        min-height: 260px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .testimonial-content {
        min-height: 240px;
        padding: 1.8rem 1.5rem;
    }
}

/* Service Cards - Travisa Style */
.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    height: 375px;
}

.service-inner {
    position: relative;
    height: 100%;
}

.service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-item:hover .service-img img {
    transform: scale(1.2);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.85));
    opacity: 0;
    transition: all 0.4s ease;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateY(100%);
}

.service-item:hover .service-content {
    opacity: 1;
    transform: translateY(0);
}

.service-content h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.service-content p {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    width: 100%;
    text-align: center;
    padding: 0;
    white-space: normal;
    overflow: visible;
    display: block;
    max-height: none;
}

.service-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-title-name {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover .service-title-name {
    opacity: 0;
    transform: translateY(20px);
}

.service-title-name .bg-primary {
    background: var(--gradient-primary) !important;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0 20px;
    transition: all 0.4s ease;
}

.service-title-name h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-content .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
    margin-top: auto;
}

.service-content .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Update hover effect for the title */
.service-item:hover .service-title-name {
    opacity: 0;
}

@media (max-width: 768px) {
    .service-item {
        height: 330px;  /* Increased from 300px */
    }
    
    .service-title-name .bg-primary {
        padding: 8px 15px;
        margin: 0 10px;
    }
    
    .service-title-name h4 {
        font-size: 1.1rem;
    }
    
    .service-content {
        padding: 20px 15px;
        height: 85%;
    }
    
    .service-content h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .service-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-top: auto;
}

.service-features li {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.service-content p {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    width: 100%;
    text-align: center;
    padding: 0;
    white-space: normal;
    overflow: visible;
    display: block;
    max-height: none;
}

/* Update the hero content styles for mobile */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .study-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .study-hero .hero-content p {
        font-size: 1rem;
    }
    
    .about-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-hero .hero-content p {
        font-size: 1rem;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-hero .hero-content p {
        font-size: 1rem;
    }
}

.mission-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
}

@media (max-width: 767.98px) {
    .mission-content h3 {
        font-size: 1.5rem;
        line-height: 1.6;
        padding: 0 10px;
        white-space: normal;
    }
    
    .mission-content h3 .highlight,
    .mission-content h3 .highlight-dot {
        display: inline-block;
    }
}

/* Visa Page Styles */
.visa-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/visa-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.visa-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.visa-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.visa-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .visa-hero h1 {
        font-size: 2.5rem;
    }
    
    .visa-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .visa-hero {
        height: 50vh;
    }
    
    .visa-hero h1 {
        font-size: 2rem;
    }
    
    .visa-hero p {
        font-size: 1rem;
    }
}

/* UK Visa Page Styles */
.visainuk-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/visainuk-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.visainuk-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.visainuk-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.visainuk-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .visainuk-hero h1 {
        font-size: 2.5rem;
    }
    
    .visainuk-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .visainuk-hero {
        height: 50vh;
    }
    
    .visainuk-hero h1 {
        font-size: 2rem;
    }
    
    .visainuk-hero p {
        font-size: 1rem;
    }
}

/* Special styling for work visas card in mobile view */
@media (max-width: 767.98px) {
    .visainuk-page .col-12 .service-item {
        height: 600px !important;
    }

    .visainuk-page .col-12 .service-content {
        height: 90% !important; /* Increased overlay height for mobile */
        bottom: 0;
        transform: translateY(100%);
    }

    .visainuk-page .col-12 .service-item:hover .service-content {
        transform: translateY(0);
        opacity: 1;
    }

    .visainuk-page .col-12 .service-item:hover .service-img img {
        transform: scale(1.1);
    }

    .visainuk-page .col-12 .service-item:hover .service-inner {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Special styling for work visas card in desktop view */
@media (min-width: 768px) {
    .visainuk-page .col-12 .service-item {
        height: 450px !important; /* Reduced height for desktop */
    }

    .visainuk-page .col-12 .service-item .service-content {
        height: 70%;
        bottom: 0;
        transform: translateY(100%);
    }

    .visainuk-page .col-12 .service-item:hover .service-content {
        transform: translateY(0);
        opacity: 1;
    }

    .visainuk-page .col-12 .service-item:hover .service-img img {
        transform: scale(1.1);
    }

    .visainuk-page .col-12 .service-item:hover .service-inner {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Update button styles for work visas card to match other cards */
.visainuk-page .col-12 .service-content .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
    margin-top: auto;
}

.visainuk-page .col-12 .service-content .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Remove any specific button overrides */
.visainuk-page .col-12 .service-item:hover .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.visainuk-page .col-12 .service-item:hover .btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* UK Visa & Immigration Page Styles */
.ukvisa-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/ukvisa-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.ukvisa-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.ukvisa-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ukvisa-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .ukvisa-hero h1 {
        font-size: 2.5rem;
    }
    
    .ukvisa-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .ukvisa-hero {
        height: 50vh;
    }
    
    .ukvisa-hero h1 {
        font-size: 2rem;
    }
    
    .ukvisa-hero p {
        font-size: 1rem;
    }
}

/* Study Visas Section Styles */
#student-visas .card {
    border: 2px solid var(--secondary-color) !important;
}

#student-visas h2 {
    color: var(--secondary-color) !important;
}

#student-visas h4 {
    color: var(--secondary-color) !important;
}

#student-visas .fa-check-circle {
    color: var(--primary-color) !important;
}

#student-visas .card-body {
    padding: 2rem;
}

#student-visas ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

#student-visas ul li i {
    margin-top: 0.25rem;
    margin-right: 1rem;
}

@media (max-width: 767.98px) {
    #student-visas .card-body {
        padding: 1.5rem;
    }
}

/* Study Visas Section */
.study-visas-section {
    background: var(--white);
    position: relative;
    padding: 40px 0;
}

.study-visas-section::before {
    display: none;
}

.study-visas-section .container {
    position: relative;
    z-index: 1;
}

.study-visas-section .card {
    background: var(--white);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.study-visas-section .card-body {
    padding: 2.5rem;
}

.study-image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.study-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.study-image-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .study-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .study-image-wrapper img {
        max-height: 400px;
    }
}

/* Travel Hero Specific Styles */
.travel-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-travel.jpg');
}

@media (max-width: 991px) {
    .travel-hero h1 {
        font-size: 2.5rem;
    }
    .travel-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .travel-hero {
        height: 50vh;
    }
    .travel-hero h1 {
        font-size: 2rem;
    }
    .travel-hero p {
        font-size: 1rem;
    }
}

.uktravel-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/uktravel-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
}

.uktravel-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.uktravel-hero h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.uktravel-hero p {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .uktravel-hero h1 {
        font-size: 2.5rem;
    }
    .uktravel-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .uktravel-hero {
        height: 50vh;
    }
    .uktravel-hero h1 {
        font-size: 2rem;
    }
    .uktravel-hero p {
        font-size: 1rem;
    }
}