body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: white;
  box-sizing: border-box;
}
HEADER .title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
}

.main-header {
  text-align: center;
  color: gold;
  border: 2px solid gold;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.1);
  padding: 8px;
  margin: 0px auto;
  max-width: 700px;
}

h1 {
  margin: 0;
  font-size: 2.3em; /* subtle increase */
}

h1 {
  font-family: "Iceberg", cursive;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 12px;
  background: #1e293b;
  border-bottom: 2px solid gold;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 480px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .navbar a {
    font-size: 13px;
  }
}

.navbar a:hover,
.navbar a:focus,
.navbar a:active {
  color: gold;
}

.search-box {
  text-align: center;
  margin: 15px;
}

.search-box input {
  padding: 8px;
  width: 60%;
  border: none;
  border-radius: 8px;
}

.search-box button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: gold;
  cursor: pointer;
  font-weight: bold;
}

.post {
  background: #1e293b;
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
}

.post img {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}

.post-actions {
  margin-top: 15px;
}

.post-actions button {
  padding: 8px 12px;
  margin-right: 8px;
  background: gold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* FOOTER */
.social-footer {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #1e293b;
  border-top: 2px solid gold;
}

.social-footer h3 {
  color: gold;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.social-links a {
  color: white;
  text-decoration: none;
  border: 1px solid gold;
  padding: 8px 12px;
  border-radius: 8px;
}

.social-links a:hover {
  background: gold;
  color: black;
}

.copy {
  margin-top: 15px;
}

.post p {
  line-height: 1.7;
  font-size: 16px;
  color: #e2e8f0;
  margin-top: 12px;
}

.post p {
  white-space: pre-line;
  line-height: 1.6;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 10px;
}

.post h3 {
  text-align: left;
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
  word-wrap: break-word;
}

.post p {
  text-align: left;
  line-height: 1.6;
  font-size: 16px;
  word-wrap: break-word;
  white-space: pre-line;
}

.post {
  text-align: left;
}

.post small {
  display: block;
  margin-top: 10px;
  color: #cbd5e1;
}

/* General navbar link styling */
.navbar a {
  border-radius: 6px;
  padding: 5px 10px;
  text-decoration: none;
  margin: 0 5px;
  display: inline-block;
  font-weight: bold;
  transition: 0.3s ease;
}

/* First link = HOME */
.navbar a:nth-child(1) {
  border: 2px solid #2563eb; /* sky blue */
  color: #ffffff;
}

/* Second link = Football News */
.navbar a:nth-child(2) {
  border: 2px solid #2563eb; /* yellow */
  color: #ffffff;
  background: rgba(250, 204, 21, 0.1); /* subtle yellow highlight */
}

/* Third link = Transfer News */
.navbar a:nth-child(3) {
  border: 2px solid #2563eb; /* orange */
  color: #ffffff;
  background: rgba(249, 115, 22, 0.1);
}

/* Fourth link = Match Reports */
.navbar a:nth-child(4) {
  border: 2px solid #2563eb; /* purple */
  color: #ffffff;
  background: rgba(168, 85, 247, 0.1);
}

/* Fifth link = Match Prediction */
.navbar a:nth-child(5) {
  border: 2px solid #2563eb; /* green */
  color: #ffffff;
  background: rgba(34, 197, 94, 0.1);
}

/* Sixth link = Trending News */
.navbar a:nth-child(6) {
  border: 2px solid #2563eb; /* red */
  color: #ffffff;
  background: rgba(239, 68, 68, 0.1);
}

/* Hover effect for all links */
.navbar a:hover {
  background: gold;
  color: black;
  border-color: white;
}

footer .policy-links {
  display: block;
  max-width: 250px;
  margin: 0;
  padding: 0;
  border: 1px solid #444;
}

footer .policy-links a {
  display: block;
  padding: 12px;
  font-size: 16px;
  color: #0f172a;
  background: #f9fafb;
  border-bottom: 1px solid #444;
  text-decoration: underline;
  font-weight: bold;
  text-align: left;
  margin: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

footer .policy-links a:last-child {
  border-bottom: none;
}

footer .policy-links a:hover {
  background: #e5e7eb;
  color: #000;
}

/* Apply slow shake animation to all nav links */
.navbar a {
  display: inline-block;
  animation: slowShake 6s infinite ease-in-out; /* very slow cycle */
}

/* Stagger each link with delays so they shake one after the other */
.navbar a:nth-child(1) {
  animation-delay: 0s;
}
.navbar a:nth-child(2) {
  animation-delay: 1s;
}
.navbar a:nth-child(3) {
  animation-delay: 2s;
}
.navbar a:nth-child(4) {
  animation-delay: 3s;
}
.navbar a:nth-child(5) {
  animation-delay: 4s;
}
.navbar a:nth-child(6) {
  animation-delay: 5s;
}

/* Define a subtle shake motion */
@keyframes slowShake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Apply slow shake animation to all social links */
.social-links a {
  display: inline-block;
  animation: slowShake 6s infinite ease-in-out; /* very slow cycle */
}

/* Stagger each link with delays so they shake one after the other */
.social-links a:nth-child(1) {
  animation-delay: 0s;
}
.social-links a:nth-child(2) {
  animation-delay: 1s;
}
.social-links a:nth-child(3) {
  animation-delay: 2s;
}
.social-links a:nth-child(4) {
  animation-delay: 3s;
}
.social-links a:nth-child(5) {
  animation-delay: 4s;
}

/* Define a subtle shake motion */
@keyframes slowShake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Blink animation for footer heading */
.social-footer h3 {
  animation: blinkText 2s infinite; /* slow blink, repeats forever */
}

/* Define the blink effect */
@keyframes blinkText {
  0%,
  100% {
    opacity: 1;
  } /* fully visible */
  50% {
    opacity: 0;
  } /* invisible */
}

/* Rotate the logo infinitely */
.logo {
  display: inline-block;
  animation: rotateLogo 10s linear infinite; /* slow rotation */
}

/* Define the rotation keyframes */
@keyframes rotateLogo {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.copy {
  display: inline-block;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffcc00; /* professional gold tone */
  animation: slideLoop 10s ease-in-out infinite;
}

/* Keyframes for sliding left → center → right */
@keyframes slideLoop {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  } /* start off left */
  30% {
    transform: translateX(0);
    opacity: 1;
  } /* arrive center */
  50% {
    transform: translateX(0);
    opacity: 1;
  } /* pause at center */
  80% {
    transform: translateX(100%);
    opacity: 0;
  } /* exit to right */
  100% {
    transform: translateX(100%);
    opacity: 0;
  } /* stay off right */
}
