/* =========================================================
   INSIGHTS – RESPONSIVE STYLES (FINAL FIXED)
========================================================= */

/* ---------------------------------------------------------
   SMALL LAPTOPS & TABLETS (≤ 1024px)
--------------------------------------------------------- */
@media (max-width: 1024px) {

  .partners-header {
    padding: 16px 30px;
  }

  .partners-header-content {
    gap: 15px;
  }

  .dstress-link {
    font-size: 15px;
  }

  .back-to-site {
    font-size: 11px;
  }

  .toi-logo-img {
    height: 45px;
  }

  .cenabh-logo {
    height: 45px;
  }

  .partners-logos {
    gap: 80px;
  }

  .partner-logo img {
    height: 50px;
  }

  .dstress-logo img {
    height: 60px;
  }

  .partner-name {
    font-size: 0.85rem;
  }

  .partner-tagline {
    font-size: 0.65rem;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.4;
  }

  .hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .assessment-card {
    max-width: 100%;
    padding: 40px;
    margin-top: 60px;
  }

  /* ✅ Start Analysis – LEFT */
  .start-analysis-wrapper {
    justify-content: flex-start;
  }

  .start-analysis-btn {
    width: 30%;
    min-width: 240px;
  }

  /* CTA */
  .app-cta {
    margin-left: 40px;
    margin-right: 40px;
    padding: 50px 30px;
  }

  .cta-title {
    margin-top: 80px;
  }

  .store-buttons {
    margin-top: 32px;
  }

  .phone-mockup {
    height: 420px;
  }
}

