

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}


body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}
/* HEADER TOP */
.header_top {
  background: #039ee3;
  color: #fff;
  padding: 10px 15px;
}

.header_top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.topbar-left ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

.topbar-left ul li {
  margin-right: 10px;
}

.social_icon ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

.social_icon a {
  color: white;
  font-size: 16px;
}

/* HEADER LOGO + TITLE */
#header {
  background: #2d3436;
  text-align: center;
  padding: 20px 0;
}

#logo img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#header h1 {
  font-size: 36px;
  color: #fff;
}

/* NAVIGATION MENU */
#menu-bar {
  background: #0984e3;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 0;
}

.menu li {
  margin: 5px;
}

.menu li a {
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.menu li a:hover,
.menu li a.active {
  background: #74b9ff;
}

/* MAIN CONTENT & SIDEBAR */
.main-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px;
}

/* BLOG POSTS */
.post-container-home {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-content {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.post-content:hover {
  transform: translateY(-4px);
}

.post-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.inner-content {
  padding: 15px;
}

.inner-content h3 a {
  font-size: 20px;
  color: #2d3436;
  text-decoration: none;
}

.post-information {
  font-size: 14px;
  color: #888;
  margin: 10px 0;
}

.description {
  color: #444;
  font-size: 15px;
}

.read-more {
  font-size: 14px;
  color: #2980b9;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #2980b9;
  border-radius: 5px;
  background-color: #fff;
  transition: all 0.3s ease;
  display: inline-block;
}

.read-more:hover {
  background-color: #2980b9;
  color: #fff;
  border-color: #fff;
}

/* SIDEBAR */
#sidebar {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-box-container,
.recent-post-container {
  margin-bottom: 30px;
}

.search-box-container input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
}

.recent-post {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.recent-post img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.recent-post h5 {
  margin: 0;
  font-size: 15px;
  color: #2980b9;
}

.recent-post span {
  font-size: 12px;
  color: #7f8c8d;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 20px 0;
}

.pagination li a {
  padding: 8px 12px;
  margin: 0 5px;
  background: #dfe6e9;
  color: #2d3436;
  border-radius: 4px;
  text-decoration: none;
}

.pagination li a:hover,
.pagination li.active a {
  background: #0984e3;
  color: #fff;
}

/* FOOTER */
#footer {
  background: #2d3436;
  color: #dfe6e9;
  text-align: center;
  padding: 20px 0;
  border-top: 4px solid #0984e3;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
  .main-wrapper {
    flex-direction: column;
  }

  .post-container-home {
    grid-template-columns: 1fr;
  }

  .recent-post {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-post img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .menu {
    flex-direction: column;
    align-items: center;
  }

  .header_top .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-left ul {
    flex-direction: column;
    gap: 5px;
  }
}
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px 0;
    font-size: 14px;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-description {
    margin-right: 20px;
}

.footer-credit a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-description {
        margin: 0 0 15px 0;
    }
}