/* ===== VARIABLES & RESET (Coffee Theme) ===== */
:root {
  /* Repurpose existing tokens into a coffee palette */
  --red:        #c58a54;        /* caramel */
  --red-dark:   #6f4e37;        /* brew */
  --accent:     #ffd39b;        /* sweet foam */
  --bg-light:   #f7efe9;        /* latte foam */
  --text-dark:  #3a2a20;        /* espresso ink */
  --text-light: #fff;
  --muted:      rgba(58,42,32,.7);
  --radius:     12px;
  --shadow:     0 14px 40px rgba(43,26,20,.18);
  --transition: .25s ease;
  font-size:    16px;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(197,138,84,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 120%, rgba(111,78,55,0.08), transparent 60%),
    var(--bg-light);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}
a { text-decoration: none; }

/* ===== FLEX HELPERS ===== */
.flex { display: flex; }
.center { justify-content: center; }
.center-v { align-items: center; }
.between { justify-content: space-between; }

/* ===== CONTAINER ===== */
.container { width: 90%; max-width: 960px; margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(43,26,20,.12);
}
.header-container { padding: 1rem 0; }
.main-nav ul { list-style: none; gap: 1rem; }
.main-nav ul li { display: inline-block; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform .15s ease;
  color: var(--text-light);
}
.main-nav a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.main-nav i { font-size: 1.2rem; }

/* ===== SEARCH HERO ===== */
.search-section {
  position: relative;
  background:
    radial-gradient(1200px 700px at 120% -10%, rgba(197,138,84,.18), transparent 60%),
    linear-gradient(135deg, #8b6546, #301809);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.search-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 2px) 0 0/26px 26px,
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 2px) 8px 8px/32px 32px;
  opacity:.5;
  pointer-events:none;
}
.search-section h2 {
  font-size: 2.4rem;
  margin-bottom: .5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.search-section p {
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
}
.search-card {
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(197,138,84,0.08), transparent 60%),
    linear-gradient(180deg, #fffdf8, #fffaf3);
  max-width: 600px;
  margin: 0 auto;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(74,46,32,.10);
}
.search-form { display: flex; gap: .5rem; }
.search-form input {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(74,46,32,.20);
  background: #fffdfa;
  color: var(--text-dark);
  transition: border var(--transition), box-shadow var(--transition);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.search-form input::placeholder { color: rgba(58,42,32,.6); }
.search-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(197,138,84,.20);
}

/* Primary action */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(180deg, var(--red), #ad6a34);
  color: #fff;
  border: 1px solid rgba(90,65,48,.18);
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(197,138,84,.28), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, filter .15s, background var(--transition);
}
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-2px); }

/* ===== NEWS FEATURES ===== */
.news-listing { padding: 4rem 0; }
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.news-feature {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(74,46,32,.10);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
.news-feature a { display: block; color: inherit; }

/* — Feature Header with shimmer — */
.feature-header {
  position: relative;
  background: var(--red); /* caramel */
  color: #fff;
  padding: 2rem 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,.3);
  overflow: hidden;
}
.feature-header::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.28), rgba(255,255,255,0));
  transform: skewX(-25deg);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 0% { left: -60%; } 100% { left: 160%; } }

.feature-body { padding: 1.5rem; }
.feature-body p { color: var(--muted); margin-bottom: 1rem; }
.read-more {
  color: var(--red-dark);
  font-weight: 700;
  transition: text-decoration var(--transition), transform .15s ease;
}
.read-more:hover { text-decoration: underline; transform: translateY(-1px); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
.page-btn {
  padding: .6rem .9rem;
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--red-dark);
  font-weight: 700;
  border: 1px solid rgba(74,46,32,.14);
  box-shadow: 0 6px 16px rgba(43,26,20,.08);
  transition: background var(--transition), color var(--transition), transform .15s ease;
}
.page-btn:hover:not(.disabled):not(.active) {
  background: var(--red);
  color: var(--text-light);
  transform: translateY(-1px);
}
.page-btn.disabled { opacity: .5; cursor: default; }
.page-btn.active {
  background: var(--red-dark);
  color: var(--text-light);
  cursor: default;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #8b6546, #301809);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
  box-shadow: 0 -6px 18px rgba(43,26,20,.10);
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .news-list { display: flex; flex-direction: column; }
}
