/* blog3.css — Navy + Metallic Gold theme, responsive, accessible */

/* Reset-ish */
* { box-sizing: border-box; }
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#071226 0%, #0b1622 100%);
  color: #e6eef6;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  scroll-behavior:smooth;
}



/* variables */
:root{
  --accent:#d4af37; /* metallic gold */
  --muted:#9fb1c8;
  --card:#0f2230;
  --glass: rgba(255,255,255,0.03);
  --radius:12px;
  --container:1100px;
}

/* header */
.header {
  position:sticky;
  top:0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(7,14,26,0.6), rgba(7,14,26,0.35));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 20px;
  z-index:1200;
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.header .brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.header .logo {
  font-size: 22px;
  font-weight: bold;
  color: #0ABAB5;
}
.header .logo span {
  color: #8A2BE2;
}

/*.header .logo {
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),#f6e7b1);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#071226;
  font-weight:800;
  font-size:16px;
  box-shadow:0 6px 18px rgba(212,175,55,0.12), inset 0 -6px 18px rgba(0,0,0,0.15);
}*/
.header .brand h1{
  font-size:18px;
  margin:0;
  letter-spacing:0.6px;
}
.header nav{display:flex;gap:18px;align-items:center}
.header nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
}
.header nav a:hover{ color:var(--accent); background: rgba(212,175,55,0.04); }

/* nav controls */
.nav-actions{display:flex;gap:10px;align-items:center}
.icon-btn{
  background:transparent;border:0;color:var(--muted);padding:8px;border-radius:8px;cursor:pointer;font-size:18px;
}
.icon-btn:hover{color:var(--accent); background:rgba(212,175,55,0.03);}

/* nav toggle (mobile) */
.nav-toggle {
  display:none;
  background:transparent;
  border:0;
  font-size:22px;
  color:var(--muted);
  cursor:pointer;
}
.nav-toggle:hover { color:var(--accent); }

/* container */
.container{width:90%;max-width:var(--container);margin:36px auto;}

/* hero slider */
.hero {
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,rgba(2,6,12,0.3),rgba(3,8,14,0.5));
  box-shadow:0 12px 40px rgba(2,8,18,0.6);
  margin-bottom:28px;
}
.hero .slide {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background-size:cover;background-position:center;
  transition:opacity .8s cubic-bezier(.2,.9,.3,1), transform .8s;
  opacity:0; transform:scale(1.03);
}
.hero .slide.active{opacity:1; transform:scale(1);}
.hero .overlay{
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(2,6,12,0.2), rgba(2,6,12,0.6));
}
.hero .hero-content{
  position:relative; z-index:4; text-align:left; max-width:720px; padding:40px;
  color:#fff;
}
.hero h2{ font-size:36px; margin:0 0 8px; color:var(--accent); text-shadow:0 6px 20px rgba(0,0,0,0.5);}
.hero p{ color: #dfeaf7; font-size:18px; margin:0 0 18px;}

/* hero CTA */
.btn {
  display:inline-block;
  background:linear-gradient(90deg,var(--accent), #ffd86b);
  color:#071226;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  box-shadow:0 8px 22px rgba(212,175,55,0.12);
  text-decoration:none;
}

/* layout grid */
.grid {
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:28px;
  align-items:start;
}

/* posts list */
.posts-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap:20px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(2,8,18,0.6);
  transition: transform .28s ease, box-shadow .28s;
}
.card:hover{ transform:translateY(-8px); box-shadow:0 18px 48px rgba(2,8,18,0.75); }
.card img{ width:100%; height:190px; object-fit:cover; display:block; }
.card .card-body{ padding:18px; }
.card h3{ margin:0 0 8px; color:var(--accent); font-size:18px; }
.card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.5; }

