/* ========================================
   UNIWORLD PAGE STYLES - PRODUCTION VERSION
   ======================================== */

/* Header Styles */
.uniworld-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.uniworld-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.uniworld-header .logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.uniworld-header .logo i {
    font-size: 1.8rem;
    color: #6a11cb;
}

.uniworld-header .logo span {
    color: #6a11cb;
}

/* Search Bar */
.uniworld-search-wrapper {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.uniworld-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s;
}

.uniworld-search-bar:focus-within {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.uniworld-search-bar i {
    margin-left: 1rem;
    color: #6c6c8a;
}

.uniworld-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem;
    font-size: 0.95rem;
    outline: none;
}

.uniworld-search-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

/* Search Results */
.uniworld-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.uniworld-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
    background: var(--bg-primary);
}

.search-result-item i {
    color: #6a11cb;
    font-size: 1.2rem;
}

.search-no-results {
    text-align: center;
    padding: 1.5rem;
}

.search-no-results i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.search-suggestions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-suggestion-item:hover {
    background: var(--bg-primary);
}

.search-suggestion-item i {
    color: #6a11cb;
}

/* Header Links */
.uniworld-header-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.uniworld-header-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.uniworld-header-links a:last-child {
    background: #6a11cb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.uniworld-header-links a:last-child:hover {
    background: #5a0db5;
    color: white;
}

/* ========================================
   HERO SECTION - PRODUCTION VERSION
   ======================================== */

.uniworld-hero {
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.uniworld-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/landing/uniworld-bg.jpeg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 85vh;
    z-index: 1;
}

.hero-slides-container {
    width: 100%;
    height: 100%;
}

.hero-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 5rem 4rem;
    min-height: 85vh;
    align-items: center;
}

/* ========================================
   LEFT SIDE - Fixed Top/Bottom Layout
   ======================================== */

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    position: relative;
    padding: 2rem 0;
}

/* Fixed Top Badge */
.hero-top-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

/* Changing Content Area */
.hero-changing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.hero-main-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    min-height: 3.4rem;
}

.hero-animated-text {
    font-size: 2.2rem;
    font-weight: 600;
    color: #FFD700;
    line-height: 1.4;
    min-height: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hero-animated-text .letter {
    display: inline-block;
    animation: letterPop 0.3s ease forwards;
    opacity: 0;
}

.hero-animated-text .letter-space {
    display: inline-block;
    width: 0.5em;
}

@keyframes letterPop {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fixed Bottom Paragraph */
.hero-bottom-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
    flex-shrink: 0;
    margin-top: 2rem;
}

/* ========================================
   RIGHT SIDE - STACKED CARDS (IMAGE 0 MATCH)
   ======================================== */

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
}

.hero-cards-stack {
    position: relative;
    width: 600px; /* Increased to accommodate row cards */
    height: 450px;
}

/* Individual Card - REVERTED TO ROW */
.hero-card-stacked {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 620px; /* Bigger width as in image */
    height: 420px;    /* Bigger height as in image */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* THE MAIN REVERT: Back to row */
    display: flex;
    flex-direction: row; 
    padding: 0;
}

