/* Programs Page Styles */

/* Global Layout */
body {
    font-family: "Montserrat", sans-serif !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

*{
     font-family: "Montserrat", sans-serif !important;
}

/* Exclude icons from Montserrat font */
i,
.fa,
.fas,
.far,
.fal,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", sans-serif !important;
}
/* Header/Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    height: 70px;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: 100%;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: 10px;
}
.icon-cont {
  width: fit-content;
  height: 50px;
  background-color:transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-right: 15px;
  padding-left: 3px;
  color: white;
  font-size: 20px;
  padding-bottom: 5px;
}

.icon {
  height: 37px;
  border-radius:5px;
  width: 42px;
  background-image: url("https://res.cloudinary.com/dfynyucmr/image/upload/v1747357496/edmondie-logo_n3ykbw.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-text {
  font-weight: 1000;
  color: #dd4a0a;
  margin-left: 10px;
}


.brand-name {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.brand-tagline {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}




.nav-auth .sign-in-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    border: 1.5px solid rgba(221, 74, 10, 0.35);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px -12px rgba(221, 74, 10, 0.6);
    text-decoration: none;
}

.nav-auth .sign-in-btn:hover {
    background: #c43d08;
    transform: translateY(-1px);
}

.nav-auth .sign-in-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.nav-auth .user-signin-ico {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-image: url('https://res.cloudinary.com/dfynyucmr/image/upload/v1750597869/refer_tsaw9u.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-auth .sign-in-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 50px;
}

.nav-auth .user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.nav-auth .logout-btn {
    background: #fff;
    border: 1.5px solid #dd4a0a;
    color: #dd4a0a;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-auth .logout-btn:hover {
    background: #dd4a0a;
    color: #fff;
    border-color: #dd4a0a;
}

.btn-primary,
.btn-secondary {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 50px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #c43d08;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-light);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

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

.mobile-chat-toggle {
    display: none;
    z-index: 999;
    position: relative;
}

/* Mobile menu toggle button (hamburger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.35rem;
    cursor: pointer;
}
.footer-widget{
   height: auto;
  width: 100dvw;
  background-color: white;
  overflow-x: clip;
  position: relative;
}

/* Footer Styles - From Index Page */
.main-footer {
  background: #dd4a0a;
  color: #fff;
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-image {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo-image:hover {
  transform: scale(1.05);
}

.footer-logo-text {
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav-heading {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.footer-nav-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: white;
  border-radius: 2px;
}

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

.footer-nav-item {
  margin-bottom: 0.8rem;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1rem;
  white-space: nowrap;
}

.footer-nav-link:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-nav-link::before {
  content: '›';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-nav-link:hover::before {
  opacity: 1;
}

.footer-bottom {
  padding: 2rem 0;
  margin-top: 3rem;
}

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

.footer-legal-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: white;
}

.social-media {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* End Footer Styles */
/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu:not([hidden]) { display: grid; }
.mobile-menu {
    grid-template-columns: 1fr;
    padding: 0.5rem 1rem 0.9rem;
}
.mobile-menu-link {
    padding: 0.8rem 0.25rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
}
.mobile-menu-link.active,
.mobile-menu-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 6rem;
    color: #ffffff;
    background: url('https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
    background-color: #0b1435;
    overflow: hidden;
    min-height: 65vh;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(8, 16, 43, 0.98) 0%,
        rgba(12, 28, 70, 0.9) 45%,
        rgba(24, 60, 123, 0.7) 70%,
        rgba(24, 60, 123, 0.32) 85%,
        rgba(24, 60, 123, 0) 100%
    );
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
                radial-gradient(circle at 68% 82%, rgba(255, 197, 125, 0.16) 0%, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    width: fit-content;
}

.hero-badge i {
    color: #ffd966;
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    color: #ffffff;
}

.title-highlight {
    color: #ffd966;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.0rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
    max-width: 80% !important;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 300px));
    gap: 1rem;
    max-width: 95% !important;
}

.hero-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.hero-highlight i {
    font-size: 1.4rem;
    color: #ffd966;
    margin-top: 0.2rem;
}

.hero-highlight h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-highlight p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}


.hero-search {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}

.hero-search::before {
    content: '';
    position: absolute;
    inset: -50px -70px -70px -40px;
    background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.24), transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(221, 74, 10, 0.18), transparent 60%);
    filter: blur(45px);
    opacity: 0.6;
    z-index: 0;
}

