
/* Remove duplicate :root and base body styles, since they are now in common.css */
/* Remove duplicate button, card, and scrollbar styles that are already in common.css */
/* --- START: Navbar styles from main index.css --- */
/* --- END: Navbar styles from main index.css --- */

.search-section {
  max-width: 900px;
  margin: 3.5rem auto 1.2rem auto;
  padding: 0 1rem;
  background: #f8f8f8;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border: 1px solid #e0e0e0;
  margin-top: 60px;
  margin-bottom: 60px;
}
.search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.5rem 0;
  border: none;
}
.search-bar input {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  font-size: 1rem;
  background: #fff;
  color: #222;
  font-family: "PeydaFaNum", sans-serif;
  font-weight: 500;
  transition: all 0.3s;
}
.search-bar input:focus {
  outline: none;
  background: #f7f7f7;
  box-shadow: 0 0 0 2px var(--primary-color) 33;
  color: #222;
}
.search-bar input::placeholder {
  color: #888;
  font-family: "PeydaFaNum", sans-serif;
}
.search-bar button {
  border-radius: 8px !important;
  font-family: "PeydaFaNum", sans-serif !important;
  font-weight: 500 !important;
  display: block;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: none !important;
  margin-top: 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, var(--primary-color) 0%, #00bcd4 100%);
  color: #222;
  font-weight: 600;
}
.search-bar button:hover {
  background: linear-gradient(135deg, #00bcd4 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.4);
}
.search-bar button:active {
  transform: translateY(0);
}

/* Section containers */
.section-outer {
  background: #f8f8f8;
  border-radius: 18px;
  margin: 2.5rem auto 0 auto;
  padding: 1.5rem 0.5rem 2.2rem 0.5rem;
  max-width: 1200px;
  box-sizing: border-box;
  border: 1.5px solid #e0e0e0;
}

.section-title {
  font-size: 1.35rem;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: #00bcd4;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 2.2rem 0;
  padding: 0.7em 0 0.7em 0;
  border: none;
  background: none;
  border-radius: 0;
  display: block;
}

.articles-grid,
.most-viewed-grid,
.featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-card,
.most-viewed-card,
.featured-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  min-height: 320px;
  border: 1px solid #e0e0e0;
  text-align: right;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  justify-content: flex-start;
}
.article-card:hover,
.most-viewed-card:hover,
.featured-card:hover {
  transform: scale(1.03);
  z-index: 2;
}
.article-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #e0e0e0;
  cursor: pointer;
  transition: border 0.18s;
}
.article-thumb:hover {
  border: 2px solid #00bcd4;
}
.article-title {
  font-size: 1.13rem;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 0.2rem;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  text-align: right;
}
.article-desc {
  color: #444;
  font-size: 1.01rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
  min-height: 2.5em;
  text-align: right;
  flex: 1 1 auto;
}
.article-date {
  font-size: 0.97rem;
  color: #2196f3;
  margin-bottom: 0.2rem;
  text-align: right;
}
/* For .read-more-btn, use .btn .btn-primary for full consistency */
.read-more-btn {
  /* Remove custom styles, just use .btn .btn-primary */
  width: 100%;
  margin-top: auto;
}
.article-card .read-more-btn,
.most-viewed-card .read-more-btn,
.featured-card .read-more-btn {
  margin-top: auto;
  align-self: stretch;
}
.read-more-btn {
  border-radius: 8px !important;
  font-family: "PeydaFaNum", sans-serif !important;
  font-weight: 600 !important;
  display: block;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: none !important;
  margin-top: auto;
  padding: 1rem 1.5rem;
  font-size: 1.31rem;
  border: none;
  background: linear-gradient(135deg, var(--primary-color) 0%, #00bcd4 100%);
  color: #222;
  text-decoration: none;
  align-self: stretch;
  margin-bottom: 0;
}
.read-more-btn:hover {
  background: linear-gradient(135deg, #00bcd4 0%, var(--primary-color) 100%);
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.4);
}
.read-more-btn:active {
  transform: translateY(0);
}
.view-count-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: #00bcd4;
  color: #fff;
  font-size: 0.97rem;
  font-weight: bold;
  padding: 0.2rem 0.8rem;
  border-radius: 7px;
  display: inline-block;
  z-index: 3;
}
.view-count-badge {
  background: #2196f3;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
  color: #2196f3;
}
.article-date {
  color: #2196f3;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.article-views {
  color: #888;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 400;
}
@media (max-width: 600px) {
  .search-section {
    margin: 6.5rem auto 0.7rem auto;
    padding: 0 0.5rem;
    border-radius: 10px;
  }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
  }
  .search-bar input {
    font-size: 0.97rem;
    padding: 0.7rem 0.7rem;
    text-align: center;
  }
  .search-bar button {
    font-size: 0.97rem;
    padding: 0.7rem 0.7rem;
    min-width: 0;
    width: 100%;
  }
  .section-outer {
    padding: 0.7rem 0.1rem 1.2rem 0.1rem;
    border-radius: 10px;
    margin-bottom: 2.2rem;
    border: 2.5px solid #00bcd4;
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.08);
    background: #fafdff;
  }
  .section-title {
    font-size: 1.08rem;
    margin: 0 0 1.2rem 0;
    padding: 0.4em 0 0.4em 0;
    text-align: center;
  }
  .articles-grid,
  .most-viewed-grid,
  .featured-articles-grid {
    gap: 0.8rem;
    padding: 0 0.2rem;
    display: grid;
    grid-template-columns: 1fr;
  }
  .article-card,
  .most-viewed-card,
  .featured-card {
    padding: 0.8rem 0.6rem 0.7rem 0.6rem;
    min-height: 260px;
    border-radius: 8px;
    text-align: center;
  }
  .article-title {
    text-align: center;
  }
  .article-desc {
    text-align: center;
  }
  .article-meta {
    justify-content: center;
  }
  .read-more-btn {
    padding: 0.7rem 0.7rem;
    font-size: 1rem;
  }
  .article-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.93rem;
  }
  .article-date,
  .article-views {
    font-size: 0.93rem;
    text-align: center;
  }
  .main-article-h1 {
    font-size: 1.8rem !important;
    margin-top: 8rem !important;
    text-align: center !important;
  }
}
@media (max-width: 800px) {
  .articles-grid,
  .most-viewed-grid,
  .featured-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0 0.3rem;
  }
  .article-card,
  .most-viewed-card,
  .featured-card {
    min-height: 270px;
    padding: 1.1rem 0.7rem 1rem 0.7rem;
    text-align: center;
  }
  .article-title {
    font-size: 1.08rem;
    text-align: center;
  }
  .article-desc {
    font-size: 0.97rem;
    text-align: center;
  }
  .article-meta {
    font-size: 0.93rem;
    gap: 0.5rem;
    justify-content: center;
  }
  .article-date,
  .article-views {
    text-align: center;
  }
  .read-more-btn {
    font-size: 0.98rem;
    padding: 0.7rem 1.1rem;
  }
  .search-section {
    margin: 4.5rem auto 0.7rem auto;
    padding: 0 0.5rem;
    border-radius: 12px;
  }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
  }
  .search-bar input {
    font-size: 0.97rem;
    padding: 0.7rem 0.7rem;
    text-align: center;
  }
  .search-bar button {
    font-size: 0.97rem;
    padding: 0.7rem 0.7rem;
    min-width: 0;
    width: 100%;
  }
  .main-article-h1 {
    font-size: 1.9rem !important;
    margin-top: 8.5rem !important;
    text-align: center !important;
  }
  .section-title {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .section-outer {
    padding: 0.7rem 0.1rem;
    margin: 1rem auto 0 auto;
    border-radius: 8px;
  }
  .article-card,
  .most-viewed-card,
  .featured-card {
    min-height: 220px;
    padding: 0.7rem 0.3rem 0.8rem 0.3rem;
    text-align: center;
  }
  .article-title {
    font-size: 0.99rem;
    text-align: center;
  }
  .article-desc {
    font-size: 0.93rem;
    text-align: center;
  }
  .article-meta {
    font-size: 0.89rem;
    gap: 0.3rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .article-date,
  .article-views {
    text-align: center;
  }
  .search-section {
    margin: 4.5rem auto 0.7rem auto;
    padding: 0 0.2rem;
    border-radius: 8px;
  }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.3rem 0.2rem;
  }
  .search-bar input {
    font-size: 0.93rem;
    padding: 0.6rem 0.6rem;
    text-align: center;
  }
  .search-bar button {
    font-size: 0.93rem;
    padding: 0.6rem 0.6rem;
    min-width: 0;
    width: 100%;
  }
  .read-more-btn {
    font-size: 0.93rem;
    padding: 0.6rem 0.7rem;
  }
  .main-article-h1 {
    font-size: 1.4rem !important;
    margin-top: 6.5rem !important;
    margin-bottom: 0.8rem !important;
    text-align: center !important;
  }
  .section-title {
    font-size: 0.95rem !important;
    margin: 0 0 0.8rem 0 !important;
    padding: 0.2em 0 0.2em 0 !important;
    text-align: center !important;
  }
  #search-dropdown {
    min-width: 0;
    max-width: 95vw;
    left: 2.5%;
    right: 2.5%;
    padding: 0.2rem 0.1rem;
    border-radius: 10px;
  }
  .search-dropdown-item {
    padding: 0.4rem 0.4rem;
    gap: 0.4rem;
  }
  .search-dropdown-thumb {
    width: 32px;
    height: 32px;
  }
  .search-dropdown-title {
    font-size: 0.95rem;
  }
  .search-dropdown-desc {
    font-size: 0.85rem;
  }
}

