/* ================================================
   Peers and Pedagogy – Blog Theme CSS
   Reconstructed styles for aligned-2018 theme
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f7f7f7;
}

a { color: #22a469; text-decoration: none; }
a:hover { color: #1a7d50; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.3;
}

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

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* --- Site wrapper --- */
#page {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 30px 0;
}

.site-branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  position: relative;
}

.site-title {
  margin: 0;
  font-size: 0;
}
.site-title img { display: block; }
.site-title.nav-fade { display: none; }

#logo-atc {
  font-size: 0;
  display: inline-block;
  margin-left: auto;
  background: url('/static/img/logo-atc.svg') no-repeat 0 0;
  width: 180px;
  height: 14px;
  text-indent: -9999px;
}

.site-description {
  width: 100%;
  margin: 5px 0 10px;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

/* Burger (hidden on desktop) */
a.burger { display: none; }

/* --- Header Nav (category dropdowns) --- */
.header-nav {
  display: flex;
  gap: 0;
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding-top: 12px;
  margin-top: 5px;
}

.nav-category {
  position: relative;
}

.nav-link {
  padding: 0;
}

.nav-link a,
.nav-category > div:first-child > a {
  display: block;
  padding: 8px 18px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link a:hover,
.nav-category > div:first-child > a:hover {
  color: #22a469;
}

/* Hover dropdown menus */
.hoverMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 25px;
  min-width: 600px;
  max-width: 750px;
}

.nav-category:hover .hoverMenu {
  display: flex;
  gap: 25px;
}

.hoverMenu .left {
  flex: 0 0 200px;
}

.hoverMenu .left h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

.hoverMenu .left p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.hoverMenu .left a {
  font-size: 13px;
  font-weight: 600;
  color: #22a469;
}

.hoverMenu .right {
  flex: 1;
}

.hoverMenu .right h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 12px;
}

.hoverMenu .articles {
  display: flex;
  gap: 15px;
}

.hoverMenu .mobile-carousel {
  display: flex;
  gap: 15px;
}

.hoverMenu .mobile-carousel .dummy { display: none; }

.hoverMenu article.card.header {
  flex: 0 0 150px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hoverMenu article.card.header .post-thumbnail {
  height: 90px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 8px;
}

.hoverMenu article.card.header .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hoverMenu article.card.header .entry-box { padding: 0; }

.hoverMenu article.card.header .entry-title {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.hoverMenu article.card.header .entry-title a {
  color: #333;
}

.hoverMenu article.card.header .entry-title a:hover {
  color: #22a469;
}

/* --- Top nav bar (Submissions / About) --- */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e8e8e8;
}

#flat-navigation { display: none; }

.menu {
  display: flex;
  gap: 5px;
}

.menu-item a {
  display: block;
  padding: 6px 14px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.menu-item a:hover {
  background: #f0f9f5;
  color: #22a469;
}

.search-toggle {
  margin-left: auto;
  cursor: pointer;
  color: #888;
  font-size: 16px;
  padding: 6px 10px;
}

/* Search box */
.search-box-wrapper {
  display: none;
  padding: 10px 0;
}

.search-field {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-submit {
  padding: 10px 20px;
  background: #22a469;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
}

/* ================================================
   MOBILE NAV (hidden on desktop)
   ================================================ */
.mobile-nav { display: none; }
#mobile-logo-atc { display: none; }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s;
  padding: 20px;
}

.mobile-nav.active .mobile-nav-backdrop { display: block; }
.mobile-nav.active .mobile-nav-drawer { transform: translateX(0); }

.mobile-nav-header button.close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.site-content {
  padding: 0;
}

.home-container {
  padding: 30px;
}

/* --- HOME TOP: Featured + Popular --- */
.home-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  margin-bottom: 40px;
}

/* Featured article (big card) */
.home-featured h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 15px;
  font-weight: 600;
}

article.big.card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

article.big.card .post-thumbnail {
  width: 100%;
}

article.big.card .post-thumbnail img {
  width: 100%;
  display: block;
  opacity: 0.75;
  transition: opacity 0.3s;
}

article.big.card:hover .post-thumbnail img {
  opacity: 0.6;
}

