* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    background-color: #2b66a1;
    margin: 0;
    padding: 0; 
}


main {
    margin-right: 20px;
    margin-left: 20px;
    margin-top: 120px;
    padding-bottom: 50px;
}

h1 {
    font-size: 32px;
    padding: 18px;
    font-style: oblique;
    margin: 23px;
    color: white;
    text-align: left;
    padding-top: 7px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px;
    background-color: #2874c0;

}

.navbar ul {
    list-style-type: none;
    background-color: #2874c0;
    padding: 0px;
    margin: 0px;
    display: flex;
    justify-content: center;
    border-bottom: 3px;
}

.navbar a {
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 30px;
    text-align: center;
    display: block;
    margin: 15px;
}

.navbar a:hover {
    background-color: #416c98;
}

.info {
    text-align: center;
    font-size: 20px;
}

.info h1 {
    color: #000000;
    text-align: center;
    font-style: inherit;
    font-weight: bold;
    font-size: 40px;
}

.info p {
    color: #555;
    line-height: 1.6;
}

img {
    background-image: url(logo.jpeg);
    height: 800px;
    width: 1500px;
    margin-bottom: 40px;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 80px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 80px;
    font-weight: bold;
    padding: 30px 60px;
    background-color: rgba(75, 72, 72, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.info-box {
    background-color: white;
    border-radius: 10px;
    padding: 60px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-box h2 {
    color: #416c98;
    font-size: 35px;
    margin-top: 0;
    margin-bottom: 30px;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    font-size: 25px;
    margin-bottom: 20px;
}

.info-box ul {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}

.info-box li {
    margin-bottom: 18px;
    padding-left: 30px;
    position: relative;
    font-size: 20px;
    line-height: 1.7;
    color: #555;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2874c0;
    font-weight: bold;
    font-size: 24px;
    top: 2px;
}

.info-box strong {
    color: #2874c0;
    font-weight: 600;
}

.sections-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.section-btn {
    background: linear-gradient(135deg, #2874c0 0%, #1a4d7a 100%);
    color: white;
    padding: 0;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.section-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.section-btn img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.section-btn-text {
    position: relative;
    z-index: 2;
    background: rgba(91, 91, 85, 0.5);
    padding: 1px;
    backdrop-filter: blur(5px);
}

.section-btn h3 {
    font-size: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgb(255, 255, 255);
}

.section-btn p {
    font-size: 14px;
    opacity: 0.9;
}

.content-section {
    background-color: white;
    padding: 30px;
    margin-bottom: 40px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    color: #2874c0;
    font-size: 40px;
    margin-bottom: 40px;
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    max-width: 1000px;
}

.content-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    font-size: 25px;
    margin-bottom: 30px;
    text-align: center;
    padding: 0px;
}

.video-container {
    margin-top: 40px;
    margin-bottom: 0px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.video-container iframe {
    border-radius: 10px;
}

.video-credit {
    margin-top: 0px;
    text-align: center;
}

.video-credit p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.why-it-matters {
    background: linear-gradient(135deg, #2874c0 0%, #1a4d7a 100%);
    padding: 50px;
    margin: 40px 0;
    border-radius: 10px;
    color: white;
}

.why-it-matters h3 {
    font-size: 45px;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.why-it-matters-content {
    color: #f9f9f9;
}

.why-content p {
    font-size: 30px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
}

.why-content p:last-child {
    margin-bottom: 0;
}

.how-to-setup {
    padding: 40px 0;
    margin: 40px 0;
}

.how-to-setup h3 {
    color: #193e62;
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 0;
}

.setup-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.setup-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #2874c0;
}

.setup-card h4 {
    color: #2874c0;
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 10px;
}

.setup-card ol {
    padding-left: 20px;
    margin: 0;
}

.setup-card li {
    margin-bottom: 15px;
    color: #3a3838;
    font-size: 20px;
    line-height: 1.6;
}

.setup-card li strong {
    color: #193e62;
    font-weight: 600;
}

.how-it-works {
    background-color: #f9f9f9;
    padding: 40px;
    margin: 40px 0;
    border-radius: 10px;
    border-left: 5px solid #2874c0;
}

/* Ensure text inside how-it-works is visible against the light background */
.how-it-works,
.how-it-works p,
.how-it-works h3,
.how-it-works .step,
.how-it-works .step p {
    /* enforce a clearly-visible color for paragraphs and step text */
    color: #000000 !important;
}

.how-it-works h3 {
    color: #2874c0;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

/* If JS animation doesn't run, steps may remain hidden (opacity:0).
   Force them visible so the content always shows. */
.how-it-works .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* debug styles removed */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.step h4 {
    color: #266eb7;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.step p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.why-it-matters-content p {
    color: #f9f9f9;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-left: 5px solid #fff;
    border-radius: 10px;
    margin-top: 25px;
    backdrop-filter: blur(10px);
}


.container {
    max-width: 1100px;
    margin: 120px auto 50px;
    padding: 20px;
    padding-bottom: 100px;
}

.container h1 {
    color: white;
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
}

.game-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-menu-btn {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-menu-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-menu-btn h2 {
    color: #2874c0;
    font-size: 28px;
    margin-bottom: 15px;
}

.game-menu-btn p {
    color: #555;
    font-size: 16px;
}

.game-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.game-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: #333;
    padding: 40px;
    display: none;
    position: relative;
    margin-bottom: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-container.active {
    display: block;
}

.game-header {
    margin-bottom: 30px;
}

.game-header h2 {
    color: #2874c0;
    font-size: 36px;
    margin-bottom: 10px;
}

.back-btn {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #5a6268;
}

.progress-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    background: #28a745;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.question-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #2874c0;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2874c0;
}

.answer-option {
    background: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #ddd;
}

.answer-option:hover {
    background: #e8f1f7;
    border-color: #2874c0;
    transform: translateX(5px);
}

.answer-option.correct {
    background: #d4edda;
    border-color: #28a745;
    cursor: default;
}

.answer-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: default;
}

.answer-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback {
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    display: none;
    font-size: 16px;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.score-board {
    background: linear-gradient(135deg, #2874c0 0%, #1a4d7a 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
}
.homepage-content {
            text-align: center;
            max-width: 900px;
            margin: 0 auto;
}
.homepage-content h2 {
            font-size: 36px;
            margin-bottom: 20px;
            color: #ffffff;
            text-align: center;
            padding-top: 30x;
}

.homepage-content p {
            font-size: 30px;
            line-height: 1.8;
            color: #ffffff;
            margin-bottom: 25px;
            text-align: center;
}
.story-highlight {
            background: linear-gradient(135deg, #2874c0 0%, #1a4d7a 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
            margin: 35px 0;
            box-shadow: 0 4px 15px rgba(40, 116, 192, 0.3);
}

.story-highlight h3 {
            font-size: 28px;
            margin-top: 0;
            margin-bottom: 15px;
            color: white;
}

.story-highlight p {
            color: #f0f0f0;
            font-size: 20px;
            line-height: 1.7;
            margin-bottom: 0;
}

.stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin: 40px 0;
}

.stat-card {
            background: #f9f9f9;
            padding: 25px;
            border-radius: 12px;
            text-align: center;
            border-left: 4px solid #2874c0;
            transition: transform 0.3s ease;
}

.stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
            font-size: 42px;
            font-weight: bold;
            color: #2874c0;
            margin-bottom: 10px;
}

.stat-label {
            font-size: 16px;
            color: #666;
            line-height: 1.5;
}

.homepage-cta {
            background: #fff3cd;
            border-left: 5px solid #ffc107;
            padding: 30px;
            border-radius: 10px;
            margin-top: 40px;
}

.homepage-cta p {
            margin: 0;
            font-size: 24px;
            color: #856404;
}
.homepage-cta strong {
            color: #2874c0;
        }

.mission-box {
            background: white;
            border: 2px solid #2874c0;
            border-radius: 15px;
            padding: 35px;
            margin: 35px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mission-box h3 {
            color: #2874c0;
            font-size: 32px;
            margin-top: 0;
            margin-bottom: 20px;
            text-align: center;
}

.mission-box ul {
            list-style: none;
            padding: 0;
            margin: 0;
}

.mission-box li {
            padding: 15px 0 15px 40px;
            position: relative;
            font-size: 20px;
            color: #585151;
            line-height: 1.7;
}

 .mission-box li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #2874c0;
            font-weight: bold;
            font-size: 28px;
            top: 12px;
}

.quote-section {
            font-style: italic;
            font-size: 26px;
            color: #ffffff;
            text-align: center;
            padding: 30px;
            margin: 40px 0;
            border-top: 3px solid #ffffff;
            border-bottom: 3px solid #ffffff;
}
.help-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 4rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.mission-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-box h2 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.mission-box h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mission-box p {
    font-size: var(--font-size-xl);
    opacity: 0.95;
    margin-bottom: 2rem;
}

.emergency-banner {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.emergency-icon {
    font-size: var(--font-size-2xl);
}

.emergency-text {
    font-weight: 600;
    font-size: var(--font-size-lg);
}

/* ===== Quick Actions Section ===== */
.quick-actions {
    margin-bottom: 4rem;
}

.quick-actions h2 {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

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

/* ===== Help page specific styles ===== */
.help-page .mission-box {
    background: linear-gradient(135deg, #af1515 0%, #dd1118 100%);
    color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin: 120px auto 35px; /* push away from navbar */
    max-width: 1100px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    text-align: center;
}

.help-page .mission-box h1 {
    font-size: 44px;
    margin: 8px 0 18px 0;
    line-height: 1.05;
    text-align: center;
}

.help-page .mission-box p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin-bottom: 22px;
    text-align: center;
}

.help-page .emergency-banner {
    background: rgba(255,255,255,0.12);
}

.help-page .quick-actions {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.help-page .action-buttons .emergency-btn {
    background: #fff;
    color: #123;
    border: 1px solid rgba(0,0,0,0.06);
}

.help-page .steps-container {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 20px;
}


.help-page .step {
    background: #ffffff;
    color: #222;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin-bottom: 18px;
}

.help-page .step h2 {
    margin: 0 0 10px 0;
}

.help-page .resources-section {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* smaller screens tweaks */
@media (max-width: 720px) {
    .help-page .mission-box { margin-top: 90px; padding: 28px; }
    .help-page .mission-box h1 { font-size: 32px; }
    .navbar a { font-size: 20px; padding: 10px; }
}

.emergency-btn.primary {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--text-white);
}

.emergency-btn.secondary {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.emergency-btn.tertiary {
    background: var(--bg-primary);
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-icon {
    font-size: var(--font-size-3xl);
    flex-shrink: 0;
}

.btn-text strong {
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: block;
}

.btn-text small {
    opacity: 0.8;
    font-size: var(--font-size-sm);
}

/* ===== Progress Tracker ===== */
.progress-tracker {
    margin-bottom: 4rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.progress-tracker h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.progress-step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--text-white);
}

.step-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
}

.progress-step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

/* ===== Steps Container ===== */
.steps-container {
    margin-bottom: 4rem;
}
.steps-container li{
    color: #000000;
}

.steps-container h2 {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.step {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.step-icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.step-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
}

.step-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.step-checkbox label {
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.step-content {
    padding: 1.5rem;
}

.urgency-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.urgency-indicator.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.urgency-indicator.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.urgency-indicator.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.step-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.step-content li strong {
    color: var(--text-primary);
}

.pro-tip {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.evidence-checklist {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.evidence-checklist h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.evidence-checklist ul {
    list-style: none;
    padding-left: 0;
}

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

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.contact-card.primary {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.02));
}

.contact-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.local-authorities {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.password-guide {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.password-guide h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.share-section h4 {
    margin-bottom: 0.75rem;
    color: var(--success-color);
}

/* ===== Resources Section ===== */
.resources-section {
    margin-bottom: 4rem;
}

.resources-section h2 {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.resource-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.resource-link:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== Quote Section ===== */
.quote-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 4rem 2rem;
    margin: 2rem -2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quote-content blockquote {
    max-width: 800px;
    margin: 0 auto;
}

.quote-content p {
    font-size: var(--font-size-2xl);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-content cite {
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-white);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
    }
    
    .help-main {
        padding: 1rem;
    }
    
    .hero-section {
        margin: -1rem -1rem 2rem -1rem;
        padding: 3rem 1rem;
    }
    
    .mission-box h1 {
        font-size: var(--font-size-3xl);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .mission-box h1 {
        font-size: var(--font-size-2xl);
    }
    
    .mission-box p {
        font-size: var(--font-size-lg);
    }
    
    .emergency-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .step-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-section p {
        font-size: var(--font-size-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .brand h1 {
        font-size: var(--font-size-xl);
    }
    
    .hero-section {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
    }
    
    .mission-box h1 {
        font-size: var(--font-size-xl);
    }
    
    .mission-box p {
        font-size: var(--font-size-base);
    }
    
    .quick-actions h2,
    .steps-container h2,
    .resources-section h2 {
        font-size: var(--font-size-xl);
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .emergency-btn {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .btn-icon {
        font-size: var(--font-size-2xl);
    }
    
    .btn-text strong {
        font-size: var(--font-size-base);
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .step-header {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .quote-section {
        padding: 2rem 1rem;
        margin: 1rem -1rem;
    }
    
    .quote-content p {
        font-size: var(--font-size-lg);
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .back-to-top,
    .mobile-menu-toggle,
    .emergency-btn,
    .step-checkbox,
    .quote-section,
    .site-footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--text-primary) !important;
        margin: 0 !important;
        padding: 1rem 0 !important;
    }
    
    .step {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
}

/* ===== Accessibility Enhancements ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for better keyboard navigation */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}