:root {
    --bg-color: #f8fafc;
    --primary-blue: #0f172a;
    --gold-accent: #d4af37;
    --card-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #f1f5f9;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    margin-inline: auto;
}

.foot {
    max-width: 1000px;
    margin-inline: auto;
}

.foot a{
  color: var(--text-muted);
  text-decoration:none;
  padding:0 4px;
}

.foot a:hover{
  text-decoration:underline;
}

/* --- Top Nav --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-decoration: none;
}

.lang-switch {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 50px;
}

.lang-btn {
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    color: var(--text-muted);
}

.lang-btn.active {
    background: var(--card-white);
    color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
  .home-btn{
  text-decoration: none;
}

/* --- Header --- */
.page-header { margin-bottom: 25px; }

.city-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
    text-align: start;
}

.city-name span { color: var(--gold-accent); }

/* --- Hero --- */
.hero {
    background: var(--card-white);
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-inline-start: 6px solid var(--gold-accent);
}

.timer-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-digits {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.1;
    margin: 15px 0;
    font-family: monospace;
}

.current-date-info {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Prayer Grid --- */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.prayer-row{
    background: var(--card-white);
    padding: 20px 10px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.prayer-row.active {
    background: var(--primary-blue);
    border-bottom: 3px solid var(--gold-accent);
}

.prayer-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.prayer-time {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.prayer-row.active .prayer-name { color: var(--gold-accent); }
.prayer-row.active .prayer-time { color: #fff; }

/* --- Cards --- */
.card {
    background: var(--card-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.card h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

/* --- Table --- */
.table-responsive { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--border-light);
	text-align: start; 
}

tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
}

.td-date {
    font-weight: 700;
    color: var(--primary-blue);
}

/* --- FAQ --- */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-content dt {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    border-inline-start: 3px solid var(--gold-accent);
    padding-inline-start: 12px;
}

.faq-content dd {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Cities --- */
.city-flex {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.city-tag {
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
}

.city-tag:hover {
    background: var(--gold-accent);
    color: #fff;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 850px) {
    .prayer-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-container { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .city-flex {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .city-flex {
    grid-template-columns: 1fr;
  }
}



.calc-settings{
  padding:0 0px 14px 0px;
}
/* summary 看起来像普通文字链接 */
.calc-summary{
  list-style:none;
  cursor:pointer;
  user-select:none; font-weight:bold;
  display:inline-flex;
  gap:6px;
  justify-content: flex-end;
  text-align: right;
  width:100%;   /* 关键：必须让它占满一行，才能真正靠右 */
}

/* 去掉浏览器默认三角 */
.calc-summary::-webkit-details-marker{
  display:none;
}

/* hover 更像链接 */
.calc-summary:hover{
  color:;
}

/* 小箭头（可选，不要可以删除这三段） */
.calc-summary::after{
  content:"▾";
  font-size:12px;
  transition:transform .2s ease;
}

details[open] > .calc-summary::after{
  transform:rotate(180deg);
}

/* 内容间距 */
.calc-content{
  margin-top:12px;
}

/* RTL 适配 */
html[dir="rtl"] .calc-summary,
body.lang-ar .calc-summary{
  flex-direction:row-reverse;
  text-align:right;
}

/* ===== Calc options: select layout ===== */
.calc-options{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  padding:14px;
}

/* Each field */
.calc-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.calc-field label{
  font-size:13px;
  font-weight:600;
  color: var(--text-muted);
}

/* Select style */
.calc-field select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border-light);
  background:#f8fafc;
  font-size:14px;
  color: var(--text-muted);
  cursor:pointer;
}

/* Focus */
.calc-field select:focus{
  outline:none;
  border:1px solid var(--border-light);
  background:#ffffff;
}

/* ===== Mobile: stack ===== */
@media (max-width: 768px){
  .calc-options{
    grid-template-columns:1fr;
  }
}

/* ===== RTL: Arabic habit only (text still English) ===== */
[dir="rtl"] .calc-options{
  direction:rtl;
}

[dir="rtl"] .calc-field{
  text-align:right;
}

[dir="rtl"] .calc-field select{
  direction:rtl;
}


/*country home*/
  .country{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  text-decoration:none;
  color:#374151;
}

.country:hover{
  text-decoration:underline;
}
.country-name{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Grid: keep same responsive rules as city-grid */
.country-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
}
.flag{
  width:40px;
  height:34px;
  flex:0 0 auto;
  border-radius:2px;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

.flag img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* 平板 */
@media (max-width: 992px){
  .country-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机 */
@media (max-width: 768px){
  .country-grid{
    grid-template-columns: repeat(2, 1fr);
	
  }
}
@media (max-width: 600px){
  .country-grid{
    grid-template-columns: 1fr;
	
  }
}

