/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light grey background for contrast */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #fff; /* White background for header */
    color: #333;
    padding-top: 20px;
    min-height: 80px;
    border-bottom: 3px solid #003366; /* RexSecurity Blue for border */
}

header a {
    color: #003366; /* RexSecurity Blue for links */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header #logo {
    float: left;
    max-height: 60px; /* Adjust as needed */
    margin-top: 10px;
}

header nav {
    float: right;
    margin-top: 25px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 20px 0 20px;
}

header nav ul li a:hover {
    color: #cc0000; /* RexSecurity Red for hover */
    font-weight: bold;
}

/* Main Content Styles */
main {
    padding: 20px 0;
    background-color: #fff;
}

.hero {
    background: #003366; /* RexSecurity Blue */
    color: #fff; /* White text */
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
}

.button {
    display: inline-block;
    background: #cc0000; /* RexSecurity Red */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.button:hover {
    background: #990000; /* Darker Red for hover */
}

/* Page Specific Styles */
.page-title {
    color: #003366; /* RexSecurity Blue */
    border-bottom: 2px solid #cc0000; /* RexSecurity Red */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Products Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

/* Blog Page */
.blog-post-summary {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.blog-post-summary h2 a {
    color: #003366; /* RexSecurity Blue */
    text-decoration: none;
}

.blog-post-summary h2 a:hover {
    color: #cc0000; /* RexSecurity Red */
}

.blog-post-summary .date {
    font-size: 0.9em;
    color: #666;
}

.blog-post-full .date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form label {
    display: block;
    margin: 10px 0 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* So padding doesn't add to width */
}

.contact-form textarea {
    height: 150px;
}

.contact-form input[type="submit"] {
    background: #003366; /* RexSecurity Blue */
    color: #fff;
    border: 0;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form input[type="submit"]:hover {
    background: #002244; /* Darker Blue */
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media(max-width: 768px){
    header #logo,
    header nav,
    header nav ul li {
        float: none;
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }

    header nav ul li {
        display: block;
    }

    .container {
        width: 95%;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Stack products on smaller screens */
    }
}

