/* styles.css – simple web-2.0 look */

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, p, ul, li { margin: 0; padding: 0; }

/* Theme tokens */
:root{
  --bg: #f4f7fb;
  --text: #2b2f33;
  --muted: #6b7280;
  --brand-1: #6a11cb;   /* purple */
  --brand-2: #2575fc;   /* blue */
  --link: #000000;      /* sky  #0ea5e9 */
  --link-hover: #0284c7;
  --card: #ffffff;
  --card-border: #e6eef8;
  --accent: #7c3aed;    /* violet */
  --shadow: 0 8px 24px rgba(20, 40, 80, 0.08);
  --radius: 12px;
  --space: 16px;
}

/* Global */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #e9f2ff 0%, transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, #f0e9ff 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding: 0 20px;
}

/* Header */
header{
  text-align: center;
  padding: 28px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
  margin: 32px auto 20px;
  max-width: 1000px;
}
header h1{ font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; }

/* Main */
main{
  padding: 20px;
  max-width: 900px;
  margin: 0 auto 32px;
}

/* Card – news item */
.news-item{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.news-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 40, 80, 0.12);
}

/* Updated heading color */
.news-item h2{
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: grey;        /* default grey */
}

.news-item h2:hover{
  color: #f72334;     /* red on hover */
}

.news-item p{ margin: 6px 0 0; }
.news-item a{
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(14,165,233,0.25);
}
.news-item a:hover{ color: var(--link-hover); border-bottom-color: currentColor; }
.news-item time{
  display: inline-block;
  margin-top: 6px;
  font-size: .92rem;
  color: var(--muted);
}

/* Breadcrumb */
.breadcrumb{
  font-size: .95rem;
  color: #556;
  margin: 6px 0 14px;
}
.breadcrumb a{
  color: var(--link);
  text-decoration: none;
}
.breadcrumb a:hover{ text-decoration: underline; }

/* Social links */
.social-links{
  margin: 24px auto 0;
  padding: 12px 16px;
  width: fit-content;
  text-align: center;
  background: #ffffffc7;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.social-links p{
  font-weight: 600;
  margin-bottom: 10px;
}
.social-links ul{
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.social-links a{
  text-decoration: none;
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,117,252,0.25);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.social-links a:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,117,252,0.32);
  opacity: .95;
}

/* Accessibility – focus */
a:focus,
button:focus{
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Motion respect */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}
