/* ===== Blog Page CSS ===== */
:root {
  --white: #ffffff;
  --blue: #1e3a8a;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --black: #0f172a;
  --gray-dark: #374151;
  --gray: #64748b;
  --gray-light: #f8fafc;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', Georgia, serif; background: var(--white); color: var(--black); line-height: 1.8; }

/* ===== Navbar ===== */
.main-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.5rem; }
.nav-logo { z-index: 1001; }
.logo-image { height: 40px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 0.3rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--gray-dark); font-weight: 500; font-size: 0.9rem; padding: 0.6rem 1rem; border-radius: 8px; transition: all 0.3s; white-space: nowrap; }
.nav-link:hover { color: var(--blue); background: var(--blue-pale); }
.nav-link.active { color: var(--white); background: var(--blue); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger-line { width: 24px; height: 2.5px; background: var(--black); border-radius: 4px; transition: all 0.3s; }

/* ===== Common ===== */
.section-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.text-gradient { background: linear-gradient(135deg, var(--blue), var(--blue-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== Blog Hero ===== */
.blog-hero {
  background: linear-gradient(135deg, #0f172a, #1e2d5f);
  padding: 3rem 0;
  color: white;
}
.blog-category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.blog-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.blog-author { display: flex; align-items: center; gap: 0.8rem; }
.blog-author img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); }
.blog-author strong { display: block; font-size: 0.9rem; }
.blog-author span { font-size: 0.75rem; color: #94a3b8; }
.blog-meta-info { display: flex; gap: 1.5rem; font-size: 0.85rem; color: #94a3b8; }

/* ===== Blog Content Grid ===== */
.blog-content-section { padding: 3rem 0; }
.blog-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }

/* Main Content */
.blog-featured-image { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.blog-featured-image img { width: 100%; display: block; }
.blog-intro { font-size: 1.15rem; color: var(--gray-dark); font-style: italic; border-left: 3px solid var(--blue); padding-left: 1.5rem; margin-bottom: 2rem; }
.blog-text h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--black); }
.blog-text p { color: var(--gray-dark); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.9; }

/* Blockquote */
.blog-quote {
  background: var(--blue-pale);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  position: relative;
}
.blog-quote i { color: var(--blue); font-size: 2rem; opacity: 0.3; }
.blog-quote p { font-style: italic; font-size: 1.1rem; color: var(--gray-dark); margin: 0.5rem 0; }
.blog-quote cite { font-size: 0.85rem; color: var(--blue); font-weight: 600; }

/* Checklist */
.blog-checklist {
  background: #f0fdf4;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.blog-checklist h3 { margin-bottom: 0.8rem; }
.blog-checklist ul { list-style: none; }
.blog-checklist li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.blog-checklist li i { color: #10b981; }

/* Tags */
.blog-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.blog-tags span { background: var(--gray-light); padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.8rem; color: var(--gray-dark); }

/* Share */
.blog-share { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem; }
.blog-share span { font-weight: 600; color: var(--gray); }
.blog-share a { width: 35px; height: 35px; background: var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray); text-decoration: none; transition: all 0.3s; }
.blog-share a:hover { background: var(--blue); color: white; }

/* Author Box */
.blog-author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 16px;
  align-items: center;
}
.blog-author-box img { width: 80px; height: 80px; border-radius: 50%; }
.author-info h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.author-info span { color: var(--blue); font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.author-info p { color: var(--gray); font-size: 0.9rem; }

/* Sidebar */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }

/* Table of Contents */
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a { color: var(--gray-dark); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.toc-list a:hover { color: var(--blue); }

/* Related Posts */
.related-post { display: flex; gap: 0.8rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-light); }
.related-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-post img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.related-post h5 { font-size: 0.85rem; margin-bottom: 0.2rem; }
.related-post span { font-size: 0.75rem; color: var(--gray); }

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  text-align: center;
}
.cta-widget h4 { color: white; border-bottom-color: rgba(255,255,255,0.3); }
.cta-widget p { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.9; }
.widget-btn {
  display: inline-block;
  background: white;
  color: var(--blue);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== More Blogs ===== */
.more-blogs { padding: 3rem 0; background: var(--gray-light); }
.more-blogs h2 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; }
.more-blogs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.more-blog-card { background: white; border-radius: 14px; overflow: hidden; transition: all 0.3s; }
.more-blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.more-blog-card img { width: 100%; height: 180px; object-fit: cover; }
.more-blog-body { padding: 1.2rem; }
.more-blog-date { font-size: 0.75rem; color: var(--gray); }
.more-blog-body h4 { font-size: 1rem; margin: 0.3rem 0; }
.more-blog-body a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 0.85rem; }

/* ===== Footer - Matching Solution Page ===== */
.footer-modern {
  background: #06080f;
  position: relative;
}

.footer-top {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-col-large {
  color: #cbd5e1;
}

.footer-logo-wrap {
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-about {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-newsletter h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
}

.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form input:focus { outline: none; border-color: #3b82f6; }

.newsletter-form button {
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 2px;
}

.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 0.6rem; }

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links-list a i {
  font-size: 0.6rem;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.footer-links-list a:hover { color: white; padding-left: 5px; }
.footer-links-list a:hover i { color: #60a5fa; }

.footer-contact-list { list-style: none; }

.footer-contact-list li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-text span {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-text p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.footer-bottom-bar { padding: 1.5rem 0; }

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom-content strong { color: white; }

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: #60a5fa; }

.dot-divider {
  width: 3px;
  height: 3px;
  background: #4b5563;
  border-radius: 50%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid-main { grid-template-columns: 1fr 1fr; }
  .footer-col-large { grid-column: 1 / -1; }
}

@media (max-width: 968px) {
  .blog-content-grid { grid-template-columns: 1fr; }
  .more-blogs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: white; flex-direction: column; justify-content: center;
    align-items: center; gap: 1.5rem; transform: translateX(-100%);
    transition: transform 0.4s ease; z-index: 1000;
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-toggle.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
  .nav-toggle.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  
  .blog-meta { flex-direction: column; align-items: flex-start; }
  .blog-author-box { flex-direction: column; text-align: center; }
  .more-blogs-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  
  .footer-grid-main { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-col-large { grid-column: 1; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .footer-links-list a { justify-content: center; }
  .footer-contact-list li { justify-content: center; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  .newsletter-form { max-width: 350px; margin: 0 auto; }
}

/* my code  */


/* =========================================================
   FOOTER BOTTOM LINKS
   ========================================================= */

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-bottom-links a:hover {
  color: #6c4cff;
}

.dot-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}


/* =========================================================
   POLICY MODAL
   ========================================================= */

.policy-modal {
  position: fixed;
  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 99999;
}

.policy-modal.active {
  display: flex;
}


/* Dark background */

.policy-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(10, 8, 35, 0.75);

  backdrop-filter: blur(5px);
}


/* =========================================================
   MODAL CONTAINER
   ========================================================= */

.policy-modal-content {
  position: relative;

  width: min(760px, 100%);
  max-height: 85vh;

  overflow: hidden;

  background: #ffffff;

  border-radius: 18px;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.30);

  z-index: 2;

  animation: policyModalIn 0.25s ease;
}


/* Animation */

@keyframes policyModalIn {

  from {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.policy-modal-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: #f1f2f6;

  color: #333;

  font-size: 15px;

  cursor: pointer;

  transition: all 0.2s ease;

  z-index: 3;
}

.policy-modal-close:hover {
  background: #321b9b;
  color: #ffffff;
  transform: rotate(90deg);
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.policy-modal-header {
  padding: 30px 35px 20px;

  border-bottom: 1px solid #e7e8ee;
}

.policy-label {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 8px;

  color: #321b9b;

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.6px;
}

.policy-modal-header h2 {
  margin: 0;

  color: #111827;

  font-size: 26px;

  line-height: 1.3;
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.policy-modal-body {
  max-height: calc(85vh - 120px);

  overflow-y: auto;

  padding: 25px 35px 35px;

  color: #555b6e;

  font-size: 14px;

  line-height: 1.75;
}

.policy-modal-body h3 {
  margin: 22px 0 8px;

  color: #1f2937;

  font-size: 17px;
}

.policy-modal-body h3:first-child {
  margin-top: 0;
}

.policy-modal-body p {
  margin: 0 0 14px;
}

.policy-modal-body ul {
  margin: 8px 0 16px;

  padding-left: 22px;
}

.policy-modal-body li {
  margin-bottom: 7px;
}

.policy-modal-body a {
  color: #321b9b;

  text-decoration: none;

  font-weight: 600;
}

.policy-modal-body a:hover {
  text-decoration: underline;
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
   ========================================================= */

body.policy-modal-open {
  overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .footer-bottom-links {
    justify-content: center;

    margin-top: 10px;
  }

  .policy-modal {
    padding: 12px;
  }

  .policy-modal-content {
    width: 100%;
    max-height: 90vh;

    border-radius: 14px;
  }

  .policy-modal-header {
    padding: 24px 20px 18px;
  }

  .policy-modal-header h2 {
    font-size: 21px;
  }

  .policy-modal-body {
    max-height: calc(90vh - 110px);

    padding: 20px;
  }

  .policy-modal-close {
    top: 12px;
    right: 12px;
  }

}
