/* OpenEdu Foundation Premium Custom Stylesheet */

/* Font Families definitions */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif !important;
}

.font-sans {
    font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

:root {
    --color-brand-primary: #1E3A8A; /* Deep Blue */
    --color-brand-secondary: #2563EB; /* Royal Sapphire Blue */
    --color-brand-accent: #EA580C; /* Vibrant Orange */
    --color-brand-orange-light: #FFEDD5; /* Light Orange */
    --color-brand-blue-light: #EFF6FF; /* Light Blue */
    --color-brand-gold-glow: #F59E0B; /* Bright Gold */
    --color-brand-teal: #0D9488; /* Trust Teal */
}

/* Smooth scrolling & global horizontal scroll protection */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for premium sticky navbar */
    overflow-x: clip;
    max-width: 100%;
}

body {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #FFF7ED 100%);
    color: #475569; /* Slate-600 */
    overflow-x: clip;
    max-width: 100%;
}

/* Premium Blue-Orange Gradient Background for Sections (eliminating too white backgrounds) */
.premium-section-bg {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 40%, #FFF7ED 80%, #F8FAFC 100%) !important;
}

.premium-section-bg-alt {
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 50%, #FFF7ED 100%) !important;
}

/* Glassmorphism Card (Gradient Blue to Orange Tint) */
.premium-glass-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 247, 237, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 40px -10px rgba(30, 27, 75, 0.05),
                0 1px 2px 0 rgba(30, 27, 75, 0.02);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.12),
                0 0 20px rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.3);
}

/* Dark theme premium cards with heavy blue-to-orange gradient borders */
.dark-premium-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E1B4B 60%, #9A3412 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand-accent);
}

/* Stripe-inspired blur color blobs */
.stripe-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* Parallax grid decoration */
.luxury-grid-overlay {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(37, 99, 235, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 88, 12, 0.015) 1px, transparent 1px);
}

.hero-grid-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: 46px 46px;
    background-image: linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 88, 12, 0.05) 1px, transparent 1px);
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-accent);
}

/* Floating Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.8deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-1deg); }
}

.animate-float-1 {
    animation: float-slow 6s infinite ease-in-out;
}

.animate-float-2 {
    animation: float-medium 5s infinite ease-in-out;
}

/* Gold glowing text */
.gold-glow {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Dropdown Menu transition classes */
.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Accordion layout helpers */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.accordion-active .accordion-content {
    max-height: 350px;
    padding-top: 12px;
    padding-bottom: 20px;
}

.accordion-active .accordion-icon {
    transform: rotate(180deg);
}

.process-accordion-item.accordion-active {
    border-color: var(--color-brand-accent) !important;
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.15) !important;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 237, 213, 0.98) 100%) !important;
}

/* Infinite logos marquee carousel */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.university-marquee-list > div {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #EA580C 100%);
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.university-marquee-list > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.2);
}

/* Custom premium styles matching OpenEdu branding */
.bg-hero-gradient {
    position: relative;
    background-color: #EFF6FF;
}

.bg-hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.14) 0%, transparent 25%),
                radial-gradient(circle at 80% 82%, rgba(234, 88, 12, 0.12) 0%, transparent 22%),
                linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 50%, #FFEDD5 100%);
    pointer-events: none;
}

.bg-hero-gradient::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(238, 242, 246, 0) 0%, rgba(248, 250, 252, 0.9) 70%, #EFF6FF 100%);
    pointer-events: none;
    z-index: 0;
}

/* Stripe/Apple style rounded cards with soft blue-to-orange gradient */
.stripe-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 247, 237, 0.95) 100%);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.stripe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(30, 27, 75, 0.08), 0 0 20px rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.3);
}

/* Premium Blue-to-Orange Gradient Buttons */
.premium-btn-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #EA580C 100%) !important;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2) !important;
}

