/* ===========================================
   CASH FLOW INVENTORY BLOG — MAIN STYLESHEET
   Tailwind-compatible custom CSS
   =========================================== */

/* ---- GLOBAL ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  margin: 0; padding: 0;
  color: #1a1a2e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #00bafb; border-radius: 3px; }

/* ---- COLORS / TOKENS ---- */
:root {
  --navy-950: #00102e;
  --navy-900: #001850;
  --navy-800: #00257a;
  --navy-700: #002db0;
  --navy-600: #003750;
  --navy-400: #3885ff;
  --cyan-500:  #009fd8;
  --cyan-400:  #00bafb;
  --cyan-100:  #d9f5ff;
  --gold:      #f7b731;
  --gold-dark: #ff9800;
  --white:     #ffffff;
  --light-bg:  #f8fbff;
  --border:    #e5f0f7;
  --text-muted:#4a6072;
  --shadow-sm: 0 2px 8px rgba(0,55,80,0.06);
  --shadow-md: 0 8px 40px rgba(0,55,80,0.10);
  --shadow-lg: 0 20px 70px rgba(0,55,80,0.15);
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy-600);
  line-height: 1.25;
  margin-top: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #003750, #00bafb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #f7b731, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- ANIMATE ON SCROLL ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ---- NAVBAR ---- */
.navbar-cfi {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.navbar-cfi.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,55,80,0.12);
}
.navbar-cfi.scrolled button { color: #003750 !important; }
.navbar-cfi.scrolled .nav-link-item { color: #003750 !important; }
.navbar-cfi.scrolled .nav-logo { filter: none !important; }
.navbar-cfi.scrolled #navLoginBtn { color: #003750 !important; border-color: #003750 !important; }
.navbar-cfi.scrolled #navLoginBtn:hover { background: #003750 !important; color: #fff !important; }

/* ---- BUTTONS ---- */
.btn-primary-cfi {
  background: linear-gradient(135deg, #f7b731, #ff9800);
  color: #001850; font-weight: 700; border-radius: 12px;
  padding: 14px 32px; font-size: 1rem; border: none;
  cursor: pointer; box-shadow: 0 4px 20px rgba(247,183,49,0.4);
  transition: all 0.3s ease; display: inline-block; text-decoration: none;
}
.btn-primary-cfi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247,183,49,0.5);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #001850; text-decoration: none;
}
.btn-outline-cfi {
  background: transparent; color: #003750; font-weight: 600;
  border-radius: 12px; padding: 11px 28px; font-size: 0.9rem;
  border: 2px solid #00bafb; cursor: pointer;
  transition: all 0.3s ease; display: inline-block; text-decoration: none;
}
.btn-outline-cfi:hover { background: #00bafb; color: #fff; text-decoration: none; }

/* ---- HERO ---- */
.blog-hero-bg {
  background: linear-gradient(135deg, #00102e 0%, #003750 40%, #005880 70%, #0081ae 100%);
  position: relative; overflow: hidden;
}
.blog-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,186,251,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(0,186,251,0.1); top:-100px; right:-100px; animation-delay:0s; }
.orb-2 { width: 280px; height: 280px; background: rgba(0,61,80,0.25); bottom:-80px; left:-80px; animation-delay:2s; }
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ---- GLASS CARDS ---- */
.glass-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); }
.glass-card-light { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border: 1px solid rgba(0,186,251,0.15); box-shadow: var(--shadow-md); }

/* ---- BLOG POST CARDS ---- */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,186,251,0.25);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}
.blog-card-img {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-500));
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-card-category {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,186,251,0.12), rgba(0,55,80,0.08));
  color: var(--cyan-500);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(0,186,251,0.2);
  transition: all 0.2s;
}
.blog-card-category:hover { background: var(--cyan-400); color: #fff; text-decoration: none; }
.blog-card-date { font-size: 12px; color: var(--text-muted); }
.blog-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; color: var(--navy-600);
  margin: 0 0 12px; line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card-title:hover { color: var(--cyan-400); text-decoration: none; }
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.blog-card-author { display: flex; align-items: center; gap: 8px; }
.blog-card-author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; overflow: hidden;
}
.blog-card-author-name { font-size: 13px; font-weight: 600; color: var(--navy-600); }
.blog-card-read-time { font-size: 12px; color: var(--text-muted); }
.read-more-link { font-size: 13px; font-weight: 700; color: var(--cyan-400); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.read-more-link:hover { gap: 8px; text-decoration: none; }

/* ---- FEATURED POST ---- */
.featured-post-card {
  border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: grid;
}
.featured-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- CATEGORY PILLS ---- */
.category-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.25s ease;
  border: 2px solid transparent;
}
.category-pill.active {
  background: linear-gradient(135deg, #003750, #00bafb);
  color: #fff; box-shadow: 0 4px 15px rgba(0,186,251,0.3);
}
.category-pill:not(.active) {
  background: #f0f9ff; color: #003750; border-color: #e0f2fe;
  text-decoration: none;
}
.category-pill:not(.active):hover {
  background: #e0f2fe; border-color: #00bafb; text-decoration: none;
}

/* ---- SEARCH ---- */
.search-box {
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: inherit; font-size: 15px;
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1a1a2e;
}
.search-box input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(0,186,251,0.1);
}
.search-box .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-box button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, #003750, #00bafb);
  color: #fff; border: none; border-radius: 10px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.search-box button:hover { opacity: 0.9; }

