/*
Theme Name:  TravelBuz24 

Description: Smart Travel Tips & Budget Adventures
Version: 1.0
Author: Abdelghafour
*/
  .table-of-contents {
  border: 1px solid #ccc; /* وضوح أفضل من #ddd */
  border-radius: 10px;
  padding: 20px;
  background-color: #e9ecef; /* أغمق قليلاً لتحسين التباين */
  margin-bottom: 30px;
}

.table-of-contents h3 {
  margin-top: 0;
  font-size: 20px;
  color: #1b1b1b; /* لون غامق للعناوين لتباين ممتاز */
  font-weight: bold;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #bbb; /* أغمق قليلاً */
}

.table-of-contents ul li:last-child {
  border-bottom: none;
}

.table-of-contents ul li a {
  color: #0a3d62; /* أزرق داكن لتباين قوي جدًا */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.table-of-contents ul li a:hover {
  color: #1d3557;
  text-decoration: underline;
}


.pg-container {
  max-width: 960px;
  margin: 50px auto;
  padding: 40px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: #333;
}
.pg-container h1 {
  text-align: center;
  font-size: 36px;
  color: #0073a8;
  margin-bottom: 30px;
}
.pg-container h2 {
  font-size: 24px;
  margin-top: 30px;
  color: #005c88;
}
.pg-container p {
  font-size: 16.5px;
  margin-top: 10px;
}
.pg-container ul {
  margin-left: 20px;
}
@media(max-width: 600px){
  .pg-container {
    padding: 25px 15px;
  }
  .pg-container h1 {
    font-size: 28px;
  }
}

/* single page*/
.post-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: #333;
  }

  .post-title {
    font-size: 36px;
    color: #1d3557;
    margin-bottom: 10px;
  }

 .post-meta {
  font-size: 14px;
  color: #444; /* تباين أقوى بكثير */
  margin-bottom: 10px;
}

.views-count {
  font-size: 14px;
  color: #444; /* نفس الشيء للحفاظ على الاتساق */
  margin-bottom: 30px;
}


  .post-categories {
    margin-bottom: 10px;
  }

  .post-categories a {
    color: #457b9d;
    text-decoration: none;
    font-weight: 500;
  }

  .post-categories a:hover {
    text-decoration: underline;
  }

  .post-content {
    font-size: 18px;
  }

.post-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.post-tags span {
  display: inline-block;
  background: #e0f7fa; /* خلفية فاتحة مائلة للأزرق السماوي */
  color: #004d40;       /* أخضر-أزرق غامق لتباين ممتاز */
  padding: 6px 12px;
  margin: 5px 5px 0 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}


  .share-buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #457b9d;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s;
  }

  .share-buttons a:hover {
    background-color: #1d3557;
  }

  .related-posts {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 40px;
  }

  .related-posts h2 {
    font-size: 24px;
    color: #1d3557;
    margin-bottom: 20px;
  }

  .related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
  }

  .related-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .related-item a {
    text-decoration: none;
    color: #1d3557;
    font-weight: bold;
    font-size: 16px;
  }

  @media (max-width: 768px) {
    .post-title {
      font-size: 28px;
    }
    .related-item {
      flex: 1 1 100%;
    }
  }



.faq-section {
  margin-top: 60px;
  padding: 30px;
  background-color: #f5f7fa; /* خلفية أفتح توفر تباينًا أفضل */
  border: 1px solid #bbb; /* لون حدود أوضح من #ccc */
  border-radius: 10px;
}

.faq-section h2 {
  color: #0f0f0f; /* أسود تقريبًا لتباين ممتاز */
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  padding-bottom: 15px;
  border-bottom: 1px dashed #888; /* أوضح من #aaa */
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0;
  font-size: 18px;
  color: #002b5c; /* أزرق داكن جدًا لتباين ممتاز مع الخلفية */
  font-weight: 700;
  position: relative;
}

.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  font-weight: bold;
  color: #002b5c; /* نفس لون العنوان للحفاظ على الاتساق */
}

.faq-item.open h3::after {
  content: '-';
}

.faq-item p {
  display: none;
  padding: 10px 0 0;
  color: #111; /* أسود تقريبًا لتباين مثالي مع الخلفية */
}

.faq-item.open p {
  display: block;
}



