/* Basic styling for Kaizenkan Aikido website */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    margin-bottom: 10px; /* Space between logo and nav */
}

header h1 { /* This rule might become obsolete if h1 is removed, but keeping for now */
    margin: 0;
    margin-bottom: 10px; /* Space between logo and nav */
}

header h1 a { /* This rule might become obsolete if h1 is removed, but keeping for now */
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 5px 10px; /* Adjust margin for better wrapping */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

.button:hover {
    background-color: #0056b3;
}

.button-container {
    text-align: center;
}

.ffab-logo {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    margin-top: 10px; /* Space above the logo */
}

.image-container {
    text-align: center;
    margin-top: 20px; /* Add some space above the image */
}

.fabien-banner {
    max-width: 100%;
    height: auto;
}

.responsive-image {
    max-width: 100%;
    height: auto;
}

.google-form-container {
    position: relative;
    padding-bottom: 75%; /* Adjust this value based on the form's aspect ratio (e.g., 4:3 aspect ratio would be 75%) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #fff;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.google-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-date {
    color: #888; /* A light gray color for a faded effect */
    font-size: 0.9em; /* Slightly smaller font size */
}

/* Homepage Grid system */
.homepage-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.homepage-grid-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
    box-sizing: border-box;
}

.homepage-grid-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.homepage-grid-col-4 h2 {
    margin-top: 0;
}

.homepage-grid-col-4 article {
    margin-bottom: 1.5em;
}

.homepage-grid-col-4 h4 {
    margin-bottom: 0.2em;
}

.homepage-grid-col-4 h4 a {
    text-decoration: none;
}

.homepage-grid-col-4 .post-date {
    margin-top: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .homepage-grid-col-8,
    .homepage-grid-col-4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .homepage-grid-col-8 {
        padding-left: 0;
        padding-right: 0;
    }
    .homepage-grid-col-4 {
        margin-top: 2em;
    }
    .lunch-promo {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0; /* Optional: remove border-radius for full-width */
    }
}

.news-item-image {
    max-width: 100%;
    height: auto;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* News page post item styling */
.post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 2em;
}

.post-thumbnail {
    flex: 0 0 150px;
    margin-right: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-content {
    flex: 1;
}

.post-content h2 {
    margin-top: 0;
}

@media (max-width: 600px) {
    .post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        margin-right: 0;
        margin-bottom: 1em;
        max-width: 100%; /* Allow thumbnail to be full width on small screens */
    }
}

/* WhatsApp Button Styling */
.whatsapp-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: #fff;
}

/* WhatsApp button in navigation */
.nav-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #25D366;
    border-radius: 50%;
    padding: 0;
    margin-left: 10px;
    transition: background-color 0.3s;
    vertical-align: middle;
}

.nav-whatsapp-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Makes the SVG white */
}

.nav-whatsapp-button:hover {
    background-color: #128C7E;
}

/* Lunch promo section */
.lunch-promo {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #ddd;
    margin-left: 15%;
    margin-right: 15%;
}

.lunch-promo h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.lunch-promo ul {
    list-style-type: '✓';
    padding-left: 20px;
    margin-bottom: 0;
}

.lunch-promo li {
    margin-bottom: 10px;
    padding-left: 10px;
}
