/* css/tedx.css — Fixed version */
:root{
  --tedx-red: #e62b1e;
  --tedx-black: #000000;
  --tedx-white: #ffffff;
}

body { 
  font-family: 'Montserrat', sans-serif; 
  background-color: #000;
  color: #fff;
}

/* ---- Navbar ---- */
.navbar {
  transition: background-color 0.3s ease;
  background-color: transparent !important;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 20px;
}

.navbar.scrolled {
  background-color: #fff !important;
}

.navbar.scrolled .nav-link {
  color: #000 !important;
}

.navbar-brand {
  font-size: 1.5rem;


}
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}
@media (max-width: 991.98px) {
    .navbar {
        background: #0a0a0a !important;
    }
    
    .navbar .nav-link {
        color: #fff !important;
        text-align: center;
        padding: 12px 0 !important;
    }
    
    .dropdown-menu {
        background: #1a1a1a !important;
        text-align: center;
    }
    
    .dropdown-item {
        color: #fff !important;
    }
}

/* ---- Hero Section (FIXED) ---- */
.hero-tedx {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-image: url('../img/2022/Tedx/tedxlogo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff00;
}

/* Subtle overlay */
.hero-tedx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 1;
}

.hero-tedx .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 50px;
}

/* HIDE ALL TEXT IN HERO */
.hero-tedx h1,
.hero-tedx .lead,
.hero-tedx p,
.hero-tedx .tedx-small,
.hero-tedx .display-3,
.hero-tedx .fw-bold,
.hero-tedx .text-red,
.hero-tedx .hero-ctas,
.hero-tedx .year-buttons p {
  display: none !important;
}

/* Buttons container - ONLY show these */
.hero-buttons {
  display: flex !important;
  justify-content: flex-end;
  gap: 15px;
}

/* RECTANGULAR buttons (no border radius) */
.hero-buttons .tedx-btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid white;
  color: white;
  background: transparent;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0 !important; /* Force rectangular */
  margin: 0;
}

.hero-buttons .tedx-btn.active {
  background: #e62b1e !important;
  border-color: #e62b1e !important;
  color: white !important;
}

.hero-buttons .tedx-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-2px);
}

.hero-buttons .tedx-btn.active:hover {
  background: #bf2618 !important;
  border-color: #bf2618 !important;
}

/* Watch button - rectangular */
.hero-buttons .btn-watch {
  display: inline-block;
  background: #e62b1e;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  text-decoration: none;
  font-size: 1.1rem;
  border: 2px solid #e62b1e;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 !important; 
  margin-right: 15px;
}

.hero-buttons .btn-watch:hover {
  background: #bf2618;
  border-color: #bf2618;
  transform: translateY(-2px);
  color: white;
}


/* ---- About Section ---- */
#about {
  padding-top: 100px;
  position: relative;
  color: #fff;
  background-color: #000;
  min-height: 800px;
  display: flex;
  align-items: left;
}

#about h2 {
  font-size: 3rem;
  line-height: 1.2;
  color: #fff;
}

#about p {
  font-size: 1.2rem;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 1000;
  color: #f7f1f1;
}

.small {
  font-size: 2.1rem;
  color: #ccc;
}

/* ---- Year pills (for other sections) ---- */
.year-buttons .tedx-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--tedx-red);
  color: var(--tedx-red);
  padding: .45rem .9rem;
  border-radius: 30px !important; /* Only round in other sections */
  font-weight: 700;
  margin: 0 .25rem;
  text-decoration: none;
}

.year-buttons .tedx-btn.active,
.year-buttons .tedx-btn:hover { 
  background: var(--tedx-red); 
  color: #fff; 
  transform: translateY(-2px); 
}

/* ---- Reels Section ---- */
#reels {
  background-color: #000;
}

.reels-wrapper {
  white-space: nowrap;
  padding-bottom: 10px;
}

