/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    /* Dark blue-grey */
    color: #ecf0f1;
    /* Light grey/white */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

header .logo h1 a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

header .logo h1 a:hover {
    color: #3498db;
    /* Brighter blue for hover */
}

header .logo .tagline {
    font-size: 0.9rem;
    color: #bdc3c7;
    /* Lighter grey for tagline */
    margin-top: 0.2rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #3498db;
    color: #fff;
}

.menu-toggle {
    display: none;
    /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Image Section (Optional) */
.hero-image {
    background-image: url('../image/perception-image-300x149.png');
    /* Replace with your header image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40vh;
    /* Adjust height as needed */
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Add a subtle overlay for text readability if needed */
    /* position: relative; */
}

/*
.hero-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3);
}
.hero-image h2 {
    position: relative; z-index: 1;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
*/


/* Main Content */
main {
    padding: 30px 0;
    flex-grow: 1;
    /* Ensures main content takes available space */
}

.blog-post {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
    /* For animation */
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-post:nth-child(odd) {
    animation-delay: 0.1s;
}

.blog-post:nth-child(even) {
    animation-delay: 0.2s;
}


.blog-post header {
    background: none;
    /* Override general header style */
    color: inherit;
    padding: 0;
    box-shadow: none;
    position: static;
    margin-bottom: 15px;
}

.blog-post header .container {
    /* Override general header container style */
    display: block;
    padding: 0;
}


.blog-post .post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    /* Medium grey */
    margin-bottom: 10px;
}

.blog-post .post-meta .author {
    font-weight: bold;
}

.blog-post h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.blog-post h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #3498db;
}

.featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
    /* Ensures it behaves like a block */
}

.entry-content p {
    margin-bottom: 1em;
    color: #34495e;
    /* Darker grey for text */
}

.entry-content ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

.entry-content ul li {
    margin-bottom: 0.5em;
}

.entry-content strong {
    color: #2c3e50;
}

/* Page Content (for Contact, Luxury Defined) */
.page-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.page-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.page-content p,
.page-content ul,
.page-content address {
    margin-bottom: 1.5em;
}

.page-content ul {
    list-style: disc;
    padding-left: 25px;
}

.page-content address {
    font-style: normal;
    background-color: #f0f3f4;
    padding: 15px;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

/* Contact Form */
.contact-form div {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #2980b9;
}


/* Footer */
footer {
    background-color: #1c2833;
    /* Even darker blue-grey */
    color: #bdc3c7;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    /* Pushes footer to the bottom */
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        /* To push toggle to the right */
        align-items: center;
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    header nav ul {
        display: none;
        /* Hide nav by default */
        flex-direction: column;
        width: 100%;
        background-color: #34495e;
        /* Slightly lighter than header for contrast */
        position: absolute;
        /* Take it out of flow */
        top: 100%;
        /* Position below the header part */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    }

    header nav ul.showing {
        display: flex;
        /* Show nav when toggled */
    }

    header nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid #2c3e50;
    }

    header nav ul li:last-child a {
        border-bottom: none;
    }

    header nav ul li a:hover,
    header nav ul li a.active {
        background-color: #3498db;
        color: #fff;
    }


    .hero-image {
        height: 30vh;
    }

    /*
    .hero-image h2 {
        font-size: 2rem;
    }
    */

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .page-content h2 {
        font-size: 1.7rem;
    }
}