/*
Theme Name: My Custom Theme
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: Custom theme with ul/li/a based horizontal dropdown menu
Version: 1.4
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----- Header Styles ----- */
header {
  background-color: #222;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  overflow: visible;
}





/* Header Top */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: white;
  padding: 15px 20px;
  position: relative;
}
#confirm-search ,
#search-toggle ,
#sidebar-toggle {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.site-title {
  flex: 1;
  text-align: center;
}
.site-title-sidebar {
    display: block;
    text-decoration: none !important;
    text-align: center;
    padding: 10px 0;
}

.site-title-sidebar-text {
    color: white !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 25px;
    pointer-events: auto;
    text-shadow: 1px 0px 1px #CCCCCC, 0px 1px 1px #EEEEEE, 2px 1px 1px #CCCCCC, 1px 2px 1px #EEEEEE, 3px 2px 1px #CCCCCC, 2px 3px 1px #EEEEEE, 4px 3px 1px #CCCCCC, 3px 4px 1px #EEEEEE, 5px 4px 1px #CCCCCC, 4px 5px 1px #EEEEEE, 6px 5px 1px #CCCCCC, 5px 6px 1px #EEEEEE, 7px 6px 1px #CCCCCC;
}

.site-title-sidebar-text:hover,
.site-title-sidebar-text:focus,
.site-title-sidebar-text:visited {
    color: white !important;
    text-decoration: none !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}
.site-title-text {
  color: white !important;
  text-decoration: none !important;
  display: inline-block
  font-weight: bold;
  font-size: 20px;
  pointer-events: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-title-text:hover,
.site-title-text:focus,
.site-title-text:visited {
  color: white !important;
  text-decoration: none !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#header-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 20px;
    min-width: 200px;
    background: #222;
    padding: 10px;
    border-radius: 4px;
    z-index: 10000 !important;
}

#header-search-form.show {
    display: block !important;
}

#header-search-form input {
    width: 150px;
    padding: 6px;
    background: #333;
    color: white;
    border: none;
}

#header-search-form button {
    padding: 6px 10px;    
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}






/* Sidebar Default State (Closed) */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* Start off-screen */
  width: 250px;
  height: 100%;
  background-color: #222;
  color: #fff;
  padding: 30px 20px;
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

/* Sidebar Open State */
.sidebar.open {
  left: 0; /* Slide into view */
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin-top: 0;
}

.sidebar-menu a {
  font-size: 16px;
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 12px;
  border-radius: 4px;
}
/* Horizontal Line */
.sidebar-menu hr {
  border: 0;
  height: 1px;
  background: #444;
  margin: 0;
  padding: 0;
}
.sidebar-menu a:hover {
  background: #444;
}
/* Dropdown */
/*.has-dropdown .dropdown {
  display: none;
  list-style: none;
  margin-top: 5px;
  padding-left: 15px;
}*/
/* Dropdown */
/* Dropdown */
/* Dropdown */
/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  list-style: none;
  margin-top: 5px;
  padding-left: 15px;
}

.has-dropdown.show .dropdown {
  display: block;
}
.has-dropdown.show > .dropdown {
  display: block;
}
.dropdown li a {
  font-size: 14px;
  color: #ccc;
}
.has-dropdown .sub-dropdown .sub-menu {
  display: none;
  position: absolute;
  left: 100%; /* Align to the right of parent category */
  top: 0;
  padding-left: 20px;
  list-style: none;
  background: #222;
  border: 1px solid #444;
  z-index: 1000;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for better look */
}

/* Show sub-menu when parent-cat has .show class */
.parent-cat.show .sub-dropdown .sub-menu {
  display: block;
}

/* Ensure sub-menus don't open with Categories click */
.has-dropdown.show .sub-dropdown .sub-menu {
  display: none;
}

/* Styling for parent and child links */
.parent-cat a,
.child-link {
  font-size: 16px;
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease; /* Smooth hover effect */
}

.parent-cat a:hover,
.child-link:hover {
  background: #444;
}

/* Ensure parent-cat and sub-dropdown are properly positioned */
.parent-cat {
  position: relative;
}

.sub-dropdown {
  position: relative;
  margin-left: 10px; /* Slight offset for better alignment */
} 























/* ----- Main Content ----- */
main {
  flex: 1;
  padding: 2em;
}




/*Post Show Design In index.php */
/* Container */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  padding: 2em 1em;
  max-width: 800px;
  margin: auto;
}

/* Individual post card */
.post-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5em;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Title */
.post-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.post-title a {
  text-decoration: none;
  color: #111;
}

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

/* Thumbnail */
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* Excerpt */
.post-excerpt {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.2em;
}

/* Footer */
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.comment-link {
  color: red;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.comment-link:hover {
  text-decoration: underline;
}

.read-more {
  color: red;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}






/*Share Icon*/
.share-icon {
  position: absolute;
  top: 15px;
  right: 15px;
}

.share-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 20px;
  cursor: pointer;
}

.share-btn:hover {
  color: #e60023;
}
.share-popup {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 160px;
}

.share-popup a, .share-popup .copy-link {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-radius: 4px;
}

.share-popup a:hover, .share-popup .copy-link:hover {
  background: #f0f0f0;
}






.popular-news-section {
  max-width: 800px;
  margin: 4em auto;
  padding: 0 20px;
}

.section-heading {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 1.2em;
}

.popular-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.popular-item {
  display: flex;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 10px;
  align-items: flex-start;
  transition: background 0.3s;
}

.popular-item:hover {
  background: #f9f9f9;
}

.popular-thumb img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.popular-content {
  flex: 1;
}

.popular-title {
  font-size: 16px;
  margin: 0 0 0.4em;
}

.popular-title a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.popular-title a:hover {
  text-decoration: underline;
}

.popular-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 0 0.5em;
}

.popular-readmore {
  font-size: 13px;
  color: #e60023;
  text-decoration: none;
}

.popular-readmore:hover {
  text-decoration: underline;
}




 




/* ----- Footer ----- */
/*footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1em;
}*/

.site-footer {
  background: #111827;
  color: #eee;
  padding: 3em 1em 1em;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
}

.footer-column h3 {
  margin-bottom: 0.8em;
  font-size: 17px;
  color: #fff;
  border-bottom: 2px solid #e60023;
  display: inline-block;
  padding-bottom: 0.3em;
}

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

.footer-column ul li {
  margin-bottom: 0.5em;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #e60023;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 1em;
}

.footer-social a {
  color: #ccc;
  font-size: 18px;
  margin-right: 10px;
}

.footer-social a:hover {
  color: #e60023;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2em;
  padding-top: 1em;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}
.footer-bottom a {
  color: #aaa;
  margin: 0 5px;
}
.footer-bottom a:hover {
  color: #e60023;
}