.premium-btn-gradient:hover {
    background: linear-gradient(135deg, #1E3A8A 0%, #C2410C 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(234, 88, 12, 0.3) !important;
}

.premium-btn-gradient i {
    transition: transform 0.3s ease;
}

.premium-btn-gradient:hover i {
    transform: translateX(4px);
}

/* Blue to Orange Title Text Gradient */
.text-gradient-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #EA580C 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Visual Image Placeholder Styling */
.image-placeholder-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(234, 88, 12, 0.25);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(234, 88, 12, 0.04) 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-placeholder-box:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(234, 88, 12, 0.06) 100%);
}

.image-placeholder-badge {
    background: rgba(234, 88, 12, 0.1);
    color: #EA580C;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
    display: inline-block;
}

.image-placeholder-prompt {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 6px;
    max-width: 280px;
}

.image-placeholder-action {
    margin-top: 10px;
    font-size: 10px;
    color: #2563EB;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Interactive Process Accordion Styles */
.process-accordion-item .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
}

.process-accordion-item.accordion-active .accordion-content {
    max-height: 350px;
    opacity: 1;
}

.process-accordion-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-accordion-item.accordion-active {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(234, 88, 12, 0.02) 100%);
    box-shadow: 0 12px 28px rgba(30, 27, 75, 0.06);
}

.process-accordion-item.accordion-active .accordion-icon {
    transform: rotate(180deg);
    color: #2563EB;
}

/* Horizontal Scroll for Destinations Slider */
.destinations-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.destinations-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.destinations-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 3px;
}

.destinations-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 88, 12, 0.4);
}

.destination-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    height: 380px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
}

.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(30, 27, 75, 0.12);
}

.destination-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 10;
}

/* Glow effects and cards overlays */
.glow-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-brand-accent);
    border-radius: 9999px;
    box-shadow: 0 0 10px var(--color-brand-accent);
}

/* Global Section Headings Gradient Styling */
section h2:not(.no-gradient), section h3:not(.no-gradient), #partner-universities-list h4 {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #EA580C 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Wandering Icons in Hero Background */
:root {
  --jc-path-1: path('M 100 100 Q 500 50, 900 200 T 1700 100 T 900 400 T 100 100');
  --jc-path-2: path('M 1700 400 Q 1300 450, 900 300 T 100 400 T 900 100 T 1700 400');
  --jc-path-3: path('M 300 400 Q 800 100, 1300 400 T 300 400');
  --jc-path-4: path('M 1500 100 Q 1000 400, 500 100 T 1500 100');
  --jc-path-5: path('M 900 250 Q 500 400, 100 250 T 900 100 T 1700 250 T 900 250');
}

.jc-wander-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.jc-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  offset-rotate: 0deg !important; /* Keep icons upright */
}

.jc-icon--1 { color: #2563EB; opacity: 0.30; font-size: 50px; offset-path: var(--jc-path-1); animation: jc-move 68s linear infinite; }
.jc-icon--2 { color: #EA580C; opacity: 0.30; font-size: 46px; offset-path: var(--jc-path-2); animation: jc-move 78s linear infinite; }
.jc-icon--3 { color: #16A34A; opacity: 0.30; font-size: 48px; offset-path: var(--jc-path-3); animation: jc-move 58s linear infinite; }
.jc-icon--4 { color: #2563EB; opacity: 0.30; font-size: 46px; offset-path: var(--jc-path-4); animation: jc-move 62s linear infinite; }
.jc-icon--5 { color: #EA580C; opacity: 0.30; font-size: 48px; offset-path: var(--jc-path-5); animation: jc-move 72s linear infinite; }

@keyframes jc-move { 
  0% { offset-distance: 0%; } 
  100% { offset-distance: 100%; } 
}

/* Animated ECG/Heartbeat Line background stroke */
@keyframes draw-ecg {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

.ecg-path {
  animation: draw-ecg 5s linear infinite;
}

/* Smart Match Calculator Active Button */
.calc-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-btn.active-calc-btn {
    border-color: #2563EB !important;
    background-color: rgba(37, 99, 235, 0.07) !important;
    color: #2563EB !important;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.15) !important;
}
