:root{
      --primary:#0b0f17;
      --primary-2:#111827;
      --accent:#d61f26;
      --accent-dark:#b3151b;
      --bg:#f6f7f9;
      --surface:#ffffff;
      --text:#0f172a;
      --muted:#6b7280;
      --border:#e5e7eb;

      --radius:18px;
      --radius-sm:12px;
      --shadow: 0 14px 40px rgba(15,23,42,.10);
      --shadow-sm: 0 10px 24px rgba(15,23,42,.08);
      --shadow-xs: 0 6px 16px rgba(15,23,42,.08);

      --container-max: 1320px;
    }

    /* ----------------------------
       GLOBAL BASE
    ---------------------------- */
    html, body{ height:100%; }
    body{
      font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background: #fff;
    }
    .container-xl{ max-width: var(--container-max); }
    h1,h2,h3,h4,h5,h6{
      font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      letter-spacing: -0.01em;
    }
    .text-muted{ color: var(--muted) !important; }
    .bg-light{ background: var(--bg) !important; }
    .rounded-4{ border-radius: var(--radius) !important; }
    .rounded-3{ border-radius: var(--radius-sm) !important; }

    /* buttons */
    .btn-danger{
      background: var(--accent) !important;
      border-color: var(--accent) !important;
    }
    .btn-danger:hover{
      background: var(--accent-dark) !important;
      border-color: var(--accent-dark) !important;
      transform: translateY(-1px);
      box-shadow: var(--shadow-xs);
    }
    .btn-outline-dark:hover{
      transform: translateY(-1px);
      box-shadow: var(--shadow-xs);
    }
    .btn-lg{ border-radius: 999px; padding: .9rem 1.25rem; }
    .btn-sm{ border-radius: 999px; }

    /* accents */
    .badge.text-bg-danger{ background: var(--accent) !important; }
    .text-danger{ color: var(--accent) !important; }
    .bg-danger{ background: var(--accent) !important; }

    /* cards */
    .card{
      border-radius: var(--radius);
    }
    .shadow-sm{
      box-shadow: var(--shadow-sm) !important;
    }

    /* helper for object-fit */
    .object-fit-cover{ object-fit: cover; }

    /* ----------------------------
       HEADER / NAV
    ---------------------------- */
    .topbar{
      background: #0b0f17;
      color: rgba(255,255,255,.85);
      font-size: .9rem;
    }
    .topbar a{
      color: rgba(255,255,255,.85);
      text-decoration: none;
    }
    .topbar a:hover{ color: #fff; }
    .topbar .divider{
      width: 1px;
      height: 18px;
      background: rgba(255,255,255,.18);
      margin: 0 .75rem;
    }
    .topbar .socials a{
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
    }
    .topbar .socials a:hover{
      background: rgba(255,255,255,.18);
    }
    header{ position: sticky; top:0; z-index: 1020; }
    header .navbar{
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(10px);
    }
    .navbar-brand span:last-child{
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .navbar-brand .logo-full{
      width: 180px;
      height: 48px;
      object-fit: contain;
    }
    .navbar-nav .nav-link{
      color: #1f2937 !important;
      font-weight: 700;
      position: relative;
      padding: .55rem .9rem !important;
    }
    .navbar-nav .nav-link::after{
      content:"";
      position:absolute;
      left:.9rem; right:.9rem; bottom:.35rem;
      height:2px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .25s ease;
      opacity:.9;
    }
    .navbar-nav .nav-link:hover::after{ transform: scaleX(1); }

    /* logo pill */
    .navbar-brand .bg-danger{
      box-shadow: 0 10px 24px rgba(214,31,38,.25);
    }

    /* ----------------------------
       BREADCRUMB
    ---------------------------- */
    .breadcrumb-section {
      background: linear-gradient(120deg, rgba(11,15,23,.03), rgba(11,15,23,.01));
      border-bottom: 1px solid rgba(229,231,235,.6);
    }
    .breadcrumb {
      --bs-breadcrumb-divider: '›';
      margin-bottom: 0;
    }
    .breadcrumb-item a {
      color: var(--muted);
      text-decoration: none;
    }
    .breadcrumb-item a:hover {
      color: var(--accent);
    }
    .breadcrumb-item.active {
      color: var(--text);
      font-weight: 600;
    }

    /* ----------------------------
       BLOG CONTENT
    ---------------------------- */
    .blog-header {
      position: relative;
      margin-bottom: 3rem;
    }
    .blog-hero-image {
      border-radius: calc(var(--radius) + 8px);
      overflow: hidden;
      margin-bottom: 2rem;
      box-shadow: var(--shadow);
    }
    .blog-hero-image img {
      width: 100%;
      height: 400px;
      object-fit: cover;
    }
    .blog-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1.5rem;
      margin-bottom: 1rem;
    }
    .blog-meta-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--muted);
      font-size: 0.9rem;
    }
    .blog-meta-item i {
      color: var(--accent);
    }
    .blog-title {
      font-size: 2.5rem;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      position: relative;
      padding-left: 18px;
    }
    .blog-title::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.22em;
      width: 6px;
      height: 1.35em;
      background: var(--accent);
      border-radius: 999px;
      box-shadow: 0 10px 24px rgba(214,31,38,.35);
    }
    
    /* Article content styling */
    .article-content {
      font-size: 1.05rem;
      line-height: 1.7;
    }
    .article-content h2 {
      font-size: 1.75rem;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }
    .article-content h3 {
      font-size: 1.4rem;
      margin-top: 2rem;
      margin-bottom: 0.75rem;
      color: var(--primary-2);
    }
    .article-content p {
      margin-bottom: 1.5rem;
    }
    .article-content ul, .article-content ol {
      margin-bottom: 1.5rem;
      padding-left: 1.5rem;
    }
    .article-content li {
      margin-bottom: 0.5rem;
    }
    .article-content blockquote {
      border-left: 4px solid var(--accent);
      padding-left: 1.5rem;
      margin: 2rem 0;
      font-style: italic;
      color: var(--primary-2);
      background: rgba(214,31,38,.03);
      padding: 1.5rem;
      border-radius: var(--radius-sm);
    }
    .article-content img {
      max-width: 100%;
      height: auto;
      border-radius: var(--radius-sm);
      margin: 1.5rem 0;
    }
    
    /* Tips box */
    .tips-box {
      background: rgba(214,31,38,.05);
      border: 1px solid rgba(214,31,38,.15);
      border-radius: var(--radius);
      padding: 1.5rem;
      margin: 2rem 0;
    }
    .tips-box-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }
    .tips-box-header i {
      color: var(--accent);
      font-size: 1.25rem;
    }
    .tips-box-header h4 {
      margin: 0;
      color: var(--accent);
    }

    /* Author box */
    .author-box {
      background: var(--bg);
      border-radius: var(--radius);
      padding: 2rem;
      margin: 3rem 0;
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      box-shadow: var(--shadow-xs);
    }
    .author-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid white;
      box-shadow: var(--shadow-xs);
    }
    .author-info h5 {
      margin-bottom: 0.5rem;
    }
    .author-info p {
      margin-bottom: 0.5rem;
      color: var(--muted);
    }

    /* Share buttons */
    .share-section {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      margin: 2rem 0;
      padding: 1.5rem;
      background: var(--bg);
      border-radius: var(--radius);
    }
    .share-label {
      font-weight: 600;
      color: var(--text);
    }
    .share-buttons {
      display: flex;
      gap: 0.75rem;
    }
    .share-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .share-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-xs);
      color: white;
    }
    .share-facebook { background: #3b5998; }
    .share-twitter { background: #1da1f2; }
    .share-linkedin { background: #0077b5; }
    .share-whatsapp { background: #25d366; }

    /* ----------------------------
       SIDEBAR
    ---------------------------- */
    .sidebar-widget {
      background: white;
      border-radius: var(--radius);
      padding: 1.5rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-sm);
    }
    .sidebar-title {
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid rgba(214,31,38,.2);
      position: relative;
    }
    .sidebar-title::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 60px;
      height: 2px;
      background: var(--accent);
    }
    
    /* Search widget */
    .search-form {
      position: relative;
    }
    .search-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 3rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--bg);
      font-size: 0.95rem;
    }
    .search-btn {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--muted);
    }

    /* Categories widget */
    .category-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .category-item {
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(229,231,235,.6);
    }
    .category-item:last-child {
      border-bottom: none;
    }
    .category-item a {
      display: flex;
      justify-content: space-between;
      color: var(--text);
      text-decoration: none;
    }
    .category-item a:hover {
      color: var(--accent);
    }
    .category-count {
      background: var(--accent);
      color: white;
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
      border-radius: 999px;
    }

    /* Recent posts widget */
    .recent-post {
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(229,231,235,.6);
    }
    .recent-post:last-child {
      border-bottom: none;
    }
    .recent-post-img {
      width: 80px;
      height: 60px;
      border-radius: var(--radius-sm);
      object-fit: cover;
    }
    .recent-post-content h6 {
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
      line-height: 1.3;
    }
    .recent-post-content h6 a {
      color: var(--text);
      text-decoration: none;
    }
    .recent-post-content h6 a:hover {
      color: var(--accent);
    }
    .recent-post-date {
      font-size: 0.8rem;
      color: var(--muted);
    }

    /* Tags widget */
    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .tag {
      display: inline-block;
      padding: 0.4rem 0.9rem;
      background: var(--bg);
      color: var(--text);
      border-radius: 999px;
      font-size: 0.85rem;
      text-decoration: none;
      transition: all 0.2s;
    }
    .tag:hover {
      background: var(--accent);
      color: white;
      transform: translateY(-1px);
    }

    /* ----------------------------
       RELATED POSTS
    ---------------------------- */
    .related-posts-section {
      margin: 4rem 0;
    }
    .related-title {
      font-size: 1.75rem;
      margin-bottom: 2rem;
      text-align: center;
    }
    .related-post-card {
      border: 0;
      box-shadow: var(--shadow-sm);
      transition: transform 0.3s, box-shadow 0.3s;
      height: 100%;
    }
    .related-post-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow);
    }
    .related-post-img {
      height: 200px;
      object-fit: cover;
      border-top-left-radius: var(--radius);
      border-top-right-radius: var(--radius);
    }
    .related-post-body {
      padding: 1.25rem;
    }
    .related-post-title {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }
    .related-post-title a {
      color: var(--text);
      text-decoration: none;
    }
    .related-post-title a:hover {
      color: var(--accent);
    }
    .related-post-excerpt {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }
    .related-post-meta {
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    /* ----------------------------
       COMMENTS SECTION
    ---------------------------- */
    .comments-section {
      margin: 4rem 0;
    }
    .comments-title {
      font-size: 1.75rem;
      margin-bottom: 2rem;
    }
    .comment {
      padding: 1.5rem 0;
      border-bottom: 1px solid rgba(229,231,235,.6);
    }
    .comment:last-child {
      border-bottom: none;
    }
    .comment-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .comment-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
    }
    .comment-author {
      font-weight: 600;
      margin-bottom: 0.25rem;
    }
    .comment-date {
      font-size: 0.85rem;
      color: var(--muted);
    }
    .comment-reply {
      color: var(--accent);
      font-size: 0.9rem;
      text-decoration: none;
      font-weight: 600;
    }
    .comment-reply:hover {
      text-decoration: underline;
    }

    /* Comment form */
    .comment-form {
      background: var(--bg);
      border-radius: var(--radius);
      padding: 2rem;
      margin-top: 3rem;
      box-shadow: var(--shadow-xs);
    }
    .comment-form-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
    }

    /* ----------------------------
       FOOTER
    ---------------------------- */
    footer{
      background: #0b0f17 !important;
    }
    .footer-logo{
      display: inline-flex;
      align-items: center;
      gap: .65rem;
    }
    .footer-logo .logo-full{
      background: #ffffff;
      padding: .35rem .5rem;
      border-radius: 12px;
      box-shadow: 0 12px 26px rgba(0,0,0,.25);
    }
    footer a.link-light{
      color: rgba(255,255,255,.80) !important;
    }
    footer a.link-light:hover{
      color: #fff !important;
      transform: translateY(-1px);
    }
    footer .btn-outline-light{
      border-radius: 999px;
    }
    footer hr{ opacity:.15; }
    footer .bg-danger{
      box-shadow: 0 16px 30px rgba(214,31,38,.18);
    }

    /* ----------------------------
       RESPONSIVE
    ---------------------------- */
    @media (max-width: 991.98px) {
      .blog-title {
        font-size: 2rem;
      }
      .author-box {
        flex-direction: column;
        text-align: center;
      }
    }
    
    @media (max-width: 767.98px) {
      .blog-title {
        font-size: 1.75rem;
      }
      .blog-meta {
        gap: 1rem;
      }
      .share-section {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* ----------------------------
       FLOATING ACTIONS
    ---------------------------- */
    .floating-actions{
      position: fixed;
      right: 18px;
      bottom: 18px;
      display: grid;
      gap: 10px;
      z-index: 1050;
    }
    .floating-actions .fab{
      width: 52px;
      height: 52px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-decoration: none;
      box-shadow: 0 14px 28px rgba(0,0,0,.28);
      border: 1px solid rgba(255,255,255,.15);
    }
    .floating-actions .fab--whatsapp{ background: #25d366; }
    .floating-actions .fab--call{ background: #0f172a; }
    .floating-actions .fab--top{ background: var(--accent); }
    .floating-actions .fab:hover{
      transform: translateY(-2px);
      box-shadow: 0 18px 34px rgba(0,0,0,.32);
    }
