
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&display=swap");

/* === GLOBAL VARIABLES === */
:root {
  --font: "Inter", sans-serif;
  --body-color: #000000;
  --background-color: #1d2a3a;
  --heading-color: #956342;
  --primary-color: #FFFFFF;
  --white: #FFFFFF;
  --highlight-color: #bc8a69;
  --dark-color: #000000;
  --dark2: #434876;
  --card-color: #48e3db;
}

/* === BASE STYLES  overflow-x: hidden; === */
body {
  font-family: var(--font);
  font-weight: normal;
  font-style: normal;
  color: var(--body-color);
  background-color: var(--background-color);
  margin: 0 auto;
  max-width: 1200px;
}

h3 {
  margin: 0.5em 0 0.2em;
  font-size: 1.1em;
}

/* === VIDEO GRID === */
.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  padding: 20px;
}

.video-card {
  flex: 0 0 auto;
  width: 90vw;
  max-width: 320px;
  margin: 10px;
  background-color: #FFF;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: var(--body-color);
}
.video-card h3 {
  margin: 0.5em 0 0.2em;
  font-size: 1.1em;
}
.video-card p {
  margin: 0.2em 0;
  font-size: 0.95em;
  color: #444;
}

video, iframe {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.video-description {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  box-orient: vertical;
}

.description-preview.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-preview.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  display: block;
}

.video-description.expanded .description-preview {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.read-more-btn {
  background: none;
  color: var(--highlight-color, #bc8a69);
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding-left: 5px;
}


/* === BUTTONS === */
.primary-btn {
  background-color: #d2a07e;
  color: #FFF;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.primary-btn:hover {
  background-color: #c38b65;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn {
  background: none;
  color: var(--highlight-color);
  border: none;
  cursor: pointer;
  font-weight: bold;
}
.secondary-btn:hover {
  text-decoration: underline;
}

/* === SEARCH BAR === */
h2 {
  color: white;
}

.video-section-header {
  display: flex;
  justify-content: center;
  padding: 30px 0 10px;
}

.search-bar {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto 0 auto;
  background: #FFF;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  padding-right: 40px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.clear-btn {
  position: absolute;
  right: 85px;
  top: 52%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--highlight-color);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 2;
  height: 46px; /* a little taller */
  width: 45px;
  line-height: 45px;
  text-align: center;
}


.search-bar button {
  padding: 0 20px;
  background: #d2a07e;
  color: #FFF;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.search-bar button:hover {
  background: #c38b65;
}

/* === MODAL === */
.custom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.custom-modal-overlay.active {
  display: flex;
}
.custom-modal {
  background: #FFF;
  padding: 20px 30px;
  border-radius: 8px;
  width: 300px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.custom-modal h2 {
  margin-bottom: 15px;
  color: #333;
}

.custom-modal label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-weight: bold;
}

.custom-modal input[type="text"],
.custom-modal textarea,
.custom-modal input[type="email"],
.custom-modal input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.custom-modal textarea {
  resize: vertical;
  min-height: 80px;
}

.custom-modal .primary-btn {
  width: 100%;
}
.custom-modal .close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #999;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.custom-modal img#currentProfileImage {
  max-width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
}


.wide-modal {
  width: 600px;
  max-width: 90%;
}

@media (max-width: 700px) {
  .wide-modal {
    width: 90%;
  }
}

/* === TABS === */
.tabbed-section {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  background: #f9f9f9;
}
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}
.tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.tab-btn:hover:not(.active) {
  background: #ccc;
}
.tab-btn.active {
  background: #d2a07e;
  color: #FFF;
}
.tab-content {
  display: none;
  margin-top: 15px;
  text-align: left;
}
.tab-content.active {
  display: block;
}
.tab-content input,
.tab-content label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}
.tab-content input[type="file"] {
  padding: 6px 0;
}

.tab-container {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 15px;
}

.tab-container button {
  flex: 1;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f1f1f1;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  font-weight: bold;
}

.tab-container button:not(:last-child) {
  margin-right: 2px;
}

.tab-container button.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  color: #000;
}

.tab-container button:hover:not(.active) {
  background: #e0e0e0;
}

/* === PROFILE DROPDOWN === */
.profile-panel {
  display: none;
  position: absolute;
  top: 60px;
  right: 30px;
  width: 250px;
  background: #FFF;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}
.profile-panel.active {
  display: block;
}
.profile-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}
.profile-panel p {
  margin: 0.5rem 0;
  color: #555;
}
.profile-img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}
.profile-panel .primary-btn {
  width: 100%;
  margin-bottom: 10px;
}

