: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; }

    /* smoothness */
    a, button, .card{
      transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
    }

    /* 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-light:hover,
    .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; }

    /* badges */
    .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 on older browsers */
    .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);
    }

    /* ----------------------------
       BLOG HERO SECTION
    ---------------------------- */
    .blog-hero{
      background: linear-gradient(120deg, rgba(0,0,0,.75), rgba(0,0,0,.45)), 
              url('../images/vecteezy_containers-and-cranes-at-the-docks-3d-rendering_22653784.webp');
      background-size: cover;
      background-position: center;
      color: #fff;
      padding: 5rem 0;
      position: relative;
      overflow: hidden;
    }
    .blog-hero::before{
      content:"";
      position:absolute;
      inset:0;
      background:
        radial-gradient(900px 500px at 15% 35%, rgba(214,31,38,.22), transparent 60%),
        linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.35));
      pointer-events:none;
    }
    .blog-hero h1{
      line-height: 1.02;
      position: relative;
      padding-left: 18px;
    }
    .blog-hero h1::before{
      content:"";
      position:absolute;
      left:0; top:.22em;
      width: 6px; height: 1.35em;
      background: var(--accent);
      border-radius: 999px;
      box-shadow: 0 10px 24px rgba(214,31,38,.35);
    }

    /* ----------------------------
       BLOG CONTENT
    ---------------------------- */
    .blog-content{
      padding: 4rem 0;
    }
    .blog-content::after{
      content: "";
      display: block;
      clear: both;
    }
    .blog-content > .container > .row{
      align-items: flex-start;
    }
    .blog-main{
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    .blog-grid{
      margin-top: 0;
    }
    .blog-card{
      border: none;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      height: 100%;
    }
    .blog-card:hover{
      transform: translateY(-6px);
      box-shadow: var(--shadow);
    }
    .blog-card .ratio{
      border-top-left-radius: var(--radius);
      border-top-right-radius: var(--radius);
      overflow: hidden;
    }
    .blog-card .ratio img{
      transition: transform .35s ease, filter .35s ease;
    }
    .blog-card:hover .ratio img{
      transform: scale(1.06);
      filter: contrast(1.05) saturate(1.08);
    }
    .blog-card .card-body{
      padding: 1.5rem;
    }
    .blog-card .card-footer{
      background: transparent;
      border-top: 1px solid rgba(229,231,235,.8);
      padding: 1rem 1.5rem;
    }
    .blog-card .badge{
      border-radius: 999px;
      padding: .45rem .75rem;
      letter-spacing: .02em;
    }
    .blog-meta{
      font-size: .875rem;
      color: var(--muted);
    }
    .blog-meta i{
      color: var(--accent);
    }
    .blog-sidebar .card{
      border: none;
      box-shadow: var(--shadow-sm);
    }
    .blog-sidebar .list-group-item{
      border: none;
      padding: .75rem 0;
      color: var(--muted);
      background: transparent;
    }
    .blog-sidebar .list-group-item:hover{
      color: var(--accent);
      padding-left: 8px;
    }
    .blog-sidebar .list-group-item.active{
      background: transparent;
      color: var(--accent);
      font-weight: 600;
    }
    .sidebar-widget{
      padding: 1.5rem;
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      margin-bottom: 1.5rem;
    }
    .tag-cloud a{
      display: inline-block;
      padding: .4rem .85rem;
      margin: 0 .25rem .5rem 0;
      background: var(--bg);
      color: var(--text);
      border-radius: 999px;
      font-size: .875rem;
      text-decoration: none;
    }
    .tag-cloud a:hover{
      background: var(--accent);
      color: #fff;
      transform: translateY(-2px);
    }

    /* ----------------------------
       PAGINATION
    ---------------------------- */
    .pagination .page-link{
      border: none;
      color: var(--text);
      padding: .6rem 1rem;
      margin: 0 .2rem;
      border-radius: 10px;
      font-weight: 600;
    }
    .pagination .page-item.active .page-link{
      background: var(--accent);
      color: #fff;
      box-shadow: 0 8px 20px rgba(214,31,38,.2);
    }
    .pagination .page-link:hover{
      background: var(--bg);
      color: var(--accent);
    }

    /* ----------------------------
       NEWSLETTER SECTION
    ---------------------------- */
    .newsletter-section{
      background: linear-gradient(90deg, rgba(214,31,38,.95), rgba(214,31,38,.85));
      color: #fff;
      border-radius: var(--radius);
      padding: 3rem;
      margin: 4rem 0;
    }
    .newsletter-section .form-control{
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.35);
      background: rgba(255,255,255,.95);
      color: #111827;
      box-shadow: 0 12px 22px rgba(0,0,0,.10);
    }

    /* ----------------------------
       FOOTER
    ---------------------------- */
    footer{
      background: #0b0f17 !important;
      clear: both;
    }
    .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-hero{
        padding: 3rem 0;
      }
      .blog-hero h1{ padding-left: 14px; }
      .blog-hero .display-4{ font-size: clamp(2.1rem, 6vw, 3.2rem); }
    }
    @media (max-width: 575.98px){
      .blog-card .card-body{
        padding: 1.25rem;
      }
      .newsletter-section{
        padding: 2rem 1.5rem;
      }
    }

    /* ----------------------------
       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);
    }
