/*
Theme Name: FreeCVHub Blog
Author: Ajmal
Version: 1.0
Description: Ultra-fast SEO-friendly blog theme for FreeCVHub
*/

/* ================================
   Global Reset
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================
   Base Layout + Sticky Footer
================================ */
html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  background: #ffffff;
  color: #111111;

  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

/* Main grows so footer stays bottom */
.main {
  flex: 1;
  padding-top: 90px;
}

/* ================================
   Typography Headings
================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  margin-top: 35px;
  margin-bottom: 18px;
  color: #111;
}

h1 {
  font-size: 2.4rem;
  margin-top: 0;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.5rem;
}

/* ================================
   Paragraphs
================================ */
p {
  margin-bottom: 22px;
  color: #333;
  font-size: 1.08rem;
}

/* ================================
   Links
================================ */
a {
  color: #f69e23;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: #f69e23;
}

/* ================================
   Lists
================================ */
ul,
ol {
  margin: 20px 0 25px 30px;
  padding-left: 10px;
}

li {
  margin-bottom: 14px;
  line-height: 1.75;
  color: #333;
}

/* ================================
   Images
================================ */
img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 30px auto;
  display: block;
}

/* Captions */
.wp-caption-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: -15px;
  margin-bottom: 25px;
}

/* ================================
   Blockquotes
================================ */
blockquote {
  border-left: 4px solid #f69e23;
  padding: 22px 25px;
  margin: 35px 0;
  background: #f9fafb;
  border-radius: 12px;
  font-style: italic;
  color: #444;
  line-height: 1.8;
}

/* ================================
   Code Blocks
================================ */
pre {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 30px 0;
  font-size: 14px;
  line-height: 1.6;
}

code {
  background: #f3f4f6;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 14px;
}

/* ================================
   Tables
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 35px 0;
  font-size: 15px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 14px;
  text-align: left;
}

th {
  background: #f3f4f6;
  font-weight: 700;
}

/* ================================
   Buttons
================================ */
button,
input[type="submit"] {
  background: #f69e23;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover,
input[type="submit"]:hover {
  background: #f69e23;
}

/* ================================
   Navbar (React Style)
================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: #111;
}

/* CTA Button */
.btn {
  background: #f69e23;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  
  color: white;
}

/* ================================
   Post Cards (Blog Homepage)
================================ */
.post-card {
  border: 1px solid #eee;
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 30px;
  background: #fff;
  transition: 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* ================================
   Single Post Layout Spacing
================================ */
article {
  padding-top: 10px;
}

article > * {
  margin-bottom: 22px;
}

/* Reading width */
.single-post main {
  max-width: 750px;
}

/* ================================
   Footer
================================ */
.footer {
  padding: 25px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

/* ================================
   Mobile Responsive
================================ */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .post-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 16px;
  }

  ul,
  ol {
    margin-left: 20px;
  }
}
