html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #d5e6ff, #eafbea);
}




  
  .article-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 5rem;
      margin-bottom: 3.5rem;
    }
    
    .article-title-heading {
      font-size: 3rem;
      font-weight: bold;
      margin-bottom: 1.5rem;
      text-align: center;
      color: #000044;
    }
    
    .article-search-form {
      display: flex;
      justify-content: center;
      width: 90%;
      max-width: 600px;
      background-color: white;
      border-radius: 40px;  
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      padding: 0.5rem 1rem;
      transition: all 0.2s ease;
    }
    
    .article-search-form input[type="text"] {
      flex: 1;
      border: none;
      outline: none;
      padding: 0.8rem 1rem;
      font-size: 1rem;
      border-radius: 40px;
      background: transparent;
      color: #000044;
    }
    
    .article-search-form button {
      background: none;
      border: none;
      font-size: 1.2rem;
      color: #006eff;
      cursor: pointer;
      padding: 0 0.5rem;
      transition: color 0.2s ease;
    }
    
    .article-search-form button:hover {
      color: #0034ff;
    }
    

  /* Step 2 — Article Grid */

  .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: center;
    gap: 2.1rem;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 2rem;
  }

    
    .article-card {
      position: relative; 
      background-color: white;
      border-radius: 14px;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 360px;
    }
    
    
    .article-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }
    
    .article-card a {
      color: inherit;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 1.2rem;
      height: 100%;
      overflow: hidden;
    }
    
    
    .article-title {
      text-align: center;
      font-size: 1rem;
      font-weight: 700;
      color: #000044;
      margin-bottom: 0.9rem;
    }
    
    .article-description {
      text-align: justify;
      font-size: 0.90rem;
      color: #444;
      line-height: 1.5;
      margin-bottom: auto;
    }
    

  /* Step 4 — Load More Button */

  .load-more-wrap {
      text-align: center;
      margin: 2rem 0 3rem;
    }
    
    .btn-load-more {
      background-color: #00a2ff;
      color: white;
      font-size: 1rem;
      padding: 0.75rem 1.6rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.2s ease;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    .btn-load-more:hover {
      background-color: #1d5edc;
    }
    
    .btn-load-more:active {
      background-color: #013cff;
      transform: scale(0.96);
    }
    

  /* Step 5 — Hidden SEO Tags */

  .article-tags {
      display: none;
    }
    
    .article-tags .tag {
      display: none;
    }
    


  /* Step 7 — Styled Article Form Page */


    

    
    .article-form h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #000044;
      text-align: center;
    }
    
    .article-form label {
      font-weight: 600;
      font-size: 1rem;
      color: #222;
    }
    
    .article-form input[type="text"],
    .article-form textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fdfdfd;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    }
    
    .article-form input:focus,
    .article-form textarea:focus {
      border-color: #0099ff;
      outline: none;
    }
    
    .btn-submit-article {
      background-color: #00a2ff;
      color: white;
      font-size: 1rem;
      padding: 0.8rem 1.6rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.2s ease;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      margin-top: 1rem;
      align-self: flex-start;
    }
    
    .btn-submit-article:hover {
      background-color: #1d5edc;
    }
    
    .btn-submit-article:active {
      background-color: #013cff;
      transform: scale(0.96);
    }


  /* Admin 3-dot dropdown */

  .admin-dropdown {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 10;
    }
    
    .admin-dots {
      width: 36px;
      height: 36px;
      border: none;
      border-radius: 50%;
      background-color: white;
      color: #555;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      transition: background 0.2s ease;
    }
    
    .admin-dots:hover {
      background-color: #f0f0f0;
    }
    
    
    .dropdown-menu {
      position: absolute;
      right: 0;
      top: 28px;
      background: white;
      border: 1px solid #ddd;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 0.5rem;
      display: flex;
      flex-direction: column;
      min-width: 120px;
    }
    
    .dropdown-menu a,
    .dropdown-menu button {
      background: none;
      border: none;
      padding: 6px 10px;
      text-align: left;
      font-size: 0.95rem;
      cursor: pointer;
      color: #000044;
      text-decoration: none;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu button:hover {
      background: #f2f2f2;
    }
    
    .hidden {
      display: none !important;
    }
    

    .header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    
    .floating-new-article-btn {
      position: absolute;
      top: 100px; /* Pushes it below the navbar */
      right: 40px;
      background-color: #00c46a;
      color: white;
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: background-color 0.2s ease;
      z-index: 1000;
    }
    
    
    .floating-new-article-btn:hover {
      background-color: #00a85a;
    }
    
    .form-control {
      width: 100%;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fdfdfd;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
      margin-bottom: 1rem;
    }
    
    .form-control:focus {
      border-color: #0099ff;
      outline: none;
    }
    
    /* FORM PAGE LAYOUT */
.article-form-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #d4e9ff, #d4f6e3);
}

