/*
Theme Name: Institute for Peace
Theme URI: https://instituteforpeace.org
Author: Institute for Peace & Transitions
Author URI: https://instituteforpeace.org
Description: A modern, mobile-friendly WordPress theme for the Institute for Peace & Transitions. Features a clean design with blue and orange color scheme, smooth animations, and responsive layouts.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: institute-for-peace
Tags: ngo, nonprofit, responsive, mobile-friendly, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images
*/

/* WordPress Theme Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* WordPress Required Classes */
.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

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

.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.gallery-caption {
  display: block;
}

.bypostauthor {
  display: block;
}

.sticky {
  display: block;
}

/* WordPress Navigation */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: inline-block;
}

.menu-item a {
  text-decoration: none;
  color: inherit;
}

/* Post Styles */
.post {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-content {
  line-height: 1.8;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

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

.post-content blockquote {
  border-left: 4px solid #e67e22;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

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

/* Widget Styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e3a5f;
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.widget a:hover {
  color: #e67e22;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination a:hover {
  background-color: #e67e22;
  color: white;
  border-color: #e67e22;
}

.pagination .current {
  background-color: #1e3a5f;
  color: white;
  border-color: #1e3a5f;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.comment-meta {
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  color: #1e3a5f;
}

.comment-date {
  font-size: 0.875rem;
  color: #666;
}

.comment-content {
  line-height: 1.6;
}

.comment-reply-link {
  color: #e67e22;
  text-decoration: none;
  font-weight: 500;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #e67e22;
}

button,
input[type="submit"] {
  background-color: #e67e22;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

button:hover,
input[type="submit"]:hover {
  background-color: #d35400;
}

/* Custom Logo */
.custom-logo {
  max-height: 50px;
  width: auto;
}

/* Featured Image */
.post-thumbnail {
  margin-bottom: 1.5rem;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Block Editor Styles */
.wp-block-button__link {
  background-color: #e67e22;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.wp-block-quote {
  border-left: 4px solid #e67e22;
  padding-left: 1rem;
  font-style: italic;
}

.wp-block-pullquote {
  border-top: 4px solid #1e3a5f;
  border-bottom: 4px solid #1e3a5f;
  padding: 2rem 0;
  text-align: center;
}

/* Accessibility */
:focus {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print,
  .site-header,
  .site-footer,
  .comments-area,
  .pagination {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: underline;
  }
  
  .post-content {
    width: 100%;
    margin: 0;
  }
}
