:root {
    --hungarian-red: #2c3e50;
    --hungarian-green: #d4a017;
    --white: #FFFFFF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    margin: 0;
    background-color: var(--white);
}

/* Background video and image styles */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #000;
}

/* Video Background Dynamic Styles */
.bg-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: filter 1.5s ease;
}

.bg-video-element.video-ended {
    filter: blur(8px) brightness(0.6);
}

body.has-bg-video.video-playing .main-content,
body.has-bg-video.video-playing .sidebar,
body.has-bg-video.video-playing .mobile-menu-toggle {
    display: unset;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.bg-image {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Optimize background for mobile */
@media (max-width: 768px) {
    .bg-image {
        object-position: center;
        /* Adjust zoom level for mobile */
        transform: scale(1.2);
    }
}

/* Main content styles */
.main-content {
    position: relative;
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.welcome-section {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--hungarian-green);
    text-align: center;
    padding: 15px 30px;
    margin-bottom: 50px;
    border-radius: 20px;
    max-width: 150vh;
    align-self: center;
    font-size: 1.5em;
    opacity: 0;
    animation: slideInFromTop 1.5s ease forwards;
    animation-delay: 1.6s;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 20px;
    margin-left: 20px;
    max-width: 100vh;
    border-radius: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1.5s;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 20;
    background-color: var(--hungarian-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: var(--hungarian-red);
}

/* Close menu button */
.close-menu {
    display: none;
    background: none;
    border: none;
    color: var(--hungarian-red);
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    z-index: 30;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.logo-container {
    text-align: center;
    padding: 20px 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInFromLeft 1.5s ease forwards;
    flex-shrink: 0;
    position: relative;
}

.logo {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.menu-item {
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 30px;
    opacity: 0;
    animation: slideInFromLeft 1.5s ease forwards;
}

/* Animation delays for menu items */
.menu-item:nth-child(1) {
    animation-delay: 0.4s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.7s;
}

.menu-item:nth-child(3) {
    animation-delay: 1.0s;
}

.menu-item:nth-child(4) {
    animation-delay: 1.3s;
}

.menu-item:nth-child(5) {
    animation-delay: 1.6s;
}

.menu-item:nth-child(6) {
    animation-delay: 1.9s;
}

.menu-item:nth-child(7) {
    animation-delay: 2.2s;
}

.menu-item a {
    color: var(--hungarian-green);
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.6s ease;
}

.menu-item a:hover {
    color: var(--hungarian-red);
    background-color: var(--white);
    transform: translateX(10px);
}

/* Footer styles */
.footer {
    text-align: left;
    padding: 10px;
    position: fixed;
    bottom: 20px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--hungarian-red);
    font-size: 0.7em;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    max-width: fit-content;
    z-index: 2;
}

/* Scrollbar styles */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Recipe category styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
    gap: 20px;
    padding: 20px;
    clear: both;
    justify-content: center;
}

.category-card {
    max-width: 400px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100px);
}

/* Animation delays for category cards */
.category-card:nth-child(1) {
    animation-delay: 0.4s;
}

.category-card:nth-child(2) {
    animation-delay: 0.7s;
}

.category-card:nth-child(3) {
    animation-delay: 1s;
}

.category-card:nth-child(4) {
    animation-delay: 1.3s;
}

.category-card:nth-child(5) {
    animation-delay: 1.6s;
}

.category-card:nth-child(6) {
    animation-delay: 1.9s;
}

.category-card:nth-child(7) {
    animation-delay: 2.2s;
}

.category-card:nth-child(8) {
    animation-delay: 2.5s;
}

.category-card:nth-child(9) {
    animation-delay: 2.8s;
}

.category-card:nth-child(10) {
    animation-delay: 3.1s;
}

/* Separate animation class */
.slide-in {
    animation: slideInFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Separate hover transition */
.category-card {
    transition: all 0.6s ease;
    /* or ease-in-out for different feel */
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
    /* matching the card transition */
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
}

.category-content h2 {
    color: var(--hungarian-green);
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.category-content p {
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* Update recipes container */
.recipes-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 1s ease forwards;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    /* Add this to establish positioning context */
}

/* Ensure proper spacing in mobile view */
@media (max-width: 768px) {

    .recipes-container,
    .blog-container {
        padding-top: 30px;
    }
}

/* Recipe header with search */
.recipe-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.page-title {
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    color: var(--hungarian-green);
    font-size: 2.5em;
    padding: 20px;
    border-radius: 20px;
    margin: 0 auto;
    flex-grow: 1;
}

.search-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 200;
    /* Ensure search is always on top of other elements */
    width: 250px;
}

.search-container:focus-within {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 1em;
    width: 200px;
    outline: none;
    color: #333;
}

.search-button {
    background-color: var(--hungarian-green);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #9a6e38;
}

/* Search spinner */
.search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Search results */
.search-results-heading {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--hungarian-green);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.recipe-category-tag {
    display: inline-block;
    background-color: var(--hungarian-red);
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 15px;
    margin-top: 10px;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {

    .recipe-header,
    .blog-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 30px;
    }

    .search-container-wrapper {
        justify-content: center;
        margin-bottom: 20px;
    }

    .search-container {
        position: relative;
        margin: 0;
        width: 100%;
        max-width: 300px;
        z-index: 200;
    }

    .page-title {
        margin-bottom: 10px;
    }

    .category-grid {
        margin-top: 20px;
    }

    #recipe-grid,
    #blog-grid,
    #category-grid {
        margin-top: 20px;
        clear: both;
    }
}

/* Animation keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add new animation for sliding out */
@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

/* Ensure recipe grid items use the same animations */
#recipe-grid .category-card {
    opacity: 0;
    transform: translateX(100px);
}

#recipe-grid .slide-in {
    animation: slideInFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.back-button {
    position: absolute;
    /* Changed from sticky */
    top: 20px;
    left: 20px;
    background-color: var(--hungarian-green);
    color: white;
    border: none;
    padding: 8px 15px;
    /* Reduced padding */
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    /* Changed to inline-flex */
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    /* Smaller font size */
    transition: transform 0.2s, background-color 0.2s;
    z-index: 100;
    width: fit-content;
    /* Ensure button only takes necessary width */
}

/* Mobile adjustments for back button */
@media (max-width: 768px) {
    .back-button {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px;
        display: flex;
        justify-content: center;
        order: 2;
    }

    .recipe-header,
    .blog-header {
        display: flex;
        flex-direction: column;
    }

    .page-title {
        order: 1;
    }
}

.back-button .arrow {
    font-size: 0.9em;
    line-height: 1;
}

.back-button:hover {
    background-color: #4a2e22;
    transform: scale(1.05);
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Update recipe grid layout */
#recipe-grid,
#blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 350px));
    gap: 20px;
    padding: 20px;
    width: 100%;
    justify-content: center;
}

/* Update recipe and blog cards */
#recipe-grid .category-card,
#blog-grid .category-card {
    width: 100%;
    height: auto;
    min-height: 300px;
}

