:root{
  --bg:#0F171D;
  --bg-dark:#070B0F;
  --panel:#0c1b23;
  --cyan:#3AC1D1;
  --white:#FFFFFF;
  --muted:#96a7ad;
  --border:rgba(255,255,255,.11);
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Outfit', sans-serif;
}

.about-background{
    height: 591px;
    position: absolute;
    inset: 0;
    background-image:url(".././images/about-us-banner-bg.png");
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
}

.who-we-are-section {
    padding: 60px 20px;
    min-height: 541px;
    background: #0F171D;
}

.who-we-are-section .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
}

.who-we-are-contents p {
    margin-top: 12px;
}

.who-we-are-image {
    text-align: right;
}

.who-we-are-image img {
    width: 88%;
    border-radius: 25px;
}

.team-section {
    width: 100%;
    padding: 60px 20px;
    background-image:url(".././images/meet-the-team-bg.png");
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    height: 425px;
    overflow: hidden;
    border-radius: 8px;
    background: #101a21;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.team-card:hover .card-base-overlay {
  opacity: 0;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.card-base-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0) 40%, rgba(11, 17, 24, 0.9) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-default-info {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .card-default-info {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.card-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%; 
  background: rgba(13, 20, 29, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  border-radius: 12px 12px 0 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.team-card:hover .card-hover-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.role-underline {
  width: 20%;
  height: 2px;
  background-color: var(--cyan);
  margin-top: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.bio-scroll-area {
  flex: 1;
  overflow-y: auto; 
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bio-scroll-area::-webkit-scrollbar {
  width: 2px;
}

.bio-scroll-area::-webkit-scrollbar-thumb {
  background-color: red;
  border-radius: 4px;
}

.team-card:hover img {
    transform: scale(1.03);
}

.team-info {
    position: absolute;
    left: 25px;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    transition:
    top 0.4s ease,
    bottom 0.4s ease;
}

.team-name {
    font-size: 24px;
    line-height: 100%;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.team-position {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 24px;
    color: #3AC1D1;
    font-weight: 500;
}

.team-description {
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    color: #eeeeee;
}

.media-section {
    width: 100%;
    padding: 60px 20px;
    background: #070B0F;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.media-card {
    position: relative;
    background: #0F171D;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #00E5FF;
    padding: 20px;
    min-height: 353px;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow:
    0 12px 35px
    rgba(0, 0, 0, 0.35);
}

.media-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

section.media-section h4 {
    font-size: 24px;
    color: #F9F9F9;
    font-weight: 500;
    line-height: 100%;
    margin-top: 40px;
    font-family: var(--font-accent);
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:transform 0.5s ease;
}

.media-card:hover .media-image img {
    transform: scale(1.05);
}

.media-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
    linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.45)
    );
    pointer-events: none;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:translate(-50%, -50%);
    z-index: 2;
    transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.media-card:hover .play-button {
    transform:
    translate(-50%, -50%)
    scale(1.08);
}


.platform-label {
    z-index: 3;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.media-content {
    padding: 16px;
}

.media-content h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 18px;
}

.media-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.media-meta {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 400;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #3AC1D1;
    font-weight: 600;
    line-height: 22px;
    transition: color 0.25s ease;
    position: absolute;
    bottom: 20px;
}

/*.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #0F171D;
  border: 1px solid #00E5FF;
  border-radius: 16px;
  width: 90%;
  max-width: 960px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-content {
  display: flex;
  width: 100%;
  min-height: 400px;
  padding: 30px 20px;
  background: #0F171D;
}

.modal-content.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.modal-preview {
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  width: 100%;
  aspect-ratio: 16 / 11;
}

.modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  user-select: none;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--cyan);
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.modal-content .pagination-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 10;
}

.modal-content .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}

.modal-content .dot.active {
  background: var(--cyan);
  width: 16px;
  border-radius: 4px;
}

.modal-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  max-height: 440px;
}

.modal-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.modal-date {
  font-size: 14px;
  color: #717176;
  font-weight: 500;
  position: relative;
  bottom: 14px;
  left: 27px;
}

.youtube-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #ffffff;
  margin-bottom: 16px;
}

.youtube-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 20px;
}

.meta-logo {
  height: auto;
  width: auto;
  object-fit: contain;
}

.meta-divider {
  color: #3AC1D1;
}

.meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-body-text {
  font-size: 14px;
  color: #ffffff;
  line-height: 20px;
  font-weight: 500;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #3AC1D1;
  color: #04151F;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 20px;
}*/

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #0F171D;
  border: 1px solid #00E5FF;
  border-radius: 12px;
  width: 100%;
  max-width: 626px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.modal-close-btn:hover {
  background: var(--bg);
}

.modal-body {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.modal-body iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
}

h4.sub-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
    color: #00E5FF;
    margin-bottom: 12px;
}

p.contact{
    color: #ffffff80;
}

section.contact-us {
    padding-top: 30px;
}

.contact-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #1d2226;
    border-top: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
    min-width: 305px;
}

.contact-detail .contents {
    text-align: left;
}

.contact-detail .contents h3{
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-detail .contents p{
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/*----- News & Blogs -----*/

section.news-blog {
    padding: 0 20px 60px;
    background: var(--dark);
}

.hero-content-news {
    max-width: 697px;
}

.hero-content-news h1.main-header {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 52px;
    font-weight: 700;
    position: relative;
}

.hero-content-news h1.main-header::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 22%;
    height: 2px;
    background: #3AC1D1;
    transition: width 0.35s ease;
}

.hero-content-news p {
    font-size: 16px;
    font-weight: 500;
    color: #F9F9F9;
    line-height: 26px;
    margin-top: 30px;
}

.news-details {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.news-date,.news-time {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.news-contents img.banner{
    width: 100%;
}

section.news-blog .container{
    display: grid;
    grid-template-columns: minmax(65%, 1.28fr) minmax(30%, .72fr) ;
    gap: 45px;
    align-items: start;
}

section.news-blog .contents p {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #F9F9F9;
    margin-top: 12px;
    margin-bottom: 20px;
}

.related-news {
    border: 1px solid #717171;
    border-radius: 12px;
    padding: 20px;
}

.related-news .media-grid{
    display: block;
}

.related-news .media-card{
    margin-bottom: 30px;
}

.related-news h4{
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
}

.expandable-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

.toggle-btn {
  border: 0;
  background: transparent;
  color: #3AC1D1;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  padding-top: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.arrow-icon {
  width: 23px;
  height: 23px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-section .pagination-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.team-section .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CECECE;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-section .dot.active {
  background-color: #3AC1D1;
  width: 20px;
  height: 12px;
  border-radius: 6px;
}


/* ================= DESKTOP ================= */

@media (min-width: 769px) {
  .expandable-wrapper {
    grid-template-rows: 1fr !important;
}
.expandable-content {
    opacity: 1 !important;
}
.toggle-btn {
    display: none !important;
}
}

/* ================= TABLET ================= */

@media(max-width:950px){
    .media-grid,.team-grid {
        grid-template-columns:
        repeat(2, 1fr);
    }
    section.news-blog .container{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    section.news-blog {
        padding: 0 10px 60px;
    }
}


/* ================= TABLET ================= */

@media (max-width: 768px) {
  .modal-content.two-column {
    grid-template-columns: 1fr;
}
.modal-content {
    flex-direction: column;
}
.modal-preview {
    min-height: 205px;
    width: 100%;
}
.who-we-are-contents.expanded .expandable-wrapper {
    grid-template-rows: 1fr;
}
.who-we-are-contents.expanded .expandable-content {
    opacity: 1;
}
.who-we-are-contents.expanded .arrow-icon {
    transform: rotate(180deg);
}
.team-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 10px;
}
.team-grid::-webkit-scrollbar {
    display: none;
}
.team-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.team-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.team-section .pagination-dots {
    display: flex;
    align-items: center;
}

}


/* =================== MOBILE ===================*/

@media(max-width:767px){
    .about-background{
        height: auto;
        background-image:url(".././images/about-us-banner-mb.png");
    }

    .who-we-are-section .container {
        grid-template-columns: 1fr;
    }
    .who-we-are-image {
        text-align: center;
        margin-top: 30px;
    }

    .who-we-are-image img {
        width: 100%;
        border-radius: 18px;
    }
    .team-section {
        background-image:url(".././images/meet-the-team-mb.png");
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 371px;
    }

    .team-card {
        height: 371px;
    }

    .team-name {
        font-size: 20px;
    }

    .team-card:hover::before,
    .team-card.active::before{
        height: 85%;
    }

    .team-card:hover .team-info,
    .team-card.active .team-info {
        top: 15%;
    }

    .team-description,.team-card:hover .team-info,.team-card.active .team-info{
        padding: 10px;
    }

    .media-section {
        padding:45px 15px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-box {
        max-width: 100%;
        border-radius: 10px;
    }

    div#videoModal .modal-box{
        display: block;
    }
    section.contact-us {
        padding: 60px 20px;
    }

    .contact-section {
        display: block;
    }

    .contact-detail{
        margin-bottom: 30px;
    }

    span.extra {
        display: none;
    }

    .view-all-wrapper {
        display: block;
    }

    .who-we-are-contents.show-all .extra {
        display: block;
    }

    .view-all-btn.hide {
        display: none;
    }
    .arrow{
        border-right: 2.5px solid #3AC1D1;
        border-bottom: 2.5px solid #3AC1D1;
    }

}

/* ================= SMALL PHONES ================= */

@media(max-width:420px){

    .who-we-are-section {
        padding: 20px 20px 60px;
    }

    .hero-content-news h1.main-header {
        font-size: 32px;
        line-height: 48px;
    }

    .hero-content-news h1.main-header::after {
        content: "";
        position: absolute;
        width: 38%;
    }
    .desktop {
        display: none;
    }
    
    .news-details {
        gap: 18px;
    }
    .modal-content{
        padding: 30px 20px 0;
    }
    .modal-info{
        padding: 20px 0;
    }

    .youtube-title{
      padding-top: 20px;
  }

}