/* HeronEdge - Custom Branding & Modern UI Styles */
:root {
    --primary-blue: #005697;
    --primary-hover: #004073;
    --brand-orange: #ff7800;
    --brand-orange-hover: #e06800;
    --dark-navy: #0b192c;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-bg: #0f172a;
    --sidebar-color: #94a3b8;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1 0 auto;
}

/* Auth Background */
.auth-body {
    background: linear-gradient(135deg, #0b192c 0%, #1e3a5f 50%, #005697 100%);
    min-height: 100vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    border-radius: 1.25rem !important;
}

/* Heron Edge Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-brand-orange {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
}
.btn-brand-orange:hover, .btn-brand-orange:focus {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    color: #fff;
}

/* Navbar & Header */
.navbar-heron {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.brand-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ========================================================
   MODERN RESPONSIVE HEADER & BUTTONS (HERONEDGE)
   ======================================================== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.site-header-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.2s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    line-height: 1;
    font-size: 0.85rem;
    padding: 8px 16px;
    cursor: pointer;
}

/* Track Record Button */
.header-btn-track {
    background-color: #f8fafc;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}
.header-btn-track:hover {
    background-color: #f1f5f9;
    color: #005697 !important;
    border-color: #cbd5e1;
}
.header-btn-track.active {
    background-color: #eff6ff;
    color: #005697 !important;
    border-color: #bfdbfe;
    box-shadow: 0 2px 6px rgba(0, 86, 151, 0.08);
}

/* Membership Plans Button */
.header-btn-membership {
    background-color: #fffbeb;
    color: #92400e !important;
    border: 1.5px solid #fde68a;
}
.header-btn-membership:hover {
    background-color: #fef3c7;
    color: #78350f !important;
    border-color: #fcd34d;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.header-btn-membership.active {
    background-color: #fef3c7;
    color: #78350f !important;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

/* Member Sign In Button */
.header-btn-signin {
    background-color: #005697;
    color: #ffffff !important;
    border: 1.5px solid #005697;
    box-shadow: 0 2px 8px rgba(0, 86, 151, 0.25);
}
.header-btn-signin:hover {
    background-color: #004073;
    border-color: #004073;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 86, 151, 0.35);
    transform: translateY(-1px);
}

/* Mobile & Tablet Optimizations (< 768px) */
@media (max-width: 767.98px) {
    .site-header-logo {
        max-height: 38px;
        max-width: 125px;
    }
    
    .header-actions {
        gap: 6px;
    }

    .header-btn {
        padding: 6px 10px;
        font-size: 0.76rem;
        gap: 4px;
        border-radius: 24px;
        letter-spacing: -0.2px;
    }

    .header-btn i {
        font-size: 0.78rem;
    }
}

/* Extra Small Mobile Screens (< 420px) */
@media (max-width: 420px) {
    .site-header-logo {
        max-height: 32px;
        max-width: 100px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
        gap: 3px;
        border-radius: 20px;
    }

    .header-btn i {
        font-size: 0.72rem;
    }
}

/* Tiny Mobile Screens (< 360px) */
@media (max-width: 359.98px) {
    .site-header-logo {
        max-height: 28px;
        max-width: 85px;
    }

    .header-btn {
        padding: 4px 6px;
        font-size: 0.68rem;
    }
}

/* Cards */
.article-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 86, 151, 0.09) !important;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.article-card .article-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.article-card .pdf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e11d48;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}

/* Tips Highlight Box */
.tips-container {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-left: 4px solid var(--brand-orange);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.tips-container h5 {
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tips-container ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.tips-container li {
    margin-bottom: 0.5rem;
    color: #334155;
    font-weight: 500;
}

.tips-container li:last-child {
    margin-bottom: 0;
}

/* PDF Download Banner */
.pdf-download-card {
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.05);
}

/* Category Filter Pills */
.nav-pills-custom .nav-link {
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.nav-pills-custom .nav-link:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
}

.nav-pills-custom .nav-link.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 86, 151, 0.25);
}

/* Admin Panel Layout */
.admin-sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    color: var(--sidebar-color);
    transition: width 0.3s;
}

.admin-sidebar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 0.5rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--primary-blue) 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 86, 151, 0.35);
}

.admin-card-stat {
    border-radius: 1rem;
    border: none;
    transition: transform 0.2s;
}

.admin-card-stat:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Article single page content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}