/* === UTILITIES === */
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 95%;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .clear-btn {
    right: 50px;
    top: 35%;
  }
  .search-bar button {
    width: 100%;
  }
  .auth-buttons {
    flex-direction: column;
    top: 15px;
    right: 15px;
  }
  .profile-panel {
    right: 15px;
    width: 90%;
  }
    .horizontal-scroll-container {
      gap: 12px;
      padding: 10px;
    }
  
    .video-card {
      width: 85vw;
      margin: 0 auto;
    }
}


/* ---- Consolidated from ud-styles.css ---- */
.ud-about {
  background: #f3f4fe;
  padding: 120px 0;
}
  .ud-about {
    padding: 80px 0;
  }
.ud-about-wrapper {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
  .ud-about-wrapper {
    display: block;
  }
.ud-about-content-wrapper {
  padding: 70px;
}
  .ud-about-content-wrapper {
    padding: 50px 30px;
  }
  .ud-about-content-wrapper {
    padding: 50px;
  }
.ud-about-content {
  max-width: 500px;
}
.ud-about-content .tag {
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  background: var(--primary-color);
  padding: 5px 20px;
  display: inline-block;
  margin-bottom: 20px;
}
.ud-about-content h2 {
  font-weight: bold;
  font-size: 36px;
  line-height: 45px;
  margin-bottom: 30px;
}
  .ud-about-content h2 {
    font-size: 26px;
    line-height: 38px;
  }
.ud-about-content p {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 40px;
}
.ud-about-content .ud-main-btn:hover {
  background: #2748b4;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
  .ud-about-image {
    text-align: center;
  }
.ud-single-testimonial {
  padding: 30px;
  -webkit-box-shadow: 0px 60px 120px -20px #ebeffd;
          box-shadow: 0px 60px 120px -20px #ebeffd;
  background: var(--white);
  margin-bottom: 50px;
}
.ud-single-testimonial .ud-testimonial-ratings {
  margin-bottom: 10px;
}
.ud-single-testimonial .ud-testimonial-ratings i {
  color: #fbb040;
}
.ud-single-testimonial .ud-testimonial-content {
  margin-bottom: 25px;
}
.ud-single-testimonial .ud-testimonial-content p {
  font-size: 16px;
  line-height: 30px;
  color: #637381;
}
.ud-single-testimonial .ud-testimonial-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.ud-single-testimonial .ud-testimonial-info .ud-testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}
.ud-single-testimonial .ud-testimonial-info .ud-testimonial-meta h4 {
  font-weight: 600;
  font-size: 14px;
}
.ud-single-testimonial .ud-testimonial-info .ud-testimonial-meta p {
  font-size: 12px;
  color: #969696;
}
.ud-contact {
  padding: 120px 0px;
  position: relative;
  background: var(--card-color);;
}
  .ud-contact {
    padding: 80px 0;
  }
.ud-contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  top: 0;
  left: 0;
  height: 50%;
  background: #f3f4fe;
}
  .ud-contact::after {
    height: 45%;
  }
.ud-contact-title {
  margin-bottom: 50px;
}
  .ud-contact-title {
    margin-bottom: 50px;
  }
.ud-contact-title span {
  color: var(--heading-color);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}
.ud-contact-title h2 {
  font-weight: 600;
  font-size: 35px;
  line-height: 41px;
}
.ud-contact-info-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
  .ud-contact-info-wrapper {
    margin-bottom: 50px;
  }
.ud-contact-info-wrapper .ud-single-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 100%;
  width: 330px;
  margin-bottom: 30px;
}
.ud-contact-info-wrapper .ud-info-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-right: 24px;
}
.ud-contact-info-wrapper .ud-info-meta h5 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
}
.ud-contact-info-wrapper .ud-info-meta p {
  font-size: 15px;
  line-height: 24px;
}
.ud-contact-form-wrapper {
  -webkit-box-shadow: 0px 4px 28px rgba(0, 0, 0, 0.05);
          box-shadow: 0px 4px 28px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background: var(--white);
  padding: 60px;
}
  .ud-contact-form-wrapper {
    padding: 40px 30px;
  }
  .ud-contact-form-wrapper {
    padding: 50px 40px;
  }
