/* General Page Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom right, #fdf6e3, #ffe8cc);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #333;
}

/* Navigation Bar */
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(90deg, #ff7f50, #ffb347);
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: white;
    color: #ff7f50;
}

/* Main Content */
.content {
    flex-grow: 1;
    padding: 40px 20px;
    text-align: center;
}

/* Featured Section on Home Page */
.featured {
    margin-top: 30px;
    background-color: #fff8f0;
    padding: 20px;
    border: 2px solid #ffcba4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

/* Featured Image */
.featured-img {
    width: 300px;
    height: auto;
    border: 3px solid #ffb347;
    border-radius: 10px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.featured-img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
}

/* Footer Link Styling */
footer a {
    color: #00bfff; /* DeepSkyBlue */
    text-decoration: underline;
}

footer a:hover {
    color: #87cefa; /* LightSkyBlue */
}

/* Recipe Images Section */
.recipe-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.recipe-images img {
    width: 220px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ffb347;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Recipe Content Sections */
.recipe-section {
    text-align: left;
    max-width: 700px;
    margin: 20px auto;
    background-color: #fffdf5;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #ffb347;
}

/* Headings inside Recipe Sections */
.recipe-section h2 {
    color: #ff7f50;
    margin-bottom: 10px;
}

/* Lists inside Recipe Sections */
.recipe-section ul,
.recipe-section ol {
    padding-left: 20px;
}

.recipe-section li {
    margin-bottom: 8px;
}

/* Paragraphs inside Recipe Sections */
.recipe-section p {
    margin-top: 10px;
}

/* Print Button Styling */
.print-button {
    display: block;
    margin: 30px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff7f50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.print-button:hover {
    background-color: #ffb347;
}

/* Recipe Submission Form */
.recipe-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #fffdf5;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ffcba4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ff7f50;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #ff7f50;
    outline: none;
}

/* Q&A Table Styling */
.qa-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fffef9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.qa-table th, .qa-table td {
    border: 1px solid #ffb347;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.qa-table th {
    background-color: #ffb347;
    color: #fff;
    font-size: 18px;
}

.qa-table td {
    font-size: 16px;
    line-height: 1.5;
}

.qa-table tr:nth-child(even) {
    background-color: #fff8f0;
}