.reel-item {
  flex: 0 0 auto;
  width: 250px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  
  .hero-buttons .btn-watch {
    margin-right: 0;
  }
  
  .hero-buttons .tedx-btn,
  .hero-buttons .btn-watch {
    padding: 10px 25px;
    font-size: 1rem;
    text-align: center;
  }
}
 /* quick inline fine-tuning */
    .video-thumb {
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      border-radius: 16px;
      overflow: hidden;
      background: #111;
    }
    .video-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 20px 30px rgba(230, 43, 30, 0.2);
    }
    .sponsor-logo {
  /* filter: brightness(0) invert(1); */ /* Comment out or remove this */
      opacity: 0.9;
      transition: opacity 0.2s;
      max-height: 80px;
      width: auto;
      object-fit: contain;
    }

    .sponsor-logo:hover {
      opacity: 1;
    }
    #speaker-name {
      font-family: 'Oswald', sans-serif;
      color: #e62b1e;
      font-size: clamp(3rem, 10vw, 8rem);
      line-height: 1.1;
      text-transform: uppercase;
      word-break: break-word;
    }
    .big-speaker {
      max-height: 600px;
      width: 100%;
      object-fit: contain;
      object-position: center;
    }
    /* reel scroll styling */
    .reels-wrapper {
      scrollbar-width: thin;
      scrollbar-color: #e62b1e #222;
    }
    .reels-wrapper::-webkit-scrollbar {
      height: 8px;
    }
    .reels-wrapper::-webkit-scrollbar-thumb {
      background: #e62b1e;
      border-radius: 10px;
    }

    /* Typography */
    .fw-black { font-weight: 900; }
    .tracking-wider { letter-spacing: 0.1em; }
    
    /* Reel cards */
    .featured-reel-card, .reel-card, .reel-mini-card {
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid rgba(230, 43, 30, 0.2);
      cursor: default;
    }
    
    .featured-reel-card:hover, .reel-card:hover, .reel-mini-card:hover {
      transform: scale(1.02);
      border-color: #e62b1e;
      box-shadow: 0 30px 40px -15px rgba(230, 43, 30, 0.5);
    }
    
    /* Hide all custom play buttons (Facebook iframes have their own) */
    .play-btn-overlay,
    .play-mini-btn,
    .featured-play-btn,
    .side-play-btn,
    .scroll-play-btn {
      display: none !important;
    }
    
    /* Make sure Facebook iframes are clickable */
    iframe[src*="facebook.com/plugins/video"] {
      pointer-events: auto !important;
    }
    
    /* Let clicks pass through to the iframe */
    .ratio {
      pointer-events: none;
    }
    
    .ratio iframe {
      pointer-events: auto;
    }
    
    /* Horizontal scroll styling */
    .reels-horizontal-scroll {
      scrollbar-width: thin;
      scrollbar-color: #e62b1e #333;
      cursor: grab;
    }
    
    .reels-horizontal-scroll::-webkit-scrollbar {
      height: 8px;
    }
    
    .reels-horizontal-scroll::-webkit-scrollbar-track {
      background: #222;
      border-radius: 10px;
    }
    
    .reels-horizontal-scroll::-webkit-scrollbar-thumb {
      background: #e62b1e;
      border-radius: 10px;
    }
    
    .reels-horizontal-scroll::-webkit-scrollbar-thumb:hover {
      background: #ff4d3a;
    }
    
    .reels-horizontal-scroll:active {
      cursor: grabbing;
    }
    
    /* Video elements (if any) */
    video {
      background: #111;
    }
    
    video::-webkit-media-controls-panel {
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    }
    
    /* Stats cards */
    .stats-card {
      backdrop-filter: blur(5px);
      transition: all 0.3s;
    }
    
    .stats-card:hover {
      background-color: rgba(230, 43, 30, 0.1) !important;
      border-color: #e62b1e !important;
    }
    
    .stats-icon {
      transition: all 0.3s;
    }
    
    .stats-card:hover .stats-icon {
      transform: rotate(5deg) scale(1.1);
    }
    
    /* Badges */
    .badge.bg-danger {
      background: #e62b1e !important;
      font-weight: 600;
    }
    
    /* Scroll buttons */
    .btn-outline-light:hover {
      background-color: #e62b1e !important;
      border-color: #e62b1e !important;
    }
    
    .video-thumb {
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid rgba(230, 43, 30, 0.2);
    }
    
    .video-thumb:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 30px rgba(230, 43, 30, 0.3);
      border-color: #e62b1e;
    }
    
    .video-thumb .ratio {
      overflow: hidden;
    }
    
    .modal-content.bg-transparent {
      background: transparent !important;
    }
    
    .btn-close-white {
      filter: invert(1) grayscale(100%) brightness(200%);
    }