#recipe-grid .category-image,
#blog-grid .category-image {
    height: 150px;
    /* Smaller image height */
}

#recipe-grid .category-content,
#blog-grid .category-content {
    padding: 15px;
    /* Reduced padding */
}

#recipe-grid .category-content h2,
#blog-grid .category-content h2 {
    font-size: 1.2em;
    /* Smaller title */
    margin-bottom: 8px;
}

#recipe-grid .category-content p,
#blog-grid .category-content p {
    font-size: 0.9em;
    /* Smaller description text */
    line-height: 1.4;
    /* Add text truncation for long descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recipe detail styles */
.recipe-detail {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 20px;
}

.recipe-detail.slide-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.recipe-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.recipe-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.recipe-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-detail-title {
    color: var(--hungarian-green);
    font-size: 2em;
    margin: 15px 0;
    text-align: center;
}

.recipe-detail-category {
    color: var(--hungarian-red);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.recipe-detail-description {
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
}

/* Product price styles */
.product-price {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--hungarian-green);
    margin-top: 8px;
}

.product-detail-price {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--hungarian-green);
    margin-top: 5px;
}

.product-category-tag {
    display: inline-block;
    background-color: rgba(212, 160, 23, 0.2);
    color: var(--hungarian-red);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-top: 8px;
}

/* Blog styles */
.blog-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 1s ease forwards;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.blog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    /* Add these properties to match recipe-header */
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
}

/* Blog detail styles */
.blog-detail {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 20px;
}