.hero-search > * {
    position: relative;
    z-index: 1;
}

/* Tabbed Search System - Premium Design */
.search-system {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 35px 80px rgba(9, 25, 66, 0.25);
    border: 1px solid rgba(19, 43, 102, 0.12);
    margin: 0;
    overflow: scroll;
    width: 100%;
    max-width: 460px;
    max-height: 460px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.search-system::-webkit-scrollbar {
    display : none;
}

.search-system:hover {
    transform: translateY(-6px);
    box-shadow: 0 45px 100px rgba(9, 25, 66, 0.3);
}

.search-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    padding: 1.1rem 1.2rem 0.75rem;
    background: linear-gradient(135deg, #f6f7ff 0%, #eef3ff 100%);
    border-bottom: 1px solid rgba(19, 43, 102, 0.08);
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: #324364;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    min-width: 100px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-tab:hover {
    border-color: rgba(221, 74, 10, 0.35);
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(221, 74, 10, 0.18);
}

.search-tab i {
    font-size: 1rem;
}

.search-tab.active {
    color: var(--primary);
    background: #ffffff;
    border-color: rgba(221, 74, 10, 0.45);
    box-shadow: 0 12px 26px rgba(221, 74, 10, 0.22);
    transform: translateY(-2px);
}

.search-content {
    padding: 0.75rem 1.8rem 1.8rem;
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    
    justify-content: center;
    align-items: center;
}

.search-content::-webkit-scrollbar {
    width: 6px;
}

.search-content::-webkit-scrollbar-track {
    background: rgba(50, 67, 100, 0.08);
    border-radius: 10px;
}

.search-content::-webkit-scrollbar-thumb {
    background: rgba(175, 174, 174, 0.35);
    border-radius: 10px;
}

.search-content::-webkit-scrollbar-thumb:hover {
    background: rgba(221, 74, 10, 0.5);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styling - Premium Design */
.search-form {
    width: 100%;
    margin: 0;
    transform: scale(1);
}

.form-group {
    margin-bottom: 0.9rem;
    
}

/* Horizontal layout for main search inputs */
.search-form-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form-horizontal .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1f2a44;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
}

.form-label i {
    color: var(--primary);
    width: 18px;
    margin-right: 4px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(31, 42, 68, 0.16);
    border-radius: 12px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #f9fbff;
    box-sizing: border-box;
    color: #1f2a44;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-input::placeholder {
    color: rgba(31, 42, 68, 0.45);
    font-weight: 400;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(221, 74, 10, 0.55);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(9, 25, 66, 0.15),
                0 0 0 4px rgba(221, 74, 10, 0.12);
    transform: translateY(-2px);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f2a44' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select:hover {
    border-color: rgba(221, 74, 10, 0.45);
}

.popular-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.subject-tag {
    background: #f2f5ff;
    color: #324364;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(50, 67, 100, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.subject-tag:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(221, 74, 10, 0.22);
    border-color: var(--primary);
}


.search-submit-btn {
    min-width: 140px;
    background: linear-gradient(135deg, #dd4a0a 0%, #ff7b3b 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
    box-shadow: 0 10px 30px rgba(221, 74, 10, 0.25);
    position: relative;
    overflow: hidden;
}

.search-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s;
}

.search-submit-btn:hover::before {
    left: 100%;
}

.search-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(221, 74, 10, 0.32);
}

