body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* Banner */
.banner {
  width: 100%;
  height: auto;              /* keep aspect ratio */
  display: block;
  border-bottom: 4px solid #ff6600;
}

h1.site-title {
  text-align: center;
  margin-top: 20px;
  font-size: 2em; /* tweak as needed */
  color: #001e4a;
}

/* Layout */
.container {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;       /* add breathing room */
  border-radius: 8px;      /* rounded corners */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.btn-back {
  display: inline-block;
  background: #46bae6; /* cyan from header glitches */
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-back:hover {
  background: #0099cc; /* slightly darker cyan for hover */
}

.btn-cta {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background: #cc5200;
}


main {
  flex: 3;
}

aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Blog post card */
.post {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.post h1,
.post h2 {
  margin-top: 0;
  color: #222;
}

.date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 1rem;
}

/* Sidebar cards */
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #004999;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  background: #f0f0f0;
  color: #555;
  font-size: 0.9em;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;  /* stack main + sidebar */
    padding: 0 1rem;
  }

  main, aside {
    flex: 1;                 /* full width */
  }

  .post {
    padding: 1rem;           /* tighter padding on small screens */
  }

  .banner {
    border-bottom: 3px solid #0066cc; /* slightly slimmer border */
  }

  footer {
    font-size: 0.8em;
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95em;       /* slightly smaller text for tiny screens */
  }

  .profile {
    width: 80px;
    height: 80px;
  }

  h1, h2 {
    font-size: 1.2em;
  }
}
