/*
Theme Name: Simply Static Minimal
Author: Maher
Version: 1.1
Description: Minimal WordPress theme optimized for Simply Static exports with improved UI/UX.
*/


body {
  font-family: 'Tajawal', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


ul, ol {
    line-height: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  background: #ffffff;
  padding: 1rem 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}


header h1 {
  margin: 0;
  font-size: 2rem;
  display:none;
}

header p {
  margin: 0;
  color: #777;
  line-height:1.6rem;
}


header img {
  margin-bottom: 0.5rem;
}


#search-logo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#search {
height:4rem;
}

.gsc-control-cse {
    border-color: transparent!important;
    background-color: transparent!important;

    background-color: transparent !important;
    height: 4rem;
}
.gsc-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.gsc-search-button {
    height: 32.5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

table.gsc-search-box td.gsc-input {
    padding-left: 0 !important;
    border: 0;
}

.gsc-input-box {
    border: 1px solid #dfe1e5;
    background: #fff;
    height: 30px;
}

.gsc-control-cse {
    padding: 0 !important;
    border: 0;
}



.top-nav ul {
    list-style: none;
    padding: 0;
    list-style: none;
    align-items: center;
    line-height: 2.5;
}


.top-nav  li {
    margin: .1rem;
    padding: 0.4rem;
	border:1px solid #1a73e838;
    border-radius: 5px;
	  display: inline;

}


.top-nav  li.page_item:hover,
.top-nav ul li:hover {
  background-color: #1a73e810;
  transition: background 0.2s ease-in-out;
}
a:hover {
  color: #0c5acc;
}

.top-nav li.current_page_item {
  background: #1a73e8;
  color: white;
}
.top-nav li.current_page_item a {
  color: white !important;
}


article a {
  word-break: break-word;
}


h2, h1 {
  color: #444;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 1rem 0;
}






#summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}

#summary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

#thumb {
  flex: 0 0 180px;
  max-width: 30%;
  overflow: hidden;
  border-radius: 8px;
}

#thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

#excerpt {
  flex: 1;
}

#excerpt h2 {
  margin-top: 0;
  font-size: 1.4rem;
  line-height: 1.3;
  color: #1a73e8;
}

#excerpt p {
  font-size: 1rem;
  line-height: 1.6;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #1a73e838;
  border-radius: 4px;
  text-decoration: none;
  color: #1a73e8;
  transition: background 0.2s ease;
}

.pagination .page-numbers:hover {
  background-color: #1a73e810;
}

.pagination .current {
  background-color: #1a73e8;
  color: white;
  font-weight: bold;
  border-color: #1a73e8;
}


.single-post h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.content {
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.post-tags {
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
}



.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  font-size: 0.95rem;
}


.related-posts {
  margin-top: 3rem;
}
.related-posts ul {
  list-style: none;
  padding: 0;
}
.related-posts li {
  margin: 0.5rem 0;
}

.share-buttons {
  margin-top: 2rem;
  font-size: 0.95rem;
}
.share-buttons a {
  color: #1a73e8;
  text-decoration: none;
  margin-right: 0.5rem;
}

.page-content {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.page-body {
  line-height: 1.8;
  font-size: 1.1rem;
}

.page-categories {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.page-categories a {
  margin-left: 0.5rem;
  text-decoration: none;
  color: #1a73e8;
}

.site-footer {
  background-color: #222;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: #666;
  border-top: 1px solid #eaeaea;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.footer-widgets > div {
  flex: 1 1 30%;
  margin-bottom: 1rem;
}

.footer-widgets h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #1a73e8;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social a {
  color: #1a73e8;
  text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}




@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ddd;
  }
  header, article, footer {
    color: #ddd;
  }
  a {
    color: #90caf9;
  }
  .container{background-color: #222;}
  
  h2, h1 {
  color: #bbb;
}
  
  
}

@media screen and (max-width: 768px) {
  header h1 {
    display: block;
    font-size: 1.5rem;
    text-align: center;
  }
  
  #search-logo {
    flex-direction: column;
    align-items: center;
  }
  

.gsc-input-box {
    padding-top: 0!important;
    padding-bottom: 0!important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    margin: 1rem 0;
}

  .top-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .top-nav li {
    width: 100%;
    text-align: center;
  }
  
  #thumb {
    flex-basis: 100%;
    max-width: 100%;
  }
  
  #summary {
    flex-direction: column;
    align-items: center;
  }
  #thumb img {  
    width: 100%;
    height: auto;
  }
  #excerpt {
    text-align: center;
  }   
  
}

@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .top-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .top-nav li {
    width: 100%;
    text-align: center;
  }
  
  #thumb {
    flex-basis: 100%;
    max-width: 100%;
  }
  
  #summary {
    flex-direction: column;
    align-items: center;
  }
  
  #thumb img {  
    width: 100%;
    height: auto;
  }
  
  #excerpt {
    text-align: center;
  }   
}