.search-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(221, 74, 10, 0.26);
}

.search-submit-btn i {
    font-size: 1rem;
}



.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.program-card.floating {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--dark);
    animation: float 6s ease-in-out infinite;
    width: 200px;
}

.program-card.floating:nth-child(1) {
    top: 20px;
    right: 100px;
    animation-delay: 0s;
}

.program-card.floating:nth-child(2) {
    top: 150px;
    right: 20px;
    animation-delay: 2s;
}

.program-card.floating:nth-child(3) {
    top: 280px;
    right: 120px;
    animation-delay: 4s;
}

.card-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.program-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.program-card p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Guide Me Tab Styles */
.guide-content {
    text-align: center;
}

.guide-intro {
    margin-bottom: 2rem;
}

.guide-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.guide-intro h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.guide-intro p {
    color: var(--gray);
    line-height: 1.5;
}

.guide-options {
    display: grid;
    gap: 1rem;
}

.guide-option-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.guide-option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.guide-option-btn i {
    font-size: 2rem;
    color: var(--primary);
    width: 40px;
}

.guide-option-btn h4 {
    margin: 0 0 0.3rem 0;
    color: var(--dark);
    font-size: 1rem;
}

.guide-option-btn p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Instant Offer Tab Styles */
.instant-content {
    text-align: center;
}

.instant-intro {
    margin-bottom: 2rem;
}

.instant-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.instant-intro h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.instant-intro p {
    color: var(--gray);
    line-height: 1.5;
}

.instant-form {
    text-align: left;
}

.instant-btn {
    background: var(--warning);
    animation: glow 2s infinite alternate;
}

.instant-btn:hover {
    background: #e68900;
}

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

@keyframes glow {
    from {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.6);
    }
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

/* Smart Filters Sidebar */
.smart-filters {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(221, 74, 10, 0.1);
    overflow: hidden;
}

/* Smart Header */
.smart-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.smart-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.filter-title-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.filter-title-section i {
    font-size: 1.2rem;
}

.filter-title-section h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.ai-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.ai-suggestion i {
    color: #ffd700;
}

