/* styles.css */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #031758;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

/* Background only for index.html */
.background-section {
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 40px 0;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
}

/* Featured image div */
.featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: inline-block;
}

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  background-color: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Header section (div or <header>) */
.header,
header {
  background-color: #1a1a2e; /* Dark navy */
  color: white;
  padding: 20px 0;
  margin-bottom: 20px;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ffd166; /* Bright yellow */
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(0,0,0,0.9);
    width: 150px;
    border-radius: 8px;
    display: none;
    padding: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }
}

/* Main content */
h2 {
  margin-bottom: 15px;
}

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

.post-excerpt img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
}

/* Post meta */
.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* Links */
.read-more {
  text-decoration: none;
  color: #2a9d8f;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* About page */
.about-container {
  text-align: center;
}

.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}



/* Contact form */
.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

.contact-container label {
  font-weight: 600;
}

.contact-container input,
.contact-container textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-container textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-container button {
  width: 150px;
  padding: 10px;
  background-color: #2a9d8f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.contact-container button:hover {
  background-color: #21867a;
}

/* Footer section (div or <footer>) */
.footer,
footer {
  background-color: #1a1a2e;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer a,
footer a {
  color: #ffd166;
  text-decoration: none;
}

.footer a:hover,
footer a:hover {
  text-decoration: underline;
}
