/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === DEFAULTS === */

:root{
  --bg: #e5e7eb;         /* slate-900 */
  --card: #363531;       /* gray-900 */
  --muted: #9ca3af;      /* gray-400 */
  --text:  #1D1D1F;      /* gray-200 */
  --accent: #60a5fa;     /* blue-400 */
  --accent-strong:#2563eb;/* blue-600 */
  --ok:#22c55e;          /* green-500 */
  --warn:#f59e0b;        /* amber-500 */
  --err:#ef4444;         /* red-500 */
}

h1 {
  font-size: 2rem;
  margin-top: 0.67rem;
  margin-bottom: 0.67rem;
}

h2 {
  font-size: 1.75rem;
  margin-top: 0.83rem;
  margin-bottom: 0.83rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.33rem;
  margin-bottom: 1.33rem;
}

ul {
    padding-left: 30px; /* Adjust the value as needed */
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F5F5F7;
  color: #1D1D1F;
  line-height: 1.6;
  font-size: 1rem;
}

/* === NAVBAR === */
.navbar {
  background-color: #FDF9F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 96px;
  width: auto;
  display: block;
}

.icon-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

/* === FORM SECTION === */
.wrap{
  max-width: 600px; margin: 0 auto; padding: 0 1rem;
}

.email-form {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom, #FFFFFF, #F5F5F7); /* or just #f5f5f5; */
  border-radius: 8px;
  margin-top: 1rem;
}

.email-form h3 {
  font-weight: 700;
}

.email-form p {
  font-size: 1.25rem;
  color: #555;
}

a.inline-link{
  color: #0071E3;
  text-decoration: underline; cursor: pointer;
}

.card{
  background: linear-gradient(180deg, #1c1c1c, var(--card));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}


form.signup{
  display: grid; /* other option is flex */
  gap: .75rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

input[type="email"]{
  background: rgba(255,255,255,.05);
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  padding: .9rem 1rem;
  border-radius: 12px;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="email"]:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,.25);
}

button[type="submit"]{
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: white;
  border: none;
  padding: .9rem 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, opacity .2s ease;
  min-width: 9rem;
}

button[type="submit"]:active{ transform: translateY(1px); }
button[disabled], input[disabled]{ opacity: .6; cursor: not-allowed; }

/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #FFFFFF, #F5F5F7);
}

.hero h1 {
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  color: #555;
}

/* === BLOG CONTENT === */
.blog-content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.post {
  background-color: #FFFFFF;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.post:hover {
  transform: translateY(-4px);
}

.post h3 {
  color: #1D1D1F;
}

.post h3 a {
  color: inherit;
  text-decoration: none;
}

.post h3 a:hover {
  color: #0071E3;
  text-decoration: underline;
}

.meta {
  font-size: 0.85rem;
  color: #86868B;
  margin-bottom: 1rem;
}

.post a {
  color: #0071E3;
  text-decoration: none;
  font-weight: 500;
}

.post a:hover {
  color: #2986E3;
}

/* === POST IMAGES === */
.post-image {
  float: right;
  width: 120px;
  height: 120px;
  margin: 0.5rem 0 1rem 1.5rem;
  border-radius: 8px;
  object-fit: cover;
  background-color: #F5F5F7;
}

/* === ABOUT SECTION === */
.about {
  background-color: #F5F5F7;
  padding: 4rem 2rem;
  text-align: center;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* === FOOTER === */
footer {
  background-color: #000000;
  color: #F5F5F7;
  margin-top: 4rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #F5F5F7;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-left {
  position: absolute;
  left: 20px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-left {
        position: static;
        margin-bottom: 10px;
    }
    
    .footer-center {
        align-items: center;
    }
  }

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #1D1D1F;
  background: transparent;
  color: #1D1D1F;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: #1D1D1F;
  color: #FFFFFF;
}

.button-blue {
  border-color: #0071E3;
  color: #0071E3;
}

.button-blue:hover {
  background-color: #0071E3;
  color: white;
}

.button-teal {
  border-color: #264653;
  color: #264653;
}

.button-teal:hover {
  background-color: #264653;
  color: white;
}

.tag-filters {
  text-align: center;
  margin: 2rem 0;
}
.filter-btn {
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border: 1px solid #1D1D1F;
  background: transparent;
  color: #1D1D1F;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
}
.filter-btn:hover {
  background: #1D1D1F;
  color: white;
}

/* Popup (modal) */
.popup-backdrop{
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  padding: 1rem; z-index: 50;
}

.popup{
  width: min(560px, 92vw);
  background: #f5f5f5; /* #0b1020; */
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 1rem 1rem 1rem 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.popup header{
  display:flex; align-items:center; gap:.6rem; margin-bottom:.35rem;
}

.badge{ font-size:.8rem; padding:.22rem .5rem; border-radius: 999px; border:1px solid currentColor; }
.badge.ok{ color: var(--ok); }
.badge.warn{ color: var(--warn); }
.badge.err{ color: var(--err); }

.popup .body{ color: var(--text); line-height: 1.6; }
.popup footer{
  margin-top: .9rem; display:flex;
  justify-content:flex-end;
  background: #f5f5f5;
}

.btn{
  padding:.6rem .9rem; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: var(--text); cursor:pointer;
}

.btn:hover{ background: rgba(255,255,255,.1); }

.sr-only{ position:absolute; left:-9999px; }


/* === CAPTCHA MODAL SPECIFIC STYLING === */
#captcha-modal .popup {
  max-width: 600px;
  width: min(600px, 95vw);
}

#captcha-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 1rem;
}

/* Override AWS CAPTCHA styling to match our theme */
#captcha-container iframe {
  border-radius: 8px !important;
}

/* Loading state for CAPTCHA container */
#captcha-container:empty::before {
  content: "Loading security verification...";
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}


/* === COOKIE BANNER SPECIFIC STYLING === */

#cookie-banner {
  position: fixed;
  bottom: -300px; /* start off-screen */
  left: 20px;
  width: 320px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 16px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  transition: bottom 0.5s ease-in-out;
  z-index: 9999;
}

#cookie-banner.show {
  bottom: 20px; /* slide into view */
}

#cookie-banner a {
  color: #0645AD;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 10px;
}

.cookie-buttons button {
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#cookie-decline {
  background: #fff;
  border: 1px solid #000;
}

#cookie-accept {
  background: #f4b400;
  color: #000;
}
