/* ============================================
   AI News — MIT News Style Clone
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #050505;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0000ee;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Top Black Bar (MIT-style) ---------- */
.top-bar {
  background: #000000;
  padding: 6px 0;
}

.top-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.top-bar__logo-icon {
  width: 36px;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.top-bar__logo-icon span {
  display: block;
  background: #a31f34;
  width: 10px;
  height: 20px;
}

.top-bar__logo-icon span:nth-child(2) {
  width: 6px;
}

.top-bar__logo-icon span:nth-child(3) {
  width: 10px;
}

.top-bar__logo-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Site Header ---------- */
.site-header {
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
}

.site-header__title {
  font-size: 42px;
  font-weight: 800;
  color: #000;
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
}

.site-header__title:hover {
  text-decoration: none;
}

.site-header__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
}

/* ---------- Header Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.site-nav__link:hover {
  color: #a31f34;
  text-decoration: none;
}

.site-nav__link--outlined {
  border-color: #333;
}

.site-nav__link--outlined:hover {
  border-color: #a31f34;
  color: #a31f34;
}

/* ---------- Main Navigation Bar ---------- */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

.main-nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav__link {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.main-nav__link:hover {
  color: #a31f34;
  border-bottom-color: #a31f34;
  text-decoration: none;
}

/* ---------- Article Container ---------- */
.article-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* ---------- Main Content ---------- */
.article-main {
  flex: 1;
  max-width: 720px;
}

.article-main__title {
  font-size: 39px;
  font-weight: 700;
  color: #000000;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.article-main__subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-main__meta {
  margin-bottom: 30px;
}

.article-main__author {
  font-size: 16px;
  font-weight: 700;
  color: #050505;
}

.article-main__author a {
  color: #050505;
  text-decoration: none;
}

.article-main__author a:hover {
  text-decoration: underline;
}

.article-main__date {
  font-size: 15px;
  font-weight: 400;
  color: #555;
  margin-top: 2px;
}

/* ---------- Hero Video ---------- */
.article-hero {
  margin-bottom: 30px;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}

.article-hero video {
  width: 100%;
  display: block;
}

.article-hero__caption {
  padding: 10px 0;
  background: #ffffff;
}

.article-hero__caption-text {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  font-style: italic;
}

.article-hero__credit {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---------- Article Body ---------- */
.article-body {
  font-size: 19px;
  font-weight: 400;
  color: #050505;
  line-height: 1.65;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: #0000ee;
  text-decoration: underline;
}

.article-body strong {
  font-weight: 700;
}

.article-body blockquote {
  border-right: 4px solid #a31f34;
  border-left: none;
  margin: 28px 0;
  padding: 16px 24px;
  font-style: italic;
  color: #333;
  background: #fafafa;
  border-radius: 4px 0 0 4px;
}

/* ---------- Sidebar ---------- */
.article-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 30px;
}

/* Press Inquiries */
.sidebar-press {
  text-align: right;
  margin-bottom: 30px;
}

.sidebar-press__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #333;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}

.sidebar-press__btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

.sidebar-press__btn svg {
  width: 14px;
  height: 14px;
}

/* Sidebar Caption Block */
.sidebar-caption {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-caption__text {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

.sidebar-caption__credit {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Sidebar Gallery Nav */
.sidebar-gallery-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.sidebar-gallery-nav__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #a31f34;
  background: transparent;
  color: #a31f34;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}

.sidebar-gallery-nav__btn:hover {
  background: #a31f34;
  color: #fff;
}

/* Share Section */
.sidebar-share {
  margin-bottom: 30px;
}

.sidebar-share__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #999;
  margin-bottom: 10px;
}

.sidebar-share__icons {
  display: flex;
  gap: 8px;
}

.sidebar-share__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #a31f34;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a31f34;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-share__icon:hover {
  background: #a31f34;
  color: #fff;
  text-decoration: none;
}

.sidebar-share__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Sidebar Resource Box */
.sidebar-resource {
  background: #eeeeee;
  padding: 22px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.sidebar-resource__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.sidebar-resource__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 6px;
}

.sidebar-resource__title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
}

.sidebar-resource__title a {
  color: #0000ee;
}

/* Related Links */
.sidebar-related {
  margin-top: 30px;
}

.sidebar-related__heading {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
}

.sidebar-related__list {
  list-style: none;
}

.sidebar-related__item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.sidebar-related__number {
  font-size: 14px;
  font-weight: 800;
  color: #a31f34;
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar-related__link {
  font-size: 15px;
  font-weight: 500;
  color: #0000ee;
  line-height: 1.4;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 40px 0;
  margin-top: 60px;
}

.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__text {
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

.site-footer__link {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__link:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-container {
    flex-direction: column;
    gap: 30px;
  }

  .article-sidebar {
    width: 100%;
    position: static;
  }

  .article-main {
    max-width: 100%;
  }

  .article-main__title {
    font-size: 30px;
  }

  .article-main__subtitle {
    font-size: 18px;
  }

  .article-body {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .site-header__title {
    font-size: 30px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav__inner {
    overflow-x: auto;
  }

  .article-main__title {
    font-size: 26px;
  }

  .article-main__subtitle {
    font-size: 16px;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}