/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background-color: #35424a;
    color: #ffffff;
    padding: 20px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    float: left;
    margin-left: 20px;
}

.logo .dot {
    color: red; /* Red dot */
}

header nav {
    float: right;
    margin-right: 20px;
}

header ul {
    list-style: none;
}

header ul li {
    display: inline;
    margin-left: 20px;
}

header ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #f4f4f4;
    text-decoration: underline;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

/* Hero Section */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    border-radius: 5px;
    margin-bottom: 40px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 66, 74, 0.7); /* Overlay */
    border-radius: 5px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e8491d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #cf3e17;
}

/* Recent Blog Posts */
.recent-posts {
    padding: 50px 0;
    background-color: #ffffff;
    border-radius: 5px;
    margin-bottom: 20px;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #35424a;
    font-size: 2em;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.post {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #35424a;
}

.post h3 a {
    color: #35424a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post h3 a:hover {
    color: #e8491d;
}

.post p {
    margin-bottom: 15px;
    color: #555555;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #35424a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #1f2a30;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
    padding: 20px 0;
}

.welcome, .review, .policy, .terms {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.welcome h2, .review h1, .review h2, .review h3, .policy h1, .policy h2, .terms h1, .terms h2 {
    margin-bottom: 10px;
    color: #35424a;
}

.welcome p, .review p, .policy p, .terms p, .review ul, .review blockquote {
    margin-bottom: 20px;
}

.learn-more-btn, .external-link, .read-more, .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #35424a;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover, .external-link:hover, .read-more:hover, .btn:hover {
    background-color: #1f2a30;
}

.review ul {
    list-style: disc inside;
}

.review blockquote, .policy blockquote, .terms blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #35424a;
    padding: 10px 20px;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #35424a;
    color: #ffffff;
    padding: 10px 0; /* Reduced padding to remove white space */
    text-align: center;
}

.footer-links {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #e8491d;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1, header nav {
        float: none;
        text-align: center;
    }

    header ul li {
        display: block;
        margin: 10px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn, .read-more {
        width: 100%;
        text-align: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
