:root {
  --primary-color: #00aeef;
  --secondary-color: #ffffff;
  --accent-color: #003366;
  --text-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

/* Header */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  border-radius: 50%;
  width: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 20px;
  color: var(--accent-color);
}

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

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

ul {
  display: inline; /* or use inline-block */
  margin: 0; /* Remove default margin from h1 */
  padding: 0; /* Remove default padding from h1 */
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--accent-color);
  font-weight: 600;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  background: url("../image/heroSec/blogHero.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.5em;
}

/* Blog Posts Overview */
.blog-posts-overview {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}
.blog-posts-overview h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}
.blog-posts-overview .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-posts-overview .post-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.blog-posts-overview .post-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}
.blog-posts-overview .post-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}
.blog-posts-overview .post-card .date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}
.blog-posts-overview .post-card p {
  margin-bottom: 15px;
}
.blog-posts-overview .post-card a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}
/* CTA Section */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  background: #007bff;
  color: #fff;
}
.cta-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.cta-section .cta-button {
  background: #28a745;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
}
/* Footer */
footer {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-list li i {
  min-width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  header nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  header nav ul.active {
    display: flex;
  }
  header nav ul li {
    margin: 10px 0;
  }
  .blog-posts-overview .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1.2em;
  }
}