.form-container {
  width: 100%;
  max-width: 720px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* FORM FIELDS */
.article-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-form h1 {
  font-size: 2rem;
  color: #000044;
  margin-bottom: 1rem;
  text-align: center;
}

.article-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.article-form input[type="text"],
.article-form textarea,
.article-form input[type="url"] {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* THUMBNAIL DROP AREA */
#thumbnail-drop {
  width: 100%;
  max-width: 100%;
  height: 180px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 500;
  color: #444;
  background-color: #fafafa;
}

#thumbnail-preview {
  display: none;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
}

/* BUTTON */
.btn-submit-article {
  background-color: #00a2ff;
  color: white;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit-article:hover {
  background-color: #007bd1;
}




.form-container {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-heading {
  font-size: 2rem;
  text-align: center;
  color: #000044;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.thumbnail-drop {
  width: 100%;
  height: 200px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.thumbnail-preview {
  max-width: 100%;
  margin-top: 10px;
  display: none;
  border-radius: 8px;
}


.ck-editor__editable_inline {
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}


/* ------------------------------
   New Article Form Styles
------------------------------ */
.article-form-page {
  background: linear-gradient(to bottom right, #e0f7fa, #eafbea);
  min-height: 100vh;
  padding: 60px 20px;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #444;
}

.styled-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s ease-in-out;
}

.styled-input:focus {
  outline: none;
  border-color: #00c46a;
  box-shadow: 0 0 0 2px rgba(0, 196, 106, 0.1);
}

.btn-submit-article {
  background-color: #00c46a;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit-article:hover {
  background-color: #00b45e;
}


/* Fix TinyMCE so it doesn't break layout */
.tox.tox-tinymce {
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.tox-edit-area__iframe {
  background-color: #fff;
  border-radius: 0 0 10px 10px;
}

.tox .tox-editor-header {
  border-bottom: 1px solid #eee;
}


.article-detail-card {
  background: white;
  max-width: 800px;
  width: 100%;
  padding: 3rem 2rem;
  margin-top: 100px; /* push down from navbar */
  margin-bottom: 80px; /* breathing room at bottom */
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}



body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #d3eefd, #e2f5e9);
  margin: 0;
  padding: 0;
}



.article-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

/* RESPONSIVE FIX */






/* ─── Article Detail Page – Clean, Elegant Redesign ─── */

.article-detail-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 1.5rem;
  background: linear-gradient(to bottom right, #d3eefd, #e2f5e9);
  box-sizing: border-box;
}





.article-page-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #000044;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-align: center;
}




.article-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #222;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #000044;
}

.article-body p {
  margin-bottom: 1.2rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .article-detail-card {
    padding: 2rem 1.2rem;
  }

  .article-page-title {
    font-size: 2rem;
  }

  .article-description {
    font-size: 1rem;
  }
}


@media (max-width: 768px) {
  .article-detail-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .article-detail-card {
    max-height: none;
    overflow-y: visible;
  }
}


.article-date {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
  padding-top: 1rem;
  margin-top: auto;
}
