.elementor-kit-6{--e-global-color-primary:#338D9F;--e-global-color-secondary:#494949;--e-global-color-text:#7A7A7A;--e-global-color-accent:#D8E0D9;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* ========= DESKTOP (your original design stays the same) ========= */

.fixed-card {
    height: 360px;
    overflow: hidden;
}

.equal-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 200px;
    padding: 30px;
}

.equal-card .elementor-widget-container {
    flex-grow: 0;
}

.equal-card .social-icons {
    margin-top: auto;
}

/* --- TABLET: FORCE 2 CARDS PER ROW --- */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Make each column take 50% width */
    .elementor-column {
        width: 50% !important;
        max-width: 50% !important;
    }

    /* Make the card itself wider within the column */
    .fixed-card,
    .equal-card {
        width: 90% !important;
        margin: 20px auto !important;
        height: auto !important;
        min-height: 420px !important;
        overflow: visible !important;
    }

    /* Center the card content */
    .fixed-card,
    .equal-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding: 25px !important;
    }
}


/* ========= MOBILE FIX (below 768px) ========= */

@media (max-width: 768px) {

    /* Cards should NOT have any fixed height on mobile */
    .fixed-card,
    .equal-card {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Reset ALL margins that cause the misalignment */
    .fixed-card,
    .equal-card {
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Center items perfectly on mobile */
    .equal-card,
    .fixed-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }

    /* Icons spacing fix */
    .equal-card .social-icons,
    .fixed-card .social-icons {
        margin-top: 20px !important;
    }
}


/* ========= PREVENT SIDE SCROLL ========= */
body, html {
    overflow-x: hidden !important;
}

/* =========================================
   PALETTE
========================================= */
:root {
    --teal: #338d9f;
    --dark-gray: #494949;
    --light-gray: #E6E6E6;
    --near-black: #383838;
}

/* =========================================
   TEAM SECTION
========================================= */
.team-section {
    text-align: center;
    padding: 60px 20px;
}

.team-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 40px;
}

/* =========================================
   CARD STYLE
========================================= */
.team-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: .25s ease-in-out;
    text-align: center;
    height: 520px;              /* uniform card height */
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.10);
}

/* IMAGE */
.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--teal);
    object-fit: cover;
    margin-bottom: 15px;
}

/* NAME */
.member-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 5px;
}

