/* =========================
   ADMIN ADD POST
========================= */

/* Hero */

.admin-add-post-hero {
    background:
      linear-gradient(90deg, #1e362b 0%, #1c3429 45%, rgba(28,42,41,0.35) 100%),
      url("../images/hero-catalog-image.png");
    background-size: cover;
    background-position: center right;
    padding: 60px 0 70px;
  }
  
  .admin-add-post-hero-content {
    max-width: 1200px;
  }
  
  .admin-add-post-hero-content h1 {
    font-family: 'Bitter', serif;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
  }
  
  .admin-add-post-hero-content span {
    display: block;
    width: 110px;
    height: 6px;
    background-color: #e7a22b;
    margin-bottom: 10px;
  }
  
  .admin-add-post-hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
  }
  
  
  /* Page */
  
  .admin-add-post-page {
    background: #F4F1EC;
    padding: 40px 0 70px;
  }
  
  .admin-add-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
  }
  
  
  /* Form Box */
  
  .admin-post-form {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
  
    box-shadow:
      0 4px 10px rgba(0,0,0,0.06),
      0 12px 28px rgba(0,0,0,0.08);
  }
  
  
  /* Form Header */
  
  .admin-form-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(30,54,43,0.12);
  }
  
  .admin-form-header h2 {
    font-family: 'Bitter', serif;
    font-size: 30px;
    font-weight: 800;
    color: #1e362b;
    margin-bottom: 6px;
  }
  
  .admin-form-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7a72;
    margin: 0;
  }
  
  
  /* Group */
  
  .admin-form-group {
    margin-bottom: 18px;
  }
  
  .admin-form-group label {
    display: block;
    margin-bottom: 7px;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e362b;
  }
  
  .admin-form-group input,
  .admin-form-group select,
  .admin-form-group textarea {
    width: 100%;
    border: 1px solid rgba(30,54,43,0.18);
    border-radius: 10px;
    padding: 11px 13px;
  
    background: #fff;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #1e362b;
  
    outline: none;
    transition: .3s ease;
  }
  
  .admin-form-group textarea {
    resize: vertical;
    line-height: 1.7;
  }
  
  .admin-form-group input:focus,
  .admin-form-group select:focus,
  .admin-form-group textarea:focus {
    border-color: #70998A;
    box-shadow: 0 0 0 3px rgba(112,153,138,0.16);
  }
  
  .admin-form-group small {
    display: block;
    margin-top: 6px;
  
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #6b7a72;
  }
  
  
  /* Form Row */
  
  .admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  
  /* Actions */
  
  .admin-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  
    margin-top: 24px;
    padding-top: 20px;
  
    border-top: 1px solid rgba(30,54,43,0.12);
  }
  
  .admin-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    padding: 10px 16px;
    border-radius: 8px;
  
    background: rgba(30,54,43,0.08);
    color: #1e362b;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  
    transition: .3s ease;
  }
  
  .admin-form-cancel:hover {
    background: rgba(30,54,43,0.14);
    color: #1e362b;
  }
  
  #savePostBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
  
    background: #1e362b;
    color: #fff;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
  
    cursor: pointer;
    transition: .3s ease;
  }
  
  #savePostBtn:hover {
    background: #70998A;
  }
  
  #savePostBtn:disabled {
    opacity: .65;
    cursor: not-allowed;
  }
  
  
  /* Responsive */
  
  @media (max-width: 768px) {
    .admin-form-row {
      grid-template-columns: 1fr;
    }
  
    .admin-add-post-hero-content h1 {
      font-size: 38px;
    }
  
    .admin-post-form {
      padding: 22px;
    }
  
    .admin-form-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .admin-form-cancel,
    #savePostBtn {
      width: 100%;
    }
  }
  
  /* =========================
     DYNAMIC POST
  ========================= */
  
  .dynamic-post-page {
    background: #F4F1EC;
    padding: 40px 0 70px;
  }
  
  .dynamic-post-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .dynamic-post-article {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
  
    box-shadow:
      0 4px 10px rgba(0,0,0,0.06),
      0 12px 28px rgba(0,0,0,0.08);
  }
  
  .dynamic-post-category {
    display: inline-block;
  
    padding: 4px 10px;
    border-radius: 999px;
  
    background: rgba(112,153,138,0.18);
  
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
  }
  
  .dynamic-post-header h1 {
    font-family: 'Bitter', serif;
    font-size: 42px;
    font-weight: 800;
    color: #1e362b;
  
    margin: 16px 0;
  }
  
  .dynamic-post-meta {
    display: flex;
    gap: 16px;
  
    font-size: 13px;
    color: #6b7a72;
  
    margin-bottom: 20px;
  }
  
  .dynamic-post-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  
  .dynamic-post-excerpt {
    font-family: 'Bitter', serif;
    font-size: 20px;
    line-height: 1.7;
    color: #1e362b;
  
    margin-bottom: 24px;
  }
  
  .dynamic-post-content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #1e362b;
  }
  
  .post-not-found {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
  }