/*@import url(./fonts.css);*/

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: #fafafa;
  overflow-x: hidden;
}

.bs-kfupm-font {
  font-family: "KFUPM Display", sans-serif !important;
}

        .primary-video {width: 100%;}
        .medal {width: 20%; min-width: 250px; margin-right: 16px;}
        .memory-title {
            display: flex;
            justify-content: space-around;
            align-items: center;    
        }
        .memory-title h1{
            font-weight: bold;
            font-size: 48px;
        }
        .memory-title p{
            font-size: 28px;
        }

        .gradient-text {
            background-image: linear-gradient(to right, #408F42, #1D521E);
            background-clip: text;
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent; 
            color: transparent;
            display: inline-block;
        }

        .parent {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: repeat(6, 1fr);
            gap: 16px;
        }
            
        .div1 {
            grid-column: span 4 / span 4;
            grid-row: span 4 / span 4;
        }

        .div2 {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 5;
        }

        .div3 {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 5;
            grid-row-start: 3;
        }

        .div4 {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-row-start: 5;
        }

        .div5 {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 3;
            grid-row-start: 5;
        }

        .div6 {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 5;
            grid-row-start: 5;
        }
        
        .parent img {
            width: 100%;
            border-radius: 16px;
        }
        
    .section-title {
        font-weight: bold;
        text-align: center;
        color: #00606C;
    }

    .slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    }

    .slide-track {
        display: flex;
        width: calc(250px * 12); /* image width × total images */
        animation: scroll 20s linear infinite;
    }

    .slider:hover .slide-track {
        animation-play-state: paused;
    }

    .slide {
        margin: 0 15px;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Scale down all images when hovering */
    .slider:hover .slide {
        transform: scale(0.85);
        opacity: 0.6;
        cursor: pointer;
    }

    /* Scale up hovered image */
    .slide:hover {
        transform: scale(1.2) !important;
        opacity: 1 !important;
        z-index: 10;
    }

    /* Infinite scrolling animation */
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-250px * 6)); }
    }

    .modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.9);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 12px;
    }

    .close-btn {
        position: absolute;
        top: 25px;
        right: 40px;
        font-size: 40px;
        color: white;
        cursor: pointer;
        font-weight: bold;
    }

    /**/

    .gallery {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 32px;
      margin-top: 48px;
    }

    .onecol {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }
    .twocol {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

  .last-title {
    text-align: start;
    font-weight: bold;
    font-size: 72px;
  }

  .pm-badge {width: 50%;}




.item {
    width: 370px;
    height: 210px;
    position: relative;
    cursor: pointer;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    transition:
      transform 0.4s cubic-bezier(.2,.8,.2,1),
      opacity 0.4s ease,
      filter 0.4s ease;
  }

  .item iframe {
    width: 100%;
    height: 100%;
    /*pointer-events: none;*/
  }


  /* Dim state */
  .gallery.dim .item {
    transform: scale(0.9);
    opacity: 0.25;
    filter: blur(2px);
  }

  /* Overlay */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .video-wrapper {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    aspect-ratio: 16/9;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  }

  .overlay.active .video-wrapper {
    transform: scale(1);
  }

  .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

    .close-btn2 {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 28px;
    color: white;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .close-btn2:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
  }

          @media screen and (width < 992px) {
            .memory-title {flex-direction: column;}
            .memory-title h1 {font-size: 250%;}
            .memory-title p {font-size: 18px;}
            .pm-badge {width: 100%;}
            .last-title {font-size: 48px !important;}
            .item {width: 100% !important; height: 100% !important;}
        }
        @media screen and (width < 768px) {
            .pm-badge {width: 100%; min-width: 100px;}
            .last-title {font-size: 28px !important;}
            .onecol {flex-direction: column;}
            .parent {display: flex; flex-direction: column; gap: 32px;}
            .subsection-title {font-size: 24px;}
            .memory-title h1 {text-align: center;}
            .memory-title p {text-align: center;}
        }