/* ---- SIDEBAR WIDGETS ---- */
.sidebar-widget {
  background: #fff; border-radius: 20px;
  border: 1px solid var(--border);
  padding: 28px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; color: var(--navy-600);
  margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.sidebar-widget-title::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--cyan-400);
}

/* ---- SINGLE POST ---- */
.post-content {
  font-size: 1.05rem; line-height: 1.8; color: #2d3748;
}
.post-content h2 {
  font-size: 1.7rem; margin: 2.2rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.post-content h3 { font-size: 1.35rem; margin: 1.8rem 0 0.8rem; }
.post-content h4 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.post-content p { margin: 0 0 1.4rem; }
.post-content a { color: var(--cyan-400); text-decoration: underline; }
.post-content a:hover { color: var(--navy-600); }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.5rem; padding: 0; }
.post-content li { margin-bottom: 0.6rem; }
.post-content blockquote {
  margin: 2rem 0; padding: 24px 28px 24px 32px;
  background: linear-gradient(135deg, rgba(0,186,251,0.06), rgba(0,55,80,0.04));
  border-left: 4px solid var(--cyan-400); border-radius: 0 16px 16px 0;
  font-style: italic; font-size: 1.1rem; color: var(--navy-600);
}
.post-content blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--text-muted); }
.post-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.5rem 0; box-shadow: var(--shadow-md); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.post-content th { background: var(--navy-600); color: #fff; padding: 12px 16px; text-align: left; }
.post-content td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.post-content tr:hover td { background: var(--light-bg); }
.post-content code {
  background: #f1f5f9; color: #e53e3e; font-family: 'Fira Code', monospace;
  padding: 2px 8px; border-radius: 6px; font-size: 0.88em;
}
.post-content pre {
  background: #0f172a; color: #e2e8f0;
  padding: 24px; border-radius: 14px; margin: 1.5rem 0;
  overflow-x: auto; font-size: 0.9rem; line-height: 1.65;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content .wp-block-image { margin: 1.5rem 0; }
.post-content figure figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* ---- TABLE OF CONTENTS ---- */
.toc-box {
  background: var(--light-bg);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 28px; margin: 2rem 0;
}
.toc-box h4 { font-size: 1rem; margin: 0 0 14px; color: var(--navy-600); }
.toc-box ol { margin: 0; padding-left: 20px; }
.toc-box li { margin-bottom: 8px; }
.toc-box a { color: var(--cyan-400); text-decoration: none; font-size: 0.95rem; }
.toc-box a:hover { text-decoration: underline; }

/* ---- TAGS ---- */
.tag-cloud a {
  display: inline-block; padding: 6px 14px; margin: 4px;
  background: var(--light-bg); color: var(--navy-600);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--cyan-400); color: #fff; border-color: var(--cyan-400); }
.post-tags a {
  display: inline-block; padding: 5px 12px; margin: 4px 4px 4px 0;
  background: var(--light-bg); color: var(--navy-600);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; font-weight: 500; text-decoration: none;
  transition: all 0.2s;
}
.post-tags a:hover { background: var(--cyan-400); color: #fff; border-color: var(--cyan-400); }

/* ---- AUTHOR BOX ---- */
.author-box {
  background: linear-gradient(135deg, var(--light-bg), rgba(0,186,251,0.04));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; margin: 3rem 0;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-box-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff; overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--navy-600); margin: 0 0 4px; }
.author-box-role { font-size: 13px; color: var(--cyan-400); font-weight: 600; margin: 0 0 12px; }
.author-box-bio { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---- COMMENTS ---- */
.comments-area { margin-top: 3rem; }
.comments-title { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--navy-600); margin-bottom: 28px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 16px;
}
.comment-item.depth-2 { margin-left: 40px; background: var(--light-bg); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-author-name { font-weight: 700; color: var(--navy-600); font-size: 15px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 15px; color: #2d3748; line-height: 1.7; }
.comment-reply a { font-size: 13px; color: var(--cyan-400); font-weight: 600; text-decoration: none; }
.comment-reply a:hover { text-decoration: underline; }

/* Comment form */
.comment-form input,
.comment-form textarea {
  width: 100%; border: 2px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  font-family: inherit; font-size: 15px;
  background: #fff; outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cyan-400); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  background: linear-gradient(135deg, #f7b731, #ff9800);
  color: #001850; font-weight: 700; border: none;
  border-radius: 12px; padding: 14px 36px;
  font-family: inherit; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(247,183,49,0.4);
  transition: all 0.3s ease;
}
.comment-form .submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(247,183,49,0.5); }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 48px 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: all 0.2s;
}
.pagination a { background: #fff; color: var(--navy-600); border: 1px solid var(--border); }
.pagination a:hover { background: var(--cyan-400); color: #fff; border-color: var(--cyan-400); }
.pagination .current { background: linear-gradient(135deg, #003750, #00bafb); color: #fff; border: none; box-shadow: 0 4px 15px rgba(0,186,251,0.3); }
.pagination .prev, .pagination .next { width: auto; padding: 0 20px; border-radius: 12px; }

/* ---- BREADCRUMB ---- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ---- READING PROGRESS ---- */
#reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #00bafb, #f7b731);
  transition: width 0.1s linear;
}

/* ---- STICKY TOC ---- */
.sticky-toc {
  position: sticky; top: 100px;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.sticky-toc::-webkit-scrollbar { width: 3px; }
.sticky-toc::-webkit-scrollbar-thumb { background: var(--cyan-400); }

/* ---- SOCIAL SHARE ---- */
.social-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.25s;
  border: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); text-decoration: none; }
.share-facebook { background: #1877f2; color: #fff; }
.share-twitter { background: #000; color: #fff; }
.share-linkedin { background: #0a66c2; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-copy { background: var(--light-bg); color: var(--navy-600); border: 1px solid var(--border); }

/* ---- NEWSLETTER WIDGET ---- */
.newsletter-widget {
  background: linear-gradient(135deg, #00102e, #003750);
  border-radius: 20px; padding: 32px 28px; color: #fff;  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.newsletter-widget::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(0,186,251,0.1);
}
.newsletter-widget input {
  width: 100%; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
  padding: 12px 16px; color: #fff; font-family: inherit;
  font-size: 14px; outline: none; margin-bottom: 12px;
  transition: border-color 0.2s;
}
.newsletter-widget input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-widget input:focus { border-color: var(--cyan-400); }
.newsletter-widget button {
  width: 100%; background: linear-gradient(135deg, #f7b731, #ff9800);
  color: #001850; font-weight: 700; border: none; border-radius: 10px;
  padding: 12px; font-family: inherit; font-size: 14px; cursor: pointer;
  transition: all 0.3s;
}
.newsletter-widget button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(247,183,49,0.4); }

/* ---- POPULAR POSTS ---- */
.popular-post-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
}
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-title { font-size: 13px; font-weight: 600; color: var(--navy-600); line-height: 1.4; margin: 0 0 6px; text-decoration: none; display: block; }
.popular-post-title:hover { color: var(--cyan-400); }
.popular-post-date { font-size: 11px; color: var(--text-muted); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,17,50,0.98); z-index: 2000;
  padding: 80px 32px 32px; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #fff; font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; }
.mobile-menu a:hover { color: var(--cyan-400); }

/* ---- MODALS ---- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,23,50,0.7); backdrop-filter: blur(8px); z-index: 3000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 440px; position: relative; box-shadow: 0 30px 100px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.modal-input { width: 100%; border: 2px solid #e5f0f7; border-radius: 12px; padding: 14px 16px; font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s; margin-bottom: 14px; }
.modal-input:focus { border-color: #00bafb; }

/* ---- FOOTER ---- */
.cfi-footer { background: linear-gradient(135deg, #00102e, #001850); color: rgba(255,255,255,0.8); }

/* ---- NOTICE BARS ---- */
.notice-bar {
  padding: 12px 20px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.5;
}
.notice-bar.info { background: rgba(0,186,251,0.08); border: 1px solid rgba(0,186,251,0.2); color: #003750; }
.notice-bar.warning { background: rgba(247,183,49,0.1); border: 1px solid rgba(247,183,49,0.3); color: #7a5000; }
.notice-bar.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #14532d; }

/* ---- BACK TO TOP ---- */
#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #003750, #00bafb);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,55,80,0.3);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; pointer-events: none;
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,55,80,0.4); }

/* ---- SKELETON LOADER ---- */
.skeleton { background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- WAVE DIVIDER ---- */
.wave-divider { position: relative; overflow: hidden; }
.wave-divider svg { display: block; }

/* ---- CTA SECTION ---- */
.cta-section { background: linear-gradient(135deg, #00102e 0%, #003750 50%, #005880 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0,186,251,0.12) 0%, transparent 70%); pointer-events: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .blog-sidebar { display: none; }
  .blog-sidebar.show { display: block; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .modal-box { padding: 32px 24px; margin: 16px; }
  .author-box { flex-direction: column; }
  .featured-post-card { grid-template-columns: 1fr !important; }
  .comment-item.depth-2 { margin-left: 16px; }
}
@media (min-width: 769px) {
  .hamburger-btn { display: none !important; }
}
@media (max-width: 480px) {
  .blog-card-body { padding: 18px 20px 22px; }
  .sidebar-widget { padding: 20px; }
}