/* ===== Scrollbar Styles (match main site) ===== */
body,
.section-outer,
.articles-grid,
.most-viewed-grid,
.featured-articles-grid {
  scrollbar-width: thin;
  scrollbar-color: #00bcd4 #f0f0f0;
}
body::-webkit-scrollbar,
.section-outer::-webkit-scrollbar,
.articles-grid::-webkit-scrollbar,
.most-viewed-grid::-webkit-scrollbar,
.featured-articles-grid::-webkit-scrollbar {
  width: 8px;
  background: #f0f0f0;
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb,
.section-outer::-webkit-scrollbar-thumb,
.articles-grid::-webkit-scrollbar-thumb,
.most-viewed-grid::-webkit-scrollbar-thumb,
.featured-articles-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00bcd4 100%);
  border-radius: 8px;
  min-height: 40px;
  transition: background 0.2s;
}
body::-webkit-scrollbar-thumb:hover,
.section-outer::-webkit-scrollbar-thumb:hover,
.articles-grid::-webkit-scrollbar-thumb:hover,
.most-viewed-grid::-webkit-scrollbar-thumb:hover,
.featured-articles-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00bcd4 0%, var(--primary-color) 100%);
}

/* Remove scroll-arrow styles */
.featured-section {
  position: relative;
}