article.big.card .entry-box {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

article.big.card .entry-title {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

article.big.card .entry-title a { color: #fff; }
article.big.card .entry-title a:hover { color: #e0e0e0; }

article.big.card .entry-summary {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 8px;
}

article.big.card .entry-meta {
  font-size: 12px;
  color: #bbb;
}

/* Popular articles sidebar */
.home-top > aside {
  border-left: 1px solid #eee;
  padding-left: 25px;
}

.home-top > aside > h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 15px;
  font-weight: 600;
}

article.popular {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

article.popular:last-child { border-bottom: none; }

article.popular .post-thumbnail {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

article.popular .entry-box {
  flex: 1;
}

article.popular .entry-title {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}

article.popular .entry-title a { color: #333; }
article.popular .entry-title a:hover { color: #22a469; }

/* ================================================
   HOME MIDDLE: Latest Posts Grid
   ================================================ */
.home-middle {
  margin-bottom: 40px;
}

.home-middle > h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Filters bar */
.filters {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.form-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-wrapper p {
  margin: 0;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filters a {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.filters a:hover {
  background: #f0f9f5;
  color: #22a469;
}

.filters a.active {
  background: #22a469;
  color: #fff;
}

.sort-select select,
#orderby {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  background: #fff;
}

/* Posts grid */
.home-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Card styles */
article.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

article.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

article.card > .post-thumbnail {
  height: 200px;
  overflow: hidden;
}

article.card > .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

article.card:hover > .post-thumbnail img {
  transform: scale(1.05);
}

article.card > .entry-box {
  padding: 20px;
}

article.card .entry-series {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #22a469;
  margin-bottom: 6px;
  font-weight: 600;
}

article.card .entry-title {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 700;
}

article.card .entry-title a { color: #333; }
article.card .entry-title a:hover { color: #22a469; }

article.card .entry-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}

article.card .entry-summary span {
  display: block;
}

article.card .entry-meta {
  font-size: 12px;
  color: #999;
}

/* Load More button */
.loadmore {
  text-align: center;
  margin-top: 30px;
}

.loadmore a {
  display: inline-block;
  padding: 12px 40px;
  border: 2px solid #22a469;
  border-radius: 30px;
  color: #22a469;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.loadmore a:hover {
  background: #22a469;
  color: #fff;
}

/* ================================================
   HOME BOTTOM: About + Newsletter
   ================================================ */
.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.home-about,
#signup-mailchimp-footer {
  text-align: center;
  padding: 30px;
}

.home-about img,
#signup-mailchimp-footer img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.home-about h3,
#signup-mailchimp-footer h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.home-about p,
#signup-mailchimp-footer p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.home-about > a {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #22a469;
  border-radius: 30px;
  color: #22a469;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.home-about > a:hover {
  background: #22a469;
  color: #fff;
}

/* Mailchimp form */
.mc4wp-form .mc4wp-form-fields {
  display: flex;
  gap: 0;
  justify-content: center;
}

.mc4wp-form .mc4wp-form-fields p {
  display: flex;
  gap: 0;
  margin: 0;
}

.mc4wp-form input[type="email"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  width: 220px;
}

.mc4wp-form input[type="submit"] {
  padding: 10px 20px;
  background: #22a469;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.mc4wp-form input[type="submit"]:hover {
  background: #1a7d50;
}

/* ================================================
   FOOTER (shared with main site)
   ================================================ */
footer {
  background: #f9f9f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-top: 1px solid #e0e0e0;
}

#footer-top {
  overflow: auto;
  margin: 0;
  padding: 40px 30px;
  list-style: none;
}

#footer-top a { color: #858685; }
#footer-top a:hover { color: #22a469; }

#footer-top > li {
  float: right;
  width: 50%;
  margin-bottom: 0;
  text-align: right;
}

#footer-top > li:first-child { float: left; text-align: left; }

#footer-top h1 {
  overflow: hidden;
  display: block;
  width: 140px;
  height: 56px;
  margin-bottom: 50px;
  background: transparent url('/static/img/logo-sap.svg') no-repeat 0 0;
  text-indent: -9999px;
}

#footer-top h3 {
  margin-bottom: 0;
  color: #50524f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#footer-nav ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

#footer-nav ul li { margin-bottom: 5px; }

#footer-bottom {
  overflow: auto;
  margin: 0; padding: 0;
  list-style: none;
  background-color: #50524f;
}

#footer-bottom > li {
  float: right;
  margin-bottom: 0;
}

#footer-bottom > li:first-child { float: left; }

#footer-bottom a {
  color: #fff;
  text-decoration: none;
}

#footer-bottom a:hover { opacity: 0.84; }

#footer-policies {
  display: flex;
  margin-left: 28px;
  font-size: 12px;
}

#footer-policies li {
  padding: 0 14px;
  line-height: 60px;
}

