.about-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(127, 0, 255, 0.3); /* Purple glow for light mode */
  transition: all 0.3s ease;
  color: #fff;
  /*max-width: 600px;*/
  margin-bottom:20px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
  animation: pulse-glow-light 4s infinite;
  z-index: 0;
}

@keyframes pulse-glow-light {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  z-index: 1;
  position: relative;
}

.about-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
  z-index: 1;
  position: relative;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  z-index: 1;
  position: relative;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(127, 0, 255, 0.5); /* Light mode hover glow */
}

/* Dark Mode Styles */
body.dark-mode .about-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.3); /* Blue glow */
}

body.dark-mode .about-card::before {
  background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, transparent 70%);
  animation: pulse-glow-dark 4s infinite;
}

body.dark-mode .about-card h2 {
  color: #fff;
}

body.dark-mode .about-card p {
  color: #fff;
}

body.dark-mode .about-card:hover {
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.5); /* Blue hover glow */
}

@keyframes pulse-glow-dark {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

.custom-half i{
    color:#7f00ff;
}
body.dark-mode .custom-half i{
    color:#00c6ff;
}
.custom-full i{
    color:#7f00ff;
}
body.dark-mode .custom-full i{
    color:#00c6ff;
}
.custom-half h2{
    color:#333;
}
body.dark-mode .custom-half h2{
    color:#fff;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  padding-left: 40px;
}

.timeline-date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #7f00ff; 
}
body.dark-mode .timeline-date {
  color: #00c6ff; 
}

.timeline-icon {
  font-size: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  height: 100%;
  width: 2px;
  background-color: #00c6ff;
}

.timeline-item h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
}
body.dark-mode .timeline-item h3 {
  color: #fff;
}

.timeline-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
body.dark-mode .timeline-item p {
  color: #fff;
}

.team-note {
    border-radius: 0;
    padding: 30px 50px;
    margin: 40px auto;
    width: 80%;
    max-width: 900px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.team-note h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0;
    color: #333;
}
body.dark-mode .team-note h2 {
    color: #fff;
}

.team-note p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}
body.dark-mode .team-note p {
    color: #fff;
}

.team-note::before {
    content: "🏆";
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}


.custom-ful {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    padding: 10px;
}

.custom-fif {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 18%;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top:-20px;
}

.custom-fif h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: bold;
    color: #333;
    position: relative;
    z-index: 2;
}
body.dark-mode .custom-fif h2{
    color:#333;
}
.custom-fif p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    position: relative;
    z-index: 2;
}

.custom-fif:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.custom-fif::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 204, 255, 0.2));
    z-index: 1;
    opacity: 0.3;
    animation: pulse 2s infinite ease-in-out;
}

.custom-fif:nth-child(odd) {
    background-color: #e8f7ff;
}

.custom-fif:nth-child(even) {
    background-color: #f7e8ff;
}

.custom-fif:hover h2 {
    color: #7f00ff;
    animation: colorChange 0.5s ease-in-out;
}

@keyframes colorChange {
    0% { color: #333; }
    50% { color: #7f00ff; }
    100% { color: #333; }
}

@keyframes pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* Style the emoji in the h2 */
.custom-fif .emoji {
    font-size: 3rem; 
    margin-bottom: 10px;
    display: block;
    z-index: 2;
}

.about-us-banner {
    background-image: url('/wp-content/plugins/beyond-tube/images/about-us-bt-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 550px;
    width: 100%;
    display: block;
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .timeline-item{
       padding-left:20px;
   }
   .team-note {
        padding: 20px;
        margin: 0px;
        width: 100%;
        max-width: 100%;
        margin-top:50px;
        margin-bottom:40px;
    }
    
    .custom-fif {
        width: 100%;
        min-width: 100%;
        margin-top:10px;
    }
    .about-us-banner {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
   .timeline-item{
       padding-left:10px;
       gap:10px;
   }
   .team-note {
        padding: 10px;
        margin: 0px;
        margin-top:50px;
        margin-bottom:40px;
        width: 100%;
        max-width: 100%;
    }
    .custom-fif {
        width: 100%;
        min-width: 100%;
        margin-top:10px;
    }
    .about-us-banner {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}