
/* ===========================================
4. Pop-up
=============================================================== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; 
}

.popup-content {
  position: relative;
  margin: 10% auto;
  width: 100%;
  max-width: 700px;
  height: auto;
  text-align: center;
  opacity: 0;
  transform: scale(0.7);
  animation: zoomIn 0.8s forwards ease-out;
  border: 4px solid #18d26e;
  box-sizing: border-box;
  box-shadow: 100px 100px 100px rgba(24, 210, 110, 0.3);
}

.close-btn {
  position: absolute;
  top: -45px;
  right: -45px;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  border: 2px solid #18d26e;
  box-shadow: 0 0 20px rgba(24, 210, 110, 0.5);
}

.close-btn:hover {
  background-color: #18d26e;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(24, 210, 110, 0.8);
}

@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------------------
Laptop and larger screens 
-------------------------------------------------------*/
@media (min-width: 1401px) {
    .popup-content {
        max-width: 50%;
        margin: 7.9% auto;
        height: 63.7%;
    }

    .popup-content iframe {
        height: 433px;
    }
}

@media (max-width: 1400px) {
    .popup-content {
        max-width: 49.6%;
        margin: 7.9% auto;
        height: 63%;
    }

    .popup-content iframe {
        height: 385px;
    }
}

/* -------------------------------------------
  Nest Hub Max 
  --------------------------------------------------------- */
@media (max-width: 1300px) and (max-height: 800px) {
    .popup-content {
        max-width: 65%;
        margin: 12% auto;
        height: 58.6%;
    }

    .popup-content iframe {
        height: 462px;
    }
}

/* ------------------------------------------
  Nest Hub 
  --------------------------------------------------------- */
@media (max-width: 1100px) and (max-height: 620px) {
    .popup-content {
        max-width: 68%;
        margin: 10% auto;
        height: 65.7%;
    }

    .popup-content iframe {
        height: 387px;
    }
}

/* ------------------------------------------
    Tablet - iPad Pro 
  --------------------------------------------------------- */
@media (max-width: 1100px) and (min-height: 1300px) {
    .popup-content {
        max-width: 84%;
        margin: 30% auto;
        height: 35.5%;
    }

    .popup-content iframe {
        height: 477.5px;
    }
}

/* ------------------------------------------
  Tablet - Surface Pro 7 
  -------------------------------------------------------- */

@media (max-width: 1000px) and (min-height: 1300px) {
    .popup-content {
        max-width: 85%;
        margin: 30% auto;
        height: 32%;
    }

    .popup-content iframe {
        height: 430px;
    }
}

/* ------------------------------------------
  Tablet - Asus Zenbook Fold
  -------------------------------------------------------- */
@media (max-width: 900px) {
    .popup-content {
        max-width: 84.7%;
        margin: 30% auto;
        height: 32.4%;
    }

    .popup-content iframe {
        height: 406px;
    }
}

/* ------------------------------------------
  Tablet - iPad Air 
  -------------------------------------------------------- */
@media (max-width: 850px) {
    .popup-content {
        max-width: 84.7%;
        margin: 30% auto;
        height: 33.3%;
    }

    .popup-content iframe {
        height: 385px;
    }
}

/* --------------------------------------------------
  Tablet - IPad Mini 
  ---------------------------------------------------------------*/
@media (max-width: 800px) {
    .popup-content {
        max-width: 90.2%;
        margin: 25% auto;
        height: 38.4%;
    }
}

/* --------------------------------------------------
  Mobile - 
  --------------------------------------------------------------*/
@media (max-width: 767px) {
    .popup-content {
        max-width: 80%;
        margin: 20% auto;
        height: 28.5%;
    }

    .popup-content iframe {
        max-height: 315px;
    }
}

/* ----------------------------------------------------
Tablet - Surface Duo
---------------------------------------------------------------*/

@media (max-width: 576px) {
    .popup-content {
        max-width: 80%;
        margin: 15% auto;
        height: 34%;
    }

    .popup-content iframe {
        max-height: 238px;
    }
}

/* --------------------------------------------------
  Mobile - iPhone 14 Pro Max 
  --------------------------------------------------------------*/
@media (max-width: 440px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 24.35%;
    }

    .popup-content iframe {
        max-height: 220px;
    }
}

/* -------------------------------------------------
  Mobile - iPhone XR 
  ------------------------------------------------------------*/
@media (max-width: 420px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 24%;
    }

    .popup-content iframe {
        max-height: 206px;
    }
}

/* -------------------------------------------------
  Mobile - Pixel 7
  ------------------------------------------------------------*/
@media (max-width: 413px) and (max-height: 920px) {
    .popup-content {
        max-width: 86%;
        margin: 40% auto;
        height: 22.1%;
    }

    .popup-content iframe {
        max-height: 195px;
    }
}

/* ------------------------------------------------
  Mobile - iPhone 12 Pro
  ---------------------------------------------------------- */
@media (max-width: 400px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 23.8%;
    }

    .popup-content iframe {
        max-height: 193px;
    }
}

/* ------------------------------------------------
  Mobile - iPhone SE 
  -----------------------------------------------------------*/
@media (max-width: 380px) {
    .popup-content {
        max-width: 90%;
        margin: 30% auto;
        height: 29%;
    }

    .popup-content iframe {
        max-height: 186px;
    }
}

/* ------------------------------------------------
  Mobile - Galaxy S8 | S8+
  -----------------------------------------------------------*/
@media (max-width: 360px) and (max-height: 750px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 25.1%;
    }

    .popup-content iframe {
        max-height: 178px;
    }
}

/* ------------------------------------------------
  Mobile - Oppo Reno 8 
  -----------------------------------------------------------*/
@media (max-width: 360px) and (max-height: 715px) {
    .popup-content {
        max-width: 90%;
        margin: 30% auto;
        height: 26.3%;
    }

    .popup-content iframe {
        max-height: 178px;
    }
}

/* ----------------------------------------------
  Mobile - Galaxy Z Fold 5
  ---------------------------------------------------------*/
@media (max-width: 350px) {
    .popup-content {
        max-width: 90.2%;
        margin: 40% auto;
        height: 20.1%;
    }

    .popup-content iframe {
        max-height: 170px;
    }
}

/* ===========================================
   Founder News Section Styles
=============================================== */
.founder-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 260px;
}

.featured-marker {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.founder-wrap {
    position: relative;
}

/* Mobile adjustments for featured marker */
@media (max-width: 767px) {
    .featured-marker {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .founder-wrap.mt-3 {
        margin-top: 16px !important;
    }
}
