/* ✅ Unified site.css for ACMBTA */

/* 🎨 Theme Variables */
:root {
  --chinita: #fdb05f;
  --rosita: #fcbcd0;
  --rosa-intenso: #db0051;
  --azul-claro-2: #0080c2;
  --azul-semi-oscuro: #005785;
  --azul-oscuro: #07142c;
  --brown: #cf591f;
  --blanco-crema: #ebebeb;
  --azul-claro: #6ea0c5;
}

/* ✅ Kill all top margin/padding from HTML and BODY */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* ✅ Also ensure this applies to the first child of body */
body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ✅ Fix Safari / Mobile Webkit hidden margin bug */
body {
  -webkit-margin-before: 0;
  -webkit-padding-before: 0;
}

.container {
  margin-top: 0 !important;
}

@font-face {
  font-family: 'TheModernFont';
  src: url('../fonts/the-modern-font.otf') format('opentype');
}
@font-face {
  font-family: 'Jackson';
  src: url('../fonts/jackson.otf') format('opentype');
}

.main-title {
  font-family: 'TheModernFont', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
}

.sub-title {
  font-family: 'Jackson', sans-serif;
  font-size: 1rem;
}

/* ======================== */
/* ✅ NAVBAR */
/* ======================== */

#navbar {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
  background-color: transparent;
}

nav#navbar {
  margin: 0 !important;
  padding: 0 !important;
}

#navbar.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#navbar .navbar-brand,
#navbar a,
#navbar .btn-link,
.main-title,
.subtitle {
  color: white;
  transition: color 0.3s ease;
}

#navbar.navbar-scrolled .navbar-brand,
#navbar.navbar-scrolled a,
#navbar.navbar-scrolled .btn-link,
#navbar.navbar-scrolled .main-title,
#navbar.navbar-scrolled .subtitle {
  color: #212529 !important;
}

.main-title, .subtitle {
  color: white;
}
#navbar.navbar-scrolled .main-title,
#navbar.navbar-scrolled .subtitle {
  color: #212529 !important;
}

/* Toggler */
.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
#navbar.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive Logo + Navbar Layout */
@media (max-width: 991.98px) {
  .navbar-brand-desktop {
    display: none !important;
  }
  .mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
  }
  .mobile-brand img {
    height: 45px;
    margin-bottom: 0.2rem;
  }
  .mobile-brand span {
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
  }
  #navbar.navbar-scrolled .mobile-brand span {
    color: #212529;
  }
}

/* ======================== */
/* ✅ HERO CAROUSEL */
/* ======================== */

.carousel-item {
  position: relative;
  height: 100vh;
}

.carousel-item img,
.carousel-item video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* ======================== */
/* ✅ SCROLL EFFECTS */
/* ======================== */
.scroll-colored {
  color: #333 !important;
}

/* ======================== */
/* ✅ FOOTER */
/* ======================== */
footer {
  background-color: #222;
  color: white;
  padding: 20px 0;
}

/* ======================== */
/* ✅ GALLERY IMAGE GRID */
/* ======================== */
.gallery-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.02);
}


.jumbotron {
  display: flex;
  align-items: center;
  height: 350px;
  background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/buildawebsite.jpg");
  background-size: cover;
  background-position: center;
}

.jumbotron h2 {
  background-color: #FFFFFF;
  display: inline-block;
  color: #F06529;
  font-weight: 700;
  padding: 10px 35px;
  border-radius: 5px;
}

.jumbotron h3 {
  color: #FFFFFF;
  font-weight: bold;
}

@media (max-width: 768px) {
  .events-section .border-end {
    border-right: none !important;
  }
}

.text-acm-red {
  color: #BB2D3B;
}

.object-fit-cover {
  object-fit: cover;
}

.sidebar-custom {
  background-color: var(--azul-oscuro);
  color: var(--blanco-crema);
}

.btn-custom {
  background-color: var(--rosa-intenso);
  color: #fff;
}

.text-rosita {
  color: var(--rosita);
}

.custom-hero {
  background-image: url("/static/global/img/gallery/event-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px; /* Adjust as needed */
  position: relative;
}

/* Optional overlay for better text contrast */
.custom-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Adjust opacity */
}

.custom-hero > div {
  position: relative; /* Keep text above overlay */
  z-index: 1;
}