/*
Theme Name: Watershed Sentinel
Theme URI: https://github.com/YOUR-REPO-URL
Author: Aslam Shaik
Author URI: https://github.com/YOUR-USERNAME
Description: DGL233 Project 3 - A classic WordPress theme recreating the Watershed Sentinel environmental magazine website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, magazine, custom-menu, featured-images
Text Domain: watershedsentinel
*/

/* ======= RESET ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======= GLOBAL ======= */
body {
  font-family: Georgia, serif;
  font-size: 16px;
  color: #333;
  background: #fff;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #0a7c6e;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======= CONTAINER ======= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======= HEADER ======= */
.site-header {
  border-bottom: 1px solid #ddd;
}

.header-top {
  background: #1a1a1a;
  padding: 8px 0;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.header-top-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.header-top-nav ul li a {
  color: #fff;
  font-size: 13px;
}

.subscribe-btn {
  background: #0a7c6e;
  color: #fff !important;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 3px;
}

.header-bottom {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.header-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
  font-family: Georgia, serif;
}

.header-bottom-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.header-bottom-nav ul li a {
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======= HERO ======= */
.hero {
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
}

.hero-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.hero-featured img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-featured-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-featured-content h2 a {
  color: #1a1a1a;
}

.hero-small-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-small-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 8px;
}

.hero-small-post h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ======= CURRENT ISSUE ======= */
.current-issue {
  padding: 40px 0;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
}

.issue-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: start;
}

.issue-card img {
  width: 100%;
}

.issue-details h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.issue-date {
  color: #555;
  font-size: 14px;
  margin-bottom: 10px;
}

.issue-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.issue-btn,
.issue-download-btn {
  display: inline-block;
  padding: 8px 20px;
  margin-right: 10px;
  border-radius: 3px;
  font-size: 14px;
}

.issue-btn {
  background: #0a7c6e;
  color: #fff !important;
}

.issue-download-btn {
  border: 1px solid #0a7c6e;
  color: #0a7c6e !important;
}

/* ======= ARTICLES GRID ======= */
.articles-news {
  padding: 40px 0;
  border-bottom: 1px solid #ddd;
}

.articles-news h2 {
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0a7c6e;
  display: inline-block;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.article-card h3 a {
  color: #1a1a1a;
}

.article-card .author {
  font-size: 13px;
  color: #0a7c6e;
  display: block;
  margin-bottom: 4px;
}

.article-card .date {
  font-size: 12px;
  color: #888;
  display: block;
}

/* ======= SINGLE POST ======= */
.single-post {
  padding: 40px 0;
}

.post-single h1 {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.post-meta .author {
  color: #0a7c6e;
  margin-right: 10px;
}

.post-single img {
  width: 100%;
  margin-bottom: 24px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
}

/* ======= RELATED POSTS ======= */
.related-posts {
  padding: 40px 0;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.related-posts h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0a7c6e;
  display: inline-block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.related-card h3 {
  font-size: 14px;
  line-height: 1.4;
}

/* ======= SINGLE ISSUE ======= */
.single-issue {
  padding: 40px 0;
}

.issue-single h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.issue-single .issue-date {
  text-align: center;
  color: #555;
  margin-bottom: 16px;
}

.download-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
  background: #0a7c6e;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 3px;
}

.issue-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* ======= CONTACT ======= */
.contact {
  padding: 40px 0;
}

.contact h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-details h2 {
  font-size: 16px;
  margin-bottom: 4px;
  margin-top: 16px;
}

.contact-form h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: Georgia, serif;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form textarea {
  height: 120px;
}

.contact-form button {
  background: #0a7c6e;
  color: #fff;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

/* ======= ARCHIVE ======= */
.archive-articles {
  padding: 40px 0;
}

.archive-articles h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.archive-articles p {
  margin-bottom: 24px;
  color: #555;
}

/* ======= CONTACT FORM FIX ======= */
.contact-form .radio-group,
.contact-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ======= PAGINATION ======= */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: #333;
}

.pagination .page-numbers.current {
  background: #0a7c6e;
  color: #fff;
  border-color: #0a7c6e;
}

/* ======= PAGE CONTENT ======= */
.page-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-single h1 {
  font-size: 32px;
  margin-bottom: 24px;
}

.page-body {
  font-size: 16px;
  line-height: 1.8;
}

.page-body h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-body h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.page-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.page-body a {
  color: #0a7c6e;
  text-decoration: underline;
}

/* ======= BREADCRUMBS ======= */
.breadcrumbs {
  font-size: 13px;
  color: #888;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.breadcrumbs a {
  color: #0a7c6e;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ======= FOOTER ======= */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand a {
  font-size: 24px;
  color: #fff;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: #aaa;
  font-size: 13px;
}

.social-icons a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-nav ul li a {
  color: #aaa;
  font-size: 13px;
}

.footer-nav ul li a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  grid-column: 1 / -1;
}

/* ======= 404 ======= */
.not-found {
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.not-found a {
  color: #0a7c6e;
  text-decoration: underline;
}

/* ======= STICKY FOOTER ======= */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ======= SOCIAL ICONS ======= */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons a {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #fff;
}

/* ======= RESPONSIVE - TABLET (max-width: 1024px) ======= */
@media (max-width: 1024px) {
  .hero-small-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .issue-card {
    grid-template-columns: 150px 1fr;
  }

  .issue-layout {
    grid-template-columns: 200px 1fr;
  }
}

/* ======= RESPONSIVE - MOBILE (max-width: 768px) ======= */
@media (max-width: 768px) {
  /* Header */
  .header-top .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-bottom .container {
    flex-direction: column;
    gap: 12px;
  }

  .header-bottom-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Hero */
  .hero-featured {
    grid-template-columns: 1fr;
  }

  .hero-small-posts {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Articles grid */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Current issue */
  .issue-card {
    grid-template-columns: 1fr;
  }

  /* Single issue */
  .issue-layout {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .footer-nav ul {
    justify-content: flex-start;
    text-align: left;
  }

  /* Related posts */
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ======= RESPONSIVE - SMALL MOBILE (max-width: 480px) ======= */
@media (max-width: 480px) {
  .hero-small-posts {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-featured-content h2 {
    font-size: 20px;
  }

  .post-single h1 {
    font-size: 24px;
  }
}
