:root {
  --bg-dark: #0f172a;
  --bg-sidebar: #1e293b;
  --panel-bg: rgba(30, 41, 59, 0.75);
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #00a8ff;
  --accent-glow: rgba(0, 168, 255, 0.3);
  --accent-orange: #f97316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Left Sidebar Navigation */
nav.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Replace or update .sidebar-brand in style.css */
.sidebar-brand {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand img {
  width: 100%;
  max-width: 220px; /* Change this number to make it smaller (e.g., 80px) or larger (e.g., 140px) */
  height: auto;     /* Keeps the image's original proportions automatically */
  display: block;
  margin: 0 auto 10px auto;
}

.sidebar-brand span {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.3;
}

.sidebar-nav {
  list-style: none;
  padding: 20px 0;
  flex-grow: 1;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border-left: 4px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: #ffffff;
  background-color: rgba(0, 168, 255, 0.08);
  border-left-color: var(--accent-blue);
}

/* Main Content Area */
main {
  margin-left: 260px;
  flex-grow: 1;
  padding: 40px;
  max-width: calc(100vw - 260px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h1.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: block; /* Changes it from inline-block to full width */
  text-align: center; /* Centers the text inside */
  letter-spacing: -0.5px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

p {
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

p strong, li strong {
  color: var(--text-main);
}

/* Looping Slideshow Styles */
.slideshow-container {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
}

.slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-shadow: 0 0 20px var(--accent-glow);
  text-align: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* Video & Media styling */
video, iframe {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Buttons & Links */
.btn {
  display: inline-block;
  background-color: var(--accent-blue);
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  margin-left: 10px;
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Consent Modal Overlay */
#consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.modal-box h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.modal-box p {
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.modal-box a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-actions button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-decline {
  background-color: #334155;
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-decline:hover { background-color: #475569; }

/* Responsive Adjustments */
@media (max-width: 900px) {
  nav.sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  main {
    margin-left: 0;
    max-width: 100%;
    padding: 20px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
}