/* CSS - Universitas Republik Indonesia (URI) */
:root {
  --red-primary: #b71c1c;
  --red-dark: #7f0000;
  --red-light: #d32f2f;
  --gold-accent: #d4af37;
  --bg-light: #fcfbf9;
  --bg-white: #ffffff;
  --text-main: #2b2b2b;
  --text-muted: #595959;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
.top-bar {
  background-color: var(--red-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--red-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: table;
  width: 100%;
}

.brand-area {
  display: table-cell;
  vertical-align: middle;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.nav-area {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.nav-menu {
  list-style: none;
  display: inline-block;
}

.nav-menu li {
  display: inline-block;
  margin-left: 1.8rem;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--red-primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--red-primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(183, 28, 28, 0.95), rgba(127, 0, 0, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%237f0000"/><path d="M0 0l100 100M100 0L0 100" stroke="%239a0000" stroke-width="1"/></svg>');
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background-color: var(--gold-accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background-color: var(--bg-white);
  color: var(--red-primary);
  padding: 0.8rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.hero-cta:hover {
  background-color: var(--gold-accent);
  color: #000;
}

/* Layout Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-title {
  font-size: 2rem;
  color: var(--red-primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Grid & Cards */
.news-grid {
  display: block;
  margin: 0 -10px;
}

.news-grid::after {
  content: "";
  display: table;
  clear: both;
}

.news-card-wrapper {
  float: left;
  width: 33.333%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--red-primary);
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
  display: block;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold-accent);
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sidebar & Article Layout */
.content-wrapper {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.main-content {
  display: table-cell;
  width: 70%;
  vertical-align: top;
  padding-right: 2.5rem;
}

.sidebar {
  display: table-cell;
  width: 30%;
  vertical-align: top;
  border-left: 1px solid var(--border-color);
  padding-left: 1.8rem;
}

/* Article Page Specifics */
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.article-body p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  color: #333;
  line-height: 1.7;
}

.article-body blockquote {
  background: #f8f9fa;
  border-left: 4px solid var(--red-primary);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
}

/* Content Box/Card */
.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  color: var(--red-primary);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--red-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: table;
  width: 100%;
}

.footer-col {
  display: table-cell;
  width: 33.333%;
  vertical-align: top;
  padding-right: 2rem;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--red-primary);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aaa;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .header-container, .brand-area, .nav-area {
    display: block;
    width: 100%;
    text-align: left;
  }
  
  .nav-area {
    margin-top: 1rem;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
  }
  
  .nav-menu.open {
    display: block;
  }
  
  .nav-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu a {
    display: block;
    padding: 10px 0;
  }
  
  .mobile-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }
  
  .news-card-wrapper {
    width: 50%;
  }
  
  .content-wrapper, .main-content, .sidebar, .footer-col {
    display: block;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
  
  .sidebar {
    margin-top: 2rem;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
  }
}

@media (max-width: 550px) {
  .news-card-wrapper {
    width: 100%;
  }
  .hero-title {
    font-size: 1.6rem;
  }
}
