/*=============== GOOGLE FONTS ===============*/
/* Google Fonts - moved to local or removed to avoid uBlock blocking */
/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap"); */

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colors - Astro Modern Theme ==========*/
  --first-color: #6366f1;
  --first-color-light: #818cf8;
  --first-color-dark: #4f46e5;
  --title-color: #0f172a;
  --text-color: #64748b;
  --text-color-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  --white-color: #ffffff;
  --body-color: #f8fafc;
  --container-color: #ffffff;
  
  /* Gradient colors */
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --second-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  background-attachment: fixed;
  color: var(--text-color);
  transition: background-color .4s;
  min-height: 100vh;
}

input,
button {
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/


/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1220px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-light);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
}

.header.scroll-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav__logo img {
  height: 60px !important;
  max-width: 280px !important;
  width: auto !important;
  object-fit: contain;
}

.nav__logo {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--h3-font-size);
    font-family: var(--second-font);
}

.nav__logo i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__logo img {
    height: 60px !important;
    max-width: 280px !important;
    width: auto !important;
    object-fit: contain;
}

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__lang {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--white-color);
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-select:hover {
    border-color: var(--first-color);
    box-shadow: var(--shadow-sm);
}

.nav__toggle {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: var(--white-color);
    padding: 6rem 3rem 0;
    transition: right 0.4s;
    box-shadow: -2px 0 12px hsla(230, 12%, 40%, 0.15);
}

/* Desktop: Show menu inline in header - MUST be after mobile styles */
@media screen and (min-width: 768px) {
    .nav__menu {
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .nav__list {
        flex-direction: row !important;
        column-gap: 2rem;
        row-gap: 0;
        display: flex !important;
    }
}

.nav__menu.show-menu {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.4s;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--first-color);
}

.nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/*=============== HOME ===============*/
.home {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    background-image: url('https://cf.mhcache.com/FP/Assets/Images/CompanyHomePage/React/US-top-section-bg@2x.webp?v=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.4) 0%, rgba(224, 231, 255, 0.35) 50%, rgba(248, 250, 252, 0.4) 100%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    z-index: 0;
}

.home::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.home__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.home__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.home__header {
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.home__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: var(--second-font);
}

.home__description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #334155;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

.home__form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.home__form .button--primary {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1.375rem 2.5rem;
    font-size: 1.05rem;
    letter-spacing: 0.8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 640px) {
    .form__row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.form__group {
    position: relative;
    text-align: left;
}

.form__label {
    display: block;
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.form__label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form__input {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.form__input:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.form__input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    outline: none;
    background-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.form__input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.form__input::placeholder {
    color: rgba(30, 41, 59, 0.6);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/*=============== BUTTON ===============*/
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.75rem;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover::before {
    opacity: 1;
}

.button--primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.button--primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.button--primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button i {
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.button span {
    position: relative;
    z-index: 1;
}

.button--green {
    background-color: #48bb78;
}

.button--green:hover {
    background-color: #38a169;
}

.button--premium {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 1rem;
    padding: 1.25rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: none;
    margin-top: 1rem;
    border-radius: 12px;
}

/* Override for payment buttons specifically - MUST override uppercase */
#buy-now-btn-stripe,
#buy-now-btn-paypal,
.payment-methods button,
.payment-methods .button--premium {
    text-transform: none !important;
    text-align: center;
    background: transparent !important;
}

#buy-now-btn-paypal {
    background: rgba(0, 112, 186, 0.2) !important;
    border-color: rgba(0, 112, 186, 0.4) !important;
}

.payment-methods button span,
#buy-now-btn-stripe span,
#buy-now-btn-paypal span {
    text-transform: none !important;
}

.button--premium:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
}

.button--premium:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.2);
}

/*=============== RESULTS ===============*/
.results {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    background-image: url('https://cf.mhcache.com/Static/FP/Assets/Images/CreateFamilyTreeLandingPage/desktop_top_tree@2x-v-715ae01ac9ea4f5742fa.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    text-align: center;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(224, 231, 255, 0.90) 50%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.results {
    text-align: center;
}

.results .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.results__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result__card,
.premium__card,
.feedback__card,
.new-search__card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px hsla(230, 12%, 40%, 0.1);
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--second-font);
    text-align: center;
    width: 100%;
    display: block;
}

.result__text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0;
}