.responsive-lcp-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

  
  
  
  .currency-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 30px 20px;
  background: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  font-family: 'Segoe UI', sans-serif;
}
.currency-container h1 {
  text-align: center;
  font-size: 30px;
  color: #0077aa;
  margin-bottom: 30px;
}
.currency-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.currency-form label {
  font-weight: 500;
  color: #333;
}
.currency-form input[type="number"],
.currency-form select {
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #ffffff;
  transition: 0.3s;
}
.currency-form input[type="number"]:focus,
.currency-form select:focus {
  border-color: #0077aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,119,170,0.15);
}
.currency-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%230077aa" height="24" viewBox="0 0 24 24" width="24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
.convert-btn {
  background: #0077aa;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.convert-btn:hover {
  background: #005e89;
}
.result {
  margin-top: 25px;
  text-align: center;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 500;
}
@media (max-width: 600px) {
  .currency-container {
    margin: 20px;
    padding: 20px;
  }
  .currency-container h1 {
    font-size: 24px;
  }
}



/* تنسيق المحتوى المستورد من the_content */
.page-content {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  background: #ffffff;
}

.page-content p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #333;
}

/* ✅ العناوين العامة بلون أسود وخالية من أي حدود */
.page-content h2,
.page-content h4 {
  margin: 40px 0 20px;
  color: #000; /* لون أسود طبيعي */
  border: none;
  padding-left: 0;
  font-weight: bold;
}

/* ✅ h3 باللون الأزرق */
.page-content h3 {
  margin: 40px 0 20px;
  color: #0077aa; /* لون أزرق */
  border: none;
  padding-left: 0;
  font-weight: bold;
}

.page-content ul,
.page-content ol {
  margin-left: 25px;
  margin-bottom: 20px;
  padding-left: 10px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content a {
  color: #0077aa;
  text-decoration: underline;
}

.page-content a:hover {
  color: #005e89;
}

@media (max-width: 768px) {
  .page-content {
    padding: 0 15px;
  }
}





/*page travel budget*/
.budget-container {
  max-width: 850px;
  margin: 50px auto;
  padding: 40px 25px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
}
.budget-container h1 {
  text-align: center;
  font-size: 36px;
  color: #0077aa;
  margin-bottom: 30px;
}
.budget-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.budget-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}
.budget-form input,
.budget-form select {
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
}
.budget-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%230077aa" height="24" viewBox="0 0 24 24" width="24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
}
.budget-form input:focus,
.budget-form select:focus {
  border-color: #0077aa;
  box-shadow: 0 0 0 2px rgba(0,119,170,0.2);
  outline: none;
}
.submit-btn {
  grid-column: 1 / -1;
  background: #0077aa;
  color: white;
  padding: 14px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover {
  background: #005f88;
}
.result-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  background: #f4f9fc;
  font-size: 18px;
  color: #2b2d42;
  text-align: center;
}
#chartContainer {
  margin-top: 30px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
}
.download-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0077aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.download-btn:hover {
  background-color: #005f88;
}


/*visa check*/

.visa-container {
  max-width: 720px;
  margin: 50px auto;
  padding: 30px 20px;
  background: #f9fefe;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
}

.visa-container h1 {
  text-align: center;
  color: #0073a8;
  margin-bottom: 30px;
  font-size: 28px;
}

.visa-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.select-wrapper {
  position: relative;
  flex: 1 1 48%;
}

.select-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 60px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
}

.select-wrapper .flag-circle {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.select-wrapper .flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visa-form button {
  flex: 1 1 100%;
  background: #0073a8;
  color: white;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.visa-form button:hover {
  background: #005c88;
}

.result-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  background: #eef9fc;
  font-size: 18px;
  color: #333;
  text-align: center;
}

@media (max-width: 600px) {
  .select-wrapper, .visa-form button {
    flex: 1 1 100%;
  }
}

/* لإخفاء label عن العين مع الإبقاء على فائدتها لقارئات الشاشة */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

    /* Make sure the entire page fills the viewport */
 html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
  
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
  }

  .modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-align: center;
  }

  .modal-content input[type="email"] {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .modal-content button {
    background-color: #0066cc;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
  }


/* footer.php */ 
footer {
  background-color: #e9f2fa; /* أغمق من السابق */
  padding: 2rem 1.5rem;
  text-align: center;
  color: #222; /* نص أغمق لتباين أفضل */
  font-size: 0.95rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: #1a1a1a; /* تباين واضح */
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0079b3; /* خط سفلي بلون متباين */
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #0079b3;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #444; /* أفضل من #777 */
}
