/* ===== Город: базовая типографика ===== */

.np-title {
  font-size: 26px;
  margin-bottom: 12px;
  color: #0f4c3a;
}

.np-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.np-intro-text,
.np-map-text,
.np-helper-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

/* ===== Город: страница и контейнер ===== */

.np-city-page {
  background-color: #f9fafb;
}

.np-city-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ===== Город: секции ===== */

.np-section {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 20px;
  border: 1px solid #065f46;
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
}

.np-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #064e3b;
}

/* ===== Город: текущая дата/время ===== */

.np-current-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.np-current-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.np-label {
  font-size: 0.95rem;
  color: #6b7280;
}

.np-value {
  font-weight: 600;
  color: #111827;
}

.np-value-accent {
  color: #047857;
  font-weight: 600;
}

/* ===== Город: время намаза на сегодня ===== */

.np-today-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.np-today-times ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* карточка намаза — актуальный стиль */
.np-prayer-item {
  padding: 12px 10px;
  border-radius: 12px;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.np-prayer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.np-prayer-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.np-prayer-desc {
  font-size: 0.8rem;
  color: #6b7280;
}
/* золотая подсветка текущего намаза */
.np-prayer-item.is-current {
  background-color: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.np-prayer-item.is-current .np-prayer-name,
.np-prayer-item.is-current .np-prayer-time {
  color: #92400e;
  font-weight: 700;
}

/* ===== Город: ночные времена ===== */

.np-night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.np-night-item {
  background-color: #f5f9f7;
  border-radius: 4px;
  padding: 8px 10px;
}

/* ===== Город: таблица месяца ===== */

.np-table-wrapper {
  overflow-x: auto;
}

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.np-table th,
.np-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.np-table thead th {
  background-color: #f3f4f6;
  font-weight: 600;
  color: #374151;
}

/* подсветка текущей даты — актуальный стиль */
.np-table tbody tr.np-today-row {
  background-color: #fff7ed;
  font-weight: 600;
}

.np-table tbody tr.np-today-row td {
  border-top: 2px solid #fb923c;
  border-bottom: 2px solid #fb923c;
}

/* ===== Город: карта и местоположение ===== */

.np-map-container {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #f5f5f5;
}

.np-map-container iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: none;
}

.np-location {
  margin-top: 8px;
}

.np-location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.np-location-item {
  display: flex;
  gap: 6px;
}

.np-location-item .np-label {
  color: #6b7280;
}

.np-location-item .np-value {
  font-weight: 600;
}

/* ===== Город: шапка страницы города ===== */

.np-city-header {
  text-align: center;
  margin-bottom: 28px;
}

.np-city-header-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  padding: 16px 28px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  margin-left: auto;
  margin-right: auto;
}

.np-city-icon {
  font-size: 2.3rem;
  color: #047857;
}

.np-city-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.np-city-country {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #4b5563;
}

/* ===== Город: SEO-блок ===== */

.np-seo {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.np-seo h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
}

.np-seo p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 8px;
}

.np-seo p:last-child {
  margin-bottom: 0;
}

.np-intro-text-bottom .np-intro-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.np-intro-text-bottom .np-intro-text p {
  margin-bottom: 10px;
}

/* ===== Город: адаптив ===== */

@media (max-width: 640px) {
  .np-city-container {
    padding: 16px 10px 28px;
  }

  .np-section {
    padding: 16px 12px;
  }

  .np-title {
    font-size: 22px;
  }

  .np-section-title {
    font-size: 18px;
  }
}

/* ===== Кибла ===== */

.np-qibla-card {
  border: 1px solid #216b4d;
  border-radius: 22px;
  padding: 28px 28px 30px;
  background: #fff;
}

.np-qibla-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 28px;
  line-height: 1.2;
  color: #0d6b55;
  font-weight: 700;
}

.np-qibla-title-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0d6b55;
  color: #fff;
  font-size: 14px;
  flex: 0 0 26px;
}

.np-qibla-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.np-qibla-info {
  padding-top: 2px;
}

.np-qibla-city {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.35;
  color: #222;
}

.np-qibla-details p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #6d6d6d;
}

.np-qibla-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 420px;
  max-width: 100%;
  margin-top: 18px;
  padding: 16px 28px;
  border-radius: 16px;
  background: #44444c;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: 0.2s ease;
}

.np-qibla-button:hover {
  background: #33333a;
}

.np-qibla-visual {
  display: flex;
  align-items: stretch;
}

.np-qibla-compass {
  width: 100%;
  border-radius: 18px;
  background: #e8fbf1;
  border: 1px solid #bfead9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  text-align: center;
}

.np-qibla-arrow {
  font-size: 94px;
  line-height: 1;
  color: #0f8f63;
  transform: rotate(135deg);
  margin-bottom: 18px;
}

.np-qibla-caption {
  font-size: 17px;
  line-height: 1.35;
  color: #17745c;
}

.np-qibla-subcaption {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #6d7f79;
}

@media (max-width: 768px) {
  .np-qibla-grid {
    grid-template-columns: 1fr;
  }

  .np-qibla-button {
    min-width: 0;
    width: 100%;
  }

  .np-qibla-title {
    font-size: 24px;
  }
}

/* ===== Метод расчёта ===== */

.np-method-note {
  margin: 8px 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  font-size: 0.85rem;
  color: #065f46;
  line-height: 1.5;
}

/* ===== Шапка сайта ===== */

.np-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.np-header-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Верхняя панель */
.np-header-top {
  background-color: #047857;
  color: #ffffff;
  font-size: 0.85rem;
}

.np-header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
}

.np-header-top-links {
  display: flex;
  gap: 16px;
}

