/* 
  BirdWatch Explorer - Main Stylesheet
  A comprehensive CSS file for a bird watching blog
*/

/* ===== Base Styles ===== */
:root {
  --primary-color: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --accent-color: #ff9800;
  --accent-light: #ffb74d;
  --accent-dark: #f57c00;
  --text-color: #333333;
  --text-light: #757575;
  --bg-color: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #e0e0e0;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --info: #2196f3;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

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

section {
  padding: 5rem 0;
}

/* ===== Button Styles ===== */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

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

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== Header & Navigation ===== */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

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

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

nav li {
  margin: 0 0 0 2rem;
}

nav a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/1.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 8rem 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/7.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.page-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.page-banner p {
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Featured Posts Section ===== */
.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

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

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* ===== Beginners Guide Section ===== */
.beginners-guide {
  background-color: var(--bg-light);
}

.beginners-header {
  text-align: center;
  margin-bottom: 3rem;
}

.beginners-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.beginners-image {
  flex: 1;
}

.beginners-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.beginners-text {
  flex: 1;
}

.beginners-text ul {
  list-style: none;
  padding: 0;
}

.beginners-text li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.beginners-text .icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.beginners-text .btn-primary {
  margin-top: 1rem;
}

/* ===== This Day in History Section ===== */
.this-day-history h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.history-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.history-image {
  flex: 1;
}

.history-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.history-text {
  flex: 1;
}

.history-text h3 {
  margin-bottom: 1.5rem;
}

.history-text ul {
  list-style: none;
  padding: 0;
}

.history-text li {
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-light);
  padding-left: 1rem;
}

.history-text strong {
  color: var(--primary-dark);
}

/* ===== Newsletter Section ===== */
.newsletter {
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ===== About Page ===== */
.about-story {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.team-section {
  background-color: var(--bg-light);
}

.team-section h2, .section-intro {
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--primary-light);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--primary-color);
  transition: var(--transition);
}

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

.achievements {
  padding: 5rem 0;
}

.achievements h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.achievement-card h3 {
  margin-bottom: 0.8rem;
}

.testimonials {
  background-color: var(--bg-light);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  text-align: right;
}

/* ===== Blog Page ===== */
.blog-content {
  padding: 5rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-post {
  display: flex;
  gap: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-image {
  flex: 1;
  min-width: 300px;
}

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

.post-content {
  flex: 2;
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.post-category {
  background-color: var(--primary-light);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.post-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.post-excerpt {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--primary-light);
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--bg-dark);
  border-radius: var(--border-radius);
}

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: white;
  cursor: pointer;
}

.categories-widget ul {
  list-style: none;
  padding: 0;
}

.categories-widget li {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--bg-dark);
  padding-bottom: 0.8rem;
}

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

.categories-widget a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popular-posts {
  list-style: none;
  padding: 0;
}

.popular-posts li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.popular-posts li:last-child {
  margin-bottom: 0;
}

.popular-post-image {
  flex-shrink: 0;
}

.popular-post-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.popular-post-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--bg-light);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tag-cloud a:hover {
  background-color: var(--primary-light);
  color: white;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 5rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  background-color: var(--primary-light);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 0.3rem;
}

.social-connect {
  margin-top: 3rem;
}

.social-connect h4 {
  margin-bottom: 1rem;
}

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

.contact-form-wrapper {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.contact-form-wrapper h3 {
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--bg-dark);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input {
  width: auto;
}

.map-section {
  margin-top: 5rem;
}

.map-section h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ===== Post Content Page ===== */
.post-content {
  padding: 5rem 0;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header .post-meta {
  margin-bottom: 1.5rem;
}

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

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

.post-body h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.post-body h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.post-body ul, .post-body ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.8rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark);
}

.post-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-tags a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--bg-light);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-light);
  color: white;
}

.post-share {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.prev-post, .next-post {
  flex: 1;
}

.next-post {
  text-align: right;
}

.nav-label {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.nav-title {
  font-weight: 600;
  color: var(--primary-dark);
}

.related-posts {
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: var(--border-radius);
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.related-post h4 {
  margin-bottom: 0.5rem;
}

.related-post p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Footer ===== */
footer {
  background-color: #1a472a;
  color: white;
  padding: 5rem 0 2rem;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.footer-logo h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4 {
  color: white;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact .icon {
  flex-shrink: 0;
}

footer .social-links {
  justify-content: center;
  margin-bottom: 2rem;
}

footer .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

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

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-policy {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookie-policy a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  position: relative;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thank-you-icon {
  background-color: var(--success);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .beginners-content, .history-content, .about-content {
    flex-direction: column;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 0.5rem 1rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    flex-direction: column;
  }
  
  .post-image {
    min-width: auto;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .post-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 2rem;
  }
  
  .next-post {
    text-align: left;
  }
}
