/* CSS Variables */
:root {
  --primary-color: #003087;
  --secondary-color: #CC3333;
  --accent-color: #E55A5A;
  --neutral-100: #FFFFFF;
  --neutral-200: #F8F9FA;
  --neutral-300: #E9ECEF;
  --neutral-400: #DEE2E6;
  --neutral-500: #ADB5BD;
  --neutral-600: #6C757D;
  --neutral-700: #495057;
  --neutral-800: #343A40;
  --neutral-900: #212529;
  --font-family: 'Inter', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo h1 {
  font-size: 2.2rem;
  color: #FFFFFF;
  margin: 0;
  transition: color 0.3s ease;
}

.gks-text {
  color: #FFFFFF;
}

.logistics-text {
  color: #CC3333;
}

.nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav ul li a:hover {
  color: #CC3333;
  transform: scale(1.05);
}

.language-toggle {
  display: flex;
  align-items: center;
}

#languageToggle {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFFFFF;
}

#languageToggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.lang-text {
  font-weight: 500;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  background: #003087;
  border: none;
  font-size: 1.5rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 48px;
  border-radius: 4px;
  padding: 0.5rem;
  position: relative;
}

.menu-toggle:hover {
  color: #FFFFFF;
  background: #003087;
  text-decoration: underline;
  text-decoration-color: #CC3333;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Article Hero Section */
.article-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(1px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.8), rgba(204, 51, 51, 0.6));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.back-button {
  margin-bottom: 3rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.article-header {
  color: #FFFFFF;
  max-width: 800px;
}

.article-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  color: #FFFFFF;
}

.article-meta {
  display: flex;
  gap: 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.article-meta .author {
  font-weight: 600;
}

.article-meta .date {
  color: #CC3333;
  font-weight: 500;
}

/* Main Content Layout */
.main-content {
  padding: 6rem 0;
  background: var(--neutral-100);
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Article Content */
.article-content {
  background: var(--neutral-100);
  padding: 0;
}

.introduction {
  margin-bottom: 4rem;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--neutral-700);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 4rem;
  background: white;
  padding: 3rem;
  border-radius: 12px;
}

.timeline-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1E90FF, #003087);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: #1E90FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(204, 51, 51, 0.3);
}

.timeline-content {
  flex: 1;
  background: var(--neutral-200);
  padding: 2rem;
  border-radius: 15px;
  margin: 0 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1E90FF;
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--neutral-700);
}

/* Quote Section */
.quote-section {
  margin: 4rem 0;
  padding: 3rem;
  background: #081925;
  border-radius: 20px;
  text-align: center;
}

.ceo-quote {
  color: #FFFFFF;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ceo-quote cite {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  margin-top: 1rem;
}

/* Metrics Section */
.metrics-section {
  margin-bottom: 4rem;
}

.metrics-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.metric-card {
  background: var(--neutral-100);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #1E90FF;
}

.metric-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1E90FF, #003087);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #FFFFFF;
  font-size: 2rem;
}

.metric-content h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.metric-content p {
  font-size: 1.1rem;
  color: var(--neutral-600);
  font-weight: 500;
}

/* Africa Section */
.africa-section {
  margin-bottom: 4rem;
}

.africa-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.africa-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.africa-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
}

.africa-image {
  text-align: center;
}

.section-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Trends Section */
.trends-section {
  margin-bottom: 4rem;
}

.trends-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.trend-card {
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.trend-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  z-index: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
}

.trend-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Specific gradient backgrounds for each trend */
.trend-sustainability {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #FFFFFF;
}

.trend-technology {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #FFFFFF;
}

.trend-resilience {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #FFFFFF;
}

.trend-icon-large {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 3rem;
  margin: 0 auto 2rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.trend-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.trend-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.trend-content {
  position: relative;
  z-index: 1;
}

.trend-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.trend-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.trend-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.trend-stats .stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.trend-stats .stat-item i {
  font-size: 2rem;
  color: #FFFFFF;
}

.trend-stats .stat-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 500;
}

/* Conclusion */
.conclusion {
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--neutral-200);
  border-radius: 20px;
}

.conclusion h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.conclusion p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--neutral-100);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1E90FF, #003087);
  border-radius: 2px;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-300);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #1E90FF;
}

.news-link h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-date {
  font-size: 0.9rem;
  color: var(--neutral-600);
  font-weight: 500;
}

/* Resources List */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--neutral-200);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.resource-item:hover {
  transform: translateX(5px);
}

.resource-icon {
  font-size: 1.5rem;
  color: #1E90FF;
  min-width: 24px;
}

.resource-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 0.3rem;
}

.resource-content p {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn.linkedin {
  background: #0077B5;
  color: #FFFFFF;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: #FFFFFF;
}

.share-btn.facebook {
  background: #4267B2;
  color: #FFFFFF;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: #000000;
  color: #FFFFFF;
  padding: 5rem 0 3rem;
  position: relative;
  z-index: 1;
  font-family: var(--font-family);
}

.footer .shade-overlay {
  background: rgba(0, 0, 0, 0.15);
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-header {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.1);
}

.footer-logo h3 {
  font-size: 2.5rem;
  margin: 0;
  color: #FFFFFF;
  font-weight: 800;
}

.footer-gks-text {
  color: #003087;
}

.footer-logistics-text {
  color: #CC3333;
}

.footer-logo p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 400px;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  color: #FFFFFF;
  font-size: 1.6rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #CC3333;
  transform: scale(1.2);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  font-weight: 700;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(45deg, #CC3333, #E55A5A);
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #CC3333;
  transition: width 0.3s ease;
}

.footer-links ul li a:hover::after {
  width: 100%;
}

.footer-links ul li a:hover {
  color: #CC3333;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  color: #FFFFFF;
  font-size: 1rem;
}

.footer-contact p a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-contact p a:hover {
  color: #CC3333;
  text-decoration: underline;
}

.footer-divider {
  height: 2px;
  background: #CC3333;
  margin: 2.5rem 0;
}

.footer-copy {
  text-align: center;
  font-size: 1rem;
  color: #FFFFFF;
  font-weight: 400;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #CC3333;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #B22222;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }
  
  .timeline-marker {
    position: absolute;
    left: 0;
  }
  
  .timeline-content {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .nav ul li {
    text-align: center;
  }

  .nav ul li a {
    color: #1A1A1A;
  }

  .article-title {
    font-size: 2.2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .africa-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trend-card {
    padding: 2rem;
  }

  .trend-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .trend-header h3 {
    font-size: 1.6rem;
  }

  .trend-stats {
    gap: 1rem;
  }

  .trend-stats .stat-item {
    min-width: 90px;
    padding: 0.75rem;
  }

  .trend-stats .stat-item i {
    font-size: 1.5rem;
  }

  .trend-stats .stat-item span {
    font-size: 0.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-logo-header {
    justify-content: center;
  }
  
  /* Better text handling on mobile */
  .article-title,
  .article-meta,
  .timeline-content h3,
  .timeline-content p,
  .metrics-card h3,
  .metrics-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-logo-img {
    width: 55px;
    height: 55px;
  }

  .footer-logo h3 {
    font-size: 2rem;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.4rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }
}