/* ---------------------------------------------------------
   TABLETS (≤ 768px)
--------------------------------------------------------- */
@media (max-width: 768px) {
  
  .partners-header {
    padding: 14px 20px;
  }

  .partners-header-content {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
  }

  .header-left {
    gap: 3px;
  }

  .dstress-link {
    font-size: 14px;
  }

  .arrow-left {
    font-size: 16px;
  }

  .back-to-site {
    font-size: 11px;
  }

  .toi-logo-img {
    height: 40px;
  }

  .cenabh-logo {
    height: 40px;
  }

  .hero-label {
    font-size: 0.8rem;
  }

  .partners-logos {
    gap: 50px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .partner-logo {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .partner-logo img {
    height: 45px;
  }

  .dstress-logo img {
    height: 55px;
  }

  .partner-text {
    align-items: center;
  }

  .partner-company {
    font-size: 0.7rem;
  }

  .partner-name {
    font-size: 0.8rem;
    text-align: center;
  }

  .partner-tagline {
    font-size: 0.6rem;
    text-align: center;
  }

  .insights-hero .col-lg-7 {
    padding-top: 30px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-illustration {
    margin-top: 20px;
    max-width: 160px;
    max-height: 35vh;
  }

  .destress-logo-hero,
  .destress-logo-hero.img-fluid,
  img.dstress-logo-hero,
  img.img-fluid.dstress-logo-hero {
    max-width: 60% !important;
    max-height: 45vh !important;
    margin-bottom: 16px !important;
    margin-top: -15px !important;
  }

  .insights-hero {
    min-height: calc(100vh - 100px);
    padding: 10px 0;
  }

  .hero-cta-wrapper {
    margin-top: 35px;
  }

  .assessment-card {
    padding: 32px;
  }

  .assessment-title,
  .assessment-subtitle {
    text-align: center;
  }

  .inner-form-card {
    padding: 24px;
  }

  /* ✅ Start Analysis – LEFT */
  .start-analysis-wrapper {
    justify-content: flex-start;
  }

  .start-analysis-btn {
    width: 50%;
    min-width: 260px;
  }

  /* CTA */
  .app-cta {
    margin: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    padding: 30px 20px;
    text-align: center;
  }

  .cta-top-logo {
    position: static;
    margin-bottom: 16px;
    text-align: center;
  }

  .cta-tagline {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-align: center;
  }

  .cta-title {
    font-size: 1.9rem;
    margin-top: 0;
    margin-bottom: 28px;
    text-align: center;
  }

  .app-cta .cta-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 100%;
    width: 100%;
  }

  .cta-tagline-text {
    position: static;
    font-size: 1.3rem;
    margin-top: 20px;
    text-align: center;
    bottom: auto;
    left: auto;
  }

  .store-buttons {
    justify-content: center;
    margin-top: 16px;
    gap: 12px;
  }

  .phone-mockup {
    height: 360px;
    margin-top: 20px;
  }
}

/* ---------------------------------------------------------
   MOBILE DEVICES (≤ 480px)
--------------------------------------------------------- */
@media (max-width: 480px) {
  
  .partners-header {
    padding: 8px 10px;
    overflow: visible;
  }

  .partners-header-content {
    grid-template-columns: auto auto auto;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    justify-self: center;
    flex-shrink: 0;
  }

  .header-center {
    justify-self: center;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-right {
    justify-self: center;
    display: flex !important;
    flex-shrink: 0;
  }

  .dstress-link {
    font-size: 8px;
    white-space: nowrap;
  }

  .arrow-left {
    display: none !important;
  }

  .back-to-site {
    display: none !important;
  }

  .toi-logo-img {
    height: 18px;
    max-width: 100%;
    object-fit: contain;
  }

  .cenabh-logo {
    height: 16px;
    max-width: 100%;
    object-fit: contain;
  }

  .hero-label {
    font-size: 0.85rem;
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .partners-logos {
    gap: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .partner-logo {
    justify-content: center;
  }

  .partner-logo img {
    height: 36px;
  }

  .dstress-logo img {
    height: 44px;
  }

  .partner-company {
    font-size: 0.8rem;
  }

  .partner-name {
    font-size: 0.9rem;
  }

  .partner-tagline {
    font-size: 0.75rem;
  }

  .banner-text {
    font-size: 14px;
    text-align: center;
  }

  .btn-chrome {
    padding: 10px 18px;
    font-size: 14px;
    margin-left: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.35;
    text-align: center;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  .hero-illustration {
    max-width: 140px;
    max-height: 30vh;
    margin-top: 20px;
  }

  .destress-logo-hero,
  .destress-logo-hero.img-fluid,
  img.dstress-logo-hero,
  img.img-fluid.dstress-logo-hero {
    max-width: 75% !important;
    max-height: 40vh !important;
    margin-bottom: 12px !important;
    margin-top: -15px !important;
  }

  .insights-hero {
    min-height: calc(100vh - 80px);
    padding: 5px 0;
  }

  .hero-cta-wrapper {
    margin-top: 30px;
  }

  .assessment-card {
    padding: 24px 20px;
    margin-top: 40px;
  }

  .assessment-title {
    font-size: 22px;
  }

  .assessment-subtitle {
    font-size: 16px;
  }

  .inner-form-card {
    padding: 20px;
  }

  .input-group-custom {
    max-width: 100%;
  }

  .check-label-title {
    font-size: 16px;
  }

  .check-description {
    font-size: 13px;
  }

  /* ✅ Start Analysis – LEFT + FULL WIDTH */
  .start-analysis-wrapper {
    justify-content: flex-start;
  }

  .start-analysis-btn {
    width: 100%;
    min-width: unset;
    padding: 14px 20px;
    font-size: 16px;
  }

 
  .footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-icons {
    gap: 10px;
  }

  .footer-icons img {
    width: 22px;
    height: 22px;
  }

  .footer-icons .icon-youtube {
    width: 24px;
    height: 24px;
  }
}
/* =========================================================
   CTA – MOBILE FIX (≤ 480px)
   Keeps desktop EXACT, fixes mobile layout
========================================================= */
@media (max-width: 480px) {

  .app-cta {
    margin: 16px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    padding: 20px 16px;
    border-radius: 18px;
  }

  /* Logo flows naturally instead of absolute */
  .cta-top-logo {
    position: static;
    margin-bottom: 10px;
    text-align: center;
  }

  .cta-top-logo img {
    height: 28px;
  }

  /* Tagline */
  .cta-tagline {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 0.95rem;
    text-align: center;
  }

  /* TITLE MOVES TO TOP */
  .cta-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.35rem;
    text-align: center;
  }

  /* Description fully visible */
  .app-cta .cta-description {
    margin-bottom: 14px;
    max-width: 100%;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
  }

  .cta-tagline-text {
    position: static;
    font-size: 1.1rem;
    margin-top: 16px;
    text-align: center;
    bottom: auto;
    left: auto;
  }

  /* Remove nowrap that cuts text */
  .cta-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* REMOVE forced line break */
  .cta-description .line-1,
  .cta-description .line-2 {
    display: inline;
  }

  /* add natural spacing */
  .cta-description .line-2::before {
    content: " ";
  }

  /* Store buttons closer */
  .store-buttons {
    margin-top: 10px;
    gap: 10px;
    justify-content: center;
  }

  .store-buttons img {
    height: 38px;
  }

  /* Phone moves below content */
  .cta-image-container {
    margin-top: 16px;
    justify-content: center;
  }

  .phone-mockup {
    height: 240px;
    width: auto;
    transform: none;
  }
}

/* ---------------------------------------------------------
   LANDSCAPE MOBILE FIX
--------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {

  .hero-title {
    font-size: 1.6rem;
  }

  .assessment-card {
    padding: 20px;
  }

  .start-analysis-btn {
    margin-top: 16px;
  }
}
/* =========================================
   HIDE NAVBAR TOGGLER (HAMBURGER ICON)
   ON SMALL SCREENS
========================================= */

@media (max-width: 991px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   VERY SMALL MOBILE DEVICES (≤ 360px)
--------------------------------------------------------- */
@media (max-width: 360px) {
  .partners-header {
    padding: 6px 8px;
    overflow: visible;
  }

  .partners-header-content {
    gap: 14px;
    grid-template-columns: auto auto auto;
    justify-content: center;
  }

  .header-left {
    flex-direction: row;
    gap: 2px;
    flex-shrink: 0;
    justify-self: center;
  }

  .header-center {
    flex-shrink: 1;
    min-width: 0;
    justify-self: center;
  }

  .header-right {
    display: flex !important;
    flex-shrink: 0;
    justify-self: center;
  }

  .dstress-link {
    font-size: 7px;
  }

  .arrow-left {
    display: none !important;
  }

  .back-to-site {
    display: none !important;
  }

  .toi-logo-img {
    height: 16px;
  }

  .cenabh-logo {
    height: 14px;
  }
}
