/* Learn Credits Redesign CSS */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #11181F;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
}

/* Header styling - dark blue as per mockup */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,43,106,0.15);
}

header.wp-block-template-part .wp-block-group {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

header .wp-block-navigation-item__content {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  text-transform: none !important;
  font-size: 17px !important;
}

header .wp-block-navigation-item__content:hover {
  color: #ffcd58 !important;
}

header .wp-block-button__link {
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 16px 36px !important;
  border-radius: 8px !important;
}

/* Full-width layout */
.wp-block-group.alignfull,
.alignfull {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.wp-block-post-content {
  max-width: 100% !important;
}

.wp-site-blocks > .wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Footer styling */
.wp-block-template-part:last-child {
  background: #002B6A !important;
  color: white !important;
}

.wp-block-template-part:last-child .wp-block-group {
  background: #002B6A !important;
  color: white !important;
}

.wp-block-template-part:last-child a {
  color: white !important;
}

.wp-block-template-part:last-child h1,
.wp-block-template-part:last-child h2,
.wp-block-template-part:last-child h3 {
  color: white !important;
}

/* Larger CTA buttons site-wide */
.wp-block-button__link,
[style*="background: #ffcd58"] {
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 16px 36px !important;
}

/* Jetpack Contact Form Styling */
.contact-form,
.jetpack-contact-form__form {
  margin: 0 !important;
}

.contact-form .grunion-field-wrap,
.contact-form .jetpack-field,
.jetpack-contact-form__form .grunion-field-wrap {
  margin-bottom: 20px !important;
}

.contact-form label,
.jetpack-field-label,
.grunion-field-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
  color: #11181F !important;
  font-size: 16px !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.jetpack-field__input,
.grunion-field {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  background: white !important;
  color: #11181F !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.jetpack-field__input:focus {
  border-color: #002B6A !important;
  box-shadow: 0 0 0 3px rgba(0,43,106,0.1) !important;
}

.contact-form textarea,
.jetpack-field__input[data-type="textarea"] {
  min-height: 120px !important;
  resize: vertical !important;
}

.contact-form .wp-block-button__link,
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
  width: 100% !important;
  justify-content: center !important;
  padding: 16px 36px !important;
  border-radius: 10px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  background: #ffcd58 !important;
  color: #002B6A !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  margin-top: 8px !important;
}

.contact-form .wp-block-button__link:hover,
.contact-form input[type="submit"]:hover {
  background: #e6b800 !important;
}

/* Hide default Jetpack form heading if present */
.contact-form > h3:first-child,
.jetpack-contact-form__form > h3:first-child {
  display: none !important;
}

/* Form success/error messages */
.contact-form-submission,
.contact-form__feedback {
  border-radius: 10px !important;
  padding: 16px !important;
  font-size: 15px !important;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Mobile responsive */
@media (max-width: 768px) {
  header .wp-block-columns {
    flex-direction: row !important;
  }
  
  header .wp-block-button__link {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}






/* ===== BLOG / KNOWLEDGEBASE PAGE STYLES ===== */

/* Query loop wrapper background - blog page only */
.blog .wp-block-query {
  background: #f5f7fa;
  padding: 40px 0;
}

/* Blog post card wrapper */
.wp-block-post {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Post title */
.wp-block-post-title a {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #11181F;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 8px;
}

.wp-block-post-title a:hover {
  color: #0A2540;
}

/* Post date */
.wp-block-post-date {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: #3A7DFF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(58,125,255,0.08);
  border-radius: 20px;
}

/* Post excerpt */
.wp-block-post-excerpt p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: #4A5568;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Read more link */
.wp-block-post-excerpt__more-link,
.wp-block-read-more {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0A2540;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wp-block-post-excerpt__more-link::after,
.wp-block-read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.wp-block-post-excerpt__more-link:hover::after,
.wp-block-read-more:hover::after {
  transform: translateX(4px);
}

/* Pagination */
.wp-block-query-pagination {
  margin-top: 40px;
  text-align: center;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  font-family: 'IBM Plex Sans', sans-serif;
  padding: 10px 16px;
  margin: 0 4px;
  border-radius: 8px;
  background: #f8f9fa;
  color: #11181F;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.wp-block-query-pagination a:hover {
  background: #0A2540;
  color: white;
}

/* Query loop container spacing */
.wp-block-query .wp-block-post-template {
  gap: 0 !important;
}


/* ===== SINGLE POST PAGE STYLES ===== */

/* Single post header */
.single .wp-block-post-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 16px;
}

/* Single post date */
.single .wp-block-post-date {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: #ffcd58;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Single post content */
.single .wp-block-post-content {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
}

.single .wp-block-post-content h2 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #11181F;
  margin-top: 40px;
  margin-bottom: 16px;
}

.single .wp-block-post-content h3 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #11181F;
  margin-top: 32px;
  margin-bottom: 12px;
}

.single .wp-block-post-content p {
  margin-bottom: 20px;
}

.single .wp-block-post-content ul,
.single .wp-block-post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.single .wp-block-post-content li {
  margin-bottom: 8px;
}

.single .wp-block-post-content a {
  color: #3A7DFF;
  text-decoration: none;
  font-weight: 500;
}

.single .wp-block-post-content a:hover {
  text-decoration: underline;
}

.single .wp-block-post-content img {
  border-radius: 12px;
  margin: 24px 0;
}

/* Comments section */
.single .wp-block-comments {
  font-family: 'IBM Plex Sans', sans-serif;
}

.single .wp-block-comments-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #11181F;
  margin-bottom: 24px;
}

/* Comment form */
.single .comment-respond,
.single .wp-block-post-comments-form {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 32px;
}

.single .comment-reply-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #11181F;
  margin-bottom: 16px;
}

.single .comment-form label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.single .comment-form input[type="text"],
.single .comment-form input[type="email"],
.single .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  background: white;
  color: #11181F;
  margin-bottom: 16px;
  outline: none;
}

.single .comment-form input[type="text"]:focus,
.single .comment-form input[type="email"]:focus,
.single .comment-form textarea:focus {
  border-color: #3A7DFF;
}

.single .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.single .comment-form input[type="submit"],
.single .wp-block-post-comments-form button[type="submit"] {
  background: #0A2540;
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.single .comment-form input[type="submit"]:hover,
.single .wp-block-post-comments-form button[type="submit"]:hover {
  background: #11181F;
}

/* Individual comments */
.single .wp-block-comment-template li {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.single .wp-block-comment-author-name {
  font-weight: 600;
  color: #11181F;
}

.single .wp-block-comment-content p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A5568;
}

.single .wp-block-comment-reply-link a {
  color: #3A7DFF;
  font-weight: 500;
  text-decoration: none;
}