/* DESCRIPTION */
.member-desc {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 10px 0;
    height: 120px; /* equalize card heights */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

/* ROLE */
.member-role {
    font-weight: 700;
    color: var(--teal);
    margin-top: auto; /* push to bottom */
}

/* SOCIAL ICONS */
.team-socials {
    margin-top: 12px;
}
.team-socials i {
    color: var(--teal);
    font-size: 18px;
    padding: 0 8px;
    cursor: pointer;
}
.team-socials i:hover {
    color: var(--near-black);
}

/* =========================================
   SWIPER FIXES
========================================= */
.teamSwiper {
    position: relative;
    padding-bottom: 70px !important; /* space for dots */
}

/* ensure swiper keeps horizontal layout */
.swiper-wrapper {
    display: flex !important;
}

/* arrows */
.swiper-button-next,
.swiper-button-prev {
    top: 50% !important;
    transform: translateY(-50%);
    color: var(--teal) !important;
    z-index: 10;
}

/* pagination */
.swiper-pagination {
    bottom: 15px !important;
    position: absolute !important;
}
.swiper-pagination-bullet {
    background: var(--teal) !important;
}

/* =========================================
   RESPONSIVE FIXES
========================================= */
@media (max-width: 1024px) {
    .team-card { height: 560px; }
}

@media (max-width: 768px) {
    .team-card { width: 90%; height: auto; }
    .member-desc { height: auto; -webkit-line-clamp: unset; }
}


/*VIDEOOOOOO*/ 

/* ===============================
   VIDEO RESOURCES – FULL CSS
   =============================== */

/* PAGE HEADER */
.resource-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.resource-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.resource-header p {
  font-size: 16px;
  color: #555;
  max-width: 720px;
}

/* FEATURED VIDEO */
.video-featured.compact {
  background: #f7f9fb;
  padding: 40px 0;
}

.featured-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.featured-video iframe {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.featured-info h3 {
  font-size: 22px;
  margin: 8px 0;
}

.featured-info p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
}

.featured-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* BUTTONS & LINKS */
.btn-primary.small {
  background: #0b5ed7;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary.small:hover {
  background: #094bb5;
}

.link-secondary {
  font-size: 14px;
  font-weight: 600;
  color: #0b5ed7;
  text-decoration: none;
}

.link-secondary:hover {
  text-decoration: underline;
}

/* TOPIC BADGES */
.topic-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.topic-badge.interview { background: #e8f0fe; color: #1a73e8; }
.topic-badge.ai { background: #f3ecff; color: #6f42c1; }
.topic-badge.tech { background: #ede7f6; color: #4527a0; }
.topic-badge.mortgage { background: #e6f0ff; color: #0b5ed7; }
.topic-badge.realestate { background: #f2f2f2; color: #444; }

/* SUB SECTIONS */
.video-sub.compact {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 16px;
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.sub-header h3 {
  font-size: 20px;
  margin: 0;
}

.section-desc {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  max-width: 480px;
}

/* VIDEO GRID */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sub-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

.sub-card:hover {
  transform: translateY(-4px);
}

.sub-card iframe {
  width: 100%;
  height: 140px;
  border: none;
}

.sub-card h4 {
  padding: 10px 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}

/* BADGE POSITION INSIDE CARD */
.sub-card .topic-badge {
  margin: 10px 12px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .sub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-wrap {
    grid-template-columns: 1fr;
  }

  .featured-video iframe {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .sub-grid {
    grid-template-columns: 1fr;
  }

  .sub-card iframe {
    height: 180px;
  }
}

/* EBOOOOOOK */

/* ===============================
   EBOOK RESOURCES – FULL CSS
   =============================== */

/* FEATURED EBOOK */
.ebook-featured.compact {
  background: #f7f9fb;
  padding: 40px 0;
}

.ebook-cover img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

/* EBOOK GRID */
.ebook-sub.compact {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 16px;
}

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ebook-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

.ebook-card:hover {
  transform: translateY(-5px);
}

.ebook-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.ebook-card h4 {
  font-size: 16px;
  margin: 10px 0 6px;
}

.ebook-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.ebook-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0b5ed7;
  text-decoration: none;
}

.ebook-link:hover {
  text-decoration: underline;
}

/* PLACEHOLDER */
.placeholder-box {
  height: 180px;
  border-radius: 8px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ebook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-wrap {
    grid-template-columns: 1fr;
  }

  .ebook-cover img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ebook-grid {
    grid-template-columns: 1fr;
  }
}

/* HOME PAGE */
/* ==============================
   INFINITE FINANCIAL – TEAM BG (BRIGHTER)
============================== */

.if-team-bg {
  position: relative;
  overflow: hidden;
  padding: 5px 65px;
  background: linear-gradient(
    135deg,
    #2A4A55,   /* lighter slate blue */
    #3FA6B2    /* brighter brand blue */
  );
  border-radius: 0; /* REMOVE ROUNDED CORNERS */
}

/* Financial grid – softened */
.if-team-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.22;
  z-index: 0;
}

/* Floating finance icons – clearer */
.if-team-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url('https://cdn-icons-png.flaticon.com/512/3135/3135673.png'),
    url('https://cdn-icons-png.flaticon.com/512/825/825509.png'),
    url('https://cdn-icons-png.flaticon.com/512/1828/1828919.png'),
    url('https://cdn-icons-png.flaticon.com/512/2991/2991108.png'),
    url('https://cdn-icons-png.flaticon.com/512/1086/1086741.png');
  background-repeat: no-repeat;
  background-size: 70px, 60px, 80px, 75px, 65px;
  background-position:
    8% 18%,
    92% 22%,
    78% 78%,
    12% 72%,
    50% 8%;
  opacity: 0.18; /* SLIGHTLY BRIGHTER */
  animation: financeFloat 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes financeFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-45px); }
  100% { transform: translateY(0); }
}

/* Keep content above bg */
.if-team-bg > * {
  position: relative;
  z-index: 1;
}

/* Mobile soften */
@media (max-width: 768px) {
  .if-team-bg {
    padding: 70px 30px;
  }
  .if-team-bg::after {
    opacity: 0.12;
  }
}


/* ========================================= */
/* Infinite Financial – 3-Tone Animated BG   */
/* ========================================= */
body {
  background: linear-gradient(
    180deg,
    #f7f9fa 0%,     /* light */
    #eef4f6 45%,    /* mid */
    #e6e6e6 100%    /* darker base */
  );
  position: relative;
  overflow-x: hidden;
}

/* LEFT WAVE – strongest accent */
body::before {
  content: "";
  position: fixed;
  top: -220px;
  left: -260px;
  width: 900px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(51, 141, 159, 0.28),  /* dark teal */
    rgba(51, 141, 159, 0.16),  /* mid teal */
    rgba(51, 141, 159, 0.06),  /* light teal */
    transparent 72%
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: infiniteWaveLeft 70s ease-in-out infinite;
}

/* RIGHT WAVE – softer contrast */
body::after {
  content: "";
  position: fixed;
  top: 300px;
  right: -320px;
  width: 820px;
  height: 620px;
  background: radial-gradient(
    ellipse at center,
    rgba(51, 141, 159, 0.22),
    rgba(51, 141, 159, 0.12),
    rgba(51, 141, 159, 0.05),
    transparent 75%
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: infiniteWaveRight 90s ease-in-out infinite;
}

/* ----------------------------------------- */
/* Ultra-slow, elegant movement              */
/* ----------------------------------------- */
@keyframes infiniteWaveLeft {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, 40px) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes infiniteWaveRight {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, -30px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* ================================
   FIX ELEMENTOR POPUP POSITIONING
================================ */

/* Let Elementor handle popup logic */
.dialog-widget {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-widget-content {
  margin: auto;
  max-width: 760px;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Overlay behaves normally */
.dialog-overlay {
  transition: opacity 0.25s ease;
}

/* Lock scroll ONLY while popup is open */
body.dialog-lightbox-open {
  overflow: hidden;
}

/* Pause animated backgrounds ONLY while popup is open */
body.dialog-lightbox-open::before,
body.dialog-lightbox-open::after {
  animation: none !important;
}/* End custom CSS */