/*
Theme Name: WS Support
Author: Giannis Papathanasiou
Author URI: https://giannispapathanasiou.gr
Description: A minimal custom WordPress theme for support blogging.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wssupport
*/

/* === Global Styles === */
body {
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  background-color: #ededed;
  color: #000;
  margin: 0;
}

p {
  font-size: 1rem;
  line-height: 1.6rem;
  color: #000;
}

a {
  text-decoration: none;
  color: #000;
}

ul li {
  margin: 5px 0 10px;
  line-height: 24px;
}

hr {
  margin: 5rem 0;
}

/* === Layout Container === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }
}

/* === Header === */
.header-container {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 1.5rem 2rem 1.5rem 1.8rem;
}

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

.site-logo-support {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 200px;
  height: auto;
  display: block;
}

.support-label {
  font-size: 1.8rem;
  font-weight: 300;
  color: #000;
}

.site-email {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Header Mobile */
@media (max-width: 768px) {
  .header-container {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }

  .header-wrapper {
    display: block;
    text-align: center;
  }

  .site-logo-support {
    justify-content: center;
    margin-bottom: 40px;
  }

  .logo-link img {
    width: 180px;
  }

  .support-label {
    font-size: 1.2rem;
  }
}

/* === Category Section === */
.category-block {
  margin-bottom: 12rem;
}

.category-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.category-description p {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 2.5rem 0 3rem;
  max-width: 768px;
}

/* Category Mobile */
@media (max-width: 768px) {
  .category-title {
    font-size: 2rem;
  }

  .category-description p {
    font-size: 1.2rem;
    line-height: 1.7rem;
    margin: 2rem 0 2.5rem;
  }
}

/* === Post Grid === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.post-card {
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  transition: box-shadow 0.3s ease;
  width: 100%;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Alternating background colors */
.post-card:nth-child(5n+1) { background-color: #ffefef; }
.post-card:nth-child(5n+2) { background-color: #efffff; }
.post-card:nth-child(5n+3) { background-color: #f0fff4; }
.post-card:nth-child(5n+4) { background-color: #fff8e1; }
.post-card:nth-child(5n+5) { background-color: #f4f0ff; }

.post-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

/* Posts Mobile */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.special-category-section {
  background-color: #001122; /* dark blue */
  padding: 3rem 0;
}

.special-category-section .category-title,
.special-category-section .category-description p {
  color: #fff; /* ensure white text */
}

/* Keep the container styles consistent inside */
.special-category-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  overflow-x: auto;
}

th,
td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:hover {
  background-color: #f5f5f5;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

/* === Footer === */
footer {
  background-color: #f8f8f8;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  color: #333;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left p {
  margin: 0;
  font-weight: 400;
}

.footer-left strong {
  font-weight: 700;
}

.footer-right a {
  color: #333;
  text-decoration: none;
  margin-left: 0.5rem;
}

.footer-right a:first-child {
  margin-left: 0;
}

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

/* Footer Mobile */
@media (max-width: 768px) {
  .footer-wrapper {
    display: block;
    text-align: center;
  }

  .footer-right {
    margin-top: 30px;
  }
}

/* === Helpers === */
.break-link {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.who {
	display: flex;
	align-items: center;
}
.who img {
	border-radius: 50%;
	max-width: 120px;
	margin-right: 15px;
}