.np-header-top-link {
  color: #e5f7f0;
  text-decoration: none;
}

.np-header-top-link:hover {
  text-decoration: underline;
}

.np-header-top-note {
  opacity: 0.9;
}

/* Основная шапка */
.np-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

/* Логотип */
.np-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.np-logo-icon {
  font-size: 2.2rem;
  color: #059669;
}

.np-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

/* Кнопка в шапке */
.np-header-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 18px;
  background-color: #047857;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.np-header-button:hover {
  background-color: #065f46;
}

.np-header-button-icon {
  font-size: 0.95rem;
}

.np-header-button-text {
  display: inline-block;
}

/* Мобильная кнопка и меню */
.np-mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #4b5563;
}

.np-mobile-menu-panel {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9999;
  padding: 20px 16px;
  overflow-y: auto;
}

.np-mobile-menu-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.np-mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
}

.np-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Адаптив для шапки */
@media (max-width: 768px) {
  .np-header-main {
    gap: 8px;
  }

  .np-header-button-text {
    display: none;
  }

  .np-mobile-menu-button {
    display: inline-flex;
  }
}

/* ===== Страница страны ===== */

.np-country-page {
  background-color: #f9fafb;
  padding: 24px 0;
}

.np-country-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 16px 32px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Шапка страницы страны */
.np-country-header {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 12px;
}

.np-country-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.np-country-header-text {
  flex: 1 1 280px;
}

.np-country-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #064e3b;
}

.np-country-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* Правая карточка "Быстрый переход" */
.np-country-hero-card {
  flex: 0 0 280px;
  background-color: #f9fafb;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
}

.np-country-hero-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}

.np-country-hero-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 8px;
}

.np-country-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.np-country-hero-link {
  font-size: 14px;
  color: #047857;
  text-decoration: none;
}

.np-country-hero-link:hover {
  text-decoration: underline;
}

/* Список городов (UL) */
.np-city-list-ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  columns: 2;
  column-gap: 30px;
}

.np-city-list-item {
  margin-bottom: 4px;
}

.np-city-list-item a {
  color: #065f46;
  text-decoration: none;
}

.np-city-list-item a:hover {
  text-decoration: underline;
}

/* Сетка стран / городов */
.np-prayer-index {
  background-color: #f9fafb;
  padding: 24px 16px 40px;
}

.np-prayer-index .np-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.np-hero {
  padding: 24px 0 16px;
}

.np-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.np-hero-text {
  flex: 1 1 320px;
}

.np-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #064e3b;
}

.np-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

/* Виджет поиска на стране/индексе, если оставишь */
.np-hero-widget {
  flex: 0 0 320px;
}

.np-hero-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Секции на странице списка стран/городов */
.np-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.np-country-block {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 16px 14px;
  border: 1px solid #e5e7eb;
}

.np-country-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.np-country-text {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}

.np-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.np-city-link {
  color: #065f46;
  text-decoration: none;
}

.np-city-link:hover {
  text-decoration: underline;
}

/* SEO-блок на списке стран */
.np-section.np-seo {
  margin-top: 24px;
}

.np-section.np-seo h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.np-section.np-seo p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

/* Адаптация для страницы страны */
@media (max-width: 768px) {
  .np-country-header-inner {
    flex-direction: column;
  }

  .np-country-hero-card {
    flex: 1 1 auto;
  }

  .np-country-container {
    padding: 18px 12px 24px;
  }
}

/* ===== Центровка шаблона города в GeneratePress ===== */

body.page-template-page-prayer-city-php .inside-article {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-prayer-city-php .content-area {
  margin-left: auto;
  margin-right: auto;
}

body.page-template-page-prayer-city-php .np-city-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

body.page-template-page-prayer-city-php .city-intro {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.page-template-page-prayer-city-php .city-intro > * {
  margin-left: auto;
  margin-right: auto;
}

/* ===== 404 страница ===== */

.np-404-page {
  background-color: #f9fafb;
  padding: 40px 16px 60px;
}

.np-404-container {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 32px 24px 36px;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
}

/* Иконка */
.np-404-icon {
  margin-bottom: 18px;
}

.np-404-icon i {
  font-size: 64px;
  color: #047857;
}

/* Заголовки */
.np-404-code {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111827;
}

.np-404-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1f2937;
}

/* Текст */
.np-404-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 20px;
}

/* Кнопки */
.np-404-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 8px;
}

.np-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* Основная кнопка */
.np-404-btn-primary {
  background-color: #047857;
  border: 1px solid #047857;
  color: #ffffff;
}

.np-404-btn-primary:hover {
  background-color: #065f46;
  border-color: #065f46;
}

/* Вторичная кнопка */
.np-404-btn-secondary {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.np-404-btn-secondary:hover {
  background-color: #f9fafb;
}

/* Адаптив 404 */
@media (max-width: 640px) {
  .np-404-container {
    padding: 24px 18px 30px;
  }

  .np-404-code {
    font-size: 34px;
  }

  .np-404-title {
    font-size: 20px;
  }
}

.np-calendar-day-today {
  background-color: #0f766e;
  color: #fff;
  border-radius: 6px;
}

.np-calendar-day-event {
  background-color: #facc15;
  color: #222;
  border-radius: 6px;
}

body.page-template-page-prayer-city-kz-php .inside-article {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-prayer-city-kz-php .content-area {
  margin-left: auto;
  margin-right: auto;
}

body.page-template-page-prayer-city-kz-php .np-city-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

body.page-template-page-prayer-city-kz-php .city-intro {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.page-template-page-prayer-city-kz-php .city-intro > * {
  margin-left: auto;
  margin-right: auto;
}