/* --- Stack Positioning Logic (Horizontal Movement) --- */
.hero-card-stacked[data-position="front"] { z-index: 10; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-card-stacked[data-position="middle"] { z-index: 5; opacity: 0.7; transform: translate(-50%, -50%) translate(15px, 15px) scale(0.96); pointer-events: none; }
.hero-card-stacked[data-position="back"] { z-index: 1; opacity: 0.35; transform: translate(-50%, -50%) translate(25px, 25px) scale(0.92); pointer-events: none; }
.hero-card-stacked[data-position="deep-back"] { z-index: 0; opacity: 0.1; transform: translate(-50%, -50%) translate(35px, 35px) scale(0.88); pointer-events: none; }

/* Left Content Area (50%) */
.hero-card-content {
    width: 50%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Important for vertical distribution */
    align-items: flex-start; /* Left-align everything as in image */
    text-align: left;
}

.hero-card-career-text {
    font-family: 'Georgia', serif; /* Or similar italic serif font */
    font-size: 0.9rem;
    font-style: italic;
    color: #444;
}

.hero-card-divider {
    width: 100%; /* In the image, lines go edge-to-edge within the content box */
    border: 0;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.hero-card-degree {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
}

.hero-card-university {
    font-size: 0.95rem;
    color: #4a4a6a;
    margin-top: 3px;
    font-weight: 600;
}

/* Logo Container - Left Aligned */
.hero-card-logo-container {
    height: 70px; /* More vertical space for the logo */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* LEFT ALIGNED */
    margin-top: 5px;
}

.hero-card-uni-logo {
    max-height: 55px; /* Bigger logo */
    max-width: 150px;
    object-fit: contain;
}

/* The NEW View Course Button */
.hero-card-cta-container {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* FIXED: Now aligned with the logo */
    margin-top: 10px;
}

.hero-card-btn {
    background-color: #1a73e8; 
    color: white;
    padding: 12px 35px; /* Bigger button */
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

/* Right Image Area (50%) */
.hero-card-image {
    width: 50%;
    height: 100%; /* Fills full height of the row card */
    flex-shrink: 0;
    overflow: hidden;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========================================
   NAVIGATION DOTS
   ======================================== */

.hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-indicator.active {
    width: 30px;
    border-radius: 10px;
    background: #667eea;
}

/* Hide old scroll down */
.hero-scroll-down {
    display: none;
}

/* ========================================
   INDIAN VS ABROAD TOGGLE
   ======================================== */

.university-type-toggle-wrapper {
    padding: 0.5rem 0 0 0;
    margin-top: 5rem;
    background: transparent;
}

.university-type-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f0f2f5;
    border-radius: 50px;
    padding: 0.3rem;
    max-width: 500px;
    margin: 0 auto;
}

.toggle-option {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #6c6c8a;
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    text-align: center;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-option.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.toggle-option:hover:not(.active) {
    color: #6a11cb;
}

/* Hide old toggle elements */
.toggle-switch-label,
.toggle-slider-round,
#universityTypeToggle {
    display: none;
}

/* ========================================
   FILTERABLE COURSES SECTION
   ======================================== */

.filterable-courses-section {
    padding: 2rem 0 5rem 0;
}

.filterable-courses-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.filterable-courses-section .section-header h2 {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filterable-courses-section .invest-label {
    margin-bottom: 0.5rem !important;
}

.filter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-btn {
    padding: 0.9rem 1.2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #f8f5ff;
    border-color: #6a11cb;
    color: #6a11cb;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
}

.filter-btn small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    color: rgb(79, 76, 76);
}

.filter-btn.active small {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.filter-container .universal-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

/* No Results */
.no-courses-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--radius-lg);
}

.no-courses-found i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-courses-found p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
    font-weight: 500;
}

.page-btn:hover {
    background: #6a11cb;
    color: white;
}

.page-btn.active {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0.5rem;
    color: var(--text-muted);
}

/* ========================================
   SECTIONS (Highlights, Admission, Accreditations)
   ======================================== */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon i {
    font-size: 2rem;
    color: white;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admission-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.step-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-arrow {
    position: absolute;
    right: -20px;
    top: 15px;
    color: #6a11cb;
    font-size: 1rem;
}

.step-item:last-child .step-arrow {
    display: none;
}

.accreditations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.accreditation-item {
    text-align: center;
}

.accreditation-item i {
    font-size: 2.5rem;
    color: #6a11cb;
    margin-bottom: 0.5rem;
}

.accreditation-item span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.accreditation-item small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   SUGGESTED DEGREES
   ======================================== */

.suggested-degrees-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.suggested-degrees-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.degrees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-uniworld {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.cta-uniworld h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-uniworld p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: #6a11cb;
}

/* ========================================
   UNIVERSITIES CAROUSEL
   ======================================== */

.universities-carousel-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.universities-carousel {
    position: relative;
    padding: 0 40px;
}

.uni-prev,
.uni-next {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #6a11cb;
}

.uni-prev:after,
.uni-next:after {
    font-size: 1rem;
    font-weight: bold;
}

.university-pagination {
    bottom: -10px;
}

.university-pagination .swiper-pagination-bullet-active {
    background: #6a11cb;
}

.universities-carousel-section .university-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 245px;
    justify-content: flex-start;
    padding-top: 1.8rem;
}

.universities-carousel-section .university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.universities-carousel-section .university-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.universities-carousel-section .university-card p {
    font-weight: 500;
    font-size: 0.85rem;
    color: #4a4a6a;
    margin: 0;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f5f7fa 100%);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    padding: 0 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-swiper {
    overflow: hidden;
    padding: 10px 0 50px;
}

.testimonial-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    min-height: 350px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.testimonial-image {
    display: none;
}

.quote-icon {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.15;
    margin-bottom: 1rem;
    display: block;
    flex-shrink: 0;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a6a;
    margin-bottom: 1rem;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.testimonial-author-info {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.testimonial-author-info strong {
    color: #1a1a2e;
    font-size: 1.05rem;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: #6c6c8a;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.testimonial-prev,
.testimonial-next {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
    color: #667eea;
    border: none;
    box-shadow: none;
    transition: color 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: transparent;
    color: #1a1a2e;
}

.testimonial-prev:after,
.testimonial-next:after {
    font-size: 1.5rem;
    font-weight: 400;
}

.testimonial-prev {
    left: 8px;
}

.testimonial-next {
    right: 8px;
}

.testimonial-pagination {
    bottom: 10px !important;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.7;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: #667eea;
    opacity: 1;
    width: 22px;
    border-radius: 4px;
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

.search-overlay-uniworld {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay-uniworld.active {
    opacity: 1;
    visibility: visible;
}

.search-animation-uniworld {
    text-align: center;
}

.search-animation-uniworld .search-icon-animate {
    font-size: 5rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: searchPulse 0.5s ease infinite;
}

@keyframes searchPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ========================================
   MISC
   ======================================== */

.login-btn {
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.login-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.main-header .logo {
    display: none !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .hero-cards-stack {
        width: 420px;
        height: 290px;
    }
    .hero-card-stacked {
        max-width: 400px;
    }
    .hero-card-degree {
        font-size: 1.6rem;
    }
    .hero-card-content {
        padding: 2rem 1.2rem;
    }
    .hero-main-heading {
        font-size: 2.3rem;
    }
    .hero-animated-text {
        font-size: 1.8rem;
    }
    .degrees-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-slide-content {
        padding: 3rem 2rem;
        gap: 1.5rem;
    }
    .hero-cards-stack {
        width: 360px;
        height: 250px;
    }
    .hero-card-stacked {
        max-width: 340px;
    }
    .hero-card-degree {
        font-size: 1.4rem;
    }
    .hero-card-university {
        font-size: 0.8rem;
    }
    .hero-card-content {
        padding: 1.5rem 1rem;
    }
    .hero-main-heading {
        font-size: 2rem;
    }
    .hero-animated-text {
        font-size: 1.5rem;
        min-height: 2rem;
    }
    .hero-card-stacked[data-position="middle"] {
        transform: translateY(-45px) scale(0.88);
    }
    .hero-card-stacked[data-position="back"] {
        transform: translateY(-90px) scale(0.78);
    }
    .hero-card-stacked[data-position="deep-back"] {
        transform: translateY(-135px) scale(0.7);
    }
    .filter-container {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .filter-container .universal-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .degrees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uniworld-header .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .uniworld-header .logo {
        width: 100%;
        text-align: center;
    }
    .uniworld-header .logo a {
        justify-content: center;
    }
    .uniworld-search-wrapper {
        max-width: 100%;
        width: 100%;
        order: 2;
    }
    .uniworld-header-links {
        width: 100%;
        justify-content: space-around;
        order: 3;
        gap: 0.5rem;
    }
    .hero-slide-content {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        text-align: center;
        min-height: auto;
        gap: 1rem;
    }
    .hero-left {
        order: 2;
        align-items: center;
        min-height: auto;
        padding: 0;
    }
    .hero-right {
        order: 1;
        min-height: 420px;
    }
    .hero-main-heading {
        font-size: 1.6rem;
        min-height: auto;
    }
    .hero-animated-text {
        font-size: 1.3rem;
        justify-content: center;
        min-height: auto;
    }
    .hero-bottom-text {
        max-width: 100%;
        font-size: 0.85rem;
        text-align: center;
    }
    .hero-top-badge {
        text-align: center;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    .hero-cards-stack {
        width: 320px;
        height: 220px;
    }
    .hero-card-stacked {
        max-width: 300px;
    }
    .hero-card-degree {
        font-size: 1.2rem;
    }
    .hero-card-content {
        padding: 1rem 0.8rem;
    }
    .hero-card-stacked[data-position="middle"] {
        transform: translateY(-38px) scale(0.88);
    }
    .hero-card-stacked[data-position="back"] {
        transform: translateY(-76px) scale(0.78);
    }
    .hero-card-stacked[data-position="deep-back"] {
        transform: translateY(-114px) scale(0.7);
    }
    .filter-container .universal-courses-grid {
        grid-template-columns: 1fr !important;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .degrees-grid {
        grid-template-columns: 1fr;
    }
    .admission-steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        position: static;
        margin: 0.5rem 0;
        display: block;
    }
    .cta-uniworld {
        padding: 3rem 1rem;
    }
    .cta-uniworld h2 {
        font-size: 1.5rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .testimonials-carousel {
        padding: 0 35px;
    }
    .testimonial-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        padding: 1.5rem 1rem;
    }
    .hero-main-heading {
        font-size: 1.3rem;
    }
    .hero-animated-text {
        font-size: 1.1rem;
    }
    .hero-cards-stack {
        width: 270px;
        height: 185px;
    }
    .hero-card-stacked {
        max-width: 260px;
    }
    .hero-card-degree {
        font-size: 1rem;
    }
    .hero-card-university {
        font-size: 0.7rem;
    }
    .hero-card-link {
        font-size: 0.75rem;
    }
    .hero-card-content {
        padding: 0.8rem 0.6rem;
    }
    .hero-card-stacked[data-position="middle"] {
        transform: translateY(-30px) scale(0.88);
    }
    .hero-card-stacked[data-position="back"] {
        transform: translateY(-60px) scale(0.78);
    }
    .hero-card-stacked[data-position="deep-back"] {
        transform: translateY(-90px) scale(0.7);
    }
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    .universities-carousel-section .university-card img {
        width: 100px;
        height: 100px;
    }
    .testimonial-card {
        padding: 1.5rem 1.2rem;
        min-height: 280px;
        max-height: 320px;
    }
}
@media (max-width: 768px) {
    .uniworld-header .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .uniworld-header .logo {
        width: auto;
        text-align: left;
        flex-shrink: 0;
    }
    
    .uniworld-header .logo a {
        justify-content: flex-start;
    }
    
    .uniworld-header .logo img {
        width: 180px;
    }
    
    .uniworld-search-wrapper {
        max-width: 100%;
        width: 100%;
        order: 3;
    }
    
    .uniworld-header-links {
        width: auto;
        justify-content: flex-end;
        order: 2;
        gap: 0.5rem;
        flex-shrink: 0;
        margin-left: auto;
    }
}
/* ========================================
   ENHANCED MOBILE FIXES
   ======================================== */

@media (max-width: 768px) {
    /* Prevent hero horizontal overflow */
    .uniworld-hero,
    .hero-carousel-wrapper,
    .hero-slides-container,
    .hero-slide-content {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Fix hero card row layout on mobile */
    .hero-card-stacked {
        flex-direction: column !important;
        max-width: 280px !important;
        height: auto !important;
        min-height: 350px !important;
    }
    
    .hero-card-content {
        width: 100% !important;
        padding: 1.2rem !important;
    }
    
    .hero-card-image {
        width: 100% !important;
        height: 160px !important;
    }
    
    .hero-card-degree {
        font-size: 1.1rem !important;
    }
    
    /* Adjust stacked card positioning for column layout */
    .hero-card-stacked[data-position="middle"] {
        transform: translate(-50%, -50%) translate(10px, 10px) scale(0.92) !important;
    }
    .hero-card-stacked[data-position="back"] {
        transform: translate(-50%, -50%) translate(20px, 20px) scale(0.85) !important;
        opacity: 0.3 !important;
    }
    .hero-card-stacked[data-position="deep-back"] {
        display: none !important;
    }
    
    /* Toggle section spacing */
    .university-type-toggle-wrapper {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .university-type-toggle {
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .toggle-option {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    /* Filter section mobile */
    .filter-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .filter-btn small {
        font-size: 0.6rem;
    }
    
    /* Universities carousel */
    .universities-carousel {
        padding: 0 25px;
    }
    
    .universities-carousel-section .university-card {
        min-height: 180px;
        padding: 1rem 0.5rem;
    }
    
    .universities-carousel-section .university-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Prevent body horizontal scroll */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .uniworld-header .logo img {
        width: 140px;
    }
    
    .uniworld-header-links a {
        font-size: 0.75rem;
    }
    
    .uniworld-header-links a:last-child {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .uniworld-search-bar input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .uniworld-search-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-card-stacked {
        max-width: 240px !important;
    }
    
    .hero-card-image {
        height: 130px !important;
    }
    
    .hero-main-heading {
        font-size: 1.2rem !important;
    }
    
    .hero-animated-text {
        font-size: 1rem !important;
    }
    
    .hero-bottom-text {
        font-size: 0.75rem !important;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-btn:nth-child(7) {
        grid-column: span 2;
    }
    
    .hero-carousel-indicators {
        bottom: 15px;
    }
    
    .highlight-card {
        padding: 1rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
    }
    
    .highlight-icon i {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem 1rem !important;
        min-height: 240px !important;
    }
    
    .testimonial-text {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 5;
    }
}
/* ========================================
   GLOBAL OVERFLOW FIX
   ======================================== */

.uniworld-hero,
.hero-carousel-wrapper,
.hero-slide-content,
.hero-right,
.hero-cards-stack {
    max-width: 100vw;
    overflow: hidden;
}

* {
    -webkit-tap-highlight-color: transparent;
}