/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: white;
}

/* Header */
#branding {
  background: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#header-image a {
  display: block;
}

#header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
#access {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

#access ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

#access li {
  position: relative;
}

#access a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: block;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#access a:hover {
  color: #3498db;
  background: rgba(255,255,255,0.1);
}

/* Dropdown Styles */
.menu-item-has-children {
  position: relative;
}

/* Hide sub-menu by default */
.menu-item-has-children .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c3e50;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 4px;
  padding: 0.5rem 0;
  margin-top: 0;
  list-style: none;
}

/* Show sub-menu on hover */
.menu-item-has-children:hover .sub-menu {
  display: block !important;
}

.sub-menu .menu-item {
  display: block;
  margin: 0;
}

.sub-menu .menu-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: normal;
}

.sub-menu .menu-item a:hover {
  background: #34495e;
  color: #3498db;
}

.dropdown .children li {
  display: block;
  margin: 0;
}

.dropdown .children a {
  display: block;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: normal;
  border-radius: 0;
  transition: all 0.3s ease;
}

.dropdown .children a:hover {
  background: #34495e;
  color: #3498db;
}

/* Main Content */
main {
  min-height: 80vh;
  background: white;
}

/* Content Styles */
.page-content, .category-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  color: #333;
}

.page-content h1, .category-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  background: transparent;
}

.page-content h2, .category-page h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  color: #34495e;
  background: transparent;
}

.page-content h3, .category-page h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  color: #34495e;
  background: transparent;
}

.page-content p, .category-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #333;
  background: transparent;
}

/* Image Styles */
.page-content img, .category-page img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
}

.page-content ul, .category-page ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-content li, .category-page li {
  margin-bottom: 0.5rem;
  color: #333;
  background: transparent;
}

.page-content a, .category-page a {
  color: #3498db;
  text-decoration: none;
}

.page-content a:hover, .category-page a:hover {
  text-decoration: underline;
}

/* Post Styles */
.post {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  background: white;
}

.post:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 1.5rem;
  background: transparent;
}

.entry-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: transparent;
}

.entry-title a {
  color: #2c3e50;
  text-decoration: none;
  background: transparent;
}

.entry-title a:hover {
  color: #3498db;
}

.entry-meta {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: transparent;
}

.entry-meta .sep {
  margin: 0 0.25rem;
  background: transparent;
}

.entry-meta .by-author {
  background: transparent;
}

.entry-meta .author {
  background: transparent;
}

.entry-content {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #333;
  background: white;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  color: #2c3e50;
  background: transparent;
}

.entry-content p {
  color: #333;
  background: transparent;
}

/* Post Meta Styles */
.post-meta {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.post-meta .category {
  background: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: bold;
}

.post-meta .date {
  margin-left: 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  background: transparent;
}

.page-title {
  font-size: 2rem;
  color: #2c3e50;
  margin: 0;
  background: transparent;
}

.page-title span {
  color: #3498db;
  background: transparent;
}

/* Category Links */
.entry-meta .cat-links {
  color: #6c757d;
  font-size: 0.875rem;
  background: transparent;
}

.entry-meta .cat-links a {
  color: #3498db;
  text-decoration: none;
  background: transparent;
}

.entry-meta .cat-links a:hover {
  text-decoration: underline;
}

/* Read More Link */
.read-more {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}

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

/* Image Size Classes */
.page-content .small-image {
  max-width: 300px !important;
}

.page-content .medium-image {
  max-width: 500px !important;
}

.page-content .large-image {
  max-width: 800px !important;
}

.page-content .full-width-image {
  max-width: 100% !important;
}

/* WordPress Content Classes */
.wp-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.wp-caption {
  max-width: 100%;
  margin: 1rem auto;
}

.wp-caption.aligncenter {
  display: table;
}

.wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin: 0.4rem 0 0 0;
  line-height: 1.4;
}

.wp-content .entry-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.wp-content .entry-title a {
  color: inherit;
  text-decoration: none;
}

.wp-content .entry-title a:hover {
  color: #3498db;
}

.wp-content .entry-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.wp-content .entry-content {
  line-height: 1.8;
}

.wp-content .entry-content p {
  margin-bottom: 1rem;
}

.wp-content .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.wp-content .entry-content a {
  color: #3498db;
}

.wp-content .entry-content iframe {
  max-width: 100%;
}

.wp-content .page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

.wp-content .page-title {
  font-size: 1.6rem;
  color: #2c3e50;
  margin: 0;
}

.wp-content .page-title span {
  color: #3498db;
}

.wp-content article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.wp-content article:last-of-type {
  border-bottom: none;
}

/* All Panels page */
.all-panels h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.all-panels > p {
  color: #666;
  margin-bottom: 2rem;
}

.panel-section {
  margin-bottom: 3rem;
}

.panel-section h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

.panel-section h2 a {
  color: inherit;
  text-decoration: none;
}

.panel-section h2 a:hover {
  color: #3498db;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.panel-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: #f8f9fa;
}

.panel-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.panel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.panel-card-title {
  font-size: 0.8rem;
  color: #333;
  padding: 0.5rem 0.6rem;
  line-height: 1.3;
  text-align: center;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #access ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .dropdown .children {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    margin-top: 0;
  }
  
  .page-content, .category-page {
    padding: 1rem;
  }
} 