            /* === General === */
            body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background-color: #fff;
            color: #212121;
            margin: 0;
            padding: 0;
            }

            section {
            padding: 20px;
            margin: 0 auto;
            max-width: 900px;
            }

            h2 {
            font-size: 26px;
            margin-bottom: 15px;
            color: #4caf50;
            }

            h3 {
            font-size: 22px;
            margin-bottom: 10px;
            color: #333;
            }

            ul {
            padding-left: 20px;
            margin-bottom: 20px;
            }

            li {
            margin-bottom: 10px;
            }

            p {
            margin-bottom: 15px;
            }

            strong {
            color: #333;
            }

            /* === Introduction === */
            .introduction {
            background-color: #f6fff6;
            border-left: 5px solid #4caf50;
            padding: 20px;
            border-radius: 4px;
            margin-bottom: 40px;
            }

            /* === Section Block === */
            .section-block {
            margin-bottom: 40px;
            }

            /* === Day Plan === */
            .day-plan {
            border: 1px solid #e0e0e0;
            padding: 20px;
            border-radius: 6px;
            margin-bottom: 25px;
            background-color: #fafafa;
            }

            .day-plan h3 {
            margin-top: 0;
            color: #4caf50;
            }

            .total-calories {
            font-weight: bold;
            margin-top: 10px;
            color: #388e3c;
            }

            /* === Quick Summary Section === */
            .article-section-quick-summary {
            background-color: #f0fdf4;
            border-left: 4px solid #4caf50;
            padding: 20px;
            margin-top: 40px;
            border-radius: 6px;
            }

            .article-section-quick-summary ul {
            list-style: disc;
            padding-left: 20px;
            }

            /* === Final Tips === */
            .article-section-final-tips {
            background-color: #f9f9f9;
            border-top: 3px solid #4caf50;
            padding: 20px;
            margin-top: 40px;
            border-radius: 6px;
            }

            /* === Responsive === */
            @media (max-width: 768px) {
            section {
                padding: 15px;
            }

            h2 {
                font-size: 22px;
            }

            h3 {
                font-size: 20px;
            }

            .day-plan {
                padding: 15px;
            }

            .article-section-quick-summary,
            .article-section-final-tips {
                padding: 15px;
            }
            }

            /* === Optional Elements === */
            .article-image {
            width: 100%;
            max-height: 350px;
            object-fit: cover;
            border-radius: 6px;
            margin: 20px 0;
            }
        /* header styleaaaaaaaaaaaaaaaaa */

        /* === Header === */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #f9f9f9;
            padding: 10px 20px;
            border-bottom: 2px solid #4caf50;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .left-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 50px;
        }

        .site-name,
        .sitename {
            font-weight: 700;
            font-size: 24px;
            color: #4caf50;
            text-decoration: none;
        }

        .menu-icon {
            font-size: 28px;
            color: #4caf50;
            cursor: pointer;
            background: none;
            border: none;
            outline: none;
        }

        .top-btn {
            background-color: #4caf50;
            border: none;
            color: white;
            padding: 10px 16px;
            font-weight: 600;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .top-btn:hover {
            background-color: #388e3c;
        }

        /* === Sidebar === */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 260px;
            background-color: #ffffff;
            box-shadow: 2px 0 10px rgba(0,0,0,0.2);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            z-index: 1001;
            padding: 20px;
        }

        .sidebar.visible {
            transform: translateX(0);
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-header h3 {
            margin: 0;
            font-size: 20px;
            color: #212121;
        }

        .close-btn {
            font-size: 26px;
            cursor: pointer;
            color: #212121;
            background: none;
            border: none;
            outline: none;
        }

        .close-btn:focus {
            outline: 2px solid #4caf50;
            outline-offset: 2px;
        }

        .sidebar-links {
            list-style: none;
            margin-top: 20px;
            padding-left: 0;
        }

        .sidebar-links li {
            margin-bottom: 15px;
        }

        .sidebar-links > li > a {
            text-decoration: none;
            color: #4caf50;
            font-weight: 600;
            display: block;
        }

        .submenu {
            list-style: none;
            margin-top: 8px;
            padding-left: 15px;
        }

        .submenu li a {
            color: #388e3c;
            font-weight: 500;
            font-size: 14px;
            display: block;
            margin-bottom: 6px;
        }

        /* === Overlay === */
        .overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.3);
            z-index: 1000;
            cursor: pointer;
        }

        .hidden {
            display: none;
        }



        /* === Responsive === */
        @media (max-width: 768px) {
            .top-bar {
                flex-wrap: nowrap;
                justify-content: space-between;
                align-items: center;
            }

            .left-group {
                order: 1;
                display: flex;
                align-items: center;
                gap: 15px;
            }

            .top-btn {
                order: 2;
            }


        .site-name {
            display: none;
        }

        a.sitename {
        text-decoration: none;
        color: #212121; /* اختياري لتحديد لون النص */
        }
        .article-featured-image {
        width: 100%;
        height: auto;
    }

    .nutrition-table th, .nutrition-table td {
        font-size: 14px;
        padding: 8px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
            }

            @media (min-width: 769px) {
        #menu-button,
        #sidebar,
        #overlay {
            display: none !important;
        }

        .left-group {
            margin-right: auto;
            gap: 10px;
        }

        .logo img {
            display: none;
        }

        .site-name {
            color: #4caf50;
            font-size: 26px;
            font-weight: 700;
        }

        .sitename {
            display: none;
        }

        .top-btn {
            margin-left: auto;
        }
            }
            .has-submenu .submenu-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            color: #4caf50;
            font-weight: 600;
            margin-bottom: 8px;
            }

            .has-submenu .arrow {
            transition: transform 0.3s ease;
            }

            .has-submenu.open .arrow {
            transform: rotate(90deg);
            }

            .submenu {
            margin-left: 15px;
            list-style: none;
            }

            .submenu.hidden {
            display: none;
            }
            .submenu-toggle .submenu-label {
            color: #4caf50;
            font-weight: 600;
            text-decoration: none;
            }
            .article-header {
            text-align: center;
            margin: 30px auto 10px auto;
            max-width: 800px;
            padding: 0 15px;
        }

        .article-header h1 {
            font-size: 2.2rem;
            font-weight: 700;
            color: #222;
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .article-featured-image {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }
    .main-footer {
    background-color: #f8f8f8;
    padding: 40px 20px 20px;
    color: #333;
    border-top: 1px solid #ddd;
    }

    .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    }

    .footer-column h3 {
    color: #28a745;
    font-size: 1.6em;
    margin-bottom: 10px;
    }

    .footer-column h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #333;
    }

    .footer-column ul {
    list-style: none;
    padding: 0;
    }

    .footer-column ul li {
    margin-bottom: 8px;
    }

    .footer-column ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    }

    .footer-column ul li a:hover {
    color: #28a745;
    }

    .footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.95em;
    color: #777;
    border-top: 1px solid #ccc;
    margin-top: 30px;
    }
        /* Nutrition Table Styling */
        .nutrition-table {
        width: 100%;
        max-width: 600px;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 16px;
        text-align: left;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        overflow: hidden;
        }

        .nutrition-table thead {
        background-color: #4caf50;
        color: white;
        }

        .nutrition-table th,
        .nutrition-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #e0e0e0;
        }

        .nutrition-table tr:last-child td {
        border-bottom: none;
        }

        .nutrition-table tbody tr:hover {
        background-color: #f9f9f9;
        }
    .serving-tips ul {
    list-style: none;
    padding-left: 0;
    }

    .serving-tips li {
    margin-bottom: 10px;
    line-height: 1.6;
    }

    .serving-tips h2, .serving-tips h3 {
    color: #4caf50;
    }
    /* ===== FAQ Section Styling ===== */
    .article-section-faqs {
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 12px;
    margin-top: 40px;
    }

    .article-section-faqs h2 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 30px;
    font-size: 28px;
    }

    .faq {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    }

    .faq h3 {
    font-size: 20px;
    color: #388e3c;
    margin-bottom: 10px;
    position: relative;
    }

    .faq h3::before {
    content: "";
    margin-right: 8px;
    }

    .faq p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-left: 10px;
    }
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 40px; /* ← هنا تتحكم في مقدار التحريك */
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #212121;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4caf50;
}

/* Dropdown menus */
.has-subnav .dropdown {
  display: none;
  position: absolute;
  background: #fff;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px 0;
  border: 1px solid #ddd;
  min-width: 180px;
  z-index: 100;
}

.has-subnav:hover .dropdown {
  display: block;
}

.dropdown li {
  padding: 6px 16px;
}

.dropdown li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.dropdown li a:hover {
  color: #4caf50;
}

/* Show only on large screens */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
}

























    @media (max-width: 768px) {
  .article-preview {
    flex-direction: column;
  }

  .article-preview img,
  .trending-articles img {
    width: 100%;
    height: auto;
  }

  .site-name {
    display: none;
  }

a.sitename {
  text-decoration: none;
  color: #212121; /* اختياري لتحديد لون النص */
}
}

@media (min-width: 769px) {
  #menu-button,
  #sidebar,
  #overlay {
    display: none !important;
  }

  .left-group {
    margin-right: auto;
    gap: 10px;
  }

  .logo img {
    display: none;
  }

  .site-name {
    color: #4caf50;
    font-size: 26px;
    font-weight: 700;
  }

  .sitename {
    display: none;
  }

  .top-btn {
    margin-left: auto;
  }
}
