/* Main Styles for The Gambia Network Blog */
:root {
  --primary-dark-blue: #0a0a4a;
  --secondary-dark-blue: #0f0f5f;
  --cyan: #00c8d0;
  --light-cyan: #7eeef5;
  --yellow: #ffd700;
  --orange: #ff7f00;
  --red: #ff3030;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-color: #333333;
  --link-color: #00c8d0;
  --link-hover: #ff7f00;
}

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

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--primary-dark-blue);
  color: var(--white);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 60px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.site-subtitle {
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--cyan);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--cyan);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 500px;
  background-color: var(--primary-dark-blue);
  background-image: url('../images/geometric-pattern.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 74, 0.8) 0%, rgba(15, 15, 95, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(0, 200, 208, 0.5));
  }
  to {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 200, 208, 0.8));
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-cyan);
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--cyan), var(--light-cyan));
  color: var(--primary-dark-blue);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 200, 208, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 200, 208, 0.5);
  background: linear-gradient(to right, var(--orange), var(--yellow));
}

/* Main Content Area */
.main-content {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
}

.blog-posts {
  flex: 2;
  min-width: 300px;
  padding-right: 30px;
}

.sidebar {
  flex: 1;
  min-width: 250px;
}

/* Blog Post Cards */
.post-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.post-content {
  padding: 20px;
}

.post-category {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--cyan);
  color: var(--white);
  font-size: 0.8rem;
  border-radius: 15px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.post-excerpt {
  color: var(--text-color);
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.read-more {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-dark-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: var(--orange);
}

/* Sidebar Widgets */
.widget {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cyan);
  color: var(--primary-dark-blue);
}

/* Search Widget */
.search-form {
  display: flex;
}

.search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.search-button {
  padding: 10px 15px;
  background-color: var(--primary-dark-blue);
  color: var(--white);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--cyan);
}

/* Categories Widget */
.categories-list {
  list-style: none;
}

.categories-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.categories-list a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
}

.categories-list a:hover {
  color: var(--cyan);
}

.category-count {
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
}

.newsletter-input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.newsletter-button {
  padding: 10px;
  background: linear-gradient(to right, var(--cyan), var(--light-cyan));
  color: var(--primary-dark-blue);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background: linear-gradient(to right, var(--orange), var(--yellow));
}

/* Recent Posts Widget */
.recent-posts-list {
  list-style: none;
}

.recent-post-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post-image {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.recent-post-info a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-info a:hover {
  color: var(--cyan);
}

.recent-post-date {
  font-size: 0.8rem;
  color: #777;
}

/* Social Media Widget */
.social-links {
  display: flex;
  justify-content: space-between;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-dark-blue);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.facebook:hover {
  background-color: #3b5998;
}

.social-link.twitter:hover {
  background-color: #1da1f2;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin:hover {
  background-color: #0077b5;
}

.social-link.youtube:hover {
  background-color: #ff0000;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination-link {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background-color: var(--white);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
  background-color: var(--cyan);
  color: var(--white);
}

/* Single Post Page */
.single-post {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.single-post-image {
  height: 400px;
  background-size: cover;
  background-position: center;
}

.single-post-content {
  padding: 30px;
}

.single-post-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.single-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #777;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-date {
  margin-left: 20px;
}

.single-post-body {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post-body p {
  margin-bottom: 20px;
}

.single-post-body h2,
.single-post-body h3 {
  margin: 30px 0 15px;
  color: var(--dark-gray);
}

.single-post-body ul,
.single-post-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.single-post-body li {
  margin-bottom: 10px;
}

.single-post-body img {
  max-width: 100%;
  border-radius: 5px;
  margin: 20px 0;
}

.single-post-body blockquote {
  border-left: 4px solid var(--cyan);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.post-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--light-gray);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.post-tag:hover {
  background-color: var(--cyan);
  color: var(--white);
}

/* Comments Section */
.comments-section {
  margin-top: 50px;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--dark-gray);
}

.comment {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.comment-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.comment-text {
  margin-bottom: 10px;
}

.comment-reply {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--light-gray);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.comment-reply:hover {
  background-color: var(--cyan);
  color: var(--white);
}

/* Comment Form */
.comment-form {
  margin-top: 50px;
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
}

.comment-form-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 200, 208, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-comment {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--cyan), var(--light-cyan));
  color: var(--primary-dark-blue);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.submit-comment:hover {
  background: linear-gradient(to right, var(--orange), var(--yellow));
}

/* Footer */
footer {
  background-color: var(--primary-dark-blue);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  color: var(--cyan);
}

.footer-links h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--cyan);
  bottom: -10px;
  left: 0;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--cyan);
}

.footer-contact {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--cyan);
}

.footer-social-links {
  display: flex;
  margin-top: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--cyan);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Geometric Background Elements */
.geometric-element {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .header-content {
    padding: 0 20px;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-dark-blue);
    transition: left 0.3s ease;
    z-index: 999;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .main-content {
    flex-direction: column;
  }
  
  .blog-posts {
    padding-right: 0;
  }
  
  .single-post-title {
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Network Node Animation */
.network-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--cyan);
  border-radius: 50%;
  z-index: 1;
}

.network-line {
  position: absolute;
  height: 1px;
  background-color: rgba(0, 200, 208, 0.3);
  z-index: 0;
  transform-origin: left center;
}

/* Floating Elements Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 4s ease-in-out infinite;
}

.float-delay-1 {
  animation-delay: 1s;
}

.float-delay-2 {
  animation-delay: 2s;
}
