/*
Theme Name: Observatoire Jeune 2025
Description: WordPress theme for Observatoire Jeune des Élections Présidentielles Cameroun 2025
Version: 1.0
Author: Observatoire Jeune
Text Domain: observatoire-jeune
Domain Path: /languages
*/

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

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  scroll-behavior: smooth;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: #0047ab;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6)), url('assets/images/Banner-observatoirejeun2025.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.site-header.page-header {
  padding: 30px 20px;
}

.site-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.site-header.page-header h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.site-header p {
  font-size: 1.2rem;
}

.site-header.page-header p {
  font-size: 1rem;
}

.site-header .logo {
  max-width: 350px !important;
  margin-bottom: 20px;
}

.site-header.page-header .logo {
  max-width: 100px;
}

.site-header a {
  color: white;
  text-decoration: none;
}

/* Button Styles */
.button {
  display: inline-block;
  margin: 10px 5px;
  padding: 12px 24px;
  background: #ff4c4c;
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background: #e63939;
  text-decoration: none;
}

.button.secondary {
  background: #0047ab;
}

.button.secondary:hover {
  background: #003d96;
}

.button i {
  margin-right: 8px;
}

/* Section Styles */
.content-section {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 8px;
  background: #eee;
}

.content-section:nth-of-type(1) {
  border-left: 4px solid #28a745; /* Green */
}

.content-section:nth-of-type(2) {
  border-left: 4px solid #dc3545; /* Red */
}

.content-section:nth-of-type(3) {
  border-left: 4px solid #ffc107; /* Yellow */
}

.content-section:nth-of-type(4) {
  border-left: 4px solid #28a745; /* Green */
}

.content-section:nth-of-type(5) {
  border-left: 4px solid #dc3545; /* Red */
}

.content-section:nth-of-type(6) {
  border-left: 4px solid #ffc107; /* Yellow */
}

/* Card Styles */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* Event Card Styles */
.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.event-image-placeholder {
  width: 33.33%;
  height: auto;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #999;
  font-size: 14px;
  text-align: center;
}

.event-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.event-content {
  flex: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.loading {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: #eee;
  padding: 30px 20px;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 8px;
}

/* Footer Styles */
.site-footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 20px;
  margin-top: 40px;
}

.site-footer a {
  color: white;
}

.site-footer a:hover {
  color: #ccc;
}

/* Blog Styles */
.blog-post {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-post-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-post-title {
  margin-bottom: 15px;
}

.blog-post-title a {
  color: #333;
  text-decoration: none;
}

.blog-post-title a:hover {
  color: #0047ab;
}

.blog-post-excerpt {
  margin-bottom: 15px;
}

.read-more {
  color: #0047ab;
  font-weight: bold;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a:hover {
  background: #f5f5f5;
}

.pagination .current {
  background: #0047ab;
  color: white;
  border-color: #0047ab;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.8rem;
  }
  
  .site-header.page-header h1 {
    font-size: 1.5rem;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-image-placeholder {
    width: 100%;
    height: auto;
  }
  
  .content-section {
    margin: 10px;
    padding: 20px 15px;
  }
  
  .button {
    display: block;
    margin: 10px 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 30px 15px;
  }
  
  .site-header h1 {
    font-size: 1.5rem;
  }
  
  .content-section {
    margin: 5px;
    padding: 15px 10px;
  }
}

/* WordPress Specific Styles */
.wp-block-group {
  margin-bottom: 20px;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

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

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

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

.comment-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.comment-content {
  margin-bottom: 10px;
}

.reply {
  font-size: 14px;
}

/* Search Form */
.search-form {
  margin-bottom: 20px;
}

.search-form input[type="search"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 70%;
}

.search-form input[type="submit"] {
  padding: 10px 20px;
  background: #0047ab;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 28%;
  margin-left: 2%;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}
