/* ==============================
   PAGES.CSS — Shared styles for all inner pages
   ============================== */


/* Page Container */
.page-container {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.page-container fieldset {
  margin-bottom: 30px;
}

/* ---- BLOG PAGE ---- */
.blog-search {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.blog-search input {
  flex: 1;
  padding: 12px 5px;
  border: 1px solid var(--sec-lit);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--ff);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--accent-lit);
}

.blog-search button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-search button:hover {
  transform: translateY(-2px);
}

.category-chips {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.chip {
  padding: 8px 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--secondary);
  text-decoration: none;

}

.chip:hover {
  background-color: var(--sec-lit);
  /* color: var(--accent); */
}

.chip.active {
  background-color: var(--sec-lit);
  color: var(--secondary);
  border-color: var(--secondary);
}

/* ── Filter results count ── */
.filter-results-count {
  font-size: 14px;
  color: #888;
  margin-bottom: 22px;
}

.filter-results-count strong {
  color: var(--secondary);
}

.filter-results-count a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.filter-results-count a:hover {
  text-decoration: underline;
}

/* ── Empty / no-results state ── */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  text-align: center;
  color: #aaa;
}

.no-results svg {
  width: 52px;
  height: 52px;
  opacity: 0.35;
}

.no-results p {
  font-size: 16px;
  color: #888;
}

.no-results .chip {
  margin-top: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

.blog-card-body {
  padding: 3%;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3%;
}

.blog-card-meta .date {
  font-size: 13px;
  opacity: .6;
  margin-left: auto;
}

.blog-card-meta .category {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent);
}

.blog-card h3 {
  font-size: 25px;
  margin-bottom: 2%;
  color: var(--secondary);
}

.blog-card .excerpt {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 2%;
  opacity: .8;
  color: var(--secondary);
}

.blog-card .read-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
}

/* ---- BOOKS PAGE ---- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.book-item {
  background: var(--primary);
  border: 2px solid #00000015;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  padding: 2%;
}

.book-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.046);
}

.book-item img {
  width: 100%;
  height: 300px;
  object-fit: auto;
  object-position: auto;
  border-radius: 12px;
  /* flex-shrink: 0; */
}

.book-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2% auto;
  margin-bottom: 3%;
}

.book-item-body .book-category {
  font-size: 12px;
  background: #ff000015;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  width: fit-content;
}

.book-item-body h3 {
  font-size: 25px;
  color: var(--secondary);
}

.book-item-body .book-author {
  font-size: 14px;
  color: var(--sec-lit);
  color: #00000074;
}

.book-item-body .book-atr {
  font-size: 14px;
  color: var(--accent);
  font-weight: bold;
}

.book-item-body .book-desc {
  font-size: 14px;
  /* color: #555; */
  line-height: 1.5;
  margin-bottom: 3%;
}

.book-item-body .book-btn {
  display: block;
  padding: 10px 20px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  margin: auto;
}

.book-item-body .book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---- EVENTS PAGE ---- */
.event-main {
  width: 95%;
  margin: 3% auto;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin: auto;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--primary);
  border: 1px solid #0000001d;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin: auto;
  height: fit-content;
  padding: 3%;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.event-card img {
  width: 100%;
  height: 300px;
  object-fit: auto;
  object-position: auto;
  border-radius: 12px;
  flex-shrink: 0;

}

.event-flex {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 3%;
}

.event-icons {
  width: 25px;
  padding-right: 5px;
  opacity: 1;
  color: var(--accent);
}

.event-card-body {
  padding: 0;
}

.event-card-body h3 {
  font-size: 25px;
  margin-bottom: 1%;
}

.event-card-body .desc {
  font-size: 15px;
  opacity: .8;
  line-height: 1.5;
  height: fit-content;
}

.event-cta {
  display: block;
  padding: 10px 20px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  margin: auto;
  text-align: center;
  width: 100%;
}

.event-cta:hover {
  transform: translateY(-2px);
}

/* ---- ABOUT PAGE ---- */
.about-main {
  margin: 5% auto;
  width: 90%;
  /* margin: auto; */
}

.about-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;

}

.author-photo {
  min-width: 400px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 20px #00000072;
}

.author-info h1 {
  font-size: 30px;
  margin-bottom: 5px;
  color: var(--secondary);
}

.author-info .author-title {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 15px;
}

.author-info p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.author-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.skill-tag {
  padding: 6px 10px;
  border: 1px solid #0000001a;
  border-radius: 10px;
  font-size: 15px;
  color: var(--secondary);
  cursor: default;
  transition: .5s;
}

.skill-tag:hover {
  border: 1px solid #ff000049;
}

