/* ========================================
   SafeShield v1
   Global Styles
======================================== */

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

:root {

    --primary: #0d47a1;
    --secondary: #1565c0;

    --background: #f4f6f8;
    --white: #ffffff;

    --text: #222222;
    --text-light: #555555;

    --border: #d9dfe5;

    --success: #2e7d32;
    --warning: #ed6c02;
    --danger: #d32f2f;

    --shadow:
        0 4px 12px rgba(0,0,0,0.08);

    --radius: 12px;

}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

}


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

.container {

    width: 90%;
    max-width: 1200px;

    margin: auto;

}

.section {

    padding: 70px 0;

}

.alt-section {

    background: #eef3f8;

}

.text-center {

    text-align: center;

}


/* ========================================
   Header
======================================== */

header {

    background: var(--primary);

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: var(--shadow);

}

.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 80px;

}

.logo-link {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

}

.site-logo {

    width: 50px;

    height: 50px;

    object-fit: contain;

}

.logo-text {

    color: white;

    font-size: 1.4rem;

    font-weight: bold;

}

.nav-links {

    display: flex;

    list-style: none;

    gap: 20px;

}

.nav-links a {

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s;

}

.nav-links a:hover {

    opacity: 0.8;

}


/* ========================================
   Hero
======================================== */

.hero {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    text-align: center;

    padding: 100px 20px;

}

.hero-logo {

    width: 140px;

    max-width: 100%;

    margin-bottom: 20px;

}

.hero h1 {

    font-size: 3rem;

    margin-bottom: 15px;

}

.hero p {

    max-width: 800px;

    margin: auto;

    font-size: 1.1rem;

}


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

.btn {

    display: inline-block;

    padding: 12px 24px;

    border-radius: var(--radius);

    background: var(--primary);

    color: white;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;

}

.btn:hover {

    background: var(--secondary);

}

.btn-secondary {

    background: white;

    color: var(--primary);

}


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

.card {

    background: white;

    padding: 25px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.card h3 {

    margin-bottom: 10px;

}

.card-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-top: 30px;

}
/* ========================================
   Forms
======================================== */

form {

    margin-top: 30px;

}

label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

}

input,
select,
textarea {

    width: 100%;

    padding: 14px;

    margin-bottom: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    font-size: 1rem;

    background: white;

}

textarea {

    min-height: 180px;

    resize: vertical;

}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: var(--secondary);

}

button {

    border: none;

    cursor: pointer;

    background: var(--primary);

    color: white;

    padding: 14px 24px;

    border-radius: var(--radius);

    font-size: 1rem;

    font-weight: bold;

    transition: 0.3s;

}

button:hover {

    background: var(--secondary);

}


/* ========================================
   Search Bars
======================================== */

.search-box {

    margin: 30px 0;

}

.search-box input {

    margin-bottom: 0;

}


/* ========================================
   Emergency Banner
======================================== */

.emergency-banner {

    background: var(--danger);

    color: white;

    text-align: center;

    padding: 15px;

    font-weight: bold;

}


/* ========================================
   Alerts
======================================== */

.success-box {

    background: #e8f5e9;

    border-left: 5px solid var(--success);

    padding: 15px;

    border-radius: var(--radius);

}

.warning-box {

    background: #fff3e0;

    border-left: 5px solid var(--warning);

    padding: 15px;

    border-radius: var(--radius);

}

.danger-box {

    background: #ffebee;

    border-left: 5px solid var(--danger);

    padding: 15px;

    border-radius: var(--radius);

}


/* ========================================
   Team Section
======================================== */

.team-card {

    text-align: center;

}

.team-card h3 {

    margin-bottom: 5px;

}

.team-role {

    color: var(--primary);

    font-weight: bold;

    margin-bottom: 10px;

}

.team-email {

    word-break: break-word;

}


/* ========================================
   Blog
======================================== */

.blog-card {

    display: flex;

    flex-direction: column;

    gap: 15px;

}

.blog-meta {

    font-size: 0.9rem;

    color: var(--text-light);

}

.blog-category {

    display: inline-block;

    background: var(--secondary);

    color: white;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.8rem;

    width: fit-content;

}

.blog-content {

    line-height: 1.8;

}

.blog-content p {

    margin-bottom: 15px;

}


/* ========================================
   Resources
======================================== */

.resource-item {

    display: block;

}

.resource-item h3 {

    margin-bottom: 10px;

}

.resource-item ul {

    margin-left: 20px;

}

.resource-item li {

    margin-bottom: 8px;

}


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

.faq-item {

    margin-bottom: 20px;

}

