/* ============================================
   JP-Networks Phishing Awareness Portal
   Brand Colors & Design System
   ============================================ */

:root {
    --jp-primary: #1a75bb;
    --jp-primary-dark: #155d96;
    --jp-secondary: #0c97e0;
    --jp-dark: #343c4f;
    --jp-text: #2d3341;
    --jp-text-light: #6b7280;
    --jp-bg: #f8fafc;
    --jp-white: #ffffff;
    --jp-danger: #dc2626;
    --jp-danger-light: #fef2f2;
    --jp-danger-border: #fecaca;
    --jp-warning: #f59e0b;
    --jp-warning-light: #fffbeb;
    --jp-warning-border: #fde68a;
    --jp-success: #059669;
    --jp-success-light: #ecfdf5;
    --jp-success-border: #a7f3d0;
    --jp-info-light: #eff6ff;
    --jp-info-border: #bfdbfe;
    --jp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --jp-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --jp-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --jp-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --jp-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --jp-radius: 12px;
    --jp-radius-sm: 8px;
    --jp-radius-lg: 16px;
    --jp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--jp-text);
    background-color: var(--jp-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--jp-primary);
    text-decoration: none;
    transition: color var(--jp-transition);
}

a:hover {
    color: var(--jp-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--jp-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--jp-text-light);
}

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--jp-white);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--jp-shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--jp-radius-sm);
    color: var(--jp-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--jp-transition);
    text-decoration: none;
}

.navbar-nav a:hover {
    background: var(--jp-info-light);
    color: var(--jp-primary);
}

.navbar-nav a.active {
    background: var(--jp-info-light);
    color: var(--jp-primary);
    font-weight: 600;
}

.navbar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--jp-dark);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Hero / Alert Section (Landing Page)
   ============================================ */

.hero-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #fef2f2 100%);
    border-bottom: 2px solid var(--jp-danger-border);
    padding: 3rem 0;
    text-align: center;
}

.alert-icon {
    width: 80px;
    height: 80px;
    background: var(--jp-danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse-ring 2s ease-out infinite;
    position: relative;
}

.alert-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--jp-danger);
    opacity: 0;
    animation: pulse-ring-outer 2s ease-out infinite;
}

.alert-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes pulse-ring-outer {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.3); }
}

.hero-alert h1 {
    color: var(--jp-danger);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.hero-alert .subtitle {
    font-size: 1.125rem;
    color: var(--jp-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ============================================
   Simulation Box
   ============================================ */

.simulation-box {
    background: var(--jp-white);
    border: 2px solid var(--jp-warning-border);
    border-radius: var(--jp-radius-lg);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    box-shadow: var(--jp-shadow-md);
    text-align: left;
}

.simulation-box .sim-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.simulation-box .sim-badge {
    background: var(--jp-warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.simulation-box .sim-title {
    font-weight: 600;
    color: var(--jp-dark);
}

.simulation-box p {
    color: var(--jp-text);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.simulation-box .highlight {
    background: var(--jp-warning-light);
    border-left: 3px solid var(--jp-warning);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--jp-radius-sm) var(--jp-radius-sm) 0;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--jp-dark);
}

/* ============================================
   Cards
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--jp-white);
    border-radius: var(--jp-radius);
    padding: 1.75rem;
    box-shadow: var(--jp-shadow);
    border: 1px solid #e5e7eb;
    transition: all var(--jp-transition);
}

.card:hover {
    box-shadow: var(--jp-shadow-lg);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--jp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-icon.blue {
    background: var(--jp-info-light);
    color: var(--jp-primary);
}

.card-icon.red {
    background: var(--jp-danger-light);
    color: var(--jp-danger);
}

.card-icon.green {
    background: var(--jp-success-light);
    color: var(--jp-success);
}

.card-icon.orange {
    background: var(--jp-warning-light);
    color: var(--jp-warning);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.card p {
    font-size: 0.925rem;
    line-height: 1.7;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--jp-primary), var(--jp-secondary));
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ============================================
   Steps / How-to
   ============================================ */

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--jp-white);
    padding: 1.5rem;
    border-radius: var(--jp-radius);
    box-shadow: var(--jp-shadow);
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--jp-primary), var(--jp-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-content h4 {
    margin-bottom: 0.375rem;
    color: var(--jp-dark);
}

.step-content p {
    margin-bottom: 0;
    font-size: 0.925rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--jp-primary), var(--jp-secondary));
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--jp-transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--jp-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 117, 187, 0.3);
}

.btn-primary:hover {
    background: var(--jp-primary-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 117, 187, 0.4);
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: var(--jp-primary);
}

.btn-white:hover {
    background: #f0f7ff;
    color: var(--jp-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--jp-danger);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   Phishing Indicators / Checklist
   ============================================ */

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--jp-white);
    border-radius: var(--jp-radius-sm);
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all var(--jp-transition);
}

.checklist li:hover {
    border-color: var(--jp-primary);
    box-shadow: var(--jp-shadow);
}

.checklist .check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.checklist .check-icon.danger {
    background: var(--jp-danger-light);
    color: var(--jp-danger);
}

.checklist .check-icon.success {
    background: var(--jp-success-light);
    color: var(--jp-success);
}

.checklist .check-icon svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Accordion / FAQ
   ============================================ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: var(--jp-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--jp-radius-sm);
    overflow: hidden;
    transition: all var(--jp-transition);
}

.accordion-item.active {
    box-shadow: var(--jp-shadow-md);
    border-color: var(--jp-primary);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jp-dark);
    text-align: left;
    transition: all var(--jp-transition);
}

.accordion-trigger:hover {
    color: var(--jp-primary);
}

.accordion-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform var(--jp-transition);
    color: var(--jp-text-light);
    flex-shrink: 0;
}

