/* css/styles.css */

:root {
    --primary: #5a67d8;
    --primary-light: #7f8de8;
    --primary-dark: #4c51bf;
    --secondary: #718096;
    --secondary-light: #a0aec0;
    --secondary-dark: #4a5568;
    --accent: #9f7aea;
    --light: #f7fafc;
    --lighter: #ffffff;
    --dark: #2d3748;
    --darker: #1a202c;
    --success: #68d391;
    --warning: #ed8936; /* Keep this for stars */
    --danger: #e53e3e;
    --gradient: linear-gradient(135deg, #5a67d8 0%, #9f7aea 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(90, 103, 216, 0.1) 0%, rgba(159, 122, 234, 0.1) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --text-muted-light: #cccccc; /* Added for no-testimonials icon */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--darker);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--secondary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 1200px; /* Limit max width for better readability */
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: var(--radius-full);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--lighter);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98); /* Added for blur effect */
    backdrop-filter: blur(8px); /* Added for blur effect */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0; /* Override Bootstrap default padding */
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.nav-item .nav-link {
    position: relative;
    font-weight: 500;
    color: var(--secondary-dark);
    padding: 0.5rem 0; /* Adjust padding as needed */
    margin-left: 1.5rem; /* Equivalent to gap in original */
}

.nav-item .nav-link:hover {
    color: var(--primary);
}

.nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-item .nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--lighter);
    box-shadow: var(--shadow-md);
    border: none; /* Ensure no default Bootstrap border */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary { /* Renamed for Bootstrap consistency */
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--lighter);
    border-color: var(--primary);
}

.btn-light { /* Using Bootstrap's .btn-light, but styling it like the old .btn-white */
    background: var(--lighter);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border: none; /* Ensure no default Bootstrap border */
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center;
    background-size: cover;
    color: var(--lighter);
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--lighter);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Features Section */
.features {
    background-color: var(--lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--lighter);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(90, 103, 216, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--light);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--lighter);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--lighter);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Stats Section */
.stats {
    background: var(--gradient);
    color: var(--lighter);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--lighter);
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section (New Modern Design) */
.bg-gray-200 { /* This class exists in your original code but not in the root variables. Let's define it */
    background-color: var(--light); /* Using --light as it's a defined light gray */
}