.premium__card {
    background: rgba(255, 255, 255, 0.08);
    color: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.premium__card::before {
    display: none;
}

.premium__header {
    display: none !important;
}

.premium__badge,
.premium__guarantee,
.premium__note {
    display: none !important;
}

.premium__content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.premium__content h4,
.premium__content p,
.premium__header h3,
.premium__header p {
    display: none !important;
}

.premium__pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.price-old {
    color: #64748b;
    text-decoration: line-through;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.price-new {
    color: #0f172a;
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(255, 255, 255, 1), 0 2px 6px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255, 255, 255, 0.8);
    letter-spacing: -1px;
}

.premium__guarantee {
    display: none !important;
}

.premium__note {
    display: none !important;
}

.feedback__card,
.new-search__card {
    display: none !important;
}

/*=============== FEATURED ===============*/
.featured {
    position: relative;
    overflow: hidden;
    background-image: url('https://cf.mhcache.com/FP/Assets/Images/DnaSite/globe_genetic_groups_desktop_rtl@2x.png?v=2');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


.featured .container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.featured .section__title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.featured__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.featured__card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured__card:hover {
    transform: translateY(-5px);
}

.featured__shape {
    width: 80px;
    height: 80px;
    background-color: var(--first-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    text-align: center;
}

.featured__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
    display: block;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--small-font-size);
    text-align: center;
    width: 100%;
    display: block;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/*=============== TESTIMONIAL ===============*/
.testimonial {
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('https://cf.mhcache.com/FP/Assets/Images/CompanyHomePage/React/discovery-bg.webp?v=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial .section__title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem;
}

.testimonial__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.testimonial__card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.testimonial__profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

.testimonial__profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.testimonial__profile > div {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial__profile h4 {
    margin: 0;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial__profile span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-align: center;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.testimonial__card > p {
    text-align: center;
    font-style: italic;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--title-color);
    color: var(--white-color);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer .container {
    max-width: 1220px !important;
    margin: 0 auto !important;
    margin-inline: auto !important;
    padding: 0 1.5rem;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer__bottom {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.footer__logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 0.5rem;
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--h3-font-size);
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin: 0 auto !important;
    text-align: center !important;
}

.footer__logo img {
    height: 65px !important;
    max-width: 300px !important;
    width: auto !important;
    object-fit: contain;
}

.footer__logo:hover {
    opacity: 0.8;
}

.footer__logo i {
    font-size: 1.5rem;
}

.footer__copy {
    margin: 0 auto !important;
    font-size: var(--small-font-size);
    color: rgba(255, 255, 255, 0.8);
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.footer__social {
    display: flex !important;
    gap: 1rem;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

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

.footer__social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/*=============== LOADING OVERLAY ===============*/
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--first-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-time {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    margin-top: 0.5rem;
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--first-color);
    color: var(--white-color);
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px hsla(230, 12%, 40%, 0.15);
    transition: bottom 0.4s, transform 0.4s, background-color 0.4s;
    z-index: var(--z-tooltip);
}

.scrollup:hover {
    transform: translateY(-0.25rem);
    background-color: hsl(230, 62%, 50%);
}

.scrollup.show-scroll {
    bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 768px) {
    .container {
        margin-inline: 1rem;
    }
    
    .home {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
    }
    
    .home__title {
        font-size: 2rem;
    }
    
    .home__description {
        font-size: 1rem;
    }
    
    .home__form {
        padding: 2rem 1.5rem;
    }
    
    .form__row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form__input {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .new-search__form {
        flex-direction: column;
    }
    
    .nav__menu {
        width: 100%;
    }
    
    .premium__card,
    .result__card,
    .feedback__card {
        padding: 1.5rem;
    }
    
    .featured__container {
        grid-template-columns: 1fr;
    }
    
    .featured {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .home__title {
        font-size: 1.75rem;
    }
    
    .home__form {
        padding: 1.5rem;
    }
    
    .button {
        padding: 0.875rem 1.5rem;
    }
    
    .featured {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .featured::before {
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(224, 231, 255, 0.80) 50%, rgba(248, 250, 252, 0.85) 100%);
    }
    
    .featured__card {
        padding: 1.5rem;
    }
}

/* For medium devices */
@media screen and (min-width: 768px) {
    .nav__menu {
        width: 50%;
    }
    
    .home__title {
        font-size: 3rem;
    }
    
    .home__description {
        font-size: 1.125rem;
    }
}

/* For large devices */
@media screen and (min-width: 768px) {
    .nav__toggle,
    .nav__close {
        display: none;
    }
    
    .nav__menu {
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: auto !important;
    }
    
    .nav__list {
        flex-direction: row !important;
        column-gap: 2rem;
        row-gap: 0;
        display: flex !important;
    }
    
    .nav__close {
        display: none !important;
    }
    
    .featured {
        background-position: center center;
        background-size: cover;
        min-height: 100vh;
    }
}

@media screen and (min-width: 1150px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    
    .home__title {
        font-size: 4.5rem;
    }
    
    .home__description {
        font-size: 1.375rem;
    }
    
    .home__form {
        padding: 4rem;
    }
    
    .form__row {
        gap: 2rem;
    }
    
    .featured {
        background-position: center center;
        background-size: cover;
        background-attachment: fixed;
    }
}
