/* ancientfit-frontend/css/about.css */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
/* Body */
body {
  background: url('../Images/About/AboutCover.jpg') no-repeat center center fixed;
  background-size: cover;
}

body, html {
  font-family: 'Lato', sans-serif;
  color: whitesmoke;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px;
  backdrop-filter: blur(2px);
}

.box {
  background: rgba(20, 20, 20, 0.5);
  border: 2px solid rgba(255, 0, 0, 0.7); /* modern red edge */
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  padding: 25px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  backdrop-filter: blur(12px);
  color: #f5f5f5;
  transition: all 0.4s ease-in-out;
}

.box:hover {
  box-shadow: 0 0 80px rgba(255, 0, 0, 0.5);
  transform: translateY(-5px);
}

.content-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
}

.scrollable-box {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  font-size: 1rem;
  color: #f0f0f0;
  font-family: "Lato", sans-serif;
}

/* Custom Scrollbar */
.scrollable-box::-webkit-scrollbar {
  width: 10px;
}
.scrollable-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.scrollable-box::-webkit-scrollbar-thumb {
  background: #950101;
  border-radius: 10px;
}
.scrollable-box::-webkit-scrollbar-thumb:hover {
  background: #c41515;
}

/* Responsive: smaller scroll height on smaller devices */
@media screen and (max-width: 768px) {
  .scrollable-box {
    max-height: 400px;
  }
}


.captain-content {
  
  gap: 20px;
  flex-wrap: wrap;
}

.captain-content img {
  max-width: 120px;
  max-width: 140px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 221, 153, 0.3);
  float: left;
  margin-right: 30px;
}

@media (max-width: 768px) {
  .scrollable-box {
    max-height: 300px;
  }

  .captain-content {
    flex-direction: column;
    align-items: center;
  }

  .captain-content img {
    width: 140px;
    height: 160px;
  }
}

/* Horizontal Scroll Section */
.scroll-boxes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 40px 0;
}

.scroll-box {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
  border: 2px solid rgba(255, 0, 0, 0.8); /* red edge for the track */
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* Red Scrollbar for scroll boxes */
.scroll-box::-webkit-scrollbar {
  height: 10px; /* horizontal scrollbar height */
  width: 10px;  /* vertical scrollbar width */
}

.scroll-box::-webkit-scrollbar-track {
  background: rgba(255, 0, 0, 0.1); /* subtle red track */
  border-radius: 10px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background: #ff0000; /* bright red scrollbar */
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.2); /* small border for better visibility */
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #ff4d4d; /* lighter red on hover */
}


.scroll-content {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px;
  animation: scroll-left 60s linear infinite;
}

.scroll-content.reverse {
  animation: scroll-right 60s linear infinite;
}

.scroll-item {
  min-width: 220px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
  border: 2px solid #ff0000; /* red border for emphasis */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1em;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: transform 0.3s, background-color 0.3s;
}

.scroll-item:hover {
  transform: scale(1.05);
  background-color: rgba(255, 0, 0, 0.1);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .box p, ol p {
    margin-right: 10px;
  }

  img {
    float: none;
    display: block;
    margin: 20px auto;
    width: 80%;
    height: auto;
  }

  .scroll-item {
    min-width: 160px;
    height: 80px;
    font-size: 1em;
  }
}