/* Padding utilities - adjust values as needed for your design system */
.pt-lg-14 { padding-top: 6rem !important; }
.pb-lg-16 { padding-bottom: 7rem !important; }
.lh-1 { line-height: 1; }
.fs-6 { font-size: 1rem; }
.fw-semibold { font-weight: 600; }
.text-muted { color: #d0d0d0; } /* color for empty stars */

.card {
    border: 1px solid rgba(0,0,0,.08); /* Lighter border */
    border-radius: var(--radius-xl); /* Use theme radius */
    margin: 0;
    height: 100%; /* Important: To ensure cards have the same height within the slider */
    box-shadow: var(--shadow-sm); /* Lighter shadow */
    transition: var(--transition); /* Transition on hover */
    background-color: var(--lighter); /* Card background */
}
.card:hover {
    transform: translateY(-5px); /* Lift slightly on hover */
    box-shadow: var(--shadow-md); /* Larger shadow on hover */
}

/* Make card body flexible to arrange its contents vertically */
.card-body.testimonial-card-body {
    display: flex;
    flex-direction: column; /* Arrange header, comment, rating vertically */
    padding: 2.5rem !important; /* Adjusted from 3rem for slightly less padding */
    height: 100%; /* Make it take full card height */
}

/* Avatar for Initials */
.avatar-initials {
    width: 70px; /* Slightly smaller than 90px for better fit */
    height: 70px;
    border-radius: var(--radius-full);
    background: var(--gradient); /* Primary gradient background */
    color: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Larger font size for initials */
    font-weight: 700;
    flex-shrink: 0; /* Prevent shrinking */
    box-shadow: var(--shadow-sm); /* Subtle shadow for avatar */
}

/* Testimonial card header (Avatar + Name and Role) */
.testimonial-header-new {
    display: flex; /* For side-by-side avatar and text */
    align-items: center; /* Vertically align items in the middle */
    margin-bottom: 1.5rem; /* Space below header */
    padding-bottom: 1.5rem; /* Inner padding before separator line */
    border-bottom: 1px solid rgba(0,0,0,.05); /* Lighter separator line */
    /* In RTL, avatar is on the right, user name on the left */
    flex-direction: row-reverse; /* Place avatar on the right */
    justify-content: flex-start; /* Align content to the right edge */
    text-align: right; /* Align text within the header to the right */
}
.testimonial-header-new .avatar-initials {
    margin-right: 0; /* Reset any default margin */
    margin-left: 1rem; /* Space to the left of the avatar */
}
.testimonial-header-new .user-details {
    flex-grow: 1; /* Allow user info to take remaining space */
    text-align: right; /* Align text within user details to the right */
}
.testimonial-header-new .user-details h3 {
    margin-bottom: 0.25rem; /* Small space below name */
    font-size: 1.25rem; /* Slightly larger name */
    font-weight: 700;
    color: var(--darker);
}
.testimonial-header-new .user-details span {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Comment section (testimonial text) */
.testimonial-comment-new {
    flex-grow: 1; /* Important: Pushes the rating section to the bottom and takes all available vertical space */
    margin-top: 0.5rem; /* Slightly less space from header */
    margin-bottom: 1.5rem; /* Space before rating section */
    font-size: 1rem;
    line-height: 1.75;
    color: var(--secondary-dark);
    text-align: justify; /* Justify text for clean edges */
    overflow: hidden; /* Hide overflow if text is too long */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit to 5 lines, adjust as needed */
    -webkit-box-orient: vertical;
}

/* Rating section */
.testimonial-rating-new {
    margin-top: auto; /* Important: Pushes the rating section to the bottom of the card */
    padding-top: 1rem; /* Space from comment */
    border-top: 1px solid rgba(0,0,0,.05); /* Lighter separator line */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align rating to the left in RTL */
    gap: 8px; /* Space between number and stars */
}
.testimonial-rating-new .text-warning {
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-rating-new .stars {
    display: flex; /* Display stars in a row */
    gap: 2px; /* Small space between stars */
}
.testimonial-rating-new svg {
    vertical-align: middle; /* Align stars with text */
}

/* "No testimonials" message */
.no-testimonials {
    background-color: var(--lighter);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid rgba(0,0,0,.05);
}
.no-testimonials i { color: var(--secondary-light); font-size: 2.5rem; } /* Adjusted color */
.no-testimonials p { color: var(--secondary-dark); font-size: 1.1rem; margin-bottom: 0;}

/* Custom Slider Controls for Owl Carousel */
.controls-testimonial {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px); /* Extend container width to include buttons outside slider */
    right: -50px; /* Push container to the right to make buttons appear outside slider */
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.controls-testimonial li {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 1.3rem;
}
.controls-testimonial li:hover {
    background: var(--primary-dark); /* Darker primary on hover */
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}
/* Positioning for RTL */
.controls-testimonial li.prev {
    order: 2; /* Prev button (right arrow) is on the far right in RTL */
}
.controls-testimonial li.next {
    order: 1; /* Next button (left arrow) is on the far left in RTL */
}

/* Hide default Owl Carousel navigation and dots */
.owl-theme .owl-nav,
.owl-theme .owl-dots {
    display: none;
}

/* Adjustments for Owl Carousel default behavior for card height */
.owl-carousel .owl-stage-outer {
    padding-bottom: 20px; /* Space for card shadow or any overflow */
}
.owl-carousel .owl-item {
    display: flex; /* Make each slider item a Flex Container */
    align-items: stretch; /* Stretch items to same height */
    padding-top: 10px; /* Small padding so shadow doesn't get cut by .owl-stage-outer */
    padding-bottom: 10px;
}
.owl-carousel .owl-item .card {
    height: 100%; /* Ensure card takes full height of the owl-item */
}

/* --- FAQ SECTION --- */
.faq .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--lighter);
}
.faq .accordion-header { background-color: var(--lighter); }
.faq .accordion-button {
    background-color: var(--lighter);
    color: var(--darker);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    text-align: right;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important;
}
.faq .accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: var(--light);
}
.faq .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg); /* Chevron down for RTL */
}
.faq .accordion-button:not(.collapsed)::after { transform: rotate(0deg); } /* Chevron up for RTL when open */
.faq .accordion-body {
    padding: 1.5rem 2rem;
    background-color: var(--light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--secondary-dark);
    line-height: 1.7;
}