.accordion-item.active .accordion-trigger svg {
    transform: rotate(180deg);
    color: var(--jp-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--jp-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.accordion-content-inner ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.accordion-content-inner li {
    margin-bottom: 0.375rem;
}

/* ============================================
   News / RSS Section
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--jp-white);
    border-radius: var(--jp-radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all var(--jp-transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--jp-shadow-lg);
    transform: translateY(-2px);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--jp-text-light);
}

.news-card-meta .source-badge {
    background: var(--jp-info-light);
    color: var(--jp-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.news-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.news-card h3 a {
    color: var(--jp-dark);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--jp-primary);
}

.news-card p {
    font-size: 0.9rem;
    flex: 1;
}

.news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card-footer a {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.news-card-footer a svg {
    width: 16px;
    height: 16px;
}

.news-loading {
    text-align: center;
    padding: 3rem;
    color: var(--jp-text-light);
}

.news-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--jp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Contact Section
   ============================================ */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--jp-white);
    border-radius: var(--jp-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--jp-shadow);
    border: 1px solid #e5e7eb;
    transition: all var(--jp-transition);
}

.contact-card:hover {
    box-shadow: var(--jp-shadow-lg);
    transform: translateY(-2px);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--jp-primary), var(--jp-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.contact-card .contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 1rem;
}

.contact-card a.contact-link {
    font-weight: 600;
    font-size: 1.05rem;
}

/* ============================================
   Email Example Box
   ============================================ */

.email-example {
    background: var(--jp-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--jp-radius);
    overflow: visible;
    margin: 2rem 0;
    box-shadow: var(--jp-shadow-md);
}

.email-example-header {
    background: #f3f4f6;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: var(--jp-text-light);
}

.email-example-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.email-example-header .dot-red { background: #ef4444; }
.email-example-header .dot-yellow { background: #f59e0b; }
.email-example-header .dot-green { background: #22c55e; }

.email-example-body {
    padding: 1.5rem;
}

.email-example-body .email-field {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.email-example-body .email-field strong {
    color: var(--jp-dark);
    min-width: 60px;
}

.email-example-body .email-field span {
    color: var(--jp-text-light);
}

.email-example-body .email-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    line-height: 1.8;
}

.email-example-body .phish-marker {
    background: var(--jp-danger-light);
    border: 1px dashed var(--jp-danger);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85rem;
    position: relative;
    cursor: help;
}

.email-example-body .phish-marker::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jp-dark);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--jp-transition);
    z-index: 10;
}

.email-example-body .phish-marker:hover::after {
    opacity: 1;
}

/* ============================================
   Quiz
   ============================================ */

.quiz-container {
    background: var(--jp-white);
    border-radius: var(--jp-radius);
    padding: 2rem;
    box-shadow: var(--jp-shadow-md);
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.quiz-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--jp-dark);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--jp-radius-sm);
    cursor: pointer;
    transition: all var(--jp-transition);
    font-size: 0.95rem;
}

.quiz-option:hover {
    border-color: var(--jp-primary);
    background: var(--jp-info-light);
}

.quiz-option.selected {
    border-color: var(--jp-primary);
    background: var(--jp-info-light);
}

.quiz-option.correct {
    border-color: var(--jp-success);
    background: var(--jp-success-light);
}

.quiz-option.incorrect {
    border-color: var(--jp-danger);
    background: var(--jp-danger-light);
}

.quiz-option .radio {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--jp-transition);
}

.quiz-option.selected .radio {
    border-color: var(--jp-primary);
}

.quiz-option.selected .radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--jp-primary);
    border-radius: 50%;
}

.quiz-result {
    padding: 1rem 1.25rem;
    border-radius: var(--jp-radius-sm);
    margin-top: 1rem;
    display: none;
    font-weight: 500;
}

.quiz-result.show { display: block; }
.quiz-result.correct { background: var(--jp-success-light); color: var(--jp-success); border: 1px solid var(--jp-success-border); }
.quiz-result.incorrect { background: var(--jp-danger-light); color: var(--jp-danger); border: 1px solid var(--jp-danger-border); }

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--jp-text-light);
}

.quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--jp-primary), var(--jp-secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--jp-white);
    border-radius: var(--jp-radius-sm);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--jp-shadow-sm);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--jp-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--jp-text-light);
    margin-top: 0.25rem;
}

/* ============================================
   Tabs
   ============================================ */

.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--jp-text-light);
    transition: all var(--jp-transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--jp-primary);
}

.tab-btn.active {
    color: var(--jp-primary);
    border-bottom-color: var(--jp-primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--jp-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-danger { color: var(--jp-danger); }
.text-success { color: var(--jp-success); }
.text-primary { color: var(--jp-primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-danger { background: var(--jp-danger-light); color: var(--jp-danger); }
.badge-warning { background: var(--jp-warning-light); color: var(--jp-warning); }
.badge-success { background: var(--jp-success-light); color: var(--jp-success); }
.badge-info { background: var(--jp-info-light); color: var(--jp-primary); }

/* ============================================
   Panic Button (floating)
   ============================================ */

.panic-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: var(--jp-danger);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0.4);
    transition: all var(--jp-transition);
    animation: panic-pulse 2.5s ease-in-out infinite;
}

.panic-btn:hover {
    background: #b91c1c;
    color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    animation: none;
}

.panic-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes panic-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .navbar .container {
        height: 56px;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--jp-white);
        flex-direction: column;
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: var(--jp-shadow-lg);
    }

    .navbar-nav.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-alert {
        padding: 2rem 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .simulation-box {
        padding: 1.25rem;
    }

    .step {
        flex-direction: column;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .email-example-body .phish-marker::after {
        display: none;
    }

    .panic-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .panic-btn .panic-label {
        display: none;
    }

}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