.author-social {
  display: flex;
  gap: 15px;
}

.author-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.author-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.author-social a svg {
  width: 20px;
  height: 20px;
}

.personal-msg {
  margin-top: 40px;
  text-align: center;
  background: var(--dash-surface-2, #f5f5f5);
  border-left: none;
  border-radius: 12px;
  padding: 40px 20px;
}

.personal-msg h3 {
  color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.personal-msg p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* ---- CONTACT PAGE ---- */
.contact-main {
  margin: 5% auto;
  width: 80%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--ff);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.contact-details h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.contact-details .contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item .contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 3px;
  color: var(--secondary);
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  color: #555;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-social-block {
  padding-left: 5%;
}

.contact-social-block h5 {
  font-size: 20px;
  margin-bottom: 2%;
}

/* ---- TAB RESPONSIVENESS ---- */
@media (max-width: 768px) {
  .page-container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
  }

  .page-container fieldset {
    margin-bottom: 30px;
  }

  /* ---- BLOG PAGE ---- */
  .blog-search {
    margin-bottom: 4%;
    width: 100%;
  }

  .blog-search input {
    border-radius: 8px;
    font-size: 15px;
  }

  .blog-search button {
    padding: 12px 24px;
    border-radius: 8px;
  }

  .category-chips {
    gap: 10px;
    margin-bottom: 30px;
  }

  .chip {
    border-radius: 8px;
    font-size: 12px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 2fr);
    gap: 20px;
  }


  .blog-card img {
    height: 180px;
  }

  .blog-card-body {
    padding: 5%;
  }

  .blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .blog-card-meta .date {
    font-size: 13px;
    margin-left: auto;
  }

  .blog-card-meta .category {
    font-size: 12px;
    font-weight: bold;
  }

  .blog-card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .blog-card .excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2%;
  }

  .blog-card .read-more {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
  }

  /* ---- BOOKS PAGE ---- */
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .book-item {
    border-radius: 15px;
    padding: 3%;
  }

  .book-header-flex {
    margin-bottom: 5%;
  }

  .book-item-body .book-category {
    font-size: 12px;
    padding: 4px 5px;
    border-radius: 6px;
    width: 80px;
  }

  .book-item-body h3 {
    font-size: 20px;
  }

  .book-item-body .book-author {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .book-item-body .book-atr {
    font-size: 12px;
  }

  .book-item-body .book-desc {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .book-item-body .book-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 8%;
  }

  /* ---- EVENTS PAGE ---- */
  .event-main {
    width: 98%;
    margin: 5% auto;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .event-card {
    border-radius: 12px;
    /* height: 415px; */
  }

  .event-card img {
    height: 250px;
  }

  .event-flex {
    font-size: 12px;
    margin-bottom: 5%;
  }

  .event-icons {
    width: 20px;
    padding-right: 5px;
  }

  .event-card-body {
    padding: 0%;
  }

  .event-card-body h3 {
    font-size: 20px;
    margin-bottom: 1%;
  }

  .event-card-body .desc {
    font-size: 12px;
    opacity: .8;
    line-height: 1.5;
  }

  .event-card-body .event-cta {
    font-size: 14px;
    width: 100%;
  }

  /* ---- ABOUT PAGE ---- */
  .about-main {
    margin: 5% auto;
    width: 90%;
    /* margin: auto; */
  }

  .about-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .author-photo {
    height: 90vh;
    width: 100%;
    margin: auto;
  }

  .author-info h1 {
    font-size: 25px;
    margin-bottom: 5px;
    color: var(--secondary);
  }

  .author-info .author-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .author-info p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .author-skills {
    gap: 15px;
    margin-bottom: 3%;
  }

  .skill-tag {
    padding: 6px 12px;
    font-size: 13px;
  }

  .author-social {
    gap: 10px;
  }

  .author-social a {
    width: 30px;
    height: 30px;
  }


  .author-social a svg {
    width: 15px;
    height: 15px;
  }

  .personal-msg {
    margin-top: 4%;
    border-radius: 10px;
  }

  .personal-msg h3 {
    font-size: 20px;
  }

  .personal-msg p {
    font-size: 15px;
  }

  /* ---- CONTACT PAGE ---- */
  .contact-main {
    width: 100%;
    margin: 5% auto;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 95%;
    margin: auto;
  }

  .contact-form h2 {
    font-size: 25px;
  }

  .contact-form .form-group {
    margin-bottom: 20px;
  }


  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
  }

  .contact-form textarea {
    min-height: 25vh;
  }

  .contact-form .submit-btn {
    width: 50%;
    font-size: 15px;
  }

  .contact-details h2 {
    font-size: 25px;
    margin-bottom: 2%;
  }

  .contact-details .contact-item {
    gap: 15px;
    margin-bottom: 3%;
  }

  .contact-item .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-item .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-item h6 {
    font-size: 18px;
    margin-bottom: 0%;
  }

  .contact-item p,
  .contact-item a {
    font-size: 15px;
  }

  .contact-social-block h5 {
    font-size: 20px;
    margin-bottom: 2%;
  }

}