.clear-all-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.clear-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Filter Sections */
.filter-section {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header i {
    color: var(--primary);
}

.section-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.selected-count {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.section-body {
    margin-top: 1rem;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.collapsible-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

.collapsible-content {
    margin-top: 1rem;
}

.collapsible-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.collapsible-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.collapsible-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.collapsible-toggle i {
    transition: transform 0.3s ease;
}

.collapsible.collapsed .collapsible-content {
    display: none;
}

.collapsible.collapsed .collapsible-toggle i {
    transform: rotate(180deg);
}

/* Quick Filter Pills */
.quick-filters {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.quick-filters h4 {
    margin: 0 0 1rem 0;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-pill {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    width: 100%;
}

.filter-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 74, 10, 0.15);
}

.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pill-emoji {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.pill-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.pill-count {
    background: #e9ecef;
    color: var(--gray);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Country Grid */
.country-grid {
    display: grid;
    gap: 0.8rem;
}

.country-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.country-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(221, 74, 10, 0.15);
    transform: translateY(-2px);
}

.country-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.country-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.programs-count {
    font-size: 0.8rem;
    color: var(--gray);
}

.scholarship-indicator {
    font-size: 0.8rem;
    color: var(--success);
}

.country-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.feature {
    background: #e9ecef;
    color: var(--gray);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.show-more-countries {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray);
    font-weight: 500;
}

.show-more-countries:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Degree Timeline */
.degree-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.degree-step {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.degree-step:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(221, 74, 10, 0.1);
}

.degree-step.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.step-content h5 {
    margin: 0 0 0.2rem 0;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.step-content span {
    color: var(--gray);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.2rem;
}

.step-content small {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Field Grid */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.field-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.field-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(221, 74, 10, 0.1);
    transform: translateY(-2px);
}

.field-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.field-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.field-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.field-count {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.field-trend {
    font-size: 0.7rem;
    font-weight: 500;
}

.trending-up {
    color: var(--success);
}

.trending-stable {
    color: var(--info);
}

/* Funding Options */
.funding-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.funding-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.funding-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.funding-card.premium {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.funding-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
}

.funding-card.accessible {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--success-light) 0%, #ffffff 100%);
}

.funding-badge {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.funding-content h5 {
    margin: 0 0 0.3rem 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

.funding-content p {
    margin: 0 0 0.5rem 0;
    color: var(--gray);
    font-size: 0.8rem;
}

.funding-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.funding-stats .count {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.funding-stats .difficulty {
    color: var(--gray);
    font-size: 0.7rem;
}

/* Budget Slider */
.budget-slider-container {
    padding: 1rem 0;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.budget-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.budget-label.current {
    color: var(--primary);
    font-weight: 600;
}

.budget-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    margin-bottom: 1rem;
}

.budget-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(221, 74, 10, 0.3);
}

.budget-suggestions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.budget-preset {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.budget-preset:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.preset-emoji {
    font-size: 1.2rem;
}

.budget-preset span:not(.preset-emoji) {
    font-weight: 500;
    font-size: 0.9rem;
}

.budget-preset small {
    color: var(--gray);
    font-size: 0.8rem;
    margin-left: auto;
}

/* Active Filters */
.active-filters {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
}

.filter-tag .remove-tag:hover {
    opacity: 1;
}

/* Programs Content */
.programs-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: calc(100% - 1.5rem);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--light-gray);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.results-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.results-count {
    color: var(--gray);
    margin: 0;
}

.count {
    font-weight: 600;
    color: var(--primary);
}

.content-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: white;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    outline: none;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    border-color: var(--primary);
}

/* Coming Soon Section */
.coming-soon-container {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.coming-soon-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.coming-soon-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 3rem;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--success-light);
    border-radius: 8px;
    color: var(--success);
    font-weight: 500;
}

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

.notify-section {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed var(--primary);
}

.notify-section h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.notify-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.notify-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    outline: none;
}

.notify-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.notify-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notify-btn:hover {
    background: #c43d08;
    transform: translateY(-1px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Chat Sidebar (Desktop) */
.chat-sidebar {
    position: fixed;
    right: 0;
    transform: translateY(-50%);
    top: 50%;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 2050 !important;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.chat-sidebar.minimized {
    transform: translateY(-50%) translateX(340px);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px 0 0 0;
}

.chat-assistant-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.assistant-details h4 {
    margin: 0;
    font-size: 1.1rem;
}

.assistant-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.message {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--secondary);
}

.message-content {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: var(--primary);
    color: white;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.chat-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    background: #c43d08;
    transform: scale(1.05);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-question {
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.quick-question:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Chat Popup */
.chat-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px 20px 0 0;
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    margin-right: 0.3rem;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1.2rem;
}

.popup-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.popup-input-container {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
    background: white;
}

.popup-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.popup-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
}

.popup-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Toggle FAB */
.chat-toggle-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(221, 74, 10, 0.3);
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1500;
}

.chat-toggle-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(221, 74, 10, 0.4);
}

/* Chat Restore Button */
.chat-restore-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 3500 !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.chat-restore-btn:hover {
    background: #c43d08;
    transform: translateY(-50%) translateX(-5px);
}

.chat-restore-btn.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
        gap: 2.4rem;
        padding: 0 2.5rem;
    }
    
    .content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    
    .chat-sidebar {
        width: 340px;
    }
}

/* Tablet and Medium Screens - Enhanced Search System */
@media (max-width: 1024px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 0 2.4rem;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-search {
        justify-content: flex-start;
        margin-top: 0;
        order: 2;
    }

    .search-system {
        max-width: 100%;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .navbar { height: auto; }
    .nav-container { height: auto; }
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-start; /* keep brand aligned left */
    }
    
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-right: 0.25rem; }
    /* Keep brand on the left and hamburger on the right in first row */
    .nav-brand { order: 0; }
    .mobile-menu-toggle { order: 1; margin-left: auto; }
    /* Actions on second row */
    .nav-actions { order: 2; width: 100%; }
    
    .mobile-chat-toggle {
        display: flex;
        padding: 0.55rem 0.9rem;
        font-size: 0.9rem;
    }

    /* Make action area span full width and align items cleanly */
    .nav-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Remove large right margins on small screens */
    .btn-primary,
    .btn-secondary {
        margin-right: 0;
    }

    .nav-auth {
        margin-right: 0;
    }

    /* Compact sign-in button for mobile */
    .nav-auth .sign-in-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
        box-shadow: none;
    }
    
    .hero-section {
        padding: 3.2rem 0 4.2rem;
        min-height: 50vh;
    }
    
    .hero-container {
        padding: 0 1.75rem;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 100%;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-search {
        margin-top: 2.5rem;
    }

    .search-system {
        width: 100%;
        border-radius: 24px;
    }
    
    .search-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.85rem 1rem 0.65rem;
    }
    
    .search-tab {
        min-width: auto;
        font-size: 0.82rem;
    }
    
    .search-content {
        padding: 1.35rem;
    }
    
    .search-form-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-input,
    .form-select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-submit-btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-social-proof {
        gap: 0.65rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .smart-filters {
        position: static;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .smart-header {
        padding: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .quick-filters {
        padding: 1rem;
    }
    
    .field-grid {
        grid-template-columns: 1fr;
    }
    
    .country-grid {
        gap: 0.6rem;
    }
    
    .coming-soon-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .guide-options {
        gap: 0.8rem;
    }
    
    .guide-option-btn {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .guide-option-btn i {
        width: auto;
        font-size: 1.5rem;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .chat-restore-btn {
        display: none !important;
    }
    
    .chat-toggle-fab {
        display: flex;
    }
    
    /* Footer Mobile Styles */
    .footer-nav-columns {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .hero-section {
        padding: 2.4rem 0 3.2rem;
        min-height: 42vh;
    }
    
    .hero-container {
        padding: 0 1.3rem;
    }
    
    .hero-badge {
        font-size: 0.78rem;
        padding: 0.45rem 0.85rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-highlights {
        gap: 0.75rem;
    }

    .hero-highlight {
        padding: 0.9rem 1rem;
    }

    .hero-search {
        margin-top: 2rem;
    }

    .search-system {
        border-radius: 20px;
    }

    .search-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.7rem 0.8rem 0.5rem;
        gap: 0.45rem;
    }

    .search-tab {
        font-size: 0.74rem;
        padding: 0.55rem 0.7rem;
    }

    .search-content {
        padding: 1.05rem 1.1rem 1.2rem;
    }
    
    .search-form-horizontal {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    
    .form-input,
    .form-select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .subject-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .search-submit-btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        font-size: 0.95rem;
    }
    
    .hero-social-proof {
        gap: 0.5rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .content-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .coming-soon-title {
        font-size: 1.8rem;
    }
    
    .coming-soon-subtitle {
        font-size: 1.1rem;
    }
    
    .coming-soon-description {
        font-size: 1rem;
    }
    
    .notify-section {
        padding: 1.5rem;
    }
    
    .smart-filters {
        border-radius: 8px;
    }
    
    .smart-header {
        padding: 0.8rem;
    }
    
    .filter-section {
        padding: 0.8rem;
    }
    
    .quick-filters {
        padding: 0.8rem;
    }
    
    .field-grid,
    .budget-suggestions {
        grid-template-columns: 1fr;
    }
}

/* Loading and Transition Effects */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

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

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.popup-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.popup-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.popup-messages::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.popup-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}