/* sidebar */
.sidebar{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.03));
  padding:18px;border-radius:12px;
  box-shadow:0 8px 28px rgba(2,8,18,0.45);
}
.sidebar h4{ margin:0 0 12px; color:var(--accent); }
.sidebar .item{ margin-bottom:12px; color:var(--muted); }
.tag{ display:inline-block; margin:6px 6px 0 0; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,0.02); font-size:13px; color:var(--muted); cursor:pointer; }
.tag:hover{ background: rgba(212,175,55,0.06); color:var(--accent); }

/* post detail */
.article {
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.03));
  padding:28px; border-radius:12px; box-shadow:0 10px 36px rgba(2,8,18,0.6);
}
.article h1{ color:var(--accent); margin-top:0; font-size:30px; }
.article .meta{ color:var(--muted); margin-bottom:18px; font-size:13px; }
.article img.feature{ width:100%; height:420px; object-fit:cover; border-radius:10px; margin-bottom:18px; }

/* blockquote */
blockquote{
  border-left:4px solid var(--accent); padding:14px 18px; margin:18px 0; background:rgba(212,175,55,0.03);
  color:#f7f4ea; font-style:italic;
}

/* related posts */
.related{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-top:18px; }
.related .r-item{ background:var(--card); padding:12px; border-radius:10px; text-align:center; }
.related .r-item h5 { margin:8px 0 0; color:var(--muted); font-size:14px; }

/* comments */
.comments{ margin-top:22px; }
.comment{ margin-bottom:14px; padding:12px; background:rgba(255,255,255,0.02); border-radius:10px; color:var(--muted); }
.comment .who{ color:var(--accent); font-weight:700; }

/* newsletter */
.newsletter{ margin:30px 0; padding:20px; border-radius:10px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05)); display:flex; gap:12px; align-items:center; justify-content:space-between; }
.newsletter input[type="email"]{ padding:12px 14px; border-radius:8px; border:1px solid rgba(255,255,255,0.03); background:transparent; color:var(--muted); width:60%; }
.newsletter button{ padding:12px 16px; border-radius:8px; background:var(--accent); color:#071226; border:0; font-weight:700; }

/* footer */
.footer{
  margin-top:40px; padding:26px 0; text-align:center; color:var(--muted); border-top:1px solid rgba(255,255,255,0.02);
}

/* responsive */
@media(max-width:1000px){
  .grid{ grid-template-columns: 1fr 320px; gap:20px; }
  .hero{ height:360px; }
  .article img.feature{ height:300px;}
}
@media(max-width:820px){
  .grid{ grid-template-columns:1fr; }
  .sidebar{ order:2; margin-top:18px; }
  .posts-grid{ grid-template-columns:1fr; }
  .hero{ height:320px; }
}
@media(max-width:480px){
  .header nav{ display:none; }
  .nav-toggle{ display:block; }
  .hero{ height:260px; padding:18px; }
  .hero h2{ font-size:22px; }
  .newsletter input{ width:100%; }
}

/* ===== About Page ===== */
.about-page {
  margin: 40px auto;
  max-width: var(--container); /* match main container width */
  padding: 0 20px;
}

.about-page h2 {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 1.6rem;
}

.about-page p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===== Team Section ===== */
.team {
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-member {
  background: var(--card); /* consistent with theme */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* darker shadow for navy theme */
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-member img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid var(--accent);
}

.team-member h3 {
  color: var(--accent); /* use gold for visibility */
  font-size: 1.2rem;
  margin: 0;
}

.team-member p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Tags Page ===== */
.tags-hero {
  text-align: center;
  margin: 40px auto 30px;
  max-width: var(--container);
  padding: 0 20px;
}

.tags-hero h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 8px;
}

.tags-hero p {
  color: var(--muted);
  font-size: 1rem;
}

.tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 20px;
}

.tag-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 28px rgba(2,8,18,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(2,8,18,0.6);
}

.tag-name {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--accent);
}

.tag-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-posts li {
  margin-bottom: 8px;
}

.tag-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  cursor: pointer; /* accessibility */
}

.tag-link:hover {
  color: var(--accent);
}
