/* Wrap page content with a max-width for better large screen layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Reset default margin and padding, apply font */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
	background-color: #fff;
}

/* Optional: also reset for all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Navbar */
nav {
    background: #222;
    color: #ffd700;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
	font-size: 45px ;
	
}

/* Search Bar */
.search-container {
    width: 90%; /* Make it responsive */
    max-width: 600px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.search-container input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 25px;
    border: none;
    font-size: 18px;
    background-color: #f1f1f1;
    color: #555;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 10px 0 0 0; /* Add margin to space it below the search bar */
    justify-content: center;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
}

/* Make navbar items wrap properly on smaller screens */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

   /* Home page styles */
.home-container {
    width: 90%;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
}

/* Posts Grid Section */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    color: #222;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #ff9900;
    text-decoration: none;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* "You Might Also Like" Section */
.like-section {
    margin-top: 20px;
    font-size: 1rem;
    color: #ff9900;
    font-weight: bold;
}

/* Tags Section */
.tags-section {
    margin-top: 50px;
    padding: 30px 0;
    background-color: #f4f4f4;
}

.tags-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Tags Section */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.tag {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #e68900;
}


/* Posts Section */
.posts-section {
    margin-top: 50px;
    padding: 30px 0;
}

.posts-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.post-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-item h3 {
    font-size: 1.25rem;
    margin-top: 10px;
    color: #222;
}

.post-item p {
    color: #555;
}

.related-articles {
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.related-articles h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.related-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.related-card:hover {
  transform: scale(1.05);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card h3 {
  font-size: 1em;
  padding: 10px;
  text-align: center;
  color: #444;
}

.related-card a {
  text-decoration: none;
  color: inherit;
}

.category-page {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.category-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.post {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.post h2 a {
    color: #007bff;
    text-decoration: none;
}

.post h2 a:hover {
    text-decoration: underline;
}

/* Categories Page Styling */
.category-page {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.category-page h1 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.category-page .post {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.category-page .post h2 a {
    color: #007bff;
    text-decoration: none;
}

.category-page .post h2 a:hover {
    text-decoration: underline;
}

/* Tags Page Styling */
.tag-page {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: #eef6ff;
    border-radius: 8px;
}

.tag-page h1 {
    text-align: center;
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 20px;
}

.tag-page .post {
    border-bottom: 1px solid #bbb;
    padding: 15px 0;
}

.tag-page .post h2 a {
    color: #ff6600;
    text-decoration: none;
}

.tag-page .post h2 a:hover {
    text-decoration: underline;
}



.taxonomy-page {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.taxonomy-page h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.taxonomy-page .post {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.taxonomy-page .post h2 a {
    color: #007bff;
    text-decoration: none;
}

.taxonomy-page .post h2 a:hover {
    text-decoration: underline;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.tag-list a {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.tag-list a:hover {
    background: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
    line-height: 1.7;
    font-size: 18px;
    color: #333;
}


.article-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

h2 a {
    text-decoration: none;
    color: #333;
}

.summary {
    font-size: 16px;
    color: #661;
}

.read-more {
    font-size: 17px; /* Increase or decrease this value as needed */
    font-weight: bold; /* Optional: to make it bolder */
    color:  Pale Turquoise ; /* Optional: change the color of the text */
    text-decoration: none; /* Optional: remove underline */
}

.read-more:hover {
    color: #0056b3; /* Optional: add hover effect */
    text-decoration: underline; /* Optional: underline on hover */
}


/* Rainbow gradient background */
.about-container {
    text-align: center;
    padding: 50px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffee, #2b65ff, #8000ff);
    background-size: 400% 400%;
    animation: rainbowBackground 8s infinite linear;
    color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Rainbow animation */
@keyframes rainbowBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sparkle effect */
@keyframes sparkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 8px white;
    animation: sparkle 1s infinite ease-in-out;
}

/* Title pops in */
.about-title {
    font-size: 3rem;
    font-weight: bold;
    animation: popIn 1s ease-in-out;
}

/* Pop-in animation */
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
