/* ============================================
   Desktop Navbar — keep tab labels on one line
   (no Tailwind rebuild required)
   ============================================ */
nav[aria-label="Main navigation"] ul > li {
    flex-shrink: 0;
}
nav[aria-label="Main navigation"] ul > li > a {
    white-space: nowrap;
}


/* ============================================
   Mobile Navigation — Hamburger Menu
   Controls the animated hamburger icon and
   drawer open/close state.
   ============================================ */

/* Base transform origin for smooth line animation */
.hamburger-line {
    transform-origin: center;
}

/* Default positions of the three lines */
#line1 { top: 6px; }
#line2 { top: 12px; }
#line3 { top: 18px; }

/* Active state: lines rotate into an X */
.hamburger-active #line1 {
    transform: rotate(45deg);
    top: 12px;
}
.hamburger-active #line2 {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger-active #line3 {
    transform: rotate(-45deg);
    top: 12px;
}

/* Prevent background scroll while the mobile drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* ============================================
   Global Scrollbar
   Custom thin scrollbar using brand colors.
   Applied to all scrollable elements.
   ============================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #304598 #f1f5f9;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
    background: #304598;
    border-radius: 10px;
    transition: background 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: #FF971A; /* custom-orange on hover */
}
*::-webkit-scrollbar-corner {
    background: transparent;
}

/* ============================================
   Blog Detail — Rich Content Typography
   Styles the WYSIWYG-rendered HTML inside
   .blog-content (h2, h3, p, ul, ol, blockquote).
   ============================================ */

/* Section heading with bottom border */
.blog-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2e8f0;
}
/* Sub-section heading */
.blog-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
/* Body paragraph */
.blog-content p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.85;
    margin-bottom: 1rem;
}
/* Unordered list — no default bullets */
.blog-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.blog-content ul li {
    font-size: 0.875rem;
    color: #4a5568;
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    line-height: 1.7;
}
/* Custom orange dot bullet */
.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 7px;
    height: 7px;
    background-color: var(--color-custom-orange, #f97316);
    border-radius: 50%;
}
/* Ordered list — uses CSS counter for styled numbers */
.blog-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    counter-reset: list-counter;
    list-style: none;
}
.blog-content ol li {
    font-size: 0.875rem;
    color: #4a5568;
    padding: 0.3rem 0 0.3rem 0.5rem;
    line-height: 1.7;
    counter-increment: list-counter;
    position: relative;
    padding-left: 2rem;
}
/* Blue circular counter badge */
.blog-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.3rem;
    height: 1.3rem;
    background-color: #1a56db;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Pull quote with orange left border and warm background */
.blog-content blockquote {
    border-left: 4px solid #f97316;
    background-color: #fff7ed;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.375rem 0.375rem 0;
    font-size: 0.9rem;
    color: #92400e;
    font-style: italic;
    line-height: 1.75;
}
/* Bold inline text */
.blog-content strong {
    color: #1a202c;
    font-weight: 700;
}
/* Remove top spacing from first heading in the content box */
.blog-content h2:first-child {
    margin-top: 0;
}