.featured-articles-grid {
  display: flex;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 18px 1rem; /* add space for scrollbar */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #00bcd4 #e0e0e0;
  scroll-snap-type: x mandatory;
}

.featured-articles-grid::-webkit-scrollbar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 8px;
}

.featured-articles-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00bcd4 100%);
  border-radius: 8px;
}

.featured-articles-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00bcd4 0%, var(--primary-color) 100%);
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  min-height: 320px;
  border: 1px solid #e0e0e0;
  text-align: right;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  justify-content: flex-start;
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  min-width: 280px;
}

.featured-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* Featured section scroll indicators */
/* Mobile creative animations */
@media (max-width: 768px) {
  .featured-articles-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 0 0.5rem;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  .featured-card {
    flex: none !important;
    min-width: auto !important;
    min-height: 280px;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
    animation: slideInFromRight 0.6s ease-out;
    width: 100% !important;
  }

  .featured-card:nth-child(even) {
    animation: slideInFromLeft 0.6s ease-out;
  }

  .featured-card:nth-child(3n) {
    animation: slideInFromBottom 0.6s ease-out;
  }

  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes slideInFromBottom {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .scroll-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .scroll-arrow.left {
    left: 5px;
  }

  .scroll-arrow.right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .featured-articles-grid {
    gap: 0.8rem;
    padding: 0 0.3rem;
  }

  .featured-card {
    min-width: auto !important;
    min-height: 250px;
    padding: 0.8rem 0.6rem 0.6rem 0.6rem;
  }

  .scroll-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  /* Additional mobile improvements */
  .main-article-h1 {
    font-size: 1.5rem !important;
    margin-top: 7rem !important;
    margin-bottom: 1rem !important;
  }

  .search-section {
    margin: 4rem auto 0.5rem auto !important;
    padding: 0 0.3rem !important;
  }

  .section-outer {
    margin: 1.5rem auto 0 auto !important;
    padding: 0.5rem 0.2rem 1rem 0.2rem !important;
  }

  .section-title {
    font-size: 1rem !important;
    margin: 0 0 1rem 0 !important;
    padding: 0.3em 0 0.3em 0 !important;
  }
}

.single-article-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  margin-top: 0.5rem;
}
.single-article-flex .article-card {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

#search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 110%;
  z-index: 100;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13),
    0 1.5px 8px rgba(0, 188, 212, 0.08);
  padding: 0.5rem 0.2rem;
  min-width: 320px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: none;
  transition: all 0.2s;
}
.search-bar {
  position: relative;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  background: none;
  border: none;
  outline: none;
}
.search-dropdown-item:hover,
.search-dropdown-item:focus {
  background: linear-gradient(90deg, #e0f7fa 0%, #e0f2f1 100%);
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.08);
}
.search-dropdown-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #e0e0e0;
}
.search-dropdown-info {
  flex: 1 1 auto;
  min-width: 0;
}
.search-dropdown-title {
  font-size: 1.08rem;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 0.1rem;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown-desc {
  color: #444;
  font-size: 0.97rem;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown-noresult {
  padding: 1.1rem 1.2rem;
  color: #888;
  text-align: center;
  font-size: 1.05rem;
}
@media (max-width: 600px) {
  #search-dropdown {
    min-width: 0;
    max-width: 98vw;
    left: 1%;
    right: 1%;
    padding: 0.2rem 0.1rem;
  }
  .search-dropdown-item {
    padding: 0.5rem 0.5rem;
    gap: 0.5rem;
  }
  .search-dropdown-thumb {
    width: 38px;
    height: 38px;
  }
}

/* Promo Video Section Styles */
.promo-video-container {
  width: 100%;
  max-width: 900px;
  margin: 90px auto 2.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 188, 212, 0.13),
    0 2px 8px rgba(0, 188, 212, 0.08);
  background: linear-gradient(135deg, #fafdff 0%, #e0f7fa 100%);
  position: relative;
}
.promo-video {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 188, 212, 0.13);
  background: #e0e0e0;
}
@media (max-width: 1000px) {
  .promo-video-container {
    max-width: 99vw;
    margin-top: 80px;
    border-radius: 16px;
  }
  .promo-video {
    border-radius: 16px;
    max-height: 300px;
  }
}
@media (max-width: 600px) {
  .promo-video-container {
    max-width: 99vw;
    margin-top: 70px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
  }
  .promo-video {
    border-radius: 10px;
    max-height: 180px;
  }
}
@media (max-width: 400px) {
  .promo-video-container {
    border-radius: 6px;
    margin-top: 60px;
  }
  .promo-video {
    border-radius: 6px;
    max-height: 120px;
  }
}
/* End Promo Video Section Styles */
