/*
Theme Name: Sameer Website Theme
Author: Sameer Rahman
Version: 1.0
*/

/* ===== GLOBAL ===== */

html,
body {
  margin: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
}

/* MAIN LAYOUT */

.layout {
  display: flex;
}

.highlight-blue {
  color: #2b6cff;
}

/* SIDEBAR */

.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 60px 40px;
}

.site-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.site-subtitle {
  font-size: 12px;
  color: #9e9e9e;
  margin-top: 8px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.menu a {
  display: block;
  text-decoration: none;
  color: #111;
  font-size: 18px;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #2b6cff;
}

/* MOBILE NAVBAR */

.mobile-navbar {
  display: none;
}

/* CONTENT AREA */

.content {
  margin-left: 260px;
  padding: 60px 50px;
}

/* HOME PAGE */

.home-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 820px;
  min-width: 0;
}

.home-content {
  min-width: 0;
}

/* IMAGE EXACT CROP */

.home-image {
  width: 500px;
  height: 350px;
  overflow: hidden;
}

.home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TYPOGRAPHY */

.home-title {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
}

.home-content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.home-content strong {
  font-weight: 700;
}

/* SOCIAL ICONS */

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
  font-size: 14px;
}

/* ===== RESPONSIVE FIX ===== */

@media (max-width: 900px) {
  /* remove flex layout */
  .layout {
    display: block;
  }

  /* hide sidebar */
  .sidebar {
    display: none;
  }

  /* show mobile navbar */
  .mobile-navbar {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }

  .mobile-logo {
    font-size: 20px;
    margin: 0;
  }

  /* FULL WIDTH CONTENT */
  .content {
    margin-left: 0 !important;
    width: 100%;
    padding: 30px 20px;
  }

  /* STACK LAYOUT */
  .home-wrapper {
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
  }

  /* RESPONSIVE IMAGE */
  .home-image {
    width: 100%;
    height: auto;
    max-height: 350px;
  }
}

.mobile-navbar {
  display: none;
}

.mobile-hamburger {
  cursor: pointer;
}

.mobile-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.mobile-menu a {
  text-decoration: none;
  color: #111;
  margin-bottom: 15px;
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 900px) {
  .mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }
}

/* BLOG LAYOUT */

.blog-layout {
  display: flex;
  gap: 60px;
  max-width: 1100px;
}

/* LEFT MAIN CONTENT */

.blog-main {
  flex: 1;
  min-width: 0;
}

.blog-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
}

.blog-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.blog-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.blog-content {
  font-size: 16px;
  line-height: 1.8;
}

/* RIGHT SIDEBAR */

.blog-sidebar {
  width: 260px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.6;
}

.blog-sidebar h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 12px;
}

.blog-sidebar p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-sidebar hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* RECENT POSTS */

.recent-post {
  margin-bottom: 14px;
}

.recent-post a {
  display: block;
  color: #2b6cff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

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

/* RESPONSIVE */

@media (max-width: 1200px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-sidebar {
    width: 100%;
    margin-top: 60px;
    font-size: 15px;
  }

  .blog-title {
    font-size: 26px;
  }
}
