@keyframes scroll-up {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(-100%);
    }
  }

  .scrolling {
    display: inline-block;
    animation: scroll-up 10s linear infinite;
    animation-play-state: running;
  }

  .paused {
    animation-play-state: paused !important;
  }

.scroll-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
    padding: 5px;
  }

  .scroll-content {
    display: block;
    animation: scroll-up 20s linear infinite;
    animation-play-state: running;
}

.scroll-content.scroll-paused {
    animation-play-state: paused !important;
}

  a {
  color: #0645AD; /* Accessible blue */

}


  @keyframes scroll-up {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(-100%);
    }
  }

  .newsticker ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .newsticker li {
    margin-bottom: 20px;
  }

  .controls {
    margin-top: 10px;
  }

  button {
    margin-right: 5px;
    padding: 5px 10px;
  }

.video-scroll-section {
    padding: 20px;
}

.video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.video-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 40px;
}

.video-scroll-container::-webkit-scrollbar {
    display: none;
}

.video-card {
    min-width: 320px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: #000;
}

.video-card iframe,
.video-card video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    z-index: 10;
    background: #004aad;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-btn:hover {
    background: #002f6c;
}

/* About Vigyan Jyoti Section */

/* List content text */
.about-vj ul li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}


/* Improve focus visibility (Accessibility) */
.about-vj [tabindex="0"]:focus {
    outline: 3px solid #0b5ed7;
    outline-offset: 3px;
    background-color: #f8f9fa;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-vj h1 {
        font-size: 28px;
    }

    .about-vj ul li {
        font-size: 16px;
    }
}

/* Fix icon visibility in small-box */
.small-box {
  overflow: visible !important;
}

.small-box .icon {
  right: 15px;
  top: 15px;
  font-size: 3.8rem;
  opacity: 0.6;              /* Increase visibility */
  color: rgba(0, 0, 0, 0.6); /* Better contrast */
  z-index: 1;
}

/* Keep text above icon */
.small-box .inner {
  position: relative;
  z-index: 2;
}


/* Card text */
.small-box .inner h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
}

.small-box .inner p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1b1b1b;
}


/* Card spacing */
.stats-cards .small-box {
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover & focus */
.stats-cards .small-box:hover,
.stats-cards .small-box:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Keyboard focus visibility */
.small-box:focus-within {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* CSP-safe replacements for former inline styles */
.front-section { width: 100%; }
.gallery-link { display: block; width: 100%; }
.tab-content-offset { margin-top: -126px; }
.person-name { color: #130c11; font-weight: 600; }
.latest-stories { height: 370px; }
.announcement-card { border-radius: 10px; background: #fef9f2; }
.announcement-title { color: #d9534f; }
.announcement-text { font-size: 16px; margin: 0; }
.announcement-date { color: #d9534f; font-weight: bold; }
.meeting-link { font-weight: 600; }

/* CSP-safe video controls */
.scroll-btn { cursor: pointer; }
