
/* ==========================================
   ANDHRA INFO — LATEST UPDATES PAGE
   Matches the main style.css branding
========================================== */

:root {
  --orange: #ff783e;
  --orange-dark: #ed6128;
  --orange-light: #fff1e9;
  --charcoal: #22252d;
  --text: #363b46;
  --muted: #737c8d;
  --white: #ffffff;
  --bg-light: #f4f6f9;
  --border: #e5e8ef;
  --blue: #45b9e8;
}

/* Reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  background: linear-gradient(
    135deg,
    #fffaf7 0%,
    #ffffff 55%,
    #f5fbfd 100%
  );
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.brand-home-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 650px) {
  .site-header .main-nav:not(.nav-open) {
    display: none !important;
  }

  .site-header .main-nav.nav-open {
    display: flex !important;
  }
}

/* Page Layout */

.updates-page {
  min-height: 100vh;
  padding: 65px 24px 80px;
}

.updates-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Heading */

.updates-header {
  text-align: center;
  margin-bottom: 42px;
}

.updates-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--orange-light);
  border: 1px solid #ffd7c5;
  border-radius: 50px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.updates-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.updates-header h1 span {
  color: var(--orange);
}

.updates-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Update status */

.updates-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #35b779;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 183, 121, 0.12);
}

/* Updates Grid */

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* News Cards */

.update-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.update-card:hover {
  transform: translateY(-4px);
  border-color: #ffc6a8;
  box-shadow: 0 15px 35px rgba(34, 37, 45, 0.07);
}

.update-category {
  display: inline-block;
  padding: 6px 11px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  margin-bottom: 14px;
}

.update-card h2 {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.4px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.update-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #f0f1f4;
  padding-top: 15px;
  font-size: 11px;
  color: #929aaa;
}

.update-link {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.update-link:hover {
  text-decoration: underline;
}

/* Loading State */

.updates-loading {
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
}

/* Empty/Error State */

.updates-message {
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 35px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  grid-column: 1 / -1;
}

.updates-load-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid #ffd7c5;
  border-radius: 30px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.updates-load-more:hover:not(:disabled) {
  background: #ffe4d5;
  transform: translateY(-1px);
}

.updates-load-more:disabled {
  cursor: wait;
  opacity: 0.7;
}

.updates-load-more-error {
  grid-column: 1 / -1;
}

/* Back Link */

.updates-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.updates-back:hover {
  gap: 13px;
}

/* Responsive — Tablet */

@media (max-width: 768px) {
  .updates-page {
    padding: 50px 20px 65px;
  }

  .updates-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .updates-header {
    margin-bottom: 32px;
  }

  .update-card {
    padding: 22px;
  }
}

/* Responsive — Mobile */

@media (max-width: 480px) {
  .updates-page {
    padding: 40px 16px 55px;
  }

  .updates-header h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }

  .updates-header p {
    font-size: 13px;
  }

  .update-card {
    padding: 19px;
    border-radius: 15px;
  }

  .update-card h2 {
    font-size: 15px;
  }

  .update-card p {
    font-size: 12px;
  }
}