/* ---- PHONE RESPONSIVENESS ---- */
@media (max-width: 600px) {
  /* ---- BLOG PAGE ---- */
  .blog-search {
    margin-bottom: 8%;
  }

  .blog-search input {
    border-radius: 5px;
    font-size: 12px;
  }

  .blog-search button {
    padding: 10px 20px;
    border-radius: 5px;
  }

  .category-chips {
    gap: 15px;
    margin-bottom: 10%;
  }

  .chip {
    border-radius: 5px;
  }

  .blog-grid {
    grid-template-columns: repeat(1, 2fr);
    gap: 50px;
  }


  .blog-card img {
    height: 280px;
  }


  .blog-card-meta {
    margin-bottom: 15px;
  }

  .blog-card-meta .date {
    font-size: 12px;
  }

  .blog-card-meta .category {
    font-size: 12px;
  }

  .blog-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .blog-card .excerpt {
    font-size: 12px;
  }

  .blog-card .read-more {
    font-size: 15px;
  }

  /* ---- BOOKS PAGE ---- */
  .book-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .book-item {
    padding: 2%;
  }

  .book-item img {
    height: 350px;
  }

  .book-header-flex {
    margin-bottom: 2%;
  }

  .book-item-body .book-category {
    font-size: 12px;
  }

  .book-item-body h3 {
    font-size: 18px;
  }

  .book-item-body .book-author {
    font-size: 12px;
  }

  .book-item-body .book-desc {
    font-size: 12px;
  }

  .book-item-body .book-btn {
    border-radius: 5px;
    margin-top: 0;
  }

  /* ---- EVENTS PAGE ---- */
  .event-main {
    width: 95%;
    margin: 10% auto;
  }

  .event-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .event-card {
    padding: 2%;
  }

  .event-card img {
    height: 280px;
  }

  .event-flex {
    font-size: 12px;
    margin-bottom: 3%;
  }

  .event-card-body h3 {
    font-size: 20px;
  }

  .event-card-body .desc {
    font-size: 12px;
  }

  .event-card-body .event-cta {
    font-size: 15px;
    margin-top: 0;
  }

  /* ---- ABOUT PAGE ---- */
  .about-main {
    margin: 5% auto;
    padding-top: 5%;
    /* margin: auto; */
  }

  .about-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 95%;
  }

  .author-photo {
    min-width: 380px;
    height: 60vh;
    width: 70%;
    margin-bottom: 8%;
  }

  .author-info h1 {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .author-info .author-title {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .author-info p {
    font-size: 15px;
    margin-bottom: 5%;
  }

  .author-skills {
    margin-bottom: 5%;
  }

  .skill-tag {
    font-size: 12px;
  }

  .author-social {
    gap: 10px;
    justify-content: center;
    margin-top: 10%;
  }

  .personal-msg {
    margin-top: 4%;
    border-radius: 10px;
  }

  .personal-msg h3 {
    font-size: 15px;
  }

  .personal-msg p {
    font-size: 15px;
  }

  /* ---- CONTACT PAGE ---- */
  .contact-main {
    width: 100%;
    margin: 15% auto;
  }

  .contact-grid {
    gap: 50px;
    width: 90%;
  }

  .contact-form h2 {
    font-size: 20px;
  }

  .contact-form .form-group {
    margin-bottom: 15px;
  }


  .contact-form input,
  .contact-form textarea {
    font-size: 12px;
  }

  .contact-form textarea {
    min-height: 20vh;
  }

  .contact-form .submit-btn {
    width: 100%;
    font-size: 15px;
  }

  .contact-details h2 {
    font-size: 25px;
    margin-bottom: 2%;
  }

  .contact-details .contact-item {
    gap: 15px;
    margin-bottom: 3%;
  }

  .contact-item .contact-icon {
    width: 30px;
    height: 30px;
  }

  .contact-item .contact-icon svg {
    width: 15px;
    height: 15px;
  }

  .contact-item h6 {
    font-size: 15px;
  }

  .contact-item p,
  .contact-item a {
    font-size: 15px;
  }

  .contact-social-block h5 {
    font-size: 18px;
    margin-bottom: 0%;
    padding-bottom: 0;
  }

  .contact-social-block .author-social {
    justify-content: start;
  }

}