:root {
  --primary: #2983f9;
  --primary-dark: #1e5fb5;
  --accent: #02f5a5;
  --bg: #f5f5f7;
  --text: #111827;
  --muted: #000000;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ===== LAYOUT ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
}

/* ===== HEADER ===== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #021e44 0%, #003c71 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.logo img{
  height: 40px;
  margin-left: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.logo-text span:first-child {
  font-weight: 700;
  font-size: 18px;
}

.logo-text span:last-child {
  font-size: 12px;
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(245, 245, 247, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav a {
    color: #0f172a;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--primary);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* ===== HERO SLIDER ===== */

.hero {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 480px;
  background: #000;
  color: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.55), transparent 50%),
              linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.2);
  font-size: 12px;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: #0f172a;
}

.btn-primary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* ===== SHORT BIO ===== */

.about-brief {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.about-brief-text h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-brief-text p {
  color: #000;
  font-size: 14px;
  line-height: 1.7;
}

.about-brief-visual {
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.15), transparent 50%),
              #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.stat-value {
  font-weight: 700;
  font-size: 18px;
}

.stat-label {
  font-size: 12px;
  color: #000;
}

/* ===== SERVICES ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.service-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ===== EVENT & PORTFOLIO CARDS ===== */

.cards-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.cards-slider::-webkit-scrollbar {
  height: 6px;
}

.cards-slider::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

.event-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.event-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.event-body {
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-name {
  font-size: 15px;
  font-weight: 600;
}

.event-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ===== SPONSORS STRIP ===== */

.sponsors-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.sponsor-logo {
  width: 170px;
  height: 88px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s ease;
}

.sponsor-logo:hover img {
  transform: scale(1.05);
}

/* ===== FOOTER ===== */

footer {
  background: #0b1120;
  color: #e5e7eb;
  padding: 32px 0 16px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  font-size: 13px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: #9ca3af;
  margin-bottom: 4px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 16px;
  font-size: 11px;
  text-align: center;
  color: #6b7280;
}

footer .footer-grid > div{
  min-width: 0;
}

footer a{
  word-break: break-word;
}

/* Footer Social Icons (Responsive) */
.footer-social-icons{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
}

.footer-social-icons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

.footer-social-icons img{
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.footer-social-icons img:hover{
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 480px){
  .footer-social-icons a{
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .footer-social-icons img{
    width: 17px;
    height: 17px;
  }
}

/* ===== INNER PAGES ===== */

.page-hero {
  padding: 60px 0 30px;
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.18), transparent 55%),
              #f3f4f6;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
}

.page-content {
  padding: 40px 0 60px;
}

/* Company profile content */
.profile-block {
  margin-bottom: 32px;
}

.profile-block h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.profile-block p,
.profile-block li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-list {
  padding-left: 18px;
}

/* ===== PRELOADER VIDEO ===== */

#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 8s ease, visibility 8s ease;
}

#preloader video {
  max-width: 360px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Event details */

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.event-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-main-title {
  font-size: 26px;
  margin: 6px 0 8px;
}

.event-meta-line {
  font-size: 13px;
  color: var(--muted);
}

.event-video {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  aspect-ratio: 16 / 9;
}

.event-video iframe,
.event-video video {
  width: 100%;
  height: 100%;
  border: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
}

/* Speaker cards */

.speakers-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.speaker-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 14px;
  text-align: center;
}

.speaker-photo {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background-size: cover;
  background-position: center;
}

.speaker-name {
  font-size: 14px;
  font-weight: 600;
}

.speaker-role {
  font-size: 12px;
  color: var(--muted);
}

/* Gallery slider */

.gallery-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.gallery-item {
  flex: 0 0 210px;
  height: 140px;
  scroll-snap-align: start;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: transparent;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 420px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== EVENT CARD BUTTONS (FIXED BOTTOM) ===== */

.event-card {
  display: flex;
  flex-direction: column;
}

.event-body {
  flex: 1;
  padding: 14px 16px 12px;
}

.event-card-actions {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.event-btn {
  flex: 1;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

.register-btn {
  background: var(--primary);
  color: #fff;
}

.register-btn:hover {
  background: var(--primary-dark);
}

.more-btn {
  background: #111827;
  color: #fff;
}

.more-btn:hover {
  opacity: 0.9;
}

.event-card-actions .event-btn:only-child {
  flex: 1;
}

/* Hide scrollbar but keep slider working */
.cards-slider::-webkit-scrollbar { height: 0; display: none; }
.cards-slider { scrollbar-width: none; -ms-overflow-style: none; }

/* Drag feel */
.cards-slider { cursor: grab; }
.cards-slider.dragging { cursor: grabbing; user-select: none; }

/* ===== Tabs ===== */
.event-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 18px 0 16px;
}
.event-tab{
  padding:8px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color: #000;
  cursor:pointer;
  transition: .2s ease;
  font-size:14px;
  font-weight:600;
}
.event-tab.active,
.event-tab:hover{
  background: var(--primary);
  border-color: var(--primary);
  color:#fff;
}

/* Event header image mode */
.page-hero.has-event-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-hero.has-event-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.page-hero.has-event-header .container {
  position: relative;
  z-index: 1;
}

/* ===== EVENT BACK BUTTON (VISIBLE + LESS ROUND) ===== */
.btn.btn-outline {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.btn.btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
}

.btn.btn-outline:active {
  transform: translateY(0);
}

.btn.btn-outline:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18) !important;
}

/* IMPORTANT: remove any layout override that turns upcoming into a grid */
#upcoming-events{
  /* intentionally empty to avoid conflicts */
}

/* ===== UPCOMING: same slider style as Previous Work ===== */
#upcoming-events.cards-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 18px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;          /* Firefox */
}
#upcoming-events.cards-slider::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

#upcoming-events.cards-slider .event-card {
  flex: 0 0 330px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  #upcoming-events.cards-slider .event-card {
    flex-basis: 280px;
  }
}
