/* GlobalDesk24 - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
  --color-primary:   #0a1628;
  --color-accent:    #c0392b;
  --color-bg:        #f5f5f5;
  --color-white:     #ffffff;
  --color-text:      #1a1a2e;
  --color-muted:     #6b7280;
  --color-border:    #e5e7eb;
  --color-hover:     #1a2f52;
  --font-headline:   'Playfair Display', Georgia, serif;
  --font-body:       'Source Sans Pro', Arial, sans-serif;
  --max-width:       1320px;
  --radius:          6px;
  --shadow-card:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:    0 8px 30px rgba(0,0,0,0.15);
  --transition:      all 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--color-accent); }

.site-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 300;
  display: block;
}

/* NAV */
.main-nav { display: flex; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-white); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* HAMBURGER (Mobile) */
.hamburger { display: none; cursor: pointer; background: none; border: none; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; margin: 5px 0; transition: var(--transition);
}

/* ===================== BREAKING NEWS TICKER ===================== */
.breaking-ticker {
  background: var(--color-accent);
  color: white;
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-label {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 1rem;
}
.ticker-scroll {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
  font-size: 0.85rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===================== HERO / FEATURED ===================== */
.hero-section {
  background: var(--color-primary);
  padding: 2rem 0;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.hero-main img {
  width: 100%; height: 420px;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2rem 1.5rem 1.5rem;
}
.hero-cat {
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: white;
  line-height: 1.3;
  font-weight: 700;
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { text-decoration: underline; }

.hero-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.hero-sidebar-item {
  display: flex;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.hero-sidebar-item:hover { background: rgba(255,255,255,0.1); }
.hero-sidebar-item img {
  width: 110px; height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-sidebar-text { padding: 0.6rem; }
.hero-sidebar-cat {
  color: var(--color-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.hero-sidebar-title {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  color: white;
  line-height: 1.3;
}
.hero-sidebar-title a { color: inherit; text-decoration: none; }

/* ===================== MAIN CONTENT AREA ===================== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}

/* ===================== NEWS GRID ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 22px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section-more {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-more:hover { text-decoration: underline; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* NEWS CARD */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-img-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--color-border);
}
.card-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.03); }
.card-cat {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-radius: 2px;
}
.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--color-accent); }
.card-excerpt {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-muted);
}
.card-source { font-weight: 600; }
.card-date { }

/* LIST NEWS CARD */
.news-list-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.news-list-item:last-child { border-bottom: none; }
.list-img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.list-title {
  font-family: var(--font-headline);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 600;
}
.list-title a { color: var(--color-text); text-decoration: none; }
.list-title a:hover { color: var(--color-accent); }
.list-date { font-size: 0.72rem; color: var(--color-muted); margin-top: 0.25rem; }

/* ===================== SINGLE ARTICLE ===================== */
.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.article-header { margin-bottom: 1.5rem; }
.article-cat { color: var(--color-accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.article-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.article-meta {
  display: flex; gap: 1rem;
  font-size: 0.8rem; color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
}
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #2d2d2d;
}
.article-content p { margin-bottom: 1.25rem; }

.article-source {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  font-size: 0.82rem;
  color: var(--color-muted);
}
.article-source a { color: var(--color-accent); }

/* RELATED ARTICLES */
.related-section { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ===================== SIDEBAR ===================== */
.sidebar { }
.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.widget-header {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1rem;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
}
.widget-body { padding: 1rem; }

/* NAVIGATION DROPDOWN */
.nav-mega { position: relative; }
.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 1.5rem;
  min-width: 600px;
  z-index: 999;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.nav-mega:hover .mega-dropdown { display: grid; }
.mega-col-title {
  font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3rem;
}
.mega-link {
  display: block;
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.15s;
}
.mega-link:hover { color: var(--color-accent); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { font-size: 1.4rem; }
.footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-col-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex; justify-content: center; gap: 0.4rem;
  margin: 2.5rem 0;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; flex-wrap: wrap; }
  .hero-sidebar-item { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary); flex-direction: column; padding: 1rem 0; }
  .main-nav.open { display: flex; }
  .main-nav a { height: auto; padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .hamburger { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article-title { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.3rem; }
}
