/* ==========================================================
   TEMPO ARDENT — FRONTEND CSS FINAL
   ========================================================== */
/* -----------------------------
   RESET
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0d0d0d;
  color: #f1f1f1;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -----------------------------
   CONTAINER
----------------------------- */
.container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
}

/* -----------------------------
   HEADER
----------------------------- */
.site-header {
  background: #111;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 65px;
}

/* NAV */
.main-nav ul {
  display: flex;
  gap: 1.3rem;
  list-style: none;
}

.main-nav a {
  padding: .5rem;
  font-weight: 500;
  opacity: .85;
  transition: .2s;
}

.main-nav a:hover {
  color: #e53935;
  opacity: 1;
}

/* SOCIAL */
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social svg {
  width: 28px;
  height: 28px;
}

.social:hover {
  transform: scale(1.15);
  color: #ff5722;
}

/* -----------------------------
   HERO FINAL
----------------------------- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #222;
  background: #000;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin-top: 0;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-inner {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.hero-inner h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
}

.hero-inner p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.slider-btn,
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.slider-btn.prev,
.slider-nav.prev { left: 10px; }

.slider-btn.next,
.slider-nav.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.slider-dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  border: none;
  background: white;
  opacity: 0.5;
  cursor: pointer;
}

.slider-dot.active {
  opacity: 1;
}

/* -----------------------------
   BUTTONS
----------------------------- */
.btn {
  display: inline-block;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: .2s;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: #e53935;
  color: #fff;
}

.btn.primary:hover {
  background: #ff4d4a;
}

.btn.ghost {
  border: 1px solid #e53935;
}

.btn.ghost:hover {
  background: #e53935;
  color: #fff;
}

.btn.small {
  padding: .4rem .8rem;
  font-size: .85rem;
}

/* -----------------------------
   HOME SECTIONS
----------------------------- */
#app {
  width: 100%;
}

.home-events {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 2rem 0 0;
  clear: both;
}

/* -----------------------------
   EVENTS GRID
----------------------------- */
.events-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media(min-width: 700px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background: #161616;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #222;
  transition: .2s;
}

.event-card:hover {
  border-color: #e53935;
}

.event-thumb img {
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.event-date {
  opacity: .8;
  margin: .3rem 0 1rem;
}

/* -----------------------------
   EVENT DETAIL
----------------------------- */
.event-detail-image img {
  margin: 1rem 0;
  border-radius: 6px;
  max-height: 400px;
  object-fit: cover;
}

/* -----------------------------
   ARTICLES
----------------------------- */
.articles-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media(min-width: 700px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: #161616;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #222;
  transition: .2s;
}

.article-card:hover {
  border-color: #e53935;
}

.article-cover {
  height: 160px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.article-detail-cover {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.article-content {
  margin-top: 1rem;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.2rem 0 .6rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin-bottom: 1rem;
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

/* -----------------------------
   GALLERY
----------------------------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media(min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item img {
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
}

.gallery-item img:hover {
  opacity: .7;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.open {
  display: flex;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.lb-content {
  position: relative;
  z-index: 2;
}

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
}

.lb-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  color: black;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 28px;
}

/* -----------------------------
   ABOUT
----------------------------- */
.team-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media(min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-member {
  background: #161616;
  border: 1px solid #222;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.team-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
  margin-bottom: 1rem;
  border: 2px solid #e53935;
}

.no-photo {
  background: #333;
}

/* -----------------------------
   SPONSORS
----------------------------- */
.partners-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media(min-width: 750px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  background: #161616;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #222;
  text-align: center;
}

.partner-logo {
  max-height: 120px;
  margin-bottom: 1rem;
}

/* -----------------------------
   CONTACT
----------------------------- */
.contact-form {
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: .6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  opacity: .7;
  margin-bottom: .3rem;
}

/* -----------------------------
   FOOTER
----------------------------- */
.site-footer {
  border-top: 1px solid #222;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  opacity: .75;
  font-size: .9rem;
}

/* -----------------------------
   MOBILE RESPONSIVE
----------------------------- */
@media(max-width: 750px) {
  .main-nav ul {
    display: none;
  }

  .hero {
    height: 55vh;
    min-height: 380px;
  }

  .hero-inner h1 {
    font-size: 2.2rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }
}