#footer-social {
  display: flex;
  margin-top: 20px;
  margin-right: 30px;
}

#footer-social li { padding: 0 10px; }

#footer-social a {
  overflow: hidden;
  display: block;
  width: 16px; height: 16px;
  text-indent: -9999px;
  background: transparent no-repeat 0 0;
}

.show-mobile { display: none; }

/* ================================================
   SINGLE POST / PAGE
   ================================================ */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
}

/* When it's the homepage, override the max-width */
.home-container {
  max-width: none;
}

/* Hero section */
.entry-hero {
  margin-bottom: 30px;
}

.entry-hero .post-categories a {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #22a469;
  font-weight: 600;
  margin-bottom: 10px;
}

.entry-hero h1.entry-title {
  font-size: 36px;
  line-height: 1.2;
  color: #222;
  margin-bottom: 10px;
}

.entry-hero > p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.entry-hero-img {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-top: 15px;
}

/* Single post header (author + meta + share) */
.content-area > main > article > .entry-header {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.author-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.entry-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.entry-byline {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.posted-on {
  font-size: 13px;
  color: #999;
}

.posted-on time.updated { display: none; }

/* Share buttons */
.share {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}

.share a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 13px;
}

.share a:hover { color: #22a469; }

.share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share .share-opener span,
.print-container .print-opener span {
  font-size: 13px;
}

.print-container {
  display: inline-flex;
  margin-left: 5px;
}

.print-container a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

.print-container a:hover { color: #22a469; }

.print-container svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Entry content (article body) */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.entry-content h2 {
  font-size: 26px;
  margin-top: 35px;
  margin-bottom: 15px;
  color: #222;
}

.entry-content h3 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #222;
}

.entry-content h4 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
}

.entry-content p {
  margin-bottom: 18px;
}

.entry-content a {
  color: #22a469;
  text-decoration: underline;
}

.entry-content a:hover { color: #1a7d50; }

.entry-content blockquote {
  border-left: 4px solid #22a469;
  margin: 25px 0;
  padding: 15px 25px;
  background: #f9fdfb;
  font-style: italic;
  color: #444;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #888;
  font-style: normal;
}

.entry-content ul,
.entry-content ol {
  margin: 15px 0 20px 25px;
  padding: 0;
}

.entry-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.entry-content ol li {
  list-style: decimal;
}

.entry-content img {
  border-radius: 4px;
  margin: 15px 0;
}

.entry-content figure {
  margin: 20px 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.entry-content th,
.entry-content td {
  padding: 10px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.entry-content th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.post-navigation a {
  font-size: 14px;
  color: #22a469;
  font-weight: 600;
}

/* Related posts section */
.related-articles {
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.related-articles h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 20px;
}

/* Page template (.page body class) */
.page .entry-content {
  padding: 0;
}

.page .entry-header h1.entry-title {
  font-size: 32px;
  margin-bottom: 20px;
}

/* Category pages */
.category .content-area { max-width: none; }

/* ================================================
   EMAIL MODAL
   ================================================ */
.emailModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.emailModal #signup-mailchimp-footer {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  position: relative;
}

.emailModal button.close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .home-top {
    grid-template-columns: 1fr;
  }

  .home-top > aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }

  .home-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header { padding: 15px; }

  .header-nav { display: none; }

  a.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
  }

  a.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
  }

  .mobile-nav { display: block; }
  #mobile-logo-atc {
    display: block;
    font-size: 0;
    text-indent: -9999px;
    background: url('/static/img/logo-atc.svg') no-repeat 0 0;
    width: 150px; height: 12px;
    margin: 10px 0;
  }

  .home-container { padding: 15px; }

  .home-posts {
    grid-template-columns: 1fr;
  }

  .home-bottom {
    grid-template-columns: 1fr;
  }

  article.big.card .entry-title { font-size: 18px; }

  .hoverMenu { display: none !important; }

  .filters {
    flex-wrap: wrap;
  }

  #footer-top > li {
    float: none;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
  }

  #footer-bottom > li { float: none; }

  #footer-policies {
    flex-wrap: wrap;
    margin-left: 15px;
  }

  #footer-social {
    margin: 15px;
  }

  .show-mobile { display: list-item; }
}

@media (max-width: 480px) {
  article.popular {
    flex-direction: column;
    align-items: flex-start;
  }

  article.popular .post-thumbnail {
    width: 100%;
    height: 120px;
    flex: none;
  }
}