.ud-contact-form-wrapper .ud-contact-form-title {
  font-style: normal;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 30px;
}
  .ud-contact-form-wrapper .ud-contact-form-title {
    font-size: 24px;
  }
.ud-contact-form-wrapper .ud-form-group {
  margin-bottom: 25px;
}
.ud-contact-form-wrapper .ud-form-group label {
  display: block;
  font-weight: normal;
  font-size: 12px;
}
.ud-contact-form-wrapper .ud-form-group input,
.ud-contact-form-wrapper .ud-form-group textarea {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: none;
  outline: none;
  border-bottom: 1px solid #f1f1f1;
  resize: none;
}
.ud-contact-form-wrapper .ud-form-group input:focus,
.ud-contact-form-wrapper .ud-form-group textarea:focus {
  border-color: var(--primary-color);
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  gap: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none; 
}


.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.horizontal-scroll-container > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 320px;  /* or whatever your card width is */
}

.video-info-row {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 0.25rem;           
  margin-top: 8px;
}

.video-info-row .video-views,
.video-info-row .video-username {
  margin: 0.2em 0;
  font-size: 0.95em;
  color: #444;
}

.video-meta-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.video-username:hover {
  color: #fff;
  text-decoration: underline;
}

.profile-banner-wrapper {
  position: relative;
}

.profile-banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.centered {
  text-align: center;
}

.profile-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.profile-bio {
  max-width: 600px;
  color: #ccc;
  margin: 0;
}

.error-text {
  text-align: center;
  color: red;
}

.user-button-group {
	display: inline-flex;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-button-group .primary-btn {
	border: none;
	margin: 0;
	padding: 8px 12px;
	cursor: pointer;
}

.user-btn-left {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.user-btn-right {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	background-color: #d39e76; /* or match .primary-btn */
}

.livestream-wrapper {
  background-color: #FFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 30px auto;
  padding: 20px;
  max-width: 1000px;
  text-align: center;
}

.livestream-wrapper h2 {
  font-size: 2rem;
  color: var(--highlight-color);
  margin-bottom: 10px;
}

.livestream-wrapper p.description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 8px;
}

.livestream-wrapper p.start-time {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.livestream-wrapper iframe {
  width: 100%;
  max-width: 900px;
  height: 480px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.livestream-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.livestream-media {
  flex: 1 1 45%;
  min-width: 280px;
}

.livestream-header {
  flex: 1 1 50%;
  min-width: 250px;
  text-align: left;
}

.livestream-placeholder {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .livestream-inner {
    flex-direction: column;
    text-align: center;
  }

  .livestream-header {
    text-align: center;
  }
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}

.horizontal-scroll-container-wrapper {
  overflow: hidden;
  flex: 1;
}

.carousel-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.main-footer {
  background-color:  #336699;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
}

#TopButtonBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  position: relative;
  z-index: 10;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  position: static; 
}

.video-menu-icon {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #aaa;
  z-index: 5;
}

.video-menu-icon:hover {
  color: #fff;
}

.video-context-menu {
  position: absolute;
  top: 35px;
  right: 10px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 10;
  display: none;
  flex-direction: column;
}

.video-context-menu.active {
  display: flex;
}

.video-context-menu button {
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.video-context-menu button:hover {
  background-color: #eee;
}

.video-thumbnail {
  width: 100%;
  height: 200px; /* Match the general video card look */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Same as video shadow for consistency */
  display: block;
}

.reaction-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.reaction-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.reaction-btn:hover {
  transform: scale(1.2);
}

.reaction-btn.selected {
  background-color: #ffd70033; /* soft gold */
  border: 2px solid #ffd700;
  border-radius: 6px;
  transform: scale(1.1);
}

.cta-banner {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff8f0;
  border: 2px dashed var(--highlight-color);
  border-radius: 1rem;
  text-align: center;
}

.cta-lead {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.register-cta-btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--highlight-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.register-cta-btn:hover {
  background-color: #a1664d;
  cursor: pointer;
}


/* full‐page video wrapper */
.video-page-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--primary-color);
  font-family: var(--font);
}

/* back button */
.back-btn {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--highlight-color);
  text-decoration: none;
  font-weight: bold;
}
.back-btn:hover {
  text-decoration: underline;
}

.video-player-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}
.video-player-container video,
.video-player-container iframe {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  z-index: 10;
}
.nav-arrow.prev { left:  1rem; }
.nav-arrow.next { right: 1rem; }
.nav-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.video-page-container h3 {
  margin-top: 0;
}