.blog-detail.slide-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.blog-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.blog-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-title {
    color: var(--hungarian-green);
    font-size: 2em;
    margin: 15px 0;
    text-align: center;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-category {
    color: var(--hungarian-red);
    font-size: 1.1em;
    margin-right: 15px;
}

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

.blog-detail-summary {
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
    color: var(--hungarian-green);
    padding: 0 20px;
}

.blog-detail-content {
    line-height: 1.8;
    font-size: 1.1em;
    text-align: justify;
}

.blog-detail-content p,
.blog-text-block {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-content-image {
    margin: 30px auto;
    text-align: center;
    max-width: 80%;
    /* Make images container smaller */
}

.blog-content-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: block;
    /* Ensure proper centering */
    margin: 0 auto;
    /* Center the image */
}

.image-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

.blog-category-tag {
    display: inline-block;
    background-color: var(--hungarian-red);
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 15px;
    margin-right: 10px;
}

/* About page styles */
.about-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 1s ease forwards;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.about-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-header-left {
    flex: 1;
    padding-right: 30px;
}

.about-header-right {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-title {
    color: var(--hungarian-green);
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hungarian-green);
    padding-bottom: 10px;
    display: inline-block;
}

.about-first-paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

.about-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.about-second-paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-empty {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-empty h1 {
    color: var(--hungarian-green);
    margin-bottom: 20px;
}

/* Responsive styles for about page */
@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
    }

    .about-header-left {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .about-header-right {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
}

/* Contact page styles */
.contact-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 1s ease forwards;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.contact-title {
    color: var(--hungarian-green);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    border-radius: 20px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-section {
    flex: 1;
    min-width: 300px;
    max-width: calc(100% - 30px);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-info-section {
    flex: 0 0 350px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--hungarian-green);
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hungarian-green);
    padding-bottom: 10px;
    display: inline-block;
}

/* Form styles */
.contact-form {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--hungarian-green);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
    max-width: 100%;
}

.form-control:focus {
    border-color: var(--hungarian-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--hungarian-red);
    font-size: 0.9em;
    margin-top: 5px;
}

.submit-button {
    background-color: var(--hungarian-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #9a6e38;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Messages styles */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #155724;
}

.message.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #856404;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #721c24;
}

/* Contact info styles */
.contact-details {
    margin-top: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-detail i {
    width: 25px;
    color: var(--hungarian-green);
    margin-right: 10px;
    font-size: 1.2em;
}

.contact-detail.additional-info {
    margin-top: 20px;
    display: block;
}

/* Social media styles */
.social-media-links {
    margin-top: 30px;
}

.social-media-links h3 {
    color: var(--hungarian-green);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--hungarian-green);
    color: white;
    border-radius: 50%;
    font-size: 1.2em;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--hungarian-red);
}

/* Responsive styles for contact page */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .contact-form-section,
    .contact-info-section {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .form-control {
        max-width: 100%;
        width: 100%;
    }
}

/* Recipe info section */
.recipe-info-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: rgba(212, 160, 23, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0 30px 0;
}

.recipe-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.info-label {
    font-size: 0.9em;
    color: var(--hungarian-green);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.2em;
    font-weight: bold;
}

/* Recipe sections */
.recipe-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--hungarian-green);
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hungarian-green);
}

.section-content {
    line-height: 1.8;
    font-size: 1.1em;
    text-align: justify;
}

/* Comprehensive Mobile Styles */
@media (max-width: 1024px) {

    /* Tablet adjustments */
    .main-content {
        padding: 15px;
    }

    .welcome-section,
    .content-section {
        max-width: 90%;
    }

    .recipe-detail,
    .blog-detail {
        max-width: 90%;
        padding: 20px;
    }

    .recipe-detail-image,
    .blog-detail-image {
        max-height: 300px;
    }

    .about-profile-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-menu {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    /* Home page */
    .welcome-section {
        font-size: 1.2em;
        padding: 15px;
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .content-section {
        margin-left: 0;
        padding: 15px;
        font-size: 0.9em;
    }

    /* Recipe and blog grids */
    #recipe-grid,
    #blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 300px));
        gap: 15px;
        padding: 10px;
    }

    /* Recipe and blog details */
    .recipe-detail,
    .blog-detail {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }

    .recipe-detail-title,
    .blog-detail-title {
        font-size: 1.5em;
    }

    .recipe-detail-description,
    .blog-detail-content {
        font-size: 1em;
    }

    /* About page */
    .about-header,
    .about-content {
        padding: 15px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .about-title {
        font-size: 2em;
    }

    .about-first-paragraph,
    .about-second-paragraph {
        font-size: 1em;
    }

    /* Container padding adjustments */
    .recipes-container,
    .blog-container,
    .about-container,
    .contact-container {
        padding: 10px;
    }

    /* Contact page */
    .contact-title {
        font-size: 2em;
        padding: 10px 20px;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 20px;
    }

    /* Footer */
    .footer {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {

    /* Small mobile devices */
    .welcome-section {
        font-size: 1em;
        padding: 10px;
    }

    .page-title {
        font-size: 1.8em;
        padding: 15px;
    }

    #recipe-grid,
    #blog-grid {
        grid-template-columns: 1fr;
    }

    .recipe-detail,
    .blog-detail {
        padding: 10px;
        border-radius: 8px;
    }

    .recipe-detail-image,
    .blog-detail-image {
        max-height: 200px;
    }

    .about-header,
    .about-content {
        padding: 10px;
        border-radius: 8px;
    }

    .recipe-info-section {
        padding: 10px;
    }

    .recipe-info-item {
        padding: 8px 15px;
    }

    .info-value {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.3em;
    }

    .section-content {
        font-size: 0.95em;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.5em;
    }

    .submit-button {
        width: 100%;
    }
}