/* --- CTA SECTION --- */
.cta {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: var(--lighter);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,266.7C672,267,768,245,864,224C960,203,1056,181,1152,160C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover; background-position: center; z-index: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; color: inherit; } /* Inherit color from parent */
.cta-content p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; color: inherit; } /* Inherit color from parent */
.cta .btn-primary { /* Changed to btn-primary as requested by the user in the HTML */
    background: var(--lighter);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.cta .btn-primary:hover {
    background-color: #f0f0f0; /* Slightly darker white */
}

/* --- UNIVERSITIES CTA --- */
.universities-cta { background: var(--light); } /* Using --light for background */
.benefits-card { /* Renamed for clarity */
    background-color: var(--lighter);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex; /* For side-by-side layout */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: stretch; /* Stretch items to same height */
}
.benefits-content {
    padding: 3rem;
    flex: 1 1 50%; /* Grow, shrink, basis 50% */
    min-width: 300px; /* Prevent excessive squishing */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.benefits-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefits-list li {
    display: flex;
    align-items: flex-start; /* Align icon with first line of text */
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--secondary-dark);
}
.benefits-list li i {
    color: var(--primary);
    margin-left: 10px; /* RTL */
    margin-top: 4px; /* Align with text */
    font-size: 1.2rem;
}
.benefits-image {
    flex: 1 1 50%; /* Grow, shrink, basis 50% */
    min-width: 300px;
    height: auto; /* Ensure height is flexible */
}
.benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove bottom space */
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-about p {
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
}

.footer-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--lighter);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: var(--radius-full);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--secondary-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light); /* Changed to primary-light for better visibility */
    padding-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--lighter);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-light);
    font-size: 0.875rem;
}

/* Animations (Adjusted for RTL fade-right/left) */
[data-aos] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
    opacity: 0;
}

[data-aos="fade-right"] { /* In RTL, this means appearing from the left */
    transform: translateX(-30px);
    opacity: 0;
}

[data-aos="fade-left"] { /* In RTL, this means appearing from the right */
    transform: translateX(30px);
    opacity: 0;
}

[data-aos].aos-animate {
    transform: translate(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 5rem 0;
    }
    .controls-testimonial { /* Slightly reduce width for smaller desktops/tablets */
        width: calc(100% + 60px);
        right: -30px;
    }
}

@media (max-width: 767.98px) { /* Bootstrap's md breakpoint for smaller devices */
    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title p {
        font-size: 1rem;
    }
    .navbar-collapse {
        background-color: var(--lighter); /* Keep background for collapsed menu */
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-sm); /* Add shadow to collapsed menu */
    }
    .navbar-nav {
        align-items: center; /* Center items in collapsed menu */
    }
    .nav-item .nav-link {
        margin-left: 0; /* Remove left margin in collapsed menu */
        padding: 0.75rem 0;
    }
    .navbar-nav .btn {
        margin-top: 1rem; /* Space out buttons in collapsed menu */
    }

    /* Testimonials section on small screens */
    .controls-testimonial {
        display: none !important; /* Hide custom buttons on small devices */
    }
    .owl-carousel .owl-item {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Universities CTA on small screens */
    .benefits-card {
        flex-direction: column; /* Stack image and content */
    }
    .benefits-content {
        order: 2; /* Content after image */
        padding: 2rem;
    }
    .benefits-image {
        order: 1; /* Image first */
        max-height: 250px; /* Limit height of image when stacked */
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links a:hover {
        padding-right: 0;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .feature-card, .step, .card { /* Apply consistent padding to all cards */
        padding: 1.5rem 1rem;
    }
    .card-body.testimonial-card-body {
        padding: 1.5rem !important; /* Adjust padding for smallest screens */
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}