.faq-item h3 {

    margin-bottom: 10px;

}


/* ========================================
   Tables
======================================== */

.table-wrapper {

    overflow-x: auto;

}

table {

    width: 100%;

    border-collapse: collapse;

    background: white;

}

th,
td {

    padding: 14px;

    border: 1px solid var(--border);

    text-align: left;

}

th {

    background: var(--primary);

    color: white;

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

footer {

    background: var(--primary);

    color: white;

    margin-top: 60px;

}

.footer-content {

    text-align: center;

    padding: 50px 20px 30px;

}

.footer-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 15px;

}

.footer-logo {

    width: 40px;

    height: 40px;

    object-fit: contain;

}

.footer-links {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;

    margin: 25px 0;

}

.footer-links a {

    color: white;

    text-decoration: none;

    font-weight: 600;

}

.footer-links a:hover {

    text-decoration: underline;

}

.copyright {

    opacity: 0.9;

    margin-top: 20px;

}


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

.footer-bottom-image {

    width: 100%;

    overflow: hidden;

    line-height: 0;

}

.footer-bottom-image img {

    width: 100%;

    display: block;

    object-fit: cover;

}


/* ========================================
   Policy Pages
======================================== */

.policy-list {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 20px;

    margin-top: 30px;

}

.policy-card {

    background: white;

    padding: 25px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.policy-card h3 {

    margin-bottom: 10px;

}


/* ========================================
   Status Indicators
======================================== */

.status-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-top: 30px;

}

.status-card {

    background: white;

    padding: 25px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.status-online {

    color: var(--success);

    font-weight: bold;

}

.status-warning {

    color: var(--warning);

    font-weight: bold;

}

.status-offline {

    color: var(--danger);

    font-weight: bold;

}


/* ========================================
   Contact Page
======================================== */

.contact-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;

    margin-top: 30px;

}


/* ========================================
   Hub Pages
======================================== */

.hub-card {

    min-height: 220px;

}

.hub-card h3 {

    margin-bottom: 15px;

}


/* ========================================
   Utilities
======================================== */

.mt-20 {

    margin-top: 20px;

}

.mt-30 {

    margin-top: 30px;

}

.mt-40 {

    margin-top: 40px;

}

.mb-20 {

    margin-bottom: 20px;

}

.mb-30 {

    margin-bottom: 30px;

}

.mb-40 {

    margin-bottom: 40px;

}

.hidden {

    display: none;

}

.text-primary {

    color: var(--primary);

}

.text-light {

    color: var(--text-light);

}

.full-width {

    width: 100%;

}


/* ========================================
   Images
======================================== */

img {

    max-width: 100%;

}

.rounded {

    border-radius: var(--radius);

}


/* ========================================
   Report Messages
======================================== */

#report-message {

    margin-top: 25px;

}


/* ========================================
   Blog Search
======================================== */

.blog-search {

    margin-top: 25px;

}


/* ========================================
   Resource Search
======================================== */

.resource-search {

    margin-top: 25px;

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

@media (max-width: 992px) {

    .nav-container {

        flex-direction: column;

        padding: 15px 0;

        gap: 15px;

    }

    .nav-links {

        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;

    }

}


@media (max-width: 768px) {

    .hero {

        padding: 80px 20px;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .hero p {

        font-size: 1rem;

    }

    .section {

        padding: 50px 0;

    }

    .card-grid,
    .policy-list,
    .status-grid,
    .contact-grid {

        grid-template-columns: 1fr;

    }

    .footer-links {

        flex-direction: column;

        gap: 10px;

    }

    button,
    .btn {

        width: 100%;

        text-align: center;

    }

}


@media (max-width: 480px) {

    .container {

        width: 95%;

    }

    .site-logo {

        width: 42px;

        height: 42px;

    }

    .logo-text {

        font-size: 1.1rem;

    }

    .hero-logo {

        width: 110px;

    }

    .hero h1 {

        font-size: 1.8rem;

    }

    .hero p {

        font-size: 0.95rem;

    }

    .card,
    .policy-card,
    .status-card {

        padding: 20px;

    }

    input,
    select,
    textarea {

        padding: 12px;

    }

}


/* ========================================
   Accessibility
======================================== */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {

    outline: 3px solid rgba(21, 101, 192, 0.3);

    outline-offset: 2px;

}


/* ========================================
   Print Styles
======================================== */

@media print {

    header,
    footer,
    .btn,
    button {

        display: none !important;

    }

    body {

        background: white;

    }

    .card {

        box-shadow: none;

        border: 1px solid #cccccc;

    }

}


/* ========================================
   SafeShield v1 Complete